Use symbol search name in expand_symtabs_matching_via_partial...
[binutils-gdb.git] / gdb / ChangeLog
1 2011-12-21 Joel Brobecker <brobecker@adacore.com>
2
3 * psymtab.c (expand_symtabs_matching_via_partial): Match
4 the partial symbols using their SYMBOL_SEARCH_NAME.
5 * symfile.h (struct quick_symbol_functions): Udate the
6 documentation of expand_symtabs_matching.
7 * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
8 of SYMBOL_NATURAL_NAME in index entry.
9
10 2011-12-21 Joel Brobecker <brobecker@adacore.com>
11
12 * linespec.c (locate_first_half): Add handling of Ada operators
13 when the current language is Ada.
14
15 2011-12-21 Joel Brobecker <brobecker@adacore.com>
16
17 * objfiles.c (insert_section_p): Do not detect overlay sections
18 if overlay debugging is off.
19
20 2011-12-21 Joel Brobecker <brobecker@adacore.com>
21
22 * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
23 Update function documentation.
24 * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
25 computation.
26
27 2011-12-20 Pedro Alves <alves.ped@gmail.com>
28 Jan Kratochvil <jan.kratochvil@redhat.com>
29
30 * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
31 first LWP.
32 * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
33 `lwp->arch_private' if NULL.
34 (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
35 is NULL.
36 * i386-linux-nat.c (update_debug_registers_callback): Instantiate
37 `lwp->arch_private' if NULL.
38 (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
39 is NULL.
40
41 2011-12-19 Doug Evans <dje@google.com>
42
43 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
44 scripts vector to collect_matching_scripts.
45 (collect_matching_scripts): Update.
46
47 2011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
48
49 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
50 preserve_values, sym_finish and clear_objfile_data calls before BFD
51 close. Move free_objfile_separate_debug as the very first call. New
52 comment on the ordering.
53
54 2011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
55
56 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
57 in return PSWA.
58
59 2011-12-19 Tom Tromey <tromey@redhat.com>
60
61 * symtab.h (add_minsym_to_hash_table): Don't declare.
62 * minsyms.c (add_minsym_to_hash_table): Now static.
63
64 2011-12-19 Joel Brobecker <brobecker@adacore.com>
65
66 * elfread.c (elf_symtab_read): Ignore undefined symbols with
67 nonzero addresses if they do not correspond to a .plt section
68 when one is available in the objfile.
69
70 2011-12-17 Andreas Schwab <schwab@linux-m68k.org>
71
72 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
73 obstack_empty_p.
74
75 2011-12-17 Mark Kettenis <kettenis@gnu.org>
76
77 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
78 regset_from_core_section.
79 (amd64obsd_core_init_abi): New function that sets
80 regset_from_core_section.
81 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
82 traditional core dumps.
83
84 2011-12-17 Mark Kettenis <kettenis@gnu.org>
85
86 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
87 trampoline to be introduced in OpenBSD 5.0.
88
89 2011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
90
91 Fix build regression from the PR threads/10729 fix.
92 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
93 not LP->PTID.
94
95 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
96
97 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
98 `optarg' to `oind' and `oarg', respectively(-Wshadow).
99 (mi_cmd_data_read_memory): Ditto.
100 (mi_cmd_data_read_memory_bytes): Ditto.
101 (mi_cmd_data_write_memory): Ditto.
102
103 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
104
105 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
106 `oind' and `oarg', respectively(-Wshadow).
107 (mi_valid_noargs): Ditto.
108
109 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
110
111 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
112 `oind' and `oarg', respectively(-Wshadow).
113
114 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
115
116 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
117 `optarg' to `oind' and `oarg', respectively(-Wshadow).
118 (mi_cmd_target_file_put): Ditto.
119 (mi_cmd_target_file_delete): Ditto.
120
121 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
122
123 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
124 `optarg' to `oind' and `oarg', respectively(-Wshadow).
125 (mi_cmd_env_dir): Ditto.
126
127 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
128
129 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
130 `optarg' to `oind' and `oarg', respectively(-Wshadow).
131
132 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
133
134 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
135 `optparg' to `oind' and `oarg', respectively(-Wshadow).
136 (mi_cmd_break_watch): Ditto.
137
138 2011-12-16 Tom Tromey <tromey@redhat.com>
139
140 * linespec.c (collect_symbols): Call maybe_add_address after
141 calling symbol_to_sal.
142 (minsym_found): Call maybe_add_address here.
143 (search_minsyms_for_name): Don't call maybe_add_address.
144
145 2011-12-16 Tom Tromey <tromey@redhat.com>
146
147 * linespec.c (struct collect_info) <objfile>: Remove field.
148 (decode_objc): Update.
149 (find_method): Update.
150 (decode_variable): Update.
151 (struct minsym_and_objfile): New.
152 (struct collect_minsyms): New.
153 (classify_mtype): New function.
154 (compare_msyms): Likewise.
155 (add_minsym): Likewise.
156 (check_minsym): Remove.
157 (search_minsyms_for_name): Sort minsyms and apply only those with
158 top priority.
159
160 2011-12-16 Tom Tromey <tromey@redhat.com>
161
162 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
163
164 2011-12-16 Pedro Alves <pedro@codesourcery.com>
165
166 * inf-loop.c: Include top.h.
167 (inferior_event_handler): Call check_frame_language.
168 * top.c (check_frame_language_change): New, factored out from ...
169 (execute_command): ... this. Use check_frame_language_change.
170 * top.h (check_frame_language_change): Declare.
171
172 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
173
174 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
175 prototypes.
176
177 2011-12-16 Doug Evans <dje@google.com>
178
179 * NEWS: Add entry for stdio gdbserver.
180
181 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
182
183 * python/python.c: Define python_excp_enums.
184 (eval_python_from_control_command): Do not call gdbpy_print_stack.
185 (python_command): Ditto.
186 (gdbpy_print_stack): Rewrite to use new enum constants.
187 (maint_set_python): Remove function.
188 (maint_show_python): Ditto.
189 (_initialize_python): Do not add "maint" commands. Add "set/show
190 python print-stack commands".
191 * NEWS: Update to reflect removal for "maint set/show
192 print-stack"
193
194 2011-12-15 Doug Evans <dje@google.com>
195
196 * exceptions.c (catcher_list_size): New function.
197 (last_message): Delete.
198 (exception_messages, exception_messages_size): New static globals.
199 (throw_it): Use exception_messages array to handle nested calls.
200
201 2011-12-15 Tom Tromey <tromey@redhat.com>
202
203 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
204 do_cleanups call.
205
206 2011-12-14 Doug Evans <dje@google.com>
207
208 * defs.h (wait_to_die_with_timeout): Declare.
209 * utils.c: #include "gdb_wait.h".
210 (sigalrm_handler, wait_to_die_with_timeout): New functions.
211 * ser-pipe.c: Don't #include "gdb_wait.h".
212 (pipe_close): Give child a chance to die on its own after closing
213 its stdin before SIGTERM'ing it.
214
215 2011-12-14 Joel Brobecker <brobecker@adacore.com>
216 Tom Tromey <tromey@redhat.com>
217
218 * ada-lang.c (add_nonlocal_symbols): Initialize data to
219 all zeros. Remove setting of data.arg_sym to NULL.
220
221 2011-12-14 Pedro Alves <pedro@codesourcery.com>
222
223 PR threads/10729
224
225 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
226 pointer.
227 (linux_nat_prepare_to_resume): New global.
228 (lwp_free): New.
229 (purge_lwp_list): Use it.
230 (add_lwp): Call linux_nat_new_thread even on the first LWP.
231 Adjust to interface change.
232 (delete_lwp): Call lwp_free instead of xfree.
233 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
234 (linux_handle_syscall_trap, linux_handle_extended_wait)
235 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
236 linux_nat_prepare_to_resume before resuming.
237 (linux_stop_lwp): New.
238 (linux_nat_set_new_thread): Adjust.
239 (linux_nat_set_prepare_to_resume): New.
240 * linux-nat.h (struct arch_lwp_info): Forward declare.
241 (struct lwp_info) <arch_private>: New field.
242 (linux_stop_lwp): Declare.
243 (linux_nat_set_new_thread): Adjust.
244 (linux_nat_set_prepare_to_resume): New.
245
246 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
247 (struct i386_debug_reg_state): Move to i386-nat.h.
248 (dr_mirror): Comment.
249 (i386_debug_reg_state): New.
250 (i386_update_inferior_debug_regs): Simplify.
251 (i386_stopped_data_address): Use the debug register state from the
252 inferior, not from the local cache.
253 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
254 unset_status fields. New get_addr and get_control fields.
255 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
256 (DR_NADDR, DR_STATUS): New.
257 (struct i386_debug_reg_state): Moved from i386-nat.c.
258
259 * amd64-linux-nat.c (struct arch_lwp_info): New.
260 (amd64_linux_dr): Delete global.
261 (amd64_linux_dr_get_addr): New.
262 (amd64_linux_dr_get_control): New.
263 (amd64_linux_dr_unset_status): Delete.
264 (amd64_linux_dr_set_addr): Reimplement.
265 (amd64_linux_dr_reset_addr): Delete.
266 (update_debug_registers_callback): New.
267 (amd64_linux_dr_set_control): Reimplement.
268 (amd64_linux_dr_set_addr): Reimplement.
269 (amd64_linux_prepare_to_resume): New.
270 (amd64_linux_new_thread): Change parameter to an lwp pointer.
271 Reimplement.
272 (_initialize_amd64_linux_nat): No longer install
273 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
274 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
275 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
276 amd64_linux_prepare_to_resume.
277 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
278 (DR_CONTROL): Delete.
279 (struct arch_lwp_info): New.
280 (i386_linux_dr): Delete global.
281 (i386_linux_dr_set_control): Reimplement.
282 (i386_linux_dr_get_addr): New.
283 (i386_linux_dr_set_addr): Reimplement.
284 (i386_linux_dr_get_control): New.
285 (update_debug_registers_callback): New.
286 (i386_linux_dr_unset_status): Delete.
287 (i386_linux_dr_set_addr): Reimplement.
288 (i386_linux_prepare_to_resume): New.
289 (i386_linux_new_thread): Change parameter to an lwp pointer.
290 Reimplement.
291 (_initialize_i386_linux_nat): No longer install
292 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
293 i386_linux_dr_get_control as i386_dr_low.get_control. Install
294 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
295 i386_linux_prepare_to_resume.
296
297 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
298 lwp pointer. Adjust.
299 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
300 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
301 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
302 * s390-nat.c (s390_fix_watch_points): Likewise.
303
304 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
305 (DR_CONTROL): Delete.
306 (i386_darwin_dr_reset_addr): Delete.
307 (i386_darwin_dr_get_addr): New.
308 (i386_darwin_dr_get_control): New.
309 * go32-nat.c
310 (go32_get_dr7, go32_get_dr): New.
311 (init_go32_ops): No longer install i386_dr_low.reset_addr.
312 Install go32_get_dr7 as i386_dr_low.get_control. Install
313 go32_get_dr as i386_dr_low.get_addr.
314 * i386bsd-nat.c (i386bsd_dr_get): New.
315 (i386bsd_dr_reset_addr): Delete.
316 (i386bsd_dr_get_addr): New.
317 (i386bsd_dr_get_status): Use i386bsd_dr_get.
318 (i386bsd_dr_get_control): New.
319 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
320 (i386bsd_dr_get_addr): New.
321 (i386bsd_dr_get_control): New.
322 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
323 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
324 i386bsd_dr_get_control as i386_dr_low.get_control. Install
325 i386bsd_dr_get_addr as i386_dr_low.get_addr.
326 * windows-nat.c (init_windows_ops): No longer install
327 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
328 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
329 as i386_dr_low.get_addr.
330 (cygwin_get_dr): New.
331 (cygwin_get_dr7): New.
332
333 2011-12-14 Pedro Alves <pedro@codesourcery.com>
334
335 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
336 target_write_raw_memory.
337 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
338 target_write_raw_memory.
339 * microblaze-linux-tdep.c
340 (microblaze_linux_memory_remove_breakpoint): Use
341 target_write_raw_memory.
342 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
343 target_write_raw_memory.
344
345 2011-12-14 Joel Brobecker <brobecker@adacore.com>
346
347 * linespec.c (decode_line_internal): Make static.
348
349 2011-12-14 Yao Qi <yao@codesourcery.com>
350
351 * breakpoint.c (create_breakpoint): Set canonical.addr_string
352 for static tracepoint.
353
354 2011-12-13 Joel Brobecker <brobecker@adacore.com>
355
356 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
357 * version.in: Bump version to 7.4.50.20111213-cvs.
358
359 2011-12-13 Joel Brobecker <brobecker@adacore.com>
360
361 * NEWS: Create a new section for the next release branch.
362 Rename the section of the current branch, now that it has
363 been cut.
364
365 2011-12-11 Joel Brobecker <brobecker@adacore.com>
366
367 * ada-lang.c (ada_exception_support_info_sniffer): Improve
368 error message.
369
370 2011-12-11 Joel Brobecker <brobecker@adacore.com>
371
372 * ada-lang.c (struct ada_inferior_data) [exception_info]:
373 New field.
374 (exception_info): Delete.
375 (ada_exception_support_info_sniffer): Get exception_support_info
376 data from our per-inferior data. Adjust code accordingly.
377 (ada_unhandled_exception_name_addr_from_raise): Likewise.
378 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
379 (ada_executable_changed_observer): Delete.
380 (_initialize_ada_language): Remove call to
381 observer_attach_executable_changed.
382
383 2011-12-11 Joel Brobecker <brobecker@adacore.com>
384
385 * ada-lang.c (ada_has_this_exception_support): Raise an error
386 if we could find the Ada exception hook in the Ada runtime,
387 but no debugging info for that hook.
388
389 2011-12-11 Joel Brobecker <brobecker@adacore.com>
390
391 * ada-lang.c (ada_has_this_exception_support): New function,
392 extracted out of ada_exception_sal and ada_exception_sal.
393 (ada_exception_support_info_sniffer): Simplify by using
394 ada_has_this_exception_support.
395 (ada_exception_sal): Replace unnecessary checks by assertions.
396 Minor simplifications.
397
398 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
399
400 * breakpoint.c (update_global_location_list): Remove nested
401 definition of `b'(-Wshadow).
402
403 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
404
405 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
406 `error_flag'(-Wshadow).
407
408 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
409
410 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
411 `abfd'(-Wshadow).
412
413 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
414
415 * annotate.c (annotate_array_section_begin): Rename `index' to
416 `idx'(-Wshadow).
417
418 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
419
420 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
421 `idx'(-Wshadow).
422
423 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
424
425 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
426 `syscall' to `syscall_number'(-Wshadow).
427
428 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
429
430 * ada-lang.c (remove_extra_symbols): Rename `remove' to
431 `remove_p'(-Wshadow).
432
433 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
434
435 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
436 `ren_sym'(-Wshadow).
437
438 2011-12-10 Doug Evans <dje@google.com>
439
440 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
441 debug_types_section. All uses updated.
442 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
443 to is_debug_types_section.
444
445 * python/py-auto-load.c (source_section_scripts): Call xfree
446 instead of free.
447
448 2011-12-10 Hui Zhu <teawater@gmail.com>
449 Yao Qi <yao@codesourcery.com>
450
451 * tracepoint.c (start_tracing): Clear `inserted' flag.
452
453 2011-12-10 Hui Zhu <teawater@gmail.com>
454
455 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
456
457 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
458
459 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
460 `bpoint'(-Wshadow).
461
462 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
463
464 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
465 `marker' variables to `sal2' and `tpmarker' respectively
466 (-Wshadow).
467
468 2011-12-09 Andrew Pinski <apinski@cavium.com>
469
470 * linespec.c (hash_address_entry): Use iterative_hash_object on each
471 field rather than the struct itself.
472
473 2011-12-09 Tom Tromey <tromey@redhat.com>
474
475 * breakpoint.c (compare_breakpoints): New function.
476 (clear_command): Remove duplicate breakpoints. Properly clean
477 up.
478
479 2011-12-08 Maciej W. Rozycki <macro@mips.com>
480 Maciej W. Rozycki <macro@codesourcery.com>
481
482 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
483 address chunks retrieved from decoded lui/addiu pairs.
484
485 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
486
487 * mips-tdep.c (extended_offset): Correct calculation.
488 (unpack_mips16): Correct bitfield positions used for extraction
489 of the immediate argument; fix sign-extension of same.
490 (extended_mips16_next_pc): Correct B instruction's offset
491 calculation. Correct register decoding of the BEQZ and BNEZ
492 as well as jump-register instructions. Handle compact jumps.
493
494 2011-12-08 Tom Tromey <tromey@redhat.com>
495
496 * objfiles.h (struct objfile): Remove obsolete comment.
497 * objfiles.c (build_objfile_section_table): Remove obsolete
498 comment.
499
500 2011-12-07 Stan Shebs <stan@codesourcery.com>
501
502 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
503 maintainer of the tic6x target.
504
505 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
506
507 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
508 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
509 (arm_deal_with_atomic_sequence_raw): Likewise.
510 (arm_deal_with_atomic_sequence): Likewise.
511 (arm_software_single_step): Call it.
512 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
513
514 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
515
516 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
517 where appropriate.
518 * s390-tdep.h: Likewise.
519
520 2011-12-07 Tristan Gingold <gingold@adacore.com>
521
522 * machoread.c (macho_symtab_read): Do not consider N_OPT as
523 a debugging stab. Improve complaint message.
524
525 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
526
527 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
528 load adjustment if still within the prologue.
529
530 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
531
532 * mips-tdep.c (mips32_next_pc): Fix floating point condition
533 code mask.
534
535 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
536
537 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
538 of BLTZ* and BGEZ* instructions.
539
540 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
541
542 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
543 performed to determine whether an address refers to standard
544 MIPS or MIPS16 code.
545 (mips16_next_pc): Use mips_pc_is_mips16 instead of
546 is_mips16_addr.
547
548 2011-12-06 Pedro Alves <pedro@codesourcery.com>
549
550 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
551 (breakpoint_xfer_memory): ... this. Change prototype. Handle
552 memory writes too.
553 * breakpoint.h (breakpoint_restore_shadows): Delete.
554 (breakpoint_xfer_memory): Declare.
555 * mem-break.c (default_memory_insert_breakpoint)
556 (default_memory_remove_breakpoint): Use target_write_raw_memory.
557 (memory_xfer_partial): Rename to ...
558 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
559 here.
560 (memory_xfer_partial): New.
561 (target_write_raw_memory): New.
562 * target.h (target_write_raw_memory): New.
563
564 2011-12-06 Doug Evans <dje@google.com>
565
566 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
567
568 2011-12-06 Joel Brobecker <brobecker@acacore.com>
569
570 * language.h (struct language_defn): Add new component
571 la_symbol_name_compare.
572 * symfile.h (struct quick_symbol_functions): Update the profile
573 of parameter "name_matcher" for the expand_symtabs_matching
574 method. Update the documentation accordingly.
575 * ada-lang.h (ada_name_for_lookup): Add declaration.
576 * ada-lang.c (ada_name_for_lookup): New function, extracted out
577 from ada_iterate_over_symbols.
578 (ada_iterate_over_symbols): Do not encode symbol name anymore.
579 (ada_expand_partial_symbol_name): Adjust profile.
580 (ada_language_defn): Add value for la_symbol_name_compare field.
581 * linespec.c: #include "ada-lang.h".
582 (iterate_name_matcher): Add language parameter. Replace call
583 to strcmp_iw by call to language->la_symbol_name_compare.
584 (decode_variable): Encode COPY if current language is Ada.
585 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
586 of name_matcher parameter. Adjust call to name_matcher.
587 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
588 (expand_partial_symbol_names): Update profile of parameter "fun".
589 * psymtab.h (expand_partial_symbol_names): Update profile of
590 parameter "fun".
591 * symtab.c (demangle_for_lookup): Update function documentation.
592 (search_symbols_name_matches): Add language parameter.
593 (expand_partial_symbol_name): Likewise.
594 * c-lang.c (c_language_defn, cplus_language_defn)
595 (asm_language_defn, minimal_language_defn): Add value for
596 la_symbol_name_compare field.
597 * d-lang.c (d_language_defn): Likewise.
598 * f-lang.c (f_language_defn): Ditto.
599 * jv-lang.c (java_language_defn): Ditto.
600 * m2-lang.c (m2_language_defn): Ditto.
601 * objc-lang.c (objc_language_defn): Ditto.
602 * opencl-lang.c (opencl_language_defn): Ditto.
603 * p-lang.c (pascal_language_defn): Ditto.
604 * language.c (unknown_language_defn, auto_language_defn)
605 (local_language_defn): Ditto.
606
607 2011-12-06 Tom Tromey <tromey@redhat.com>
608
609 * linespec.c (iterate_over_all_matching_symtabs): Use
610 LA_ITERATE_OVER_SYMBOLS.
611 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
612 (find_function_symbols, decode_variable): Remove Ada special
613 case.
614 * language.h (struct language_defn) <la_iterate_over_symbols>: New
615 field.
616 (LA_ITERATE_OVER_SYMBOLS): New macro.
617 * language.c (unknown_language_defn, auto_language_defn)
618 (local_language_defn): Update.
619 * c-lang.c (c_language_defn, cplus_language_defn)
620 (asm_language_defn, minimal_language_defn): Update.
621 * d-lang.c (d_language_defn): Update.
622 * f-lang.c (f_language_defn): Update.
623 * jv-lang.c (java_language_defn): Update.
624 * m2-lang.c (m2_language_defn): Update.
625 * objc-lang.c (objc_language_defn): Update.
626 * opencl-lang.c (opencl_language_defn): Update.
627 * p-lang.c (pascal_language_defn): Update.
628 * ada-lang.c (ada_iterate_over_symbols): New function.
629 (ada_language_defn): Update.
630
631 2011-12-06 Tom Tromey <tromey@redhat.com>
632 Joel Brobecker <brobecker@acacore.com>
633
634 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
635 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
636 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
637 PR shlibs/8929, PR shlibs/7393:
638 * python/py-type.c (compare_maybe_null_strings): Rename from
639 compare_strings.
640 (check_types_equal): Update.
641 * utils.c (compare_strings): New function.
642 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
643 location changes.
644 * tracepoint.c (scope_info): Update.
645 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
646 * symtab.h (iterate_over_minimal_symbols)
647 (iterate_over_some_symtabs, iterate_over_symtabs)
648 (find_pcs_for_symtab_line, iterate_over_symbols)
649 (demangle_for_lookup): Declare.
650 (expand_line_sal): Remove.
651 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
652 (lookup_symtab_callback): New functions.
653 (lookup_symtab): Rewrite.
654 (demangle_for_lookup): New function, extract from
655 lookup_symbol_in_language.
656 (lookup_symbol_in_language): Use it.
657 (iterate_over_symbols): New function.
658 (find_line_symtab): Update.
659 (find_pcs_for_symtab_line): New functions.
660 (find_line_common): Add 'start' argument.
661 (decode_line_spec): Update. Change argument to 'flags', change
662 interpretation.
663 (append_expanded_sal): Remove.
664 (append_exact_match_to_sals): Remove.
665 (expand_line_sal): Remove.
666 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
667 Remove.
668 <map_symtabs_matching_filename>: New field.
669 * stack.c (func_command): Only look in the current program space.
670 Use DECODE_LINE_FUNFIRSTLINE.
671 * source.c (line_info): Set pspace on sal. Check program space in
672 the loop. Use DECODE_LINE_LIST_MODE.
673 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
674 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
675 * python/python.c (gdbpy_decode_line): Update.
676 * psymtab.c (partial_map_expand_apply): New function.
677 (partial_map_symtabs_matching_filename): Rename from
678 lookup_partial_symbol. Update arguments.
679 (lookup_symtab_via_partial_symtab): Remove.
680 (psym_functions): Update.
681 * objc-lang.h (parse_selector, parse_method): Don't declare.
682 (find_imps): Update.
683 * objc-lang.c (parse_selector, parse_method): Now static.
684 (find_methods): Change arguments. Fill in a vector of symbol
685 names.
686 (uniquify_strings): New function.
687 (find_imps): Change arguments.
688 * minsyms.c (iterate_over_minimal_symbols): New function.
689 * linespec.h (enum decode_line_flags): New.
690 (struct linespec_sals): New.
691 (struct linespec_result) <canonical>: Remove.
692 <pre_expanded, addr_string, sals>: New fields.
693 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
694 (decode_line_full): Declare.
695 (decode_line_1): Update.
696 * linespec.c (struct address_entry, struct linespec_state, struct
697 collect_info): New types.
698 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
699 (eq_address_entry, maybe_add_address): New functions.
700 (total_number_of_methods): Remove.
701 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
702 functions.
703 (find_methods): Change arguments. Don't canonicalize input.
704 Simplify logic.
705 (add_matching_methods, add_constructors)
706 (build_canonical_line_spec): Remove.
707 (filter_results, convert_results_to_lsals): New functions.
708 (decode_line_2): Change arguments. Rewrite for new data
709 structures.
710 (decode_line_internal): Rename from decode_line_1. Change
711 arguments. Add cleanups. Update for new data structures.
712 (linespec_state_constructor, linespec_state_destructor)
713 (decode_line_full, decode_line_1): New functions.
714 (decode_indirect): Change arguments. Update.
715 (locate_first_half): Use skip_spaces.
716 (decode_objc): Change arguments. Update for new data structures.
717 Simplify logic.
718 (decode_compound): Change arguments. Add cleanups. Remove
719 fallback code, replace with error.
720 (struct decode_compound_collector): New type.
721 (collect_one_symbol): New function.
722 (lookup_prefix_sym): Change arguments. Update.
723 (compare_symbol_name, add_all_symbol_names_from_pspace)
724 (find_superclass_methods ): New functions.
725 (find_method): Rewrite.
726 (struct symtab_collector): New type.
727 (add_symtabs_to_list, collect_symtabs_from_filename): New
728 functions.
729 (symtabs_from_filename): Change API. Rename from
730 symtab_from_filename.
731 (collect_function_symbols): New function.
732 (find_function_symbols): Change API. Rename from
733 find_function_symbol. Rewrite.
734 (decode_all_digits): Change arguments. Rewrite.
735 (decode_dollar): Change arguments. Use decode_variable.
736 (decode_label): Change arguments. Rewrite.
737 (collect_symbols): New function.
738 (minsym_found): Change arguments. Rewrite.
739 (check_minsym, search_minsyms_for_name)
740 (add_matching_symbols_to_info): New function.
741 (decode_variable): Change arguments. Iterate over all symbols.
742 (symbol_found): Remove.
743 (symbol_to_sal): New function.
744 (init_linespec_result, destroy_linespec_result)
745 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
746 New functions.
747 (decode_digits_list_mode, decode_digits_ordinary): New functions.
748 * dwarf2read.c (dw2_map_expand_apply): New function.
749 (dw2_map_symtabs_matching_filename): Rename from
750 dw2_lookup_symtab. Change arguments.
751 (dwarf2_gdb_index_functions): Update.
752 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
753 * defs.h (compare_strings): Declare.
754 * cli/cli-cmds.c (compare_strings): Move to utils.c.
755 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
756 filter_sals.
757 (compare_symtabs, filter_sals): New functions.
758 * breakpoint.h (struct bp_location) <line_number, source_file>:
759 New fields.
760 (struct breakpoint) <line_number, source_file>: Remove.
761 <filter>: New field.
762 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
763 (momentary_breakpoint_from_master, add_location_to_breakpoint):
764 Update for changes to locations.
765 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
766 breakpoint.
767 (create_breakpoint_sal): Add 'filter' argument.
768 (remove_sal, expand_line_sal_maybe): Remove.
769 (create_breakpoints_sal): Remove 'sals' argument. Handle
770 pre-expanded sals and the filter.
771 (parse_breakpoint_sals): Use decode_line_full.
772 (check_fast_tracepoint_sals): Use get_sal_arch.
773 (create_breakpoint): Create a linespec_sals. Update.
774 (break_range_command): Use decode_line_full. Update.
775 (until_break_command): Update.
776 (clear_command): Update match conditions for linespec.c changes.
777 Use DECODE_LINE_LIST_MODE.
778 (say_where): Update for changes to locations.
779 (bp_location_dtor): Free 'source_file'.
780 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
781 (update_static_tracepoint): Update for changes to locations.
782 (update_breakpoint_locations): Disable ranged breakpoint if too
783 many locations match. Update.
784 (addr_string_to_sals): Use decode_line_full. Resolve all sal
785 PCs.
786 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
787 (decode_line_spec_1): Update. Change argument name to 'flags',
788 change interpretation.
789 * block.h (block_containing_function): Declare.
790 * block.c (block_containing_function): New function.
791 * skip.c (skip_function_command): Update.
792 (skip_re_set): Update.
793 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
794 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
795 * NEWS: Add entry.
796
797 2011-12-06 Tom Tromey <tromey@redhat.com>
798
799 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
800 breakpoint's pspace to be NULL.
801 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
802 * breakpoint.c (init_raw_breakpoint): Conditionally set
803 breakpoint's pspace.
804 (init_breakpoint_sal): Don't set breakpoint's pspace.
805 (prepare_re_set_context): Conditionally switch program space.
806 (addr_string_to_sals): Check executing_startup on location's
807 program space.
808
809 2011-12-06 Tom Tromey <tromey@redhat.com>
810
811 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
812 * breakpoint.c (should_be_inserted): Explicitly check if program
813 space is executing startup.
814 (describe_other_breakpoints): Update.
815 (disable_breakpoints_before_startup): Change executing_startup
816 earlier. Remove loop.
817 (enable_breakpoints_after_startup): Likewise.
818 (init_breakpoint_sal): Don't use bp_startup_disabled.
819 (create_breakpoint): Don't use bp_startup_disabled.
820 (update_global_location_list): Use should_be_inserted.
821 (bkpt_re_set): Update.
822
823 2011-12-06 Tom Tromey <tromey@redhat.com>
824
825 * python/lib/gdb/command/pretty_printers.py
826 (InfoPrettyPrinter.invoke1): Remove extra double quote.
827
828 2011-12-06 Tom Tromey <tromey@redhat.com>
829
830 * NEWS: Add MI news.
831
832 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
833
834 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
835 (S390_LAST_BREAK_REGNUM): Likewise.
836 (S390_SYSTEM_CALL_REGNUM): Likewise.
837 (S390_NUM_REGS): Update.
838
839 (s390_regmap_last_break): Add declaration.
840 (s390x_regmap_last_break): Likewise.
841 (s390_regmap_system_call): Likewise.
842
843 (tdesc_s390_linux32v1): Add declaration.
844 (tdesc_s390_linux32v2): Likewise.
845 (tdesc_s390_linux64v1): Likewise.
846 (tdesc_s390_linux64v2): Likewise.
847 (tdesc_s390x_linux64v1): Likewise.
848 (tdesc_s390x_linux64v2): Likewise.
849
850 * s390-tdep.c: Include new target description files
851 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
852 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
853 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
854 (s390_cannot_store_register): New function.
855 (s390_write_pc): Likewise.
856 (s390_dwarf_regmap): Add fields for new registers.
857 (s390_regmap_gregset): Likewise.
858 (s390x_regmap_gregset): Likewise.
859 (s390_regmap_fpregset): Likewise.
860 (s390_regmap_upper): Likewise.
861 (s390_regmap_last_break): New variable.
862 (s390x_regmap_last_break): Likewise.
863 (s390_regmap_system_call): Likewise.
864 (s390_last_break_regset): Likewise.
865 (s390x_last_break_regset): Likewise.
866 (s390_system_call_regset): Likewise.
867 (s390_upper_regset_sections): Rename to ...
868 (s390_linux64_regset_sections): ... this.
869 (s390_linux32_regset_sections): New variable.
870 (s390x_linux64_regset_sections): Likewise.
871 (s390_linux32v1_regset_sections): Likewise.
872 (s390_linux32v2_regset_sections): Likewise.
873 (s390_linux64v1_regset_sections): Likewise.
874 (s390_linux64v2_regset_sections): Likewise.
875 (s390x_linux64v1_regset_sections): Likewise.
876 (s390x_linux64v2_regset_sections): Likewise.
877 (s390_regset_from_core_section): Handle .reg-s390-last-break and
878 .reg-s390-system-call core file sections.
879 (s390_core_read_description): Check for presence of
880 .reg-s390-last-break and .reg-s390-system-call core file
881 sections and return appropriate target description.
882 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
883 "last_break" and "system_call" in target description. Install
884 appropriate gdbarch_core_regset_sections array.
885 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
886 (_initialize_s390_tdep): Initialize additional target descriptions.
887
888 * s390-nat.c: Include "elf/common.h".
889 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
890 (have_regset_last_break): New static variable.
891 (have_regset_system_call): Likewise.
892 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
893 (s390_native_collect): Likewise.
894 (fetch_regset, store_regset, check_regset): New functions.
895 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
896 and S390_SYSTEM_CALL_REGNUM.
897 (s390_linux_store_inferior_registers): Likewise.
898 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
899 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
900
901 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
902 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
903 (s390-linux32v1-expedite): Define.
904 (s390-linux32v2-expedite): Likewise.
905 (s390-linux64v1-expedite): Likewise.
906 (s390-linux64v2-expedite): Likewise.
907 (s390x-linux64v1-expedite): Likewise.
908 (s390x-linux64v2-expedite): Likewise.
909
910 * features/s390-linux32.xml: Add orig_r2 register.
911 * features/s390-linux64.xml: Likewise.
912 * features/s390x-linux64.xml: Likewise.
913 * features/s390-linux32v1.xml: New file.
914 * features/s390-linux32v2.xml: Likewise.
915 * features/s390-linux64v1.xml: Likewise.
916 * features/s390-linux64v2.xml: Likewise.
917 * features/s390x-linux64v1.xml: Likewise.
918 * features/s390x-linux64v2.xml: Likewise.
919
920 * features/s390-linux32.c: Regenerate.
921 * features/s390-linux64.c: Likewise.
922 * features/s390x-linux64.c: Likewise.
923 * features/s390-linux32v1.c: New generated file.
924 * features/s390-linux32v2.c: Likewise.
925 * features/s390-linux64v1.c: Likewise.
926 * features/s390-linux64v2.c: Likewise.
927 * features/s390x-linux64v1.c: Likewise.
928 * features/s390x-linux64v2.c: Likewise.
929
930 * regformats/s390-linux32.dat: Regenerate.
931 * regformats/s390-linux64.dat: Regenerate.
932 * regformats/s390x-linux64.dat: Regenerate.
933 * regformats/s390-linux32v1.dat: New generated file.
934 * regformats/s390-linux32v2.dat: Likewise.
935 * regformats/s390-linux64v1.dat: Likewise.
936 * regformats/s390-linux64v2.dat: Likewise.
937 * regformats/s390x-linux64v1.dat: Likewise.
938 * regformats/s390x-linux64v2.dat: Likewise.
939
940 2011-12-05 Pedro Alves <pedro@codesourcery.com>
941
942 * linux-nat.c (resume_stopped_resumed_lwps): Call
943 registers_changed.
944
945 2011-12-05 Pedro Alves <pedro@codesourcery.com>
946
947 * breakpoint.c: Include record.h.
948 (breakpoints_always_inserted_mode): Return false when the record
949 target is in use.
950
951 2011-12-05 Pedro Alves <pedro@codesourcery.com>
952
953 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
954 Reinstate perror_with_name call on ptrace error. Remove #if 0.
955 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
956 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
957
958 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
959
960 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
961 `i'(-Wshadow).
962
963 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
964
965 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
966
967 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
968
969 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
970 of `tdep'(-Wshadow).
971
972 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
973
974 Fix compilation --without-expat.
975 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
976 from ...
977 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
978
979 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
980 Jan Kratochvil <jan.kratochvil@redhat.com>
981
982 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
983 * features/library-list-svr4.dtd: New file.
984 * remote.c (PACKET_qXfer_libraries_svr4): New.
985 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
986 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
987 * solib-svr4.c (struct svr4_library_list): New.
988 [HAVE_LIBEXPAT]: Include xml-support.h.
989 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
990 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
991 [HAVE_LIBEXPAT] (svr4_library_list_children)
992 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
993 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
994 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
995 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
996 (svr4_read_so_list): Extend the corruption message by addresses.
997 (svr4_current_sos): New variable library_list, call
998 svr4_current_sos_via_xfer_libraries.
999 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1000
1001 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1002
1003 PR threads/13448
1004 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1005 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1006
1007 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1008
1009 PR breakpoints/13346
1010 * dwarf2read.c (process_psymtab_comp_unit): Set
1011 PSYMTABS_ADDRMAP_SUPPORTED.
1012 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1013 validity. New field psymtabs_addrmap_supported.
1014 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1015 psymtabs_addrmap_supported.
1016 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1017 !PSYMTABS_ADDRMAP_SUPPORTED.
1018 (dump_psymtab, maintenance_info_psymtabs): Print also
1019 psymtabs_addrmap_supported.
1020
1021 2011-12-01 Doug Evans <dje@google.com>
1022
1023 * python/py-type.c (type_object_methods): Fix "array" doc string.
1024
1025 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
1026
1027 * source.c (print_source_lines_base): Fix missing braces on else
1028 clause leading to additional output.
1029
1030 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1031
1032 * s390-nat.c (SUBOFF): Remove.
1033 (s390_native_supply, s390_native_collect): New functions.
1034 (supply_gregset, supply_fpregset): Use s390_native_supply.
1035 (fill_gregset, fill_fpregset): Use s390_native_collect.
1036
1037 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1038 (s390_unwind_pseudo_register): New function.
1039 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1040 registers instead of PC and CC.
1041 (s390_backchain_frame_unwind_cache): Likewise.
1042 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1043 full GPR pseudos.
1044 (s390_trad_frame_prev_register): New function.
1045 (s390_frame_prev_register): Use it.
1046 (s390_sigtramp_frame_prev_register): Likewise.
1047 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1048 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1049 special callback to unwind any pseudo.
1050
1051 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1052 * features/s390-core64.xml: Likewise.
1053 * features/s390x-core64.xml: Likewise.
1054 * features/s390-linux32.c: Regenerate.
1055 * features/s390-linux64.c: Likewise.
1056 * features/s390x-linux64.c: Likewise.
1057
1058 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1059
1060 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1061
1062 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1063
1064 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1065 instruction. Add more diagnostic output.
1066
1067 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1068
1069 * MAINTAINERS (Write After Approval): Add myself to the list.
1070
1071 2011-11-29 Sanjoy Das <sdas@igalia.com>
1072
1073 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1074 (jit_bfd_try_read_symtab): Fix comments.
1075
1076 2011-11-28 DJ Delorie <dj@redhat.com>
1077
1078 * NEWS: Mention RL78 simulator.
1079
1080 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1081
1082 * symfile.h (struct quick_symbol_functions): Fix the documentation
1083 of field map_matching_symbols, as symbols are sorted using
1084 strcmp_iw_ordered, not strcmp_iw.
1085
1086 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1087
1088 * symfile.h (struct quick_symbol_functions): Update the
1089 documentation for field map_matching_symbols.
1090
1091 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1092
1093 * ada-lang.c (compare_names): Fix wrong return value in case
1094 string1 starts with the same contents as string2, followed
1095 by an underscore that do not start a symbol name suffix.
1096
1097 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1098
1099 PR python/13369
1100 PR python/13374
1101
1102 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1103 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1104 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1105 exceptions.
1106 * python/py-type.c (typy_strip_typedefs): Ditto.
1107 (typy_legacy_template_argument): Ditto.
1108 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1109 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1110
1111 2011-11-27 Joel Brobecker <brobecker@acacore.com>
1112
1113 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1114 local variable. Avoid use of sprintf_vma.
1115
1116 2011-11-27 Sanjoy Das <sdas@igalia.com>
1117
1118 Fix regression in jit.exp.
1119 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1120 (jit_register_code): Set the jit_objfile_data field to the correct
1121 value.
1122
1123 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1124
1125 * alpha-tdep.c (br_opcode): New.
1126 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1127 (alpha_deal_with_atomic_sequence): New function.
1128 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1129 with alpha_deal_with_atomic_sequence.
1130
1131 2011-11-24 Tristan Gingold <gingold@adacore.com>
1132
1133 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1134 fields. Add oso_sym, end_sym and nbr_syms.
1135 (macho_register_oso): Change interface.
1136 (macho_symtab_add_minsym): New function.
1137 (macho_symtab_read): Rewritten.
1138 (get_archive_prefix_len): Remove trailing blanks.
1139 (oso_el_compare_name): Add comment.
1140 (struct macho_sym_hash_entry): New structure.
1141 (macho_relocate_common_syms): Remove.
1142 (macho_sym_hash_newfunc): New function.
1143 (macho_resolve_oso_sym_with_minsym): Likewise.
1144 (macho_add_oso_symfile): Rewritten.
1145 (macho_symfile_read_all_oso): Remove trailing blanks.
1146 Adjust code to free oso vector.
1147 (macho_symfile_read): Likewise.
1148 Move code to initialize minimal symbol
1149
1150 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1151
1152 * mips-tdep.c (extended_offset): Fix formatting.
1153
1154 2011-11-23 Doug Evans <dje@google.com>
1155
1156 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1157 (dw2_expand_symtabs_with_filename): Ditto.
1158 (dw2_expand_symtabs_matching): Ditto.
1159 (dw2_map_symbol_filenames): Ditto.
1160
1161 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1162
1163 * ada-lang.c (assign_aggregate): Minor reformatting.
1164
1165 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1166
1167 * ada-lang.c (assign_aggregate): Remove declaration of local
1168 variable `i' which is shadowing another variable with the same
1169 name declared in the outer scope.
1170
1171 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1172
1173 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1174 calls throughout this file.
1175
1176 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1177
1178 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1179 FormatMessage.
1180
1181 2011-11-22 Tom Tromey <tromey@redhat.com>
1182
1183 PR mi/8444:
1184 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1185 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1186 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1187 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1188 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1189 (print_it_catch_syscall, print_it_catch_exec)
1190 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1191 (bpstat_print): Add 'kind' argument. Handle
1192 TARGET_WAITKIND_LOADED.
1193 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1194 handle TARGET_WAITKIND_LOADED here.
1195 * breakpoint.h (bpstat_print): Update.
1196
1197 2011-11-22 Tom Tromey <tromey@redhat.com>
1198
1199 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1200
1201 2011-11-22 Tom Tromey <tromey@redhat.com>
1202
1203 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1204 Use static_assert to check the size of
1205 async_reason_string_lookup.
1206 * common/gdb_assert.h (static_assert): New macro.
1207
1208 2011-11-22 Alan Modra <amodra@gmail.com>
1209
1210 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1211 destination calculation. Don't expect >> to sign extend. Don't
1212 add a break if branch lands inside the sequence anywhere.
1213
1214 2011-11-21 Keith Seitz <keiths@redhat.com>
1215
1216 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1217 -var-evaluate-expression of an enumeration and fix expected result.
1218 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1219
1220 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1221
1222 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1223 the case where osdata->items is empty. Rename column names to a
1224 canonical form to avoid problems with unusual column names.
1225
1226 2011-11-21 Yao Qi <yao@codesourcery.com>
1227
1228 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1229
1230 2011-11-20 Stan Shebs <stan@codesourcery.com>
1231
1232 * NEWS: Mention tracepoint additions.
1233 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1234 * breakpoint.c (print_one_breakpoint_location): Identify
1235 tracepoints as such when reporting hit counts, report
1236 trace buffer usage.
1237 (create_tracepoint_from_upload): Copy status info.
1238 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1239 add fields user_name, notes, start_time, stop_time.
1240 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1241 * tracepoint.c (trace_user): New global.
1242 (trace_notes): New global.
1243 (trace_stop_notes): New global.
1244 (start_tracing): Add argument and trace note handling.
1245 (stop_tracing): Ditto.
1246 (trace_start_command): Add notes argument.
1247 (trace_stop_command): Ditto.
1248 (trace_status_command): Report additional status info.
1249 (trace_status_mi): Similarly.
1250 (trace_save): Update, record tracepoint status.
1251 (set_disconnected_tracing): Call target method directly.
1252 (send_disconnected_tracing_value): Remove.
1253 (set_trace_user): New function.
1254 (set_trace_notes): New function.
1255 (set_trace_stop_notes): New function.
1256 (parse_trace_status): Handle additional status.
1257 (parse_tracepoint_status): New function.
1258 (parse_tracepoint_definition): Call it.
1259 (tfile_get_tracepoint_status): New function.
1260 (init_tfile_ops): Use it.
1261 (_initialize_tracepoint): Add new setshows.
1262 * target.h (struct target_ops): New methods to_get_tracepoint_status
1263 and to_set_trace_notes.
1264 (target_get_tracepoint_status): New macro.
1265 (target_set_trace_notes): New macro.
1266 * target.c (update_current_target): Add new methods.
1267 * remote.c (remote_get_tracepoint_status): New function.
1268 (remote_set_trace_notes): New function.
1269 (init_remote_ops): Add them.
1270 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1271 (mi_cmd_trace_stop): Ditto.
1272
1273 2011-11-20 Sanjoy Das <sdas@igalia.com>
1274
1275 * jit.c: Include regcache.h.
1276 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1277 (jit_unwind_reg_set_impl, free_reg_value_impl)
1278 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1279 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1280 (jit_frame_prev_register, jit_dealloc_cache)
1281 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1282 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1283 jit_prepend_unwinder.
1284 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1285
1286 2011-11-20 Sanjoy Das <sdas@igalia.com>
1287
1288 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1289 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1290 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1291 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1292 (finalize_symtab, jit_object_close_impl)
1293 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1294 (free_objfile_data): New functions.
1295 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1296 function.
1297
1298 2011-11-20 Sanjoy Das <sdas@igalia.com>
1299
1300 * jit.c: Include gdb-dlfcn.h.
1301 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1302 (jit_reader_load, jit_reader_load_command)
1303 (jit_reader_unload_command): New functions.
1304 (_initialize_jit): Add commands "jit-reader-load" and
1305 "jit-reader-unload".
1306
1307 2011-11-20 Sanjoy Das <sdas@igalia.com>
1308
1309 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1310 * config.in: Add new #define HAVE_LIBDL.
1311 * configure.ac: Add check for -ldl.
1312 * configure: Re-generated by autoconf.
1313 * gdb-dlfcn.c: New file.
1314 * gdb-dlfcn.h: New file.
1315
1316 2011-11-20 Sanjoy Das <sdas@igalia.com>
1317
1318 * config.in: Add new #defines: JIT_READER_DIR and
1319 JIT_READER_DIR_RELOCATABLE.
1320 * configure.ac: New GDB directory entry for jit-reader-dir.
1321 * configure: Re-generated by autoconf.
1322 * jit.c: New static variable: const char *jit_reader_dir.
1323 (_initialize_jit): Relocate jit_reader_dir.
1324
1325 2011-11-20 Sanjoy Das <sdas@igalia.com>
1326
1327 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1328 $(includedir)/gdb.
1329 * configure.ac: Generate a correct value for TARGET_PTR for
1330 jit-reader.h. Tell configure to generate jit-reader.h from
1331 jit-reader.in.
1332 * configure: Re-generated by autoconf.
1333 * jit-reader.in: New file.
1334 * jit.c: Include jit-reader.h.
1335
1336 2011-11-20 Sanjoy Das <sdas@igalia.com>
1337
1338 * MAINTAINERS (Write After Approval): Add myself to the list.
1339
1340 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1341
1342 * findvar.c (read_frame_register_value): Respect value_offset
1343 of the register value. Remove big-endian special case.
1344
1345 2011-11-18 Tom Tromey <tromey@redhat.com>
1346
1347 PR build/7196:
1348 * remote.c (putpkt_for_catch_errors): New function.
1349 (remote_kill): Use it.
1350
1351 2011-11-18 Yao Qi <yao@codesourcery.com>
1352
1353 * breakpoint.c (create_breakpoint): Produce query message according to
1354 breakpoint's type.
1355 Allocate tracepoint per correct type.
1356 Don't check SALs for pending fast tracepoints.
1357 * tracepoint.c (process_tracepoint_on_disconnect): New.
1358 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1359
1360 2011-11-18 Yao Qi <yao@codesourcery.com>
1361
1362 * breakpoint.c (install_breakpoint): Add one more parameter so that
1363 update_global_location_list is called conditionally.
1364 (create_fork_vfork_event_catchpoint): Update.
1365 (create_syscall_event_catchpoint): Update.
1366 (create_breakpoint_sal): Update.
1367 (create_breakpoint_sal): Update. Call do_cleanups before
1368 install_breakpoint.
1369 * ada-lang.c (create_ada_exception_catchpoint): Update.
1370 * breakpoint.h (install_breakpoint): Update declaration.
1371
1372 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1373
1374 * spu-tdep.c (spu_return_value): Fix handling of
1375 TYPE_CALLING_CONVENTION annotation.
1376
1377 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1378
1379 * skip.c (skip_function_command): Work around uninitialized
1380 variable warning.
1381
1382 2011-11-16 David S. Miller <davem@davemloft.net>
1383
1384 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1385 'tv_usec' to long for printf since these fields have a type which
1386 varies.
1387
1388 2011-11-15 Doug Evans <dje@google.com>
1389
1390 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1391
1392 2011-11-15 Paul Koning <paul_koning@dell.com>
1393
1394 * python/py-type.c (typy_get_composite): New function.
1395 (typy_nonzero): New function.
1396 (typy_values): Rename from typy_fields.
1397 (typy_fields): New function.
1398 (typy_length): Raise exception if not struct, union, or enum type.
1399 (typy_getitem): Ditto.
1400 (typy_has_key): Ditto.
1401 (typy_make_iter): Ditto.
1402
1403 2011-11-15 Doug Evans <dje@google.com>
1404
1405 PR gdb/8367
1406 * NEWS: Mention new parameter basenames-may-differ.
1407 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1408 ! basenames_may_differ.
1409 * psymtab.c (lookup_partial_symtab): Ditto.
1410 * symtab.c (lookup_symtab): Ditto.
1411 (basenames_may_differ): New global.
1412 (_initialize_symtab): New parameter basenames-may-differ.
1413 * symtab.h (basenames_may_differ): Declare.
1414
1415 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1416 Luis Machado <lgustavo@codesourcery.com>
1417
1418 * auxv.c: Include observer.h.
1419 (auxv_inferior_data_cleanup): New.
1420 (invalidate_auxv_cache_inf): New.
1421 (invalidate_auxv_cache): New.
1422 (get_auxv_inferior_data): New.
1423 (auxv_inferior_data): New static global.
1424 (auxv_info): New structure.
1425 (target_auxv_search): Use get_auxv_inferior_data instead of
1426 target_read_alloc and don't free cached buffers.
1427 (fprint_target_auxv): Likewise
1428 (_initialize_auxv): Register per-inferior auxv cache and register
1429 observers to invalidate auxv cache when needed.
1430
1431 2011-11-14 Doug Evans <dje@google.com>
1432
1433 PR gdb/7200 Make "!" an alias for "shell".
1434 * NEWS: Add mention.
1435 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1436 adding "!" command, always add it.
1437 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1438 command of length one.
1439
1440 2011-11-14 Stan Shebs <stan@codesourcery.com>
1441 Kwok Cheung Yeung <kcy@codesourcery.com>
1442
1443 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1444 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1445 the minimum instruction size for fast tracepoints.
1446 * target.h (struct target_ops): Add new method
1447 to_get_min_fast_tracepoint_insn_len.
1448 (target_get_min_fast_tracepoint_insn_len): New.
1449 * target.c (update_current_target): Set up new target operation.
1450 * remote.c (remote_write_bytes_aux): Fix typo.
1451 (remote_get_min_fast_tracepoint_insn_len): New.
1452 (init_remote_ops): Initialize new field.
1453
1454 2011-11-14 Tom Tromey <tromey@redhat.com>
1455
1456 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1457 (encode_actions): Likewise.
1458
1459 2011-11-14 Yao Qi <yao@codesourcery.com>
1460
1461 * remote.c (struct remote_state): <install_in_trace> new field.
1462 (PACKET_InstallInTrace): New enum value.
1463 (remote_install_in_trace_feature): Support InstallInTrace.
1464 (remote_supports_install_in_trace): Likewise.
1465 (remote_protocol_features): Likewise.
1466 (_initialize_remote): Likewise.
1467 (remote_can_download_tracepoint): New.
1468 * target.h (struct target): New field
1469 `to_can_download_tracepoint'.
1470 (target_can_download_tracepoint): New macro.
1471 * target.c (update_current_target): Update.
1472 * breakpoint.h (struct bp_location): Add comment on field
1473 `duplicate'.
1474 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1475 and tracepoint.
1476 (remove_breakpoints): Don't remove tracepoints.
1477 (tracepoint_locations_match ): New.
1478 (breakpoint_locations_match): Call it.
1479 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1480 (download_tracepoint_locations): New.
1481 (update_global_location_list): Call it.
1482 * tracepoint.c (find_matching_tracepoint): Delete.
1483 (find_matching_tracepoint_location): Renamed from
1484 find_matching_tracepoint. Return bp_location rather than
1485 tracepoint.
1486 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1487 tracepoint is found.
1488
1489 2011-11-14 Yao Qi <yao@codesourcery.com>
1490
1491 * target.h (struct target): <to_download_tracepoint> Change type
1492 of parameter from tracepoint to bp_location.
1493 * target.c (update_current_target): Update.
1494 * tracepoint.c (start_tracing): Update.
1495 * remote.c (remote_download_tracepoint): Remove loop for each location
1496 of a tracepoint.
1497
1498 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1499
1500 * i386-nat.c (i386_insert_hw_breakpoint): Call
1501 i386_update_inferior_debug_regs.
1502 (i386_remove_hw_breakpoint): Likewise.
1503
1504 2011-11-14 Yao Qi <yao@codesourcery.com>
1505
1506 * breakpoint.c (init_raw_breakpoint): Call
1507 add_location_to_breakpoint to replace duplicated code.
1508 (add_location_to_breakpoint): Adjust the breakpoint's
1509 address prior to allocating a location.
1510
1511 2011-11-12 Matt Rice <ratmice@gmail.com>
1512
1513 * macrocmd.c (macro_no_macro_info): New function.
1514 (macro_expand_command): Use macro_no_macro_info.
1515 (macro_expand_once_command): Ditto.
1516 (info_macro_command): Add argument processing,
1517 move info_definitions_command here.
1518 (_initialize_macrocmd): Remove info definitions command.
1519 Add arguments to info macro help text.
1520 * NEWS: Replace info definitions command with new info macro options.
1521
1522 2011-11-11 Keith Seitz <keiths@redhat.com>
1523
1524 PR gdb/12843
1525 * linespec.c (locate_first_half): Keep ':' if it looks
1526 like it could be part of a Windows path starting with
1527 a drive letter.
1528
1529 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1530
1531 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1532 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1533
1534 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1535
1536 * target.c (target_waitstatus_to_string): Handle
1537 TARGET_WAITKIND_NO_RESUMED.
1538
1539 2011-11-10 Doug Evans <dje@google.com>
1540
1541 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1542 `need_fullname'.
1543 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1544 (map_partial_symbol_filenames): Ditto. All callers updated.
1545 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1546 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1547 parameter need_fullname.
1548
1549 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1550 * source.c (symtab_to_fullname): Ditto.
1551
1552 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1553 * gdb-demangle.h: ... here. New file.
1554 * demangle.c: #include "gdb-demangle.h".
1555 (_initialize_demangler): Use initialize_file_ftype for prototype.
1556 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1557 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1558 from utils.c
1559 * utils.c: Update. #include "gdb-demangle.h".
1560 * symtab.h (asm_demangle): Delete.
1561 (demangle): Move declaration next to use.
1562 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1563 * dwarf2read.c: #include "gdb-demangle.h".
1564 * gnu-v2-abi.c: Ditto.
1565 * jv-typeprint.c: Ditto.
1566 * mdebugread.c: Ditto.
1567 * p-typeprint.c: Ditto.
1568 * stabsread.c: Ditto.
1569 * printcmd.c: Ditto.
1570 (asm_demangle): Delete declaration.
1571 * tui/tui-stack.c: #include "gdb-demangle.h".
1572
1573 * python/py-type.c (typy_fields_items): Call check_typedef.
1574
1575 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1576
1577 * findvar.c (read_frame_register_value): Read the correct bytes
1578 from registers on big-endian architectures.
1579
1580 2011-11-10 Tom Tromey <tromey@redhat.com>
1581
1582 * procfs.c (load_syscalls): Make a cleanup.
1583 (open_procinfo_files): fd==0 is ok.
1584
1585 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1586
1587 * procfs.c (iterate_over_mappings): Call do_cleanups before
1588 returning.
1589
1590 2011-11-09 Doug Evans <dje@google.com>
1591
1592 * gdbtypes.c (check_typedef): Document that this function can
1593 throw an exception.
1594
1595 2011-11-09 Tom Tromey <tromey@redhat.com>
1596
1597 PR c++/13342:
1598 * valops.c (value_full_object): Return early if real type is
1599 smaller than the enclosing type.
1600
1601 2011-11-08 Yao Qi <yao@codesourcery.com>
1602
1603 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1604
1605 2011-11-08 Meador Inge <meadori@codesourcery.com>
1606
1607 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1608 register when the frame can't be determined.
1609 * arm-tdep.c (arm_analyze_prologue): Ditto.
1610
1611 2011-11-07 Stan Shebs <stan@codesourcery.com>
1612
1613 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1614
1615 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1616
1617 * infrun.c (handle_inferior_event): Minor reformatting.
1618
1619 2011-11-05 Doug Evans <dje@google.com>
1620
1621 * source.c (forget_cached_source_info_for_objfile): Move call to
1622 objfile->sf->qf->forget_cached_source_info outside of
1623 ALL_OBJFILE_SYMTABS loop.
1624 (forget_cached_source_info): Delete unused variable `s'.
1625
1626 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1627
1628 * i386-nat.c (dr_ref_count): Remove unused variable.
1629
1630 2011-11-05 Doug Evans <dje@google.com>
1631
1632 * main.c (captured_main): Set lim_at_start before calling
1633 make_command_stats_cleanup.
1634
1635 2011-11-04 Doug Evans <dje@google.com>
1636
1637 * utils.c: #include "timeval-utils.h".
1638 (cmd_stats): Rename start_time to start_cpu_time.
1639 New member start_wall_time.
1640 (report_command_stats): Report wall time.
1641 (make_command_stats_cleanup): Record start wall time.
1642
1643 2011-11-04 Tom Tromey <tromey@redhat.com>
1644
1645 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1646
1647 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1648
1649 * coff-pe-read.c: Include defs.h before bfd.h.
1650
1651 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1652
1653 PR Python/13345
1654
1655 * python/python.c (python_run_simple_file): Expand tilde in path.
1656
1657 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1658
1659 PR Python/13363
1660
1661 * python/py-type.c (typy_lookup_type): Do not return a type in
1662 an exception handler.
1663
1664 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1665 Eli Zaretskii <eliz@gnu.org>
1666
1667 * linux-nat.c (_initialize_linux_nat): Improve help
1668 for `info proc stat', `info proc status', `info proc cwd',
1669 `info proc cmdline' and `info proc exe'.
1670
1671 2011-11-02 Stan Shebs <stan@codesourcery.com>
1672
1673 String collection for tracepoints.
1674 * NEWS: Mention string collection.
1675 * common/ax.def (tracenz): New bytecode.
1676 * ax-gdb.h (trace_string_kludge): Declare.
1677 * ax-gdb.c: Include valprint.h and c-lang.h.
1678 (trace_string_kludge): New global.
1679 (gen_traced_pop): Add string case.
1680 (agent_command): Add string case.
1681 * tracepoint.h (decode_agent_options): Declare.
1682 * tracepoint.c: Include cli-utils.h.
1683 (decode_agent_options): New function.
1684 (validate_actionline): Call it.
1685 (encode_actions_1): Ditto.
1686 * target.h (struct target_ops): New method to_supports_string_tracing.
1687 (target_supports_string_tracing): New macro.
1688 * target.c (update_current_target): Add to_supports_string_tracing.
1689 * remote.c (struct remote_state): New field string_tracing.
1690 (remote_string_tracing_feature): New function.
1691 (remote_protocol_features): New feature tracenz.
1692 (remote_supports_string_tracing): New function.
1693 (init_remote_ops): Set to_supports_string_tracing.
1694
1695 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1696 Jan Kratochvil <jan.kratochvil@redhat.com>
1697
1698 * linux-nat.c: Include cli/cli-utils.h.
1699 (enum info_proc_what): New.
1700 (linux_nat_info_proc_cmd): Rename to ...
1701 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1702 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1703 status_f and stat_f from WHAT. Throw error on extra parameters.
1704 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1705 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1706 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1707 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1708 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1709 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1710 `info proc cmdline', `info proc exe' and `info proc all' as real
1711 subcommands of `info proc'.
1712
1713 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1714
1715 * Makefile.in: (SFILES): Add skip.c.
1716 (HFILES_NO_SRCDIR): Add skip.h.
1717 (COMMON_OBS): Add skip.o.
1718 * skip.h, skip.c: New.
1719 * breakpoint.h (set_default_breakpoint): Remove.
1720 (get_sal_arch): Declare.
1721 * breakpoint.c: Remove default_breakpoint_valid,
1722 default_breakpoint_address, default_breakpoint_symtab,
1723 default_breakpoint_line, default_breakpoint_pspace variables.
1724 (get_sal_arch): Make public.
1725 (set_default_breakpoint): Remove.
1726 (parse_breakpoint_sals, create_breakpoint, clear_command,
1727 decode_line_spec_1): Remove uses of default_breakpoint variables;
1728 replaced with function calls into stack.c.
1729 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1730 * cli/cli-cmds.c: Add skiplist.
1731 (init_cmd_lists): Initialize skiplist.
1732 (init_cli_cmds): Fix comment (classes of commands appear in
1733 alphabetical order).
1734 * infrun.c (handle_inferior_event): Add check that we don't step into
1735 a function whose pc is marked for skip.
1736 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1737 last_displayed_addr, last_displayed_symtab, last_displayed_line
1738 variables.
1739 (set_last_displayed_sal): New static function.
1740 (print_frame_info): Switch call to set_default_breakpoint to call to
1741 set_last_displayed_sal.
1742 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1743 get_last_displayed_pspace, get_last_displayed_addr,
1744 get_last_displayed_symtab, get_last_displayed_line,
1745 get_last_displayed_sal): New public functions.
1746 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1747 get_last_displayed_pspace, get_last_displayed_addr,
1748 get_last_displayed_symtab, get_last_displayed_line,
1749 get_last_displayed_sal): Declare.
1750
1751 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1752
1753 * MAINTAINERS (Write After Approval): Add myself to the list.
1754
1755 2011-10-29 Yao Qi <yao@codesourcery.com>
1756
1757 * infcmd.c (disconnect_command): Call disconnect_tracing.
1758
1759 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1760
1761 Code cleanup.
1762 * symtab.c (skip_prologue_sal): Code reformatting.
1763
1764 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1765
1766 PR symtab/13208
1767 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1768 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1769 SAI.
1770
1771 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1772
1773 * linux-nat.c (linux_nat_filter_event): Remove `options'
1774 parameter, and dead code that used it. If we're handling a
1775 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1776 in our lwp list, re-add it.
1777 (check_zombie_leaders): New.
1778 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1779 wait for children with WNOHANG, and always wait for all children.
1780 Don't check for no resumed children upfront. Simplify wait loop.
1781 Check for zombie thread group leaders after handling all wait
1782 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1783 unwaited-for children left.
1784 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1785 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1786 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1787 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1788
1789 2011-10-28 Sterling Augustine <saugustine@google.com>
1790
1791 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1792 * symtab.c (free_completion_list): New function.
1793 (do_free_completion_list): Likewise.
1794 (default_make_symbol_completion_list_break_on): New variable
1795 back_to. Call make_cleanup and discard_cleanups.
1796 (make_source_files_completion_list): Likewise.
1797
1798 2011-10-28 Paul Koning <paul_koning@dell.com>
1799
1800 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1801 * NEWS: Mention deep_items.
1802
1803 2011-10-28 Alen Skondro <askondro@gmail.com>
1804
1805 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1806 defined.
1807
1808 2011-10-27 Meador Inge <meadori@codesourcery.com>
1809
1810 * MAINTAINERS (Write After Approval): Add myself to the list.
1811
1812 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1813
1814 * value.h (read_frame_register_value): Add declaration.
1815 * findvar.c (read_frame_register_value): New function.
1816 (value_from_register): Use read_frame_register_value
1817 instead of get_frame_register_value + value_contents_copy
1818 to get value contents.
1819
1820 2011-10-27 Doug Evans <dje@google.com>
1821
1822 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1823 source_script_from_stream if it may have been found on the search path.
1824 * python/py-auto-load.c (source_section_scripts): Pass full path to
1825 source_python_script_for_objfile.
1826 * python/python.c (source_python_script): Delete stream parameter.
1827 All callers updated.
1828 (source_python_script_for_objfile): Ditto.
1829 * python/python-internal.h (source_python_script_for_objfile): Update.
1830 * python/python.h (source_python_script): Update.
1831
1832 2011-10-27 Tom Tromey <tromey@redhat.com>
1833
1834 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1835 (ada_sals_for_line): Remove declarations.
1836
1837 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1838
1839 Move unwind reasons to an external .def file
1840 * frame.c (frame_stop_reason_string): Rewrite using
1841 unwind_stop_reasons.def.
1842 * frame.h (enum unwind_stop_reason): Likewise.
1843 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1844 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1845 constants for bound-checking.
1846 * unwind_stop_reasons.def: New file.
1847 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1848 instead of a distinct value.
1849
1850 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1851
1852 PR python/13331
1853
1854 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1855 (convert_values_to_python): Return on Python tuple allocation
1856 failure. Return NULL on value conversion error.
1857
1858 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1859
1860 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1861 (bppy_set_task): Ditto.
1862 (bppy_delete_breakpoint): Ditto.
1863 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1864 (gdbpy_lookup_global_symbol): Ditto.
1865 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1866 * python/py-frame.c (frapy_is_valid): Ditto.
1867 (frame_info_to_frame_object): Ditto.
1868 * python/py-type.c (typy_lookup_type): Ditto.
1869 (typy_getitem): Ditto.
1870 (typy_has_key): Ditto.
1871 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1872
1873 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1874
1875 * gdbarch.h: Regenerate.
1876
1877 2011-10-26 Meador Inge <meadori@codesourcery.com>
1878
1879 * gdbarch.sh (function_list): Use 'pstring' when printing
1880 'gcore_bfd_target'.
1881 * gdbarch.c: Regenerate.
1882
1883 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1884
1885 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1886 and frame caches if PTID refers to all threads of a process.
1887
1888 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1889
1890 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1891 to create_breakpoint.
1892
1893 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1894
1895 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1896 (ppc_sysv_abi_push_dummy_call): Use it.
1897 (do_ppc_sysv_return_value): Likewise.
1898 (ppc64_sysv_abi_push_dummy_call): Likewise.
1899 (ppc64_sysv_abi_return_value): Likewise.
1900
1901 2011-10-26 Paul Koning <paul_koning@dell.com>
1902
1903 * python/lib/gdb/types.py (deepitems): New function.
1904
1905 2011-10-25 Paul Koning <paul_koning@dell.com>
1906
1907 PR python/13327
1908
1909 * python/py-value.c (value_to_value_object): Remove fetching of
1910 the value if it was lazy.
1911 (valpy_get_is_lazy): New function.
1912 (valpy_fetch_lazy): New function.
1913
1914 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1915
1916 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1917 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1918
1919 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1920
1921 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1922 event, in non-stop, if not stopping, make sure the new lwp has
1923 last_resume_kind set to resume_continue. Assert that when we're
1924 resuming the new lwp, its last_resume_kind is resume_continue.
1925
1926 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1927
1928 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1929 already set when marking the event thread as not executing in
1930 non-stop mode.
1931
1932 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1933
1934 * infrun.c (handle_inferior_event): Add debug output for
1935 TARGET_WAITKIND_NO_HISTORY.
1936
1937 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1938
1939 * NEWS: Move set/show extended-prompt to "New Options". Expand
1940 description. Fix typos.
1941
1942 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1943
1944 PR python/13310
1945
1946 * python/py-param.c (call_doc_function): Correctly deference on
1947 function exit.
1948
1949 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1950
1951 * ada-tasks.c (print_ada_task_info): Fix computation of
1952 number of tasks displayed in command output.
1953
1954 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1955 Ulrich Weigand <uweigand@de.ibm.com>
1956
1957 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1958 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1959 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1960 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1961 gdbarch_unwind_pc.
1962
1963 2011-10-20 Cary Coutant <ccoutant@google.com>
1964
1965 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1966 section to...
1967 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1968 flag. Adjust all callers.
1969 (process_psymtab_comp_unit): Remove adjustment for type section.
1970
1971 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1972
1973 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1974 arguments by adding OBJFILE. Instead of getting objfile from
1975 symbol's symtab, use new argument OBJFILE.
1976 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1977 arguments by adding OBJFILE.
1978 * gdb/dwarf2read.c (new_symbol_full): Change call to
1979 cp_scan_for_anonymous_namespaces to match new signature.
1980 * gdb/stabsread.c (define_symbol): Change call to
1981 cp_scan_for_anonymous_namespaces to match new signature.
1982
1983 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1984
1985 PR python/13308
1986 PR python/13309
1987
1988 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1989 leak.
1990 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1991 leak. Delete unused variables.
1992
1993 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1994
1995 PR python/12656
1996
1997 * python/py-frame.c (frapy_read_var): Use const struct *block.
1998 * python/py-type.c (typy_lookup_typename): Likewise.
1999 (typy_lookup_type): Likewise.
2000 (typy_legacy_template_argument): Likewise.
2001 (typy_template_argument): Likewise.
2002 (gdbpy_lookup_type): Likewise.
2003 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2004 * python/py-block.c (blpy_block_object): Likewise.
2005 (blpy_iter): Likewise.
2006 (blpy_get_start): Likewise.
2007 (blpy_get_end): Likewise.
2008 (blpy_get_function): Likewise.
2009 (blpy_get_superblock): Likewise.
2010 (set_block): Likewise.
2011 (block_to_block_object): Likewise.
2012 (block_object_to_block): Likewise.
2013 (blpy_is_valid): Likewise.
2014 (blpy_get_global_block): New function.
2015 (blpy_get_static_block): New function.
2016 (blpy_is_global): New function.
2017 (blpy_is_static): New function.
2018 * blockframe.c (block_innermost_frame): Likewise.
2019 * valops.c (value_of_variable): Likewise.
2020 * frame.h: Update prototypes.
2021 * python/python-internal.h: Likewise.
2022 * value.h: Likewise.
2023
2024 2011-10-19 Cary Coutant <ccoutant@google.com>
2025
2026 * dwarf2read.c (create_debug_types_hash_table): Fix size of
2027 type_offset field.
2028
2029 2011-10-19 Cary Coutant <ccoutant@google.com>
2030
2031 * dwarf2read.c (peek_abbrev_code): New function.
2032 (dw2_get_file_names): Check for dummy compilation units.
2033 (create_debug_types_hash_table): Likewise.
2034 (process_psymtab_comp_unit): Likewise.
2035 (load_partial_comp_unit): Likewise.
2036 (load_full_comp_unit): Likewise.
2037
2038 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2039
2040 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2041 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2042 pt_phdr if PT_PHDR was found.
2043
2044 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
2045
2046 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2047 type or "<unnamed type"> when there is no name assigned.
2048 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2049 avoid a sigint when no name is assigned.
2050
2051 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2052
2053 Revert:
2054 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2055 * dwarf2expr.c (ctx_no_read_reg): New function.
2056 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2057 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2058 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2059 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2060
2061 2011-10-16 Doug Evans <dje@google.com>
2062
2063 * NEWS: Document python gdb.printing.register_pretty_printer's new
2064 `replace' parameter.
2065
2066 2011-10-14 Keith Seitz <keiths@redhat.com>
2067
2068 PR c++/13225
2069 * eval.c (evaluate_subexp_standard): Do not construct
2070 an array of types; pass the value array directly to
2071 find_overload_match.
2072 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2073 (rank_function): Take an array of values instead of types.
2074 (rank_one_type): Add struct value * parameter.
2075 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2076 (rank_function): For each argument, pass the argument's
2077 value to rank_one_type.
2078 (rank_one_type): Add VALUE parameter.
2079 If the parameter type is a pointer and the argument type
2080 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2081 VALUE is zero.
2082 Update all calls to rank_one_type, passing NULL for new
2083 VALUE parameter.
2084 * valarith.c (value_user_defined_cpp_op): Do not construct
2085 an array of types; pass the value array directly to
2086 find_overload_match.
2087 * valops.c (find_overload_method_list): Take an array of
2088 values instead of types.
2089 Save the type of OBJP for later use.
2090 Update calls to find_oload_champ, and find_oload_champ_namespace.
2091 (find_oload_champ_namespace): Take an array of values instead
2092 of types.
2093 (find_oload_champ_namespace_loop): Likewise.
2094 (find_oload_champ): Likewise.
2095 (classify_oload_match): Inspect all arguments
2096 until INCOMPATIBLE is found. Return the worst badness found
2097 otherwise.
2098 (compare_parameters): Update call to rank_one_type.
2099 * value.h (find_overload_match): Take an array of values instead
2100 of types.
2101
2102 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2103
2104 Drop lazy lm_info reading.
2105 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2106 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2107 (lm_info_read): New function.
2108 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2109 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2110 lm_dynamic_from_link_map.
2111 (lm_next, lm_prev, lm_name): Remove.
2112 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2113 initialization incl. read_memory. No longer use lm_name.
2114 (svr4_free_so): Drop lm_info->lm freeing.
2115 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2116 explicit lm_addr and lm initialization.
2117 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2118 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2119 lm_name.
2120
2121 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2122 Paul Pluzhnikov <ppluzhnikov@google.com>
2123
2124 * defs.h (struct so_list): New forward declaration.
2125 (make_cleanup_free_so): New declaration.
2126 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2127 (svr4_free_so): Move the function here from downwards. Handle NULL
2128 so->lm_info.
2129 (svr4_free_library_list): New.
2130 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2131 Use more cleanups. Use new parameter ignore_first instead of
2132 ignore_first_link_map_entry.
2133 (svr4_current_sos): New variable ignore_first, initialize it. New
2134 variable back_to, use it for svr4_free_library_list protection.
2135 (svr4_free_so): Remove - move upwards.
2136 * utils.c: Include solist.h.
2137 (do_free_so, make_cleanup_free_so): New functions.
2138
2139 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2140
2141 Fix internal error regression.
2142 * value.c (value_primitive_field): Handle value_optimized_out. Move
2143 packed bitfields comment.
2144
2145 2011-10-13 Tom Tromey <tromey@redhat.com>
2146
2147 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2148 always released.
2149
2150 2011-10-13 Tom Tromey <tromey@redhat.com>
2151
2152 * python/py-type.c (typy_has_key): Make 'field' const.
2153
2154 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2155
2156 * remote.c (remote_save_trace_data): Invert comparison.
2157
2158 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2159
2160 * tracepoint.c (trace_save_command): Use filename instead of
2161 args when printing.
2162
2163 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2164
2165 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2166 if .size is 0.
2167
2168 2011-10-13 Yao Qi <yao@codesourcery.com>
2169
2170 PR gdb/12703
2171 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2172 whether insn is a 32-bit Thumb-2 instruction.
2173 (thumb_in_function_epilogue_p): Likewise.
2174 (thumb_get_next_pc_raw): Likewise.
2175 (arm_breakpoint_from_pc): Likewise.
2176
2177 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2178
2179 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2180 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2181 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2182 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2183 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2184 zero DATA.
2185 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2186 validity.
2187 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2188 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2189 clear DATA on zero SIZE.
2190
2191 2011-10-12 Doug Evans <dje@google.com>
2192
2193 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2194 header->first_die_offset here. All callers updated.
2195
2196 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2197
2198 Fix compatibility with texinfo versions older than 4.12.
2199 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2200 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2201 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2202 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2203 * configure: Regenerate.
2204 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2205 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2206 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2207
2208 2011-10-12 Gary Benson <gbenson@redhat.com>
2209
2210 * breakpoint.h (pc_at_non_inline_function): Declare.
2211 * breakpoint.c (is_non_inline_function,
2212 pc_at_non_inline_function): New functions.
2213 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2214 if the stop is at a location where functions cannot be inlined.
2215
2216 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2217
2218 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2219 the core wanted them stopped, or if they now have a pending event
2220 to report.
2221 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2222 down to stop_and_resume_callback.
2223 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2224 having new pending events after calling linux_nat_filter_event.
2225
2226 2011-10-11 Sterling Augustine <saugustine@google.com>
2227
2228 * dwarf2read.c: Undo inadvertent changes in previous commit.
2229
2230 2011-10-11 Sterling Augustine <saugustine@google.com>
2231
2232 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2233 logic.
2234
2235 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2236
2237 * symfile.c (separate_debug_file_exists): Fix condition.
2238
2239 2011-10-11 David S. Miller <davem@davemloft.net>
2240
2241 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2242 static.
2243 * regcache.h (regcache_restore): Remove declaration.
2244
2245 * gdbarch.sh: New field 'long_long_align_bit'.
2246 * gdbarch.c, gdbarch.h: Regenerate.
2247 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2248 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2249
2250 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2251
2252 Revert this part of:
2253 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2254 Support @entry in input expressions.
2255 * c-exp.y (ENTRY, unknown_cpp_name): New.
2256 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2257 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2258 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2259 (name_not_typename: ENTRY): New.
2260 (yylex): Recognize ENTRY.
2261
2262 Reimplement @entry in input expressions.
2263 * c-exp.y (ENTRY): New.
2264 (variable: name_not_typename ENTRY): New.
2265 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2266
2267 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2268
2269 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2270 parent and child's pids as soon as we detect a clone event.
2271 Adjust another debug message.
2272
2273 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2274
2275 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2276 not zombie instead of reading the whole file.
2277
2278 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2279
2280 Fix separate debuginfo warning with "remote:" access.
2281 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2282 * symfile.c (get_file_crc): New function with the code moved from ...
2283 (separate_debug_file_exists): ... this function, specifically variables
2284 buffer and count. New variable verified_as_different, set it. Remove
2285 file_crc initialization. Verify also if both files are not the same
2286 manually, if needed.
2287
2288 2011-10-11 Yao Qi <yao@codesourcery.com>
2289
2290 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2291 to get address.
2292
2293 2011-10-10 Doug Evans <dje@google.com>
2294
2295 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2296 libthread_db when we load libpthread or the main symbol file.
2297 (thread_db_inferior_created): New function.
2298 (_initialize_thread_db): Attach inferior_created observer.
2299 * linux-nat.c (linux_child_post_attach): Remove call to
2300 check_for_thread_db.
2301 (linux_child_post_startup_inferior): Ditto.
2302 * objfiles.h (OBJF_MAINLINE): Define.
2303 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2304 allocate_objfile when appropriate.
2305
2306 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2307
2308 PR gdb/13218
2309 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2310 Remove unused variables.
2311 (get_linux_version): Remove function.
2312 (_initialize_arm_linux_nat): Do not call it.
2313
2314 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2315
2316 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2317 new clone lwp if the core asked it to stop. Don't pass on
2318 unexpected signals to the new clone; leave them pending instead.
2319
2320 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2321
2322 * linux-nat.c (resume_lwp): Remove redundant debug output.
2323
2324 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2325
2326 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2327 last_resume_kind before clearing it, and use the copy instead to
2328 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2329 resume_clear_callback in the non-stop path too.
2330
2331 2011-10-09 Yao Qi <yao@codesourcery.com>
2332
2333 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2334 Honor OPTIONS and VAL's type.
2335 (common_val_print, value_print): Update to pass one more parameter.
2336
2337 2011-10-09 Doug Evans <dje@google.com>
2338
2339 Add new "alias" command.
2340 * NEWS: Mention new command.
2341 * command.h (valid_user_defined_cmd_name_p): Declare.
2342 * defs.h (make_cleanup_dyn_string_delete): Declare.
2343 * utils.c: #include "dyn-string.h".
2344 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2345 * cli/cli-cmds.c: #include "dyn-string.h".
2346 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2347 (init_cli_cmds): Add new command.
2348 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2349
2350 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2351
2352 Fix compatibility with older GCCs.
2353 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2354 * stack.c (read_frame_arg): Initialize val_deref.
2355
2356 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2357
2358 Entry values NEWS entries, DWARF disassembly support.
2359 * NEWS: New entry values entry.
2360 (set print entry-values, show print entry-values)
2361 (set debug entry-values, show debug entry-values): New entries.
2362 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2363 indent. Remove variable start. Move header printing out. Respect
2364 INDENT. Support DW_OP_GNU_entry_value.
2365 (locexpr_describe_location_1): Move the header printing here, extend
2366 the disassemble_dwarf_expression passed parameters.
2367
2368 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2369
2370 Display @entry parameter values even for references.
2371 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2372 coerce_ref_if_computed.
2373 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2374 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2375 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2376 existing push_dwarf_reg_entry_value call. Add new detection calling
2377 dwarf_block_to_dwarf_reg_deref. Update the error message.
2378 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2379 * dwarf2expr.h
2380 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2381 parameter deref_size, describe it in the comment.
2382 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2383 (dwarf_block_to_dwarf_reg_deref): New declaration.
2384 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2385 deref_size, describe it in the function comment. New variables
2386 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2387 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2388 describe it in the function comment. Fetch the alternative block
2389 accoring to DEREF_SIZE.
2390 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2391 (entry_data_value_free_closure, entry_data_value_funcs): New.
2392 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2393 outer_val, target_val, val and addr. Try to fetch and create also
2394 referenced value content.
2395 (pieced_value_funcs): NULL value for coerce_ref.
2396 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2397 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2398 coerce_ref_if_computed.
2399 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2400 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2401 * stack.c (read_frame_arg): Compare also dereferenced values.
2402 * value.c (value_computed_funcs): Make the parameter v const, use
2403 value_lval_const for it.
2404 (value_lval_const, coerce_ref_if_computed): New function.
2405 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2406 * value.h (struct lval_funcs): New field coerce_ref.
2407 (value_computed_funcs): Make the parameter v const.
2408 (value_lval_const, coerce_ref_if_computed): New declarations.
2409
2410 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2411
2412 Support @entry in input expressions.
2413 * c-exp.y (ENTRY, unknown_cpp_name): New.
2414 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2415 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2416 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2417 (name_not_typename: ENTRY): New.
2418 (yylex): Recognize ENTRY.
2419 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2420 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2421 Likewise.
2422 * parse.c (operator_length_standard): Likewise.
2423 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2424
2425 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2426
2427 Display referenced values in backtraces.
2428 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2429 * stack.c (print_frame_arg): Likewise.
2430
2431 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2432
2433 Make some lval_funcs methods to default on NULL.
2434 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2435 NULL.
2436 (value_assign): Check if lval_computed write method is NULL.
2437 * value.h (struct lval_funcs): Comment NULL values for read and write
2438 methods.
2439
2440 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2441
2442 Display @entry parameter values (without references).
2443 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2444 New functions.
2445 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2446 New declarations.
2447 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2448 entry record.
2449 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2450 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2451 functions.
2452 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2453 (loclist_read_variable_at_entry): New function.
2454 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2455 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2456 DW_AT_location, call dwarf_block_to_sp_offset for it.
2457 * frame.h (print_entry_values_no, print_entry_values_only)
2458 (print_entry_values_preferred, print_entry_values_if_needed)
2459 (print_entry_values_both, print_entry_values_compact)
2460 (print_entry_values_default, print_entry_values): New declarations.
2461 (struct frame_arg): New field entry_kind.
2462 (read_frame_arg): New parameter entryargp.
2463 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2464 arg->entry_kind. Optionally print the `@entry' suffix.
2465 (list_args_or_locals): New variable entryarg, initialize it.
2466 Initialize also entry_kind of arg and entryarg. Conditionalize
2467 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2468 xfree for entryarg.error.
2469 * stack.c (print_entry_values_no, print_entry_values_only)
2470 (print_entry_values_preferred, print_entry_values_if_needed)
2471 (print_entry_values_both, print_entry_values_compact)
2472 (print_entry_values_default, print_entry_values_choices)
2473 (print_entry_values): New variables.
2474 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2475 print the `@entry' suffix, possibly in combination for
2476 print_entry_values_compact.
2477 (read_frame_arg): New parameter entryargp, new variables entryval,
2478 entryval_error and val_equal. Read in also entryargp, respect
2479 print_entry_values, compare the values using val_equal, fill in also
2480 argp->entry_kind (together with entryargp->entry_kind).
2481 (print_frame_args): New variable entryarg, initialize it.
2482 Conditionalize print_frame_arg for arg, add print_frame_arg for
2483 entryarg. Call xfree for entryarg.error.
2484 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2485 * symtab.h (struct symbol_computed_ops): New field
2486 read_variable_at_entry.
2487
2488 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2489
2490 Code reshuffle.
2491 * frame.h (struct frame_arg): New definition.
2492 (read_frame_arg): New declaration.
2493 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2494 (list_args_or_locals): ... the code here. New variable arg, call
2495 read_frame_arg and list_arg_or_local with it. Unify the
2496 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2497 arg.error.
2498 * stack.c (print_frame_arg): New functiom from the code of
2499 print_frame_args.
2500 (read_frame_arg): New function.
2501 (print_frame_args): Remove variable val. New variable arg, call
2502 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2503
2504 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2505
2506 Protect entry values against self tail calls.
2507 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2508 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2509
2510 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2511
2512 Recognize virtual tail call frames.
2513 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2514 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2515 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2516 * dwarf2-frame-tailcall.c: New file.
2517 * dwarf2-frame-tailcall.h: New file.
2518 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2519 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2520 REGS.PREV only after CIE execution.
2521 (struct dwarf2_frame_cache): New field tailcall_cache.
2522 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2523 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2524 parts, try to find entry_cfa_sp_offset. Call
2525 dwarf2_tailcall_sniffer_first.
2526 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2527 when appropriate.
2528 (dwarf2_frame_dealloc_cache): New function.
2529 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2530 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2531 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2532 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2533 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2534 * dwarf2loc.c (func_addr_to_tail_call_list)
2535 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2536 (call_site_find_chain_1, call_site_find_chain): New.
2537 * dwarf2loc.h (struct call_site_chain): New.
2538 (call_site_find_chain): New declaration.
2539 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2540 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2541 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2542 * stack.c (frame_info): Support also TAILCALL_FRAME.
2543
2544 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2545
2546 Tail call sites reader implementation.
2547 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2548 fill in TYPE_TAIL_CALL_LIST.
2549 * gdbtypes.h (struct func_type): New field tail_call_list.
2550 (struct call_site): New field tail_call_next.
2551 (TYPE_TAIL_CALL_LIST): New definition.
2552
2553 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2554
2555 Implement basic support for DW_TAG_GNU_call_site.
2556 * block.c: Include gdbtypes.h and exceptions.h.
2557 (call_site_for_pc): New function.
2558 * block.h (call_site_for_pc): New declaration.
2559 * defs.h: Include hashtab.h.
2560 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2561 declarations.
2562 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2563 ctx_no_push_dwarf_reg_entry_value.
2564 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2565 (dwarf_block_to_dwarf_reg): New function.
2566 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2567 (ctx_no_push_dwarf_reg_entry_value): New function.
2568 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2569 push_dwarf_reg_entry_value.
2570 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2571 declarations.
2572 * dwarf2loc.c: Include gdbcmd.h.
2573 (dwarf_expr_ctx_funcs): New forward declaration.
2574 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2575 (dwarf_expr_reg_to_entry_parameter)
2576 (dwarf_expr_push_dwarf_reg_entry_value): New.
2577 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2578 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2579 (needs_dwarf_reg_entry_value): New function.
2580 (needs_frame_ctx_funcs): Install it.
2581 (_initialize_dwarf2loc): New function.
2582 * dwarf2loc.h (entry_values_debug): New declaration.
2583 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2584 (read_call_site_scope): New forward declaration.
2585 (process_full_comp_unit): Copy call_site_htab.
2586 (process_die): Support DW_TAG_GNU_call_site.
2587 (read_call_site_scope): New function.
2588 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2589 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2590 (cleanup_htab): Delete.
2591 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2592 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2593 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2594 FIELD_LOC_KIND_DWARF_BLOCK.
2595 * gdbtypes.h (enum field_loc_kind): New entry
2596 FIELD_LOC_KIND_DWARF_BLOCK.
2597 (struct main_type): New loc entry dwarf_block.
2598 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2599 (TYPE_FIELD_DWARF_BLOCK): New.
2600 * python/py-type.c: Include dwarf2loc.h.
2601 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2602 internal_error call on unknown FIELD_LOC_KIND.
2603 * symtab.h (struct symtab): New field call_site_htab.
2604 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2605 (core_addr_hash, core_addr_eq): New functions.
2606
2607 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2608
2609 Code reshuffle.
2610 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2611 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2612 calling_convention under func_stuff there.
2613 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2614 (init_type) <TYPE_CODE_FUNC>: Likewise.
2615 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2616 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2617 * gdbtypes.h (enum type_specific_kind): Change
2618 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2619 (struct main_type) <type_specific>: Change calling_convention to
2620 func_stuff. Move calling_convention to ...
2621 (struct func_type): ... this new struct.
2622 (INIT_FUNC_SPECIFIC): New #define.
2623 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2624
2625 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2626
2627 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2628 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2629 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2630 ctx->ref_addr_size. Handle its invalid value.
2631 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2632 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2633 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2634 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2635 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2636 (dwarf2_per_cu_ref_addr_size): New function.
2637
2638 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2639
2640 Code cleanup.
2641 * dwarf2read.c (per_cu_header_read_in): New function.
2642 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2643 variables cu_header_local and cu_headerp.
2644
2645 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2646
2647 Fix initial language detection with -readnow.
2648 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2649 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2650 searches only for global symbols.
2651
2652 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2653
2654 Fix printed anonymous struct name.
2655 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2656 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2657 (anonymous_struct_prefix): New function.
2658 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2659 (dwarf2_name): Strip for anonymous structs any prefixes.
2660
2661 2011-10-07 Doug Evans <dje@google.com>
2662
2663 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2664 `replace'.
2665
2666 * python/lib/gdb/printing.py: Whitespace cleanup.
2667
2668 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2669 warning.
2670
2671 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2672
2673 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2674 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2675 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2676 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2677 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2678 (arm_linux_remove_watchpoint): Adjust.
2679 * i386-linux-nat.c (i386_linux_dr_set_control)
2680 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2681 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2682 (ia64_linux_remove_watchpoint): Adjust.
2683 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2684 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2685 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2686 (ppc_linux_insert_mask_watchpoint)
2687 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2688 (ppc_linux_remove_watchpoint): Adjust.
2689 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2690 Adjust.
2691
2692 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2693
2694 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2695 (clear_win32_environment): New function for Cygwin to clear out
2696 Win32 environment.
2697 (windows_create_inferior): Prepare new environment from in_env
2698 for Cygwin, too.
2699
2700 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2701
2702 PR python/13264
2703 * python/py-value.c (valpy_call): Check that arguments are
2704 a tuple.
2705 (is_intlike): Remove call to CHECK_TYPEDEF.
2706 (valpy_nonzero): Catch GDB exceptions.
2707 (valpy_absolute): Ditto.
2708 (valpy_lazy_string): Ditto.
2709 (valpy_call): Ditto.
2710 (valpy_get_is_optimized_out): Ditto.
2711 (valpy_long): Ditto.
2712 (valpy_float): Ditto.
2713 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2714 (valpy_richcompare): Ditto.
2715
2716 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2717
2718 * inferior.h (disable_randomization): Declare.
2719 * infrun.c (disable_randomization): New global variable.
2720 (show_disable_randomization): New function.
2721 (set_disable_randomization): Likewise.
2722 (_initialize_infrun): Install set/show disable-randomization
2723 commands.
2724 * linux-nat.c (disable_randomization): Remove.
2725 (show_disable_randomization): Likewise.
2726 (set_disable_randomization): Likewise.
2727 (_initialize_linux_nat): No longer install set/show
2728 disable-randomization commands here.
2729 (linux_nat_supports_disable_randomization): New function.
2730 (linux_nat_add_target): Install it.
2731 * remote.c (PACKET_QDisableRandomization): New enum value.
2732 (remote_protocol_packets): Support QDisableRandomization.
2733 (_initialize_remote): Likewise.
2734 (remote_supports_disable_randomization): New function.
2735 (init_remote_ops): Install it.
2736 (extended_remote_supports_disable_randomization): New function.
2737 (init_extended_remote_ops): Install it.
2738 (extended_remote_disable_randomization): New function.
2739 (extended_remote_create_inferior_1): Call it.
2740 * target.h (struct target_ops): Add to_supports_disable_randomization.
2741 (target_supports_disable_randomization): Add prototype.
2742 * target.c (target_supports_disable_randomization): New function.
2743 (find_default_supports_disable_randomization): Likewise.
2744 (init_dummy_target): Install it.
2745
2746 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2747
2748 Allow Python notification of new object-file loadings.
2749 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2750 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2751 Add build rule for this file.
2752 * python/py-event.h (emit_new_objfile_event): New prototype.
2753 (newobjfile): New Python event emitter.
2754 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2755 Python event registry.
2756 * python/py-inferior.c: Include objfiles.h
2757 (python_new_objfile): New function.
2758 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2759 observers.
2760 * python/py-newobjfileevent.c: New file.
2761 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2762 prototype.
2763 * python/python.c (_initialize_python): Add
2764 gdbpy_initialize_new_objfile_event call.
2765 * NEWS: Add item for new Python event "gdb.newobjfile"
2766
2767 2011-10-05 Tristan Gingold <gingold@adacore.com>
2768
2769 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2770 Extract the ravenscar task name from the symbol for the atcb.
2771
2772 2011-10-04 Paul Koning <paul_koning@dell.com>
2773
2774 * python/py-type.c (typy_make_iter): Add forward declaration.
2775 (typy_fields_items): Use the gdb.Type iterator.
2776
2777 2011-10-04 Paul Koning <paul_koning@dell.com>
2778
2779 * NEWS: Add entry for Python gdb.Type mapping methods.
2780
2781 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2782
2783 PR python/12691: Add the inferior to Python exited event
2784 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2785 to exited_event.
2786 * python/py-event.h (emit_exited_event): Likewise
2787 * python/-inferior.c (python_inferior_exit): Likewise
2788
2789 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2790
2791 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2792 in output of -ada-task-info GDB/MI command.
2793
2794 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2795
2796 * ada-lang.h (struct inferior): Declare.
2797 (print_ada_task_info): Add declaration.
2798 * ada-tasks.c (print_ada_task_info): Make non-static.
2799 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2800 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2801 * mi/mi-main.c: #include "ada-lang.h".
2802 (mi_cmd_list_features): Add "ada-task-info" to the list
2803 of supported features.
2804 (mi_cmd_ada_task_info): New function.
2805
2806 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2807
2808 * python/python.c (python_run_simple_file): New function.
2809 (source_python_script, source_python_script_for_objfile):
2810 Replace call to PyRun_SimpleFile by call to
2811 python_run_simple_file.
2812
2813 2011-10-03 Paul Koning <paul_koning@dell.com>
2814
2815 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2816 (value_to_value_object): Fetch value if it was lazy.
2817
2818 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2819
2820 Code cleanup.
2821 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2822 Rearrange the code for it.
2823
2824 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2825
2826 * breakpoint.c (bkpt_print_recreate): Add call to
2827 print_recreate_thread.
2828
2829 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2830
2831 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2832 PTRACE_GETFDPIC_INTERP): Define.
2833
2834 2011-09-28 Yao Qi <yao@codesourcery.com>
2835
2836 * symfile.c (add_symbol_file_command): Update message on usage.
2837
2838 2011-09-28 Paul Koning <paul_koning@dell.com>
2839
2840 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2841 (typy_length, typy_get, typy_has_key, typy_make_iter)
2842 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2843 (typy_iterator_iter, typy_iterator_iternext)
2844 (typy_iterator_dealloc): New functions to implement standard
2845 Python mapping methods on gdb.Type object.
2846 (gdb.TypeIterator): New Python type.
2847 * python/python-internal.h (gdbpy_iter_kind): New enum.
2848
2849 2011-09-28 David S. Miller <davem@davemloft.net>
2850
2851 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2852 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2853 * sparc-tdep.c (sparc_complex_floating_p): New function.
2854 (sparc32_store_arguments): Handle complex floats.
2855 (sparc32_extract_return_value): Likewise.
2856 (sparc32_store_return_value): Likewise.
2857 (sparc32_stabs_argument_has_addr): Likewise.
2858 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2859 (sparc64_store_floating_fields): Handle complex floats.
2860 (sparc64_store_arguments): Likewise.
2861 (sparc64_store_return_value): Likewise.
2862
2863 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2864
2865 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2866 before the change on 2006-12-09.
2867 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2868 generates the environment block for CreateProcessA, modulo the
2869 Cygwin-specific parts that are not needed here.
2870
2871 2011-09-27 Tristan Gingold <gingold@adacore.com>
2872
2873 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2874 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2875 (darwin_solib_get_all_image_info_addr_at_init): New function.
2876 (darwin_solib_read_all_image_info_addr): Likewise.
2877 (darwin_solib_create_inferior_hook): Use the above two functions.
2878 * darwin-nat.c (darwin_execvp): Renames retval to res.
2879 (darwin_read_write_inferior): Update comment.
2880 (darwin_read_dyld_info): New function.
2881 (darwin_xfer_partial): Handle DYLD_INFO.
2882
2883 2011-09-27 Stan Shebs <stan@codesourcery.com>
2884
2885 Add return address collection for tracepoints.
2886 * tracepoint.c (encode_actions_1): Add case for $_ret.
2887 (validate_actionline): Check for $_ret.
2888 (trace_dump_actions): Ditto.
2889 * ax-gdb.h (gen_trace_for_return_address): Declare.
2890 * ax-gdb.c: Include arch-utils.h.
2891 (gen_trace_for_return_address): New function.
2892 (agent_command): Add return address special case.
2893 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2894 (amd64_gen_return_address): New function.
2895 (amd64_init_abi): Call it.
2896 * i386-tdep.c: Include ax.h and ax-gdb.h.
2897 (i386_gen_return_address): New function.
2898 (i386_init_abi): Call it.
2899 * arch-utils.h (default_gen_return_address): Declare.
2900 * arch-utils.c (default_gen_return_address): New function.
2901 * gdbarch.sh (gen_return_address): New method.
2902 * gdbarch.h, gdbarch.c: Regenerate.
2903
2904 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2905
2906 PR gdb/13079
2907 * i386-tdep.c (i386_frame_align): New.
2908 (i386_gdbarch_init): Use i386_frame_align.
2909
2910 2011-09-23 Yao Qi <yao@codesourcery.com>
2911
2912 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2913 to get address.
2914
2915 2011-09-22 Tristan Gingold <gingold@adacore.com>
2916
2917 * fork-child.c (fork_inferior): Add exec_fun parameter.
2918 Call exec_fun or execvp.
2919 * inferior.h: Adjust prototype.
2920 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2921 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2922 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2923 * procfs.c (procfs_create_inferior): Ditto.
2924 * darwin-nat.c (darwin_execvp): New function.
2925 (darwin_create_inferior): Use it.
2926
2927 2011-09-22 Yao Qi <yao@codesourcery.com>
2928
2929 * infrun.c (context_switch): Print debug message when switching to
2930 a different thread.
2931
2932 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2933
2934 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2935 complex and vector types.
2936 (s390_return_value_convention): Likewise.
2937
2938 (s390_value_from_register): Call check_typedef.
2939 (extend_simple_arg): Likewise.
2940 (alignment_of): Likewise.
2941 (s390_push_dummy_call): Likewise.
2942 (s390_return_value): Likewise.
2943
2944 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2945
2946 * event-top.c (async_disconnect): If an exception is thrown from
2947 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2948 catch_errors.
2949 * top.c (quit_cover): Return void and take no arguments.
2950 * top.h (quit_cover): Update prototype.
2951
2952 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2953
2954 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2955 current_uiout, not uiout.
2956
2957 2011-09-19 Doug Evans <dje@google.com>
2958
2959 * python/py-auto-load.c (source_section_scripts): Fix file
2960 descriptor leak.
2961 * python/python.c (source_python_script_for_objfile): Tweak comments.
2962
2963 2011-09-18 Yao Qi <yao@codesourcery.com>
2964 Ulrich Weigand <ulrich.weigand@linaro.org>
2965
2966 Support displaced stepping for Thumb 16-bit insns.
2967 * arm-tdep.c (THUMB_NOP) Define.
2968 (thumb_copy_unmodified_16bit): New.
2969 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2970 (thumb_copy_alu_reg): New.
2971 (arm_copy_svc): Move some common code to ...
2972 (install_svc): ... here. New.
2973 (thumb_copy_svc): New.
2974 (install_pc_relative): New.
2975 (thumb_copy_pc_relative_16bit): New.
2976 (thumb_decode_pc_relative_16bit): New.
2977 (thumb_copy_16bit_ldr_literal): New.
2978 (thumb_copy_cbnz_cbz): New.
2979 (cleanup_pop_pc_16bit_all): New.
2980 (thumb_copy_pop_pc_16bit): New.
2981 (thumb_process_displaced_16bit_insn): New.
2982 (thumb_process_displaced_32bit_insn): New.
2983 (thumb_process_displaced_insn): process thumb instruction.
2984
2985 Support displaced stepping for Thumb 32-bit insns.
2986 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2987 (thumb2_copy_preload): New.
2988 (thumb2_copy_copro_load_store): New.
2989 (thumb2_copy_b_bl_blx): New.
2990 (thumb2_copy_alu_imm): New.
2991 (thumb2_copy_load_reg_imm): New.
2992 (thumb2_copy_load_literal): New
2993 (thumb2_copy_block_xfer): New.
2994 (thumb_32bit_copy_undef): New.
2995 (thumb_32bit_copy_unpred): New.
2996 (thumb2_decode_ext_reg_ld_st): New.
2997 (thumb2_decode_svc_copro): New.
2998 (decode_thumb_32bit_store_single_data_item): New.
2999 (thumb_copy_pc_relative_32bit): New.
3000 (thumb_decode_pc_relative_32bit): New.
3001 (decode_thumb_32bit_ld_mem_hints): New.
3002 (thumb2_copy_table_branch): New
3003 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3004 instructions.
3005
3006 2011-09-18 Yao Qi <yao@codesourcery.com>
3007
3008 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3009 (install_b_bl_blx): Likewise.
3010
3011 2011-09-17 Yao Qi <yao@codesourcery.com>
3012
3013 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3014 (install_load_store): ... this. New.
3015 Change parameter BYTE to SIZE.
3016 (arm_copy_ldr_str_ldrb_strb): Update caller.
3017 (arm_decode_ld_st_word_ubyte): Update caller.
3018
3019 2011-09-17 Yao Qi <yao@codesourcery.com>
3020
3021 * infrun.c (displaced_step_fixup): Move some code ...
3022 (displaced_step_restore): ... here. New function.
3023 (handle_inferior_event): Cleanup displaced stepping state for both
3024 child and parent when get forked or vforked event.
3025 * regcache.c (get_thread_arch_aspace_regcache): New function.
3026 get_thread_arch_regcache (): Call it.
3027
3028 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3029
3030 * ada-tasks.c (print_ada_task_info): New function, merging
3031 short_task_info and info_tasks together. Reimplement using
3032 ui-out instead of printing to stdout directly. Move the code
3033 building and checking the task list here, instead of leaving it
3034 in info_tasks_command.
3035 (info_task): Move the code building and checking the task
3036 list here, instead of leaving it in info_tasks_command.
3037 (info_tasks_command): Delete code building and checking
3038 the task list - moved elsewhere. Update calls to info_tasks
3039 and info_task.
3040
3041 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3042
3043 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3044
3045 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3046
3047 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3048
3049 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3050
3051 * ada-lang.h (ada_build_task_list): Remove parameter
3052 `warn_if_null'.
3053 * ada-tasks.c (ada_build_task_list): Remove parameter
3054 `warn_if_null'. Adjust implementation and documentation.
3055 (valid_task_id, ada_get_environment_task)
3056 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3057 (info_tasks_command): Adjust implementation.
3058 (task_command): Likewise.
3059 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3060 to ada_build_task_list.
3061
3062 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3063
3064 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3065 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3066 (ada_tasks_inferior_data_handle): New static global.
3067 (get_ada_tasks_inferior_data): New function.
3068 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3069 (ada_get_environment_task, iterate_over_live_ada_tasks)
3070 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3071 Adjust.
3072 (ada_set_current_inferior_known_tasks_addr): New function.
3073 (read_known_tasks, ada_build_task_list, short_task_info)
3074 (info_tasks, info_task, info_tasks_command, task_command_1)
3075 (task_command, ada_task_list_changed): Adjust.
3076 (ada_tasks_invalidate_inferior_data): New function.
3077 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3078 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3079 * ada-lang.h (struct inferior): Add declaration.
3080 (ada_task_list_changed): Update profile.
3081 * remote-wtx-pd.c: #include "inferior.h".
3082 (switch_to_pd_internal): Update call to ada_task_list_changed.
3083
3084 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3085
3086 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3087 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3088 (atcb_fieldno): Delete these static globals.
3089 (struct ada_tasks_pspace_data): New struct.
3090 (ada_tasks_pspace_data_handle): New static global.
3091 (get_ada_tasks_pspace_data): New function.
3092 (ada_tasks_invalidate_pspace_data): New function.
3093 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3094 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3095 (_initialize_tasks): Create this module's per-progspace
3096 data handle.
3097
3098 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3099
3100 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3101
3102 2011-09-16 Tristan Gingold <gingold@adacore.com>
3103
3104 * fork-child.c (fork_inferior): Update comment. Use alloca
3105 instead of xmalloc for argv. Move len and shell_command
3106 declarations in the block where they are used.
3107 Only call execvp. Factorize failure code.
3108
3109 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3110
3111 Code cleanup.
3112 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3113 `exp_element' instead of an element of the same and make the function
3114 static.
3115 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3116 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3117 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3118 Change argument of `write_exp_elt' function call.
3119 Remove extra spaces from comments.
3120 * parser-defs.h (write_exp_elt): Remove prototype.
3121
3122 2011-09-15 Paul Koning <paul_koning@dell.com>
3123
3124 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3125 count of item appended to list.
3126 * python/py-type.c (typy_fields): Likewise.
3127
3128 2011-09-15 Paul Koning <paul_koning@dell.com>
3129
3130 * MAINTAINERS (Write After Approval): Add myself to the list.
3131
3132 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3133
3134 PR threads/12628
3135 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3136 processes with multiple threads.
3137 (inf_has_multiple_thread_cb): New function.
3138 (inf_has_multiple_threads): New function.
3139
3140 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3141
3142 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3143 * python/py-inferior.c (GdbMethods): New Python method definition.
3144
3145 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3146
3147 Handle multiple breakpoint hits in Python interface:
3148 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3149 variable to breakpoints.
3150 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3151 bps instead of single breakpoint. Fix some space typos.
3152 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3153 variable to breakpoints.
3154
3155 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3156
3157 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3158 note if the breakpoint is internal.
3159
3160 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3161
3162 * MAINTAINERS (Write After Approval): Add myself to the list
3163
3164 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3165
3166 * infrun.c (prepare_for_detach, wait_for_inferior)
3167 (fetch_inferior_event): Don't flush the register cache.
3168 * remote.c (struct stop_reply) <regcache>: Add comment.
3169
3170 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3171
3172 Remove excessive DWARF expressions memory duplication.
3173 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3174 for block.data.
3175 (indirect_pieced_value): Remove variable result. Remove variable
3176 back_to and its use for baton.data.
3177 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3178 block.data.
3179 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3180 Update the function comment.
3181
3182 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3183
3184 * inferior.h (ALL_INFERIORS): New.
3185 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3186 for a stopped thread.
3187 (thread_db_find_new_threads): Look for threads in all inferiors.
3188
3189 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3190
3191 * breakpoint.c (update_watchpoint): Handle the case of the
3192 watchpoint to update not being in the breakpoint list yet.
3193 (hw_watchpoint_use_count): New, factored out from
3194 hw_watchpoint_used_count.
3195 (hw_watchpoint_used_count): Rename to ...
3196 (hw_watchpoint_used_count_others): ... this. Add `except'
3197 parameter. Don't count resources of `except'. Use
3198 hw_watchpoint_use_count.
3199
3200 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3201
3202 * gdbthread.h (enum thread_state): Moved here.
3203 (struct thread_info): Rename `executing_' field to `executing' and
3204 `state_' to `state'.
3205 * thread.c (enum thread_state): Moved to gdbthread.h.
3206 (new_thread, add_thread_silent, delete_thread_1)
3207 (any_live_thread_of_process, thread_alive, set_running)
3208 (set_running, is_thread_state, any_running, is_executing)
3209 (set_executing, finish_thread_state, print_thread_info)
3210 (do_captured_thread_select): Adjust.
3211
3212 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3213
3214 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3215 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3216
3217 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3218 Matt Rice <ratmice@gmail.com>
3219
3220 PR gdb/13175
3221
3222 * interps.c (struct interp) <interpreter_out>: Delete field.
3223 (interp_new): Remove the data and uiout parameters and adjust.
3224 (interp_set): Only set the current_uiout from the interpreter's
3225 uiout after initializing the interpreter. Adjust call to
3226 init_proc.
3227 (interp_ui_out): Adjust to call procs->ui_out_proc.
3228 (interp_data, interp_name): New.
3229 * interps.h (interp_init_ftype): Add `self' parameter.
3230 (interp_ui_out_ftype): New typedef.
3231 (struct interp_procs) <ui_out_proc>: New method pointer.
3232 (interp_new): Remove the data and uiout parameters.
3233 (interp_data, interp_name): Declare.
3234 * tui/tui-interp.c (tui_init): Adjust prototype.
3235 (tui_ui_out): New.
3236 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3237 tui_out here. Adjust call to interp_new.
3238 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3239 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3240 (cli_ui_out): New.
3241 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3242 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3243 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3244 Initialize mi->uiout depending on the mi_version as extracted from
3245 the interpreter's name.
3246 (mi_ui_out): New.
3247 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3248 interp_new. Don't allocate the ui_out's of the interpreters here.
3249
3250 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3251
3252 * solib.c (solib_used): New function.
3253 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3254 by another so_list object before freeing it.
3255
3256 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3257
3258 Code cleanup.
3259 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3260 values.
3261
3262 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3263
3264 Code cleanup.
3265 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3266 (amd64_skip_xmm_prologue): ... this new function. Describe its
3267 parameters. No longer use amd64_prologue_line_bug.
3268 * defs.h (producer_is_gcc_ge_4): New declaration.
3269 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3270 (process_full_comp_unit): Update its caller. Remove
3271 amd64_prologue_line_bug initialization.
3272 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3273 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3274
3275 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3276
3277 * linux-nat.h (enum resume_kind): New.
3278 (struct lwp_info) <last_resume_kind>: New field.
3279 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3280 resume_stop on the new lwp.
3281 (add_lwp): Set last_resume_kind as resume_continue by default.
3282 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3283 (resume_lwp): New, factored out from resume_callback. Also check
3284 for pending status in lp->waitstatus.
3285 (resume_callback): Reimplement.
3286 (resume_clear_callback): Set last_resume_kind as resume_stop.
3287 (resume_set_callback): Set last_resume_kind as resume_continue.
3288 (linux_nat_resume, linux_handle_extended_wait): Set
3289 last_resume_kind.
3290 (running_callback): Also check lp->waitstatus for pending events.
3291 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3292 is resume_step.
3293 (stop_and_resume_callback): Don't re-resume if the core wanted the
3294 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3295 using an invalidated pointer.
3296 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3297 SIGSTOPs if the core wanted the LWP to stop.
3298 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3299 wanted the lwp to stop. If the core wanted the lwp to stop, and
3300 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3301 of TARGET_SIGNAL_STOP.
3302 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3303 here. Instead, signal the lwp, and set the last_resume_kind to
3304 resume_stop.
3305
3306 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3307
3308 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3309 -1 (error), if the lwp exits right after attaching.
3310
3311 2011-09-08 Doug Evans <dje@google.com>
3312
3313 * py-cmd.c: Some minor formatting fixes.
3314 (gdbpy_parse_command_name): Rename text arg to name, make const.
3315 All callers updated.
3316 * python-internal.h (gdbpy_parse_command_name): Update.
3317
3318 * cli/cli-decode.c (add_cmd): Add comment.
3319
3320 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3321
3322 PR breakpoints/12435
3323 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3324 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3325 * dwarf2read.c (process_full_comp_unit): Initialize
3326 amd64_prologue_line_bug.
3327 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3328
3329 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3330
3331 Fix TUI screen corruption.
3332 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3333 batch_flag.
3334
3335 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3336
3337 * findvar.c (read_var_value): Never return NULL, throw an error
3338 instead. Update the function comment. State symbol name in the error
3339 messages.
3340 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3341 read_var_value.
3342 * stack.c (print_frame_args): Likewise.
3343 * valops.c (value_of_variable): Likewise.
3344
3345 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3346
3347 * stack.c (print_frame_args): New variable except. Wrap
3348 read_var_value and common_val_print into TRY_CATCH.
3349
3350 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3351
3352 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3353 caller to value_of_this.
3354 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3355 Twice.
3356 * valops.c (value_of_this): Remove parameter complain and variable ret.
3357 Update function comment. Never return NULL by this code.
3358 (value_of_this_silent): New function.
3359 * value.h (value_of_this): Remove parameter complain.
3360 (value_of_this_silent): New declaration.
3361
3362 2011-09-07 Yao Qi <yao@codesourcery.com>
3363
3364 * gdbthread.h (struct thread_info): Remove fields
3365 `stepping_through_solib_after_catch' and
3366 `stepping_through_solib_catchpoints'.
3367 * infrun.c (init_thread_stepping_state): Update.
3368 (process_event_stop_test, currently_stepping): Update.
3369 (currently_stepping_or_nexting_callback): Update.
3370
3371 2011-09-07 Yao Qi <yao@codesourcery.com>
3372
3373 * gdbthread.h (struct thread_info): Comment on field
3374 `step_after_step_resume_breakpoint'.
3375
3376 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3377
3378 * remote.c (remote_console_output): Reindent.
3379
3380 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3381
3382 * frame.c (has_stack_frames): Check for currently selected
3383 traceframe.
3384
3385 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3386
3387 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3388 (set_async_annotation_level, set_async_prompt, pop_prompt)
3389 (push_prompt, new_async_prompt): Delete declarations.
3390 * top.h (get_prompt, set_prompt): Change prototype.
3391 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3392 declarations.
3393 * top.c (command_loop):
3394 (top_prompt): New global.
3395 (get_prefix, set_prefix, get_suffix, ): Delete.
3396 (get_prompt, set_prompt): Rewrite.
3397 (show_new_async_prompt): Rename to ...
3398 (show_prompt): ... this.
3399 (init_main): Adjust. Don't handle --annotate=2 here.
3400 * event-top.c (new_async_prompt): Delete.
3401 (the_prompts): Delete.
3402 (more_to_come): Make static.
3403 (display_gdb_prompt): Use top_level_prompt() to compute the top
3404 level prompt, and don't notify the before_prompt observers
3405 directly here. Always trick readline into not trying to display
3406 the prompt if sync_execution and displaying the primary prompt.
3407 If displaying a local/secondary prompt, always show it, even if
3408 sync_execution is set.
3409 (change_annotation_level): Delete.
3410 (top_level_prompt): New, based on change_annotation_level.
3411 (push_prompt, pop_prompt): Delete.
3412 (async_disable_stdin): No longer pushes prompt.
3413 (command_line_handler): No longer pushes or pops prompt. If more
3414 input is expected, call display_gdb_prompt with an explicit empty
3415 prompt.
3416 (async_stop_sig): Adjust.
3417 (set_async_annotation_level, set_async_prompt): Delete.
3418 * python/python.c (before_prompt_hook): Adjust.
3419
3420 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3421
3422 PR cli/13110
3423
3424 * infrun.c (fetch_inferior_event): Check if there's a selected
3425 thread before checking if the selected thread is executing.
3426
3427 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3428
3429 * inf-loop.c (execute_command): Don't check if the current thread
3430 if running before synchronously waiting for command completion.
3431 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3432 here.
3433 (normal_stop): Call async_enable_stdin here.
3434 * inf-loop.c (inferior_event_handler): Don't call
3435 async_enable_stdin, nor handle "set exec-done-display" here.
3436
3437 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3438
3439 GDB 7.3.1 released.
3440
3441 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3442
3443 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3444
3445 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3446
3447 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3448
3449 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3450
3451 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3452
3453 2011-09-02 Matt Rice <ratmice@gmail.com>
3454
3455 PR gdb/10720
3456 * event-top.c (cli_command_loop): Replace readline setup with
3457 direct call to display_gdb_prompt.
3458 (display_gdb_prompt): Do not call observer mechanism during
3459 synchronous execution.
3460
3461 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3462
3463 * linux-nat.c (in_pid_list_p): New.
3464 (linux_record_stopped_pid): Delete.
3465 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3466 already attached to the LWP. Return an indication if so.
3467 (linux_nat_filter_event): Adjust.
3468 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3469 returning an indication to ignore this thread.
3470
3471 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3472
3473 * top.c: Include interps.h.
3474 (execute_command): If the target can async, but the interpreter is
3475 in sync mode, synchronously wait for the command to finish before
3476 returning.
3477 (execute_command_to_string): Force the interpreter to sync mode.
3478 * infrun.c: Include interps.h.
3479 (fetch_inferior_event): Don't restore the prompt yet if the
3480 interpreter is in sync mode.
3481 * interps.c (interpreter_async): New global.
3482 * interps.h (interpreter_async): Declare.
3483 * inf-loop.c: Include interps.h.
3484 (inferior_event_handler): Don't print the language change or run
3485 breakpoint commands yet if the interpreter in is sync mode.
3486 * main.c (captured_command_loop): Flip the interpreter to async
3487 mode.
3488 * cli/cli-script.c: Include interps.h.
3489 (execute_user_command, while_command, if_command): Force the
3490 interpreter to sync mode.
3491 * python/python.c: Include interps.h.
3492 (python_command, execute_gdb_command): Force the interpreter to
3493 sync mode.
3494
3495 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3496
3497 * value.c (show_convenience): Catch errors thrown while printing
3498 each internal variable.
3499 * infrun.c (validate_siginfo_access): New function.
3500 (siginfo_value_read, siginfo_value_write): Call it.
3501
3502 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3503
3504 Revert:
3505 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3506 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3507 attribute.
3508
3509 2011-08-29 Yao Qi <yao@codesourcery.com>
3510
3511 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3512 (cmp_name): New.
3513 (enable_break2): Update caller.
3514 * solib-frv.c (bfd_lookup_symbol): Removed.
3515 (cmp_name): New.
3516 (enable_break2): Update caller.
3517 * solib-pa64.c (bfd_lookup_symbol): Removed.
3518 (cmp_name): New.
3519 * solib-svr4.c (bfd_lookup_symbol): Removed.
3520 (cmp_name_and_sec_flags): New.
3521 (enable_break): Update caller.
3522 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3523 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3524 (gdb_bfd_lookup_symbol): New.
3525 * solib.h: Functions declarations.
3526
3527 2011-08-29 Yao Qi <yao@codesourcery.com>
3528
3529 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3530 and solib-dsbt.o.
3531
3532 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3533
3534 Fix TUI stepi on code without symbols.
3535 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3536 current PC instead.
3537
3538 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3539
3540 Code cleanup.
3541 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3542 and the static keyword.
3543 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3544 Make prefix an array.
3545 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3546 * mi/mi-main.c (get_register): Remove stb initialization and the static
3547 keyword.
3548
3549 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3550
3551 Code cleanup - make mi_opt const.
3552 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3553 opts const.
3554 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3555 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3556 (mi_cmd_env_dir): Likewise.
3557 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3558 (mi_cmd_target_file_put): Likewise.
3559 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3560 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3561 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3562 (mi_valid_noargs): Make opts const.
3563 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3564 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3565 (mi_cmd_data_read_memory): Likewise.
3566 (mi_cmd_data_read_memory_bytes): Likewise.
3567 (mi_cmd_data_write_memory): Likewise.
3568
3569 2011-08-26 Matt Rice <ratmice@gmail.com>
3570
3571 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3572 bcache_xmalloc, replace bcache_xmalloc with call to
3573 psymbol_bcache_init for psymbol_cache.
3574 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3575
3576 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3577
3578 * inf-loop.c (inferior_event_handler): Add exception_print in
3579 INF_EXEC_COMPLETE.
3580
3581 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3582
3583 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3584 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3585 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3586 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3587 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3588 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3589 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3590 * infrun.c (fetch_inferior_event): Call
3591 make_bpstat_clear_actions_cleanup.
3592 * top.c (execute_command): New variable cleanup_if_error, call
3593 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3594 * utils.c (do_bpstat_clear_actions_cleanup)
3595 (make_bpstat_clear_actions_cleanup): New functions.
3596
3597 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3598
3599 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3600 either the parent or the child forks. Rename a couple locals.
3601
3602 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3603
3604 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3605 library call. Avoid reading the `status' local if all waitpid
3606 calls failed.
3607
3608 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3609
3610 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3611 opening /proc/PID/task always succeeds.
3612
3613 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3614
3615 * linespec.c (symtab_from_filename): Check for the end of string.
3616
3617 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3618
3619 PR mi/11912
3620 * varobj.c (cplus_describe_child): Add the keyword
3621 'class' to the output of the method when dealing
3622 with a cast to a base class.
3623
3624 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3625
3626 No functionality change.
3627 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3628 function comment a reference, new variables tp and bs, move here code
3629 from throw_exception.
3630 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3631 describe it in the comment.
3632 * exceptions.c (throw_exception): Remove variable tp, move the code for
3633 bpstat_clear_actions to bpstat_clear_actions.
3634
3635 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3636
3637 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3638 * linux-nat.c: Include linux-procfs.h.
3639 (linux_proc_get_tgid): Move to ...
3640 * common/linux-procfs.c: ... here. New file.
3641 * common/linux-procfs.h: New file.
3642 * linux-thread-db.c: Include linux-procfs.h.
3643 * Makefile.in: Update dependencies.
3644 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3645 * config/arm/linux.mh: Likewise.
3646 * config/i386/linux.mh: Likewise.
3647 * config/i386/linux64.mh: Likewise.
3648 * config/ia64/linux.mh: Likewise.
3649 * config/m32r/linux.mh: Likewise.
3650 * config/m68k/linux.mh: Likewise.
3651 * config/mips/linux.mh: Likewise.
3652 * config/pa/linux.mh: Likewise.
3653 * config/pa/linux.mh: Likewise.
3654 * config/powerpc/linux.mh: Likewise.
3655 * config/powerpc/ppc64-linux.mh: Likewise.
3656 * config/powerpc/spu-linux.mh: Likewise.
3657 * config/sparc/linux.mh: Likewise.
3658 * config/sparc/linux64.mh: Likewise.
3659 * config/xtensa/linux.mh: Likewise.
3660
3661 2011-08-24 Hui Zhu <teawater@gmail.com>
3662
3663 * tracepoint.c (cond_string_is_same): New function.
3664 (find_matching_tracepoint): Add condition check
3665 by cond_string_is_same.
3666
3667 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3668
3669 Fix build error in Darwin port.
3670 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3671
3672 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3673
3674 Code cleanup.
3675 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3676 (command_line_is_silent): New function.
3677 (bpstat_do_actions_1): No longer use commands_left, use
3678 command_line_is_silent for commands.
3679 (bpstat_alloc): Remove clearing of commands_left.
3680 (bpstat_stop_status): Remove initialization of commands_left, use
3681 command_line_is_silent.
3682 * breakpoint.h (struct bpstats): Remove commands_left.
3683
3684 2011-08-18 Keith Seitz <keiths@redhat.com>
3685
3686 PR c++/12266
3687 * cp-name-parser.y (struct demangle_info): Remove unused
3688 member PREV.
3689 (d_grab): Likewise.
3690 (allocate_info): Change return type to struct demangle_info *.
3691 Always allocate a new demangle_info.
3692 Remove unused PREV pointer.
3693 (cp_new_demangle_parse_info): New function.
3694 (cp_demangled_name_parse_free): New function.
3695 (do_demangled_name_parse_free_cleanup): New function.
3696 (make_cleanup_cp_demangled_name_parse_free): New function.
3697 (cp_demangled_name_to_comp): Change return type to
3698 struct demangle_parse_info *.
3699 Allocate a new storage for each call.
3700 (main): Update usage for cp_demangled_name_to_comp
3701 API change.
3702 * cp-support.h (struct demangle_parse_info): New structure.
3703 (cp_demangled_name_to_comp): Update API change for
3704 return type.
3705 (cp_new_demangle_parse_info): Declare.
3706 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3707 (cp_demangled_name_parse_free): Declare.
3708 * cp-support.c (cp_canonicalize_string): Update API
3709 change for cp_demangled_name_to_comp.
3710 (mangled_name_to_comp): Likewise.
3711 Return struct demangle_parse_info, too.
3712 (cp_class_name_from_physname): Update mangled_name_to_comp
3713 API change.
3714 (method_name_from_physname): Likewise.
3715 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3716 (cp_remove_params): Likewise.
3717 * python/py-type.c (typy_legacy_template_argument): Likewise.
3718
3719 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3720 (cp_merge_demangle_parse_infos): Declare.
3721 * cp-support.c (ignore_typedefs): New file global.
3722 (copy_string_to_obstack): New function.
3723 (inspect_type): New function.
3724 (replace_typedefs): New function.
3725 (replace_typedefs_qualified_name): New function.
3726 (cp_canonicalize_string_no_typedefs): New function.
3727 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3728 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3729 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3730 instead of cp_canonicalize_string.
3731 (find_method): Likewise.
3732 (decode_compound): Before looking up the name, call
3733 cp_canonicalize_string_no_typedefs.
3734 (decode_variable): Likewise.
3735
3736 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3737 Tom Tromey <tromey@redhat.com>
3738 Matt Rice <ratmice@gmail.com>
3739
3740 * python/lib/gdb/prompt.py: New file.
3741 * python/lib/gdb/command/prompt.py: New file.
3742 * NEWS: Document set extended-prompt and gdb.prompt library
3743
3744 2011-08-16 Yao Qi <yao@codesourcery.com>
3745
3746 * tic6x-linux-tdep.c: Move const arrays definition from here...
3747 * tic6x-tdep.c: to here ...
3748
3749 2011-08-14 Yao Qi <yao@codesourcery.com>
3750
3751 * NEWS: New port to Texas Instruments TMS320C6x.
3752
3753 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3754 Bernd Schmidt <bernds@codesourcery.com>
3755 Yao Qi <yao@codesourcery.com>
3756
3757 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3758 * solib-dsbt.c: New file. Support DSBT shared object.
3759 * tic6x-linux-tdep.c: New file.
3760 * tic6x-tdep.c: New file.
3761 * tic6x-tdep.h: New file.
3762
3763 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3764 Yao Qi <yao@codesourcery.com>
3765
3766 * remote.c (PACKET_qXfer_fdpic): New enum value.
3767 (remote_protocol_features): Add qXfer:fdpic:read packet.
3768 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3769 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3770 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3771
3772 2011-08-14 Yao Qi <yao@codesourcery.com>
3773
3774 Target description for tic6x.
3775 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3776 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3777 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3778 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3779 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3780 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3781 * features/tic6x-c64xp-linux.xml: New.
3782 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3783 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3784 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3785 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3786 * regformats/tic6x-c64xp.dat,
3787 regformats/tic6x-c62x-linux.dat: Generated.
3788 * regformats/tic6x-c64x-linux.dat,
3789 regformats/tic6x-c64xp-linux.dat: Generated.
3790 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3791 features/tic6x-*.c files.
3792 Add regformats/tic6x-*.dat files.
3793
3794 2011-08-12 Doug Evans <dje@google.com>
3795
3796 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3797 * python/py-symbol.c (sympy_get_type): New function.
3798 (symbol_object_getset): Add "type".
3799
3800 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3801
3802 PR tui/13073
3803
3804 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3805 empty name.
3806 (tui_show_register_group): Don't store a byte buffer in the data
3807 element's value.
3808 (tui_register_format): Skip registers with an empty name.
3809 (tui_get_register): Store a struct value in the data element's
3810 value field instead of a byte buffer holding the raw register
3811 contents. Account for optimized-out and unavailable registers
3812 when comparing register contents.
3813
3814 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3815
3816 * printcmd.c (current_display_number): Update comment.
3817 (disable_current_display_cleanup): Delete.
3818 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3819 catch errors thrown while evaluating and printing the display.
3820
3821 2011-08-09 Tom Tromey <tromey@redhat.com>
3822
3823 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3824
3825 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3826
3827 * elfread.c (elf_symtab_read): Rework comments.
3828 * maint.c (maintenance_command): Ditto.
3829 * somread.c (som_symtab_read): Ditto.
3830 * solib.c (solib_find, solib_map_sections, update_solib_list)
3831 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3832 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3833 (sharedlibrary_command, no_shared_libraries): Ditto.
3834 * solib-irix.c (locate_base, disable_break, enable_break)
3835 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3836 (irix_current_sos, irix_open_symbol_file_object)
3837 (irix_special_symbol_handling): Ditto.
3838 * solib-sunos.c (locate_base, first_link_map_member)
3839 (sunos_current_sos, disable_break, enable_break)
3840 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3841 Ditto.
3842 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3843 (open_symbol_file_object, svr4_current_sos, enable_break)
3844 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3845 Ditto.
3846 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3847 (frv_current_sos, enable_break, frv_special_symbol_handling)
3848 (frv_solib_create_inferior_hook): Ditto.
3849 * solist.h (struct target_so_ops): Extend the comments of the
3850 special_symbol_handling, current_sos and open_symbol_file_object
3851 methods.
3852
3853 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3854
3855 * python/lib/gdb/__init__.py: Auto-load files in command and
3856 function directories.
3857 * python/python.c (finish_python_initialization): Use
3858 os.path.join.
3859 * python/lib/gdb/command/pretty_printers.py: Self register
3860 command.
3861 * NEWS: Document auto-loading.
3862
3863 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3864
3865 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3866 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3867 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3868
3869 2011-08-08 Tom Tromey <tromey@redhat.com>
3870
3871 * breakpoint.c (clean_up_filters): Remove.
3872 (catch_syscall_split_args): Use VEC_cleanup.
3873
3874 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3875
3876 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3877 (main): Uncomment "Demangling error\n".
3878
3879 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3880
3881 * solib-target.c (segment_attributes): Make them static.
3882 (section_attributes, library_children, library_attributes): Likewise.
3883 (library_list_children, library_list_attributes): Likesise.
3884 (library_list_elements): Likewise.
3885
3886 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3887
3888 * exceptions.c (throw_exception): Don't disable the current
3889 display.
3890 * printcmd.c (disable_current_display_cleanup): New function.
3891 (do_one_display): Install a cleanup to disable the current display
3892 if doing the display throws.
3893
3894 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3895
3896 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3897 initialization of the tp_new member to the corresponding
3898 gdbpy_initialize_* function.
3899 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3900 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3901 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3902 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3903 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3904
3905 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3906
3907 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3908 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3909 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3910 references to current_uiout.
3911
3912 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3913
3914 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3915 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3916 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3917 * top.c (gdb_readline_wrapper): Adjust.
3918 * tui/tui-interp.c (tui_command_loop):
3919 (_initialize_tui_interp): Don't install it.
3920
3921 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3922
3923 * ui-out.h (uiout): Rename to ...
3924 (current_uiout): ... this.
3925 * ui-out.c (uiout): Rename to ...
3926 (current_uiout): ... this.
3927 * ada-lang.c (print_it_exception, print_one_exception)
3928 (print_mention_exception): Adjust.
3929 * breakpoint.c (watchpoint_check): Adjust.
3930 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3931 (default_collect_info, watchpoints_info, print_one_catch_fork)
3932 (print_one_catch_vfork, print_one_catch_syscall)
3933 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3934 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3935 (print_it_watchpoint, print_mention_watchpoint)
3936 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3937 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3938 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3939 (bkpt_print_mention, momentary_bkpt_print_it)
3940 (tracepoint_print_mention, update_static_tracepoint)
3941 (tracepoints_info, save_breakpoints): Adjust.
3942 * cli-out.c (field_separator): Adjust.
3943 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3944 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3945 * frame.c (get_current_frame): Adjust.
3946 * infcmd.c (run_command_1, print_return_value): Adjust.
3947 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3948 * infrun.c (print_end_stepping_range_reason): Adjust.
3949 (print_signal_exited_reason, print_exited_reason): Adjust.
3950 (print_signal_received_reason, print_no_history_reason): Adjust.
3951 * interps.c (interp_set): Adjust.
3952 * osdata.c (info_osdata_command): Adjust.
3953 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3954 * remote-fileio.c (remote_fileio_request): Adjust.
3955 * remote.c (show_remote_cmd): Adjust.
3956 * solib.c (info_sharedlibrary_command): Adjust.
3957 * source.c (print_source_lines_base): Adjust.
3958 * stack.c (print_stack_frame): Adjust.
3959 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3960 * symfile-mem.c (add_vsyscall_page): Adjust.
3961 * symfile.c (load_progress, generic_load)
3962 (print_transfer_performance): Adjust.
3963 * thread.c (info_threads_command, restore_selected_frame)
3964 (thread_command): Adjust.
3965 * top.c (make_cleanup_restore_ui_file): Adjust.
3966 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3967 (print_one_static_tracepoint_marker): Adjust.
3968 * cli/cli-cmds.c (print_disassembly): Adjust.
3969 * cli/cli-decode.c (print_doc_line): Adjust.
3970 * cli/cli-interp.c (safe_execute_command): Adjust.
3971 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3972 (handle_redirections): Adjust.
3973 * cli/cli-script.c (show_user_1): Adjust.
3974 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3975 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3976 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3977 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3978 (mi_cmd_env_dir): Adjust.
3979 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3980 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3981 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3982 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3983 (list_args_or_locals): Adjust.
3984 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3985 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3986 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3987 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3988 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3989 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3990 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3991 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3992 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3993 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3994 (list_available_thread_groups, mi_cmd_list_thread_groups)
3995 (mi_cmd_data_list_register_names)
3996 (mi_cmd_data_list_changed_registers)
3997 (mi_cmd_data_list_register_values, get_register)
3998 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3999 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4000 (mi_cmd_list_target_features, mi_cmd_add_inferior)
4001 (mi_execute_command, mi_load_progress): Adjust.
4002 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4003 * python/py-auto-load.c (print_script, info_auto_load_scripts):
4004 Adjust.
4005 * python/py-breakpoint.c (bppy_get_commands): Adjust.
4006 * tui/tui-interp.c (tui_command_loop): Adjust.
4007 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4008
4009 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4010
4011 * exceptions.c (struct catcher): Remove saved_uiout field.
4012 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4013 no longer save/resvore the global ui_out builder.
4014 (catch_exceptions_with_msg): Save/override/restore the global
4015 ui_out builder manually instead of relying on TRY_CATCH to do it.
4016 (catch_errors): Save/restore the global ui_out builder manually
4017 instead of relying on TRY_CATCH to do it.
4018 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4019 parameter.
4020 (TRY_CATCH): Adjust.
4021 * cli/cli-interp.c (safe_execute_command): Save/override/restore
4022 the global ui_out builder manually instead of relying on TRY_CATCH
4023 to do it.
4024
4025 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4026
4027 * breakpoint.c (update_global_location_list): Ensure
4028 invariant 'first loc marked not duplicated and inserted,
4029 following locs marked duplicated/not inserted' is respected
4030 for multiple locations at the same address.
4031 (unduplicated_should_be_inserted) New function.
4032 (swap_insertion) New function.
4033
4034 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4035
4036 * stack.c (print_frame_arguments_choices): Comment typo fix.
4037
4038 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4039
4040 Revert:
4041 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4042 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4043 argument. Update callers.
4044
4045 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4046
4047 PR gdb/13045
4048 * doublest.c (convert_doublest_to_floatformat): Pass correct
4049 mantissa length to put_field.
4050
4051 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4052
4053 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4054 exception_print code path.
4055 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4056 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4057 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4058
4059 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4060
4061 Code cleanup.
4062 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4063 Remove, merge them into ...
4064 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4065 variable args and its initialization.
4066 (struct print_args_args, print_args_stub): Remove, merge them into
4067 print_frame.
4068 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4069 them into ...
4070 (do_gdb_disassembly): ... here. Remove variable args and its
4071 initialization.
4072 (print_frame): Remove variable args and its initialization, new
4073 variable gdbarch and numargs (from print_args_stub), inline here
4074 print_args_stub with a TRY_CATCH.
4075 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4076 them into ...
4077 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4078 New variable e, remove variable btargs and its initialization.
4079
4080 2011-08-01 Tristan Gingold <gingold@adacore.com>
4081
4082 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4083
4084 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4085
4086 * breakpoint.c (insert_bp_location): Document return value.
4087 (insert_breakpoint_locations): Fix documentation.
4088 (remove_breakpoints): Add documentation.
4089
4090 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4091
4092 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4093 argument. Update callers.
4094
4095 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4096
4097 * stack.c (print_frame_info): Comment typo fix.
4098
4099 2011-07-29 Sterling Augustine <saugustine@google.com>
4100
4101 * MAINTAINERS (Write After Approval): Add myself to the list.
4102
4103 2011-07-29 Tom Tromey <tromey@redhat.com>
4104
4105 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4106 (library_list_start_segment): Update.
4107 (library_list_start_section): Update.
4108
4109 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4110
4111 * varobj.c (value_get_print_value): Move hint check later into the
4112 function. Comment function. Free thevalue before reusing it.
4113
4114 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4115 Pedro Alves <pedro@codesourcery.com>
4116
4117 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4118 value_one.
4119 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4120 Assert the result kind.
4121 * value.h (value_one): Remove parameter lv.
4122
4123 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4124
4125 Fix crash on lval_computed values.
4126 * valops.c (value_zero): Use not_lval for lval_computed.
4127
4128 2011-07-27 Tom Tromey <tromey@redhat.com>
4129
4130 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4131 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4132
4133 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4134
4135 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4136 "ptype" by their typedefs difference.
4137
4138 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4139
4140 * dwarf2expr.c (ctx_no_read_reg): New function.
4141 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4142 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4143 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4144 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4145
4146 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4147
4148 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4149 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4150 file.
4151 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4152 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4153 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4154 (ctx_no_get_base_type): Move the functions here.
4155 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4156 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4157 (ctx_no_get_base_type): New declarations.
4158
4159 2011-07-27 Tom Tromey <tromey@redhat.com>
4160
4161 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4162 entries.
4163 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4164 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4165
4166 2011-07-26 Sterling Augustine <saugustine@google.com>
4167
4168 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4169 ULONGEST.
4170 (dump_bfd_file): Likewise.
4171
4172 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4173
4174 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4175 (remote_hw_watchpoint_length_limit): New variable.
4176 (_initialize_remote) add set,show cmds for this new variable.
4177 * gdb.texinfo: document these new commands.
4178 * NEWS: Mention these new commands.
4179
4180 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4181
4182 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4183 true for software watchpoints.
4184
4185 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4186
4187 GDB 7.3 released.
4188
4189 2011-07-26 Tom Tromey <tromey@redhat.com>
4190
4191 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4192 * dwarf2read.c (read_indirect_string_at_offset): New function.
4193 (read_indirect_string): Use it.
4194 (dwarf_decode_macro_bytes): New function, taken from
4195 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4196 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4197 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4198 New functions.
4199 (struct dwarf2_per_objfile) <macro>: New field.
4200 (dwarf2_elf_names): Add .debug_macro.
4201 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4202 (dwarf2_locate_sections): Handle new section.
4203 (read_file_scope): Handle DW_AT_GNU_macros.
4204 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4205
4206 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4207
4208 * NEWS: Mention dcache configuration.
4209 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4210 (dcache_size, dcache_line_size): New variables.
4211 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4212 (struct dcache_block): Make it expandable.
4213 (struct dcache_struct): New field.
4214 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4215 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4216 (dcache_poke_byte, dcache_print_line): Adjust.
4217 (set_dcache_size, set_dcache_line_size): New functions.
4218 (set_dcache_command, show_dcache_command): New functions.
4219 (_initialize_dcache): Add new commands.
4220
4221 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4222
4223 * progspace.h (struct program_space): Add solib_add_generation.
4224 * infcmd.c (post_create_inferior): Only call solib_add if not
4225 already done.
4226 * solib.c (solib_add): Increment solib_add_generation.
4227
4228 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4229
4230 Fix implicit pointer offsets.
4231 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4232 ptr.OFFSET.
4233
4234 2011-07-25 Tom Tromey <tromey@redhat.com>
4235
4236 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4237 const.
4238 (ada_exception_sal): Make 'ops' const.
4239 (ada_decode_exception_location): Likewise.
4240 (ada_decode_assert_location): Likewise.
4241 (catch_assert_command): Update.
4242 (catch_ada_exception_command): Update.
4243 (create_ada_exception_catchpoint): Make 'ops' const.
4244 * breakpoint.c (set_raw_breakpoint_without_location)
4245 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4246 const.
4247 (create_internal_breakpoint): Update.
4248 (init_raw_breakpoint_without_location): Make 'ops' const.
4249 (init_raw_breakpoint, init_catchpoint)
4250 (create_fork_vfork_event_catchpoint)
4251 (create_syscall_event_catchpoint, init_breakpoint_sal)
4252 (create_breakpoint_sal, create_breakpoints_sal)
4253 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4254 * breakpoint.h (struct breakpoint) <ops>: Now const.
4255 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4256 const.
4257
4258 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4259
4260 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4261
4262 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4263
4264 * breakpoint.h (print_recreate_thread): Declare.
4265 (struct breakpoint): Move step_count, pass_count,
4266 number_on_target, static_trace_marker_id,
4267 static_trace_marker_id_idx ...
4268 (struct tracepoint): ... to this new struct.
4269 (get_tracepoint, get_tracepoint_by_number_on_target)
4270 (get_tracepoint_by_number): Change return type to struct
4271 tracepoint pointer.
4272 * breakpoint.c (is_tracepoint_type): New, factored out from
4273 is_tracepoint.
4274 (is_tracepoint): Adjust.
4275 (print_one_breakpoint_location): Cast to struct tracepoint as
4276 necessary, and adjust.
4277 (print_recreate_catch_fork, print_recreate_catch_vfork)
4278 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4279 print_recreate_thread.
4280 (init_breakpoint_sal): New, factored out from
4281 create_breakpoint_sal.
4282 (create_breakpoint_sal): Reimplement.
4283 (create_breakpoint): Allocate a struct tracecepoint if the caller
4284 wanted a tracepoint. Use init_breakpoint_sal and
4285 install_breakpoint.
4286 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4287 (print_recreate_masked_watchpoint)
4288 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4289 (tracepoint_print_one_detail): Adjust.
4290 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4291 Dump the pass count here.
4292 (update_static_tracepoint): Adjust.
4293 (addr_string_to_sals): Adjust.
4294 (create_tracepoint_from_upload): Adjust. Change return type to
4295 struct tracepoint pointer.
4296 (trace_pass_set_count): Change parameter type to struct tracepoint
4297 pointer, and adjust.
4298 (trace_pass_command): Adjust.
4299 (get_tracepoint, get_tracepoint_by_number_on_target)
4300 (get_tracepoint_by_number): Change return type to struct
4301 tracepoint pointer, and adjust.
4302 (print_recreate_thread): New, factored out from save_breakpoints.
4303 (save_breakpoints): Don't print thread and task and passcount
4304 recreation here.
4305 * remote.c (remote_download_tracepoint): Adjust.
4306 * tracepoint.c (trace_actions_command, validate_actionline)
4307 (start_tracing, tfind_1, trace_find_tracepoint_command)
4308 (trace_dump_command): Adjust.
4309 (find_matching_tracepoint): Change return type to struct
4310 tracepoint pointer, and adjust.
4311 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4312 (tfile_trace_find, tfile_fetch_registers): Adjust.
4313 * tracepoint.h (create_tracepoint_from_upload): Change return type
4314 to struct tracepoint pointer.
4315 * ada-lang.c (print_recreate_exception): Call
4316 print_recreate_thread.
4317 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4318
4319 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4320
4321 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4322 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4323 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4324 watchpoint_thread, watchpoint_triggered ...
4325 (struct watchpoint): ... to this new struct.
4326 (is_watchpoint): Declare.
4327 (install_breakpoint): Add new `internal' parameter.
4328 * breakpoint.c (is_watchpoint): Delete declaration.
4329 (set_breakpoint_condition): Handle watchpoints.
4330 (is_watchpoint): Make public.
4331 (watchpoint_in_thread_scope): Change parameter type to struct
4332 watchpoint.
4333 (watchpoint_del_at_next_stop): Change parameter type to struct
4334 watchpoint. Remove assertion. Adjust.
4335 (update_watchpoint): Ditto.
4336 (insert_breakpoints, breakpoint_init_inferior)
4337 (watchpoints_triggered, watchpoint_check)
4338 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4339 (bpstat_stop_status, print_one_breakpoint_location)
4340 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4341 to struct watchpoint as necessary, and adjust.
4342 (install_breakpoint): Add `internal' argument. If true, don't
4343 mention the new breakpoint. Use set_breakpoint_number.
4344 (create_fork_vfork_event_catchpoint)
4345 (create_syscall_event_catchpoint): Adjust.
4346 (dtor_watchpoint): New.
4347 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4348 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4349 (print_it_watchpoint, print_mention_watchpoint)
4350 (print_recreate_watchpoint, insert_masked_watchpoint)
4351 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4352 (print_one_detail_masked_watchpoint)
4353 (print_mention_masked_watchpoint)
4354 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4355 necessary, and adjust.
4356 (watch_command_1): Allocate and initialize a struct watchpoint
4357 instead of a struct breakpoint. Use install_breakpoint.
4358 (catch_exec_command_1): Adjust.
4359 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4360 fields.
4361 (delete_breakpoint, enable_breakpoint_disp)
4362 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4363 as necessary, and adjust.
4364 (initialize_breakpoint_ops): Install dtor_watchpoint as
4365 watchpoints' dtor method.
4366 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4367 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4368 to struct watchpoint as necessary, and adjust.
4369
4370 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4371
4372 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4373 the the base class ops table.
4374 (catch_exception_breakpoint_ops)
4375 (catch_exception_unhandled_breakpoint_ops)
4376 (catch_assert_breakpoint_ops): Don't statically initialize.
4377 (initialize_ada_catchpoint_ops): New.
4378 (_initialize_ada_language): Call it.
4379 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4380 (bkpt_breakpoint_ops): Forward declare.
4381 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4382 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4383 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4384 (masked_watchpoint_breakpoint_ops)
4385 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4386 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4387 base class ops table.
4388 (null_re_set, null_check_status, null_works_in_software_mode)
4389 (null_resources_needed, null_print_one_detail): Delete.
4390 (bkpt_dtor): Rename to ...
4391 (base_breakpoint_dtor): ... this. Make static.
4392 (bkpt_allocate_location): Rename to ...
4393 (base_breakpoint_allocate_location): ... this. Make static.
4394 (base_breakpoint_re_set): New.
4395 (internal_error_pure_virtual_called): New.
4396 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4397 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4398 (base_breakpoint_works_in_software_mode)
4399 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4400 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4401 (base_breakpoint_print_recreate): New functions.
4402 (base_breakpoint_ops): New global.
4403 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4404 (bkpt_breakpoint_hit): Make static.
4405 (bkpt_check_status): Delete.
4406 (bkpt_resources_needed): Make static.
4407 (bkpt_works_in_software_mode): Delete.
4408 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4409 static.
4410 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4411 (momentary_breakpoint_ops): Don't statically initialize.
4412 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4413 Delete.
4414 (tracepoint_insert_location, tracepoint_remove_location)
4415 (tracepoint_check_status, tracepoint_works_in_software_mode)
4416 (tracepoint_print_it): Delete.
4417 (tracepoint_breakpoint_ops): Don't statically initialize.
4418 (initialize_breakpoint_ops): New.
4419 (_initialize_breakpoint): Call it.
4420 * breakpoint.h (null_re_set, null_works_in_software_mode)
4421 (null_resources_needed, null_check_status, null_print_one_detail):
4422 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4423 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4424 (bkpt_check_status, bkpt_resources_needed)
4425 (bkpt_works_in_software_mode, bkpt_print_it)
4426 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4427 Delete declarations.
4428 (initialize_breakpoint_ops): Declare.
4429
4430 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4431
4432 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4433 (momentary_bkpt_print_it): Simplify.
4434
4435 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4436
4437 Split internal, momentary and user breakpoints breakpoint_ops
4438 tables.
4439
4440 * breakpoint.c (internal_breakpoint_ops)
4441 (momentary_breakpoint_ops): Forward declare.
4442 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4443 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4444 (create_overlay_event_breakpoint)
4445 (create_std_terminate_master_breakpoint)
4446 (create_exception_master_breakpoint): Create breakpoints with
4447 internal_breakpoint_ops vtable.
4448 (set_longjmp_breakpoint): Create momentary breakpoints with
4449 momentary_breakpoint_ops vtable, using
4450 momentary_breakpoint_from_master.
4451 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4452 (create_solib_event_breakpoint): Create breakpoints with
4453 internal_breakpoint_ops vtable.
4454 (set_momentary_breakpoint): Create breakpoints with
4455 momentary_breakpoint_ops vtable.
4456 (momentary_breakpoint_from_master): New, factored out from
4457 clone_momentary_breakpoint.
4458 (clone_momentary_breakpoint): Adjust.
4459 (watch_command_1): Create scope breakpoints with
4460 momentary_breakpoint_ops vtable.
4461 (bkpt_re_set): Remove handling of internal and momentary
4462 breakpoints.
4463 (bkpt_print_mention, bkpt_print_recreate): New.
4464 (bkpt_breakpoint_ops): Adjust.
4465 (internal_bkpt_re_set, internal_bkpt_check_status)
4466 (internal_bkpt_print_it, internal_bkpt_print_mention)
4467 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4468 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4469 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4470 (momentary_bkpt_print_recreate): New.
4471 (momentary_breakpoint_ops): New.
4472
4473 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4474
4475 Implement most breakpoint_ops methods for all breakpoint types,
4476 and move the default handlings to the proper callbacks.
4477
4478 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4479 works_in_software_mode method.
4480 (insert_bp_location): Go through breakpoint_ops->insert_location
4481 for software and hardware watchpoints.
4482 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4483 breakpoint_ops.
4484 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4485 for software and hardware watchpoints.
4486 (print_it_typical): Delete.
4487 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4488 method.
4489 (watchpoint_check): Adjust comment.
4490 (bpstat_check_location): Simply always call the breakpoint's
4491 breakpoint_hit method.
4492 (bpstat_stop_status): Always call the breakpoint's check_status
4493 method. Remove special cases for watchpoints and internal event
4494 breakpoints from here (moved to the check_status implementations).
4495 (print_one_breakpoint_location): Assume b->ops is never NULL.
4496 Remove static tracepoint marker id printing from here (moved to
4497 the print_one_detail callback implementation of tracepoints).
4498 (init_bp_location): Assert OPS is never NULL.
4499 (allocate_bp_location): Always call the breakpoint's
4500 allocate_location method, and remove the default code from here.
4501 (free_bp_location): Always call the location's dtor method, and
4502 remove the default code from here.
4503 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4504 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4505 parameter. Pass it down.
4506 (set_raw_breakpoint): Ditto.
4507 (print_it_catch_fork): Adjust to take a bpstat as argument.
4508 (catch_fork_breakpoint_ops): Install methods.
4509 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4510 (catch_vfork_breakpoint_ops): Install methods.
4511 (dtor_catch_syscall): Call the base dtor.
4512 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4513 (catch_syscall_breakpoint_ops): Install methods.
4514 (dtor_catch_exec): Call the base dtor.
4515 (print_it_catch_exec): Adjust to take a bpstat as argument.
4516 (catch_exec_breakpoint_ops): Install methods.
4517 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4518 the breakpoint's resources_needed method, and remove the default
4519 code from here.
4520 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4521 breakpoint_ops.
4522 (clone_momentary_breakpoint): Clone the original's ops.
4523 (mention): Always call the breakpoint's print_mention method, and
4524 remove the default code from here.
4525 (create_breakpoint_sal): Adjust to pass the ops to
4526 set_raw_breakpoint rather than setting it manually.
4527 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4528 ops to set_raw_breakpoint_without_location rather than setting it
4529 manually.
4530 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4531 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4532 (ranged_breakpoint_ops): Install methods.
4533 (break_range_command): Adjust to pass the ops to
4534 set_raw_breakpoint rather than setting it manually.
4535 (re_set_watchpoint, breakpoint_hit_watchpoint)
4536 (check_status_watchpoint, resources_needed_watchpoint)
4537 (works_in_software_mode_watchpoint, print_it_watchpoint)
4538 (print_mention_watchpoint, print_recreate_watchpoint): New
4539 functions.
4540 (watchpoint_breakpoint_ops): Install new methods.
4541 (print_it_masked_watchpoint): New function.
4542 (masked_watchpoint_breakpoint_ops): Install new methods.
4543 (watch_command_1): Adjust to pass the right breakpoint_ops to
4544 set_raw_breakpoint_without_location rather than setting it
4545 manually later. Record the current pspace.
4546 (print_it_exception_catchpoint): Adjust to take a bpstat as
4547 argument.
4548 (gnu_v3_exception_catchpoint_ops): Install new methods.
4549 (say_where): New function.
4550 (null_re_set, null_check_status, null_works_in_software_mode)
4551 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4552 New functions.
4553 (bp_location_ops): New global.
4554 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4555 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4556 (bkpt_check_status, bkpt_resources_needed)
4557 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4558 (bkpt_print_recreate): New functions.
4559 (bkpt_breakpoint_ops): New global.
4560 (tracepoint_re_set, tracepoint_insert_location)
4561 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4562 (tracepoint_check_status, tracepoint_works_in_software_mode)
4563 (tracepoint_print_it, tracepoint_print_one_detail)
4564 (tracepoint_print_mention, tracepoint_print_recreate): New
4565 functions.
4566 (tracepoint_breakpoint_ops): New global.
4567 (delete_breakpoint): Always call the breakpoint's dtor method, and
4568 remove the default handling from here.
4569 (breakpoint_re_set_default): Make static.
4570 (breakpoint_re_set_one): Always call the breakpoints re_set
4571 method, and remove the default handling from here.
4572 (trace_command, ftrace_command, strace_command)
4573 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4574 to create_breakpoint.
4575 (save_breakpoints): Always call the breakpoint's print_recreate
4576 method, and remove the default handling from here.
4577
4578 * ada-lang.c (dtor_exception): Call the base dtor.
4579 (re_set_exception): Call the base method.
4580 (print_it_exception, print_it_catch_exception): Adjust to take a
4581 bpstat as argument.
4582 (catch_exception_breakpoint_ops): Install methods.
4583 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4584 argument.
4585 (catch_exception_unhandled_breakpoint_ops): Install methods.
4586 (print_it_catch_assert): Adjust to take a bpstat as argument.
4587 (catch_assert_breakpoint_ops): Install methods.
4588
4589 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4590 to take a bpstat as argument.
4591 (enum print_stop_action): Add describing comments to each enum
4592 value.
4593 (breakpoint_re_set_default): Delete declaration.
4594 (null_re_set, null_works_in_software_mode, null_resources_needed)
4595 (null_check_status, null_print_one_detail): Declare.
4596 (bkpt_breakpoint_ops): Declare.
4597 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4598 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4599 (bkpt_check_status, bkpt_resources_needed)
4600 (bkpt_works_in_software_mode, bkpt_print_it)
4601 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4602 Declare.
4603
4604 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4605 bkpt_breakpoint_ops.
4606 * python/py-breakpoint.c (bppy_init): Ditto.
4607
4608 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4609
4610 * MAINTAINERS (Write After Approval): Add myself to the list.
4611
4612 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4613
4614 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4615
4616 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4617
4618 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4619 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4620 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4621 adjust.
4622 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4623 (struct i386_debug_reg_state): New.
4624 (i386_init_dregs): New.
4625 (dr_mirror): New.
4626 (i386_cleanup_dregs): Use i386_init_dregs.
4627 (i386_show_dr): Add state parameter and adjust.
4628 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4629 the inferior here.
4630 (i386_remove_aligned_watchpoint): Likewise.
4631 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4632 (i386_update_inferior_debug_regs): New.
4633 (i386_insert_watchpoint): Work on a local mirror of the debug
4634 registers, and only update the inferior on success.
4635 (i386_remove_watchpoint): Ditto.
4636 (i386_region_ok_for_watchpoint): Adjust.
4637 (i386_stopped_data_address): Adjust.
4638 (i386_insert_hw_breakpoint): Adjust.
4639 (i386_remove_hw_breakpoint): Adjust.
4640
4641 2011-07-22 Tom Tromey <tromey@redhat.com>
4642
4643 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4644 from amd64_pseudo_register_read. Change arguments. Call
4645 mark_value_bytes_unavailable when needed.
4646 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4647 set_gdbarch_pseudo_register_read.
4648 * sentinel-frame.c (sentinel_frame_prev_register): Use
4649 regcache_cooked_read_value.
4650 * regcache.h (regcache_cooked_read_value): Declare.
4651 * regcache.c (regcache_cooked_read_value): New function.
4652 (regcache_cooked_read): Call
4653 gdbarch_pseudo_register_read_value if available.
4654 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4655 (i386_pseudo_register_read): Remove.
4656 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4657 i386_pseudo_register_read. Change arguments. Call
4658 mark_value_bytes_unavailable when needed.
4659 (i386_pseudo_register_read_value): New function.
4660 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4661 not set_gdbarch_pseudo_register_read.
4662 * gdbarch.sh (pseudo_register_read_value): New method.
4663 * gdbarch.c, gdbarch.h: Rebuild.
4664 * findvar.c (value_from_register): Call get_frame_register_value.
4665
4666 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4667
4668 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4669 get_prefix.
4670 (display_gdb_prompt): Likewise.
4671 (change_annotation_level): Likewise.
4672 (push_prompt): Likewise.
4673 (pop_prompt): Likewise.
4674 (handle_stop_sig): Use get_prompt with a level.
4675 * top.c (command_loop): Use get_prompt with a level.
4676 (set_async_annotation_level): Use set_prompt with a level.
4677 (get_prefix): New function.
4678 (set_prefix): Ditto.
4679 (set_suffix): Ditto.
4680 (get_suffix): Ditto.
4681 (get_prompt): Accept a level argument.
4682 (set_prompt): Accept a level argument. Free old prompts. Set
4683 new_async_prompt if level is 0.
4684 (init_main): Use set_prompt with a level. Do not set
4685 new_async_prompt.
4686 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4687 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4688 Modify set_prompt, get_prompt to account for levels.
4689 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4690 level.
4691 * python/python.c (before_prompt_hook): Use set_prompt.
4692
4693 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4694
4695 * defs.h: Add guard against inclusion in gdbserver.
4696 (struct ptid, ptid_t): Move to common/ptid.h.
4697 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4698 xsnprintf, internal_error): Move to common/common-utils.h.
4699 (nomem): Delete.
4700 * gdb_assert.h: Move into common/ sub-directory.
4701 * gdb_locale.h: Ditto.
4702 * gdb_dirent.h: Ditto.
4703 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4704 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4705 Move into common/ptid.h.
4706 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4707 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4708 Change nomem to malloc_failure.
4709 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4710 * utils.c (nomem): Rename to malloc_failure.
4711 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4712 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4713 (gdb_buildargv): Change nomem to malloc_failure.
4714 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4715 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4716 ptid_is_pid): Move into common/ptid.c.
4717 (initialize_infrun): Delete initialization of null_ptid and
4718 minus_one_ptid.
4719 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4720 linux_common_xfer_osdata.
4721 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4722 common/ptid.c and common/buffer.c.
4723 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4724 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4725 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4726 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4727 rules.
4728 * common/gdb_assert.h: New.
4729 * common/gdb_dirent.h: New.
4730 * common/gdb_locale.h: New.
4731 * common/buffer.c: New.
4732 * common/buffer.h: New.
4733 * common/ptid.c: New.
4734 * common/ptid.h: New.
4735 * common/xml-utils.c: New.
4736 * common/xml-utils.h: New.
4737 * common/common-utils.c: New.
4738 * common/common-utils.h: New.
4739 * common/linux-osdata.c: New.
4740 * common/linux-osdata.h: New.
4741 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4742 * config/arm/linux.mh (NATDEPFILES): Ditto.
4743 * config/i386/linux.mh (NATDEPFILES): Ditto.
4744 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4745 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4746 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4747 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4748 * config/mips/linux.mh (NATDEPFILES): Ditto.
4749 * config/pa/linux.mh (NATDEPFILES): Ditto.
4750 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4751 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4752 * config/s390/s390.mh (NATDEPFILES): Ditto.
4753 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4754 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4755 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4756
4757 2011-07-21 Matt Rice <ratmice@gmail.com>
4758
4759 * NEWS: Add info macros and info definitions commands.
4760
4761 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4762
4763 * NEWS: Document Python prompt substitution hook.
4764
4765 2011-07-18 Matt Rice <ratmice@gmail.com>
4766
4767 PR macros/12999
4768 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4769 * macrotab.c (foreach_macro): Ditto.
4770 (foreach_macro_in_scope): Ditto.
4771 * macrocmd.c (print_macro_callback): New function.
4772 (info_macro_command): Move some code to print_macro_definition.
4773 (print_macro_definition): New function.
4774 (print_one_macro): Add new arguments to callback.
4775 (info_definitions_command): New function.
4776 (info_macros_command): Ditto.
4777 (_initialize_macrocmd): Add info macros and info definitions commands.
4778 * symtab.c (add_macro_name): Add new arguments to callback.
4779
4780 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4781 Tom Tromey <tromey@redhat.com>
4782
4783 * top.c (set_prompt): Rewrite to free previous prompt, free
4784 asynch_new_prompt and set both on new prompts.
4785 * event-top.c (display_gdb_prompt): Add prompt substitution
4786 logic.
4787 * python/python.c (before_prompt_hook): New function.
4788
4789 2011-07-20 Matt Rice <ratmice@gmail.com>
4790
4791 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4792 arguments to store_unsigned_integer.
4793
4794 2011-07-20 Tom Tromey <tromey@redhat.com>
4795
4796 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4797 in some declaration-only cases.
4798
4799 2011-07-18 Tom Tromey <tromey@redhat.com>
4800
4801 PR symtab/12984:
4802 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4803 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4804 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4805 <debug_type_section>: New field.
4806 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4807 (load_cu): Use appropriate section.
4808 (create_signatured_type_table_from_index): Add 'section'
4809 argument.
4810 (dwarf2_read_index): Only allow a single .debug_types section.
4811 (dw2_get_file_names): Use appropriate section.
4812 (read_type_comp_unit_head): Add 'section' argument.
4813 (create_debug_types_hash_table): Loop over all .debug_types
4814 sections.
4815 (init_cu_die_reader): Use appropriate section.
4816 (process_psymtab_comp_unit, load_partial_comp_unit)
4817 (load_full_comp_unit, read_die_and_children, find_partial_die)
4818 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4819 (lookup_signatured_type_at_offset): Add 'section' argument.
4820 (read_signatured_type_at_offset): Add 'sect' argument.
4821 (read_signatured_type): Use appropriate section.
4822 (set_die_type, get_die_type_at_offset): Update.
4823 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4824 VEC.
4825 (write_psymtabs_to_index): Don't allow index with more than one
4826 .debug_types section.
4827
4828 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4829
4830 Fix crash if referenced CU is aged out.
4831 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4832 xfree of block.data.
4833 (indirect_pieced_value): New variable back_to, use to for xfree of
4834 baton.data.
4835 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4836 block.data.
4837 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4838 (load_cu): New function from ...
4839 (dw2_do_instantiate_symtab): ... the code here ...
4840 (process_full_comp_unit): ... and here.
4841 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4842 retval.data.
4843
4844 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4845
4846 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4847 type.
4848
4849 2011-07-19 Gary Benson <gbenson@redhat.com>
4850
4851 * infrun.c (struct execution_control_state): New member
4852 stop_func_filled_in.
4853 (clear_stop_func, fill_in_stop_func): New functions.
4854 (handle_inferior_event): Call clear_stop_func rather than
4855 manipulating the execution control state directly.
4856 Call fill_in_stop_func lazily as required rather than
4857 directly calling find_pc_partial_function in all cases.
4858
4859 2011-07-18 Tom Tromey <tromey@redhat.com>
4860
4861 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4862 checking for variable-sized array.
4863
4864 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4865
4866 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4867 of supported languages.
4868 * varobj.c: Add top definitions and basic implementation of the
4869 following callbacks: ada_number_of_children, ada_name_of_variable,
4870 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4871 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4872 (languages): Register Ada-specific callbacks.
4873 (variable_language): Add the Ada case in the language setter switch.
4874
4875 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4876
4877 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4878
4879 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4880
4881 Code cleanup.
4882 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4883 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4884 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4885 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4886 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4887 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4888 (struct dwarf_expr_context_funcs): New, move here methods from ...
4889 (struct dwarf_expr_context): ... here. New fields funcs.
4890 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4891 (dwarf_expr_ctx_funcs): New.
4892 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4893 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4894 (needs_frame_ctx_funcs): New.
4895 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4896
4897 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4898
4899 * MAINTAINERS (Write After Approval): Add myself to the list.
4900
4901 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4902
4903 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4904 that CIE pointer of an FDE really points to a CIE .
4905
4906 2011-07-15 Hui Zhu <teawater@gmail.com>
4907
4908 * remote.c (remote_get_trace_status): Add comments.
4909
4910 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4911
4912 Code cleanup - constify struct lval_funcs.
4913 * dwarf2loc.c (pieced_value_funcs): Make it const.
4914 * infrun.c (siginfo_value_funcs): Likewise.
4915 * opencl-lang.c (opencl_value_funcs): Likewise.
4916 * valops.c (value_assign, value_ind): Make the funcs variable const.
4917 * value.c (struct value): Make location.computed.funcs target const.
4918 Rearrange the comments.
4919 (allocate_computed_value): Make the funcs parameter target const.
4920 (value_computed_funcs): Return the funcs target const.
4921 (value_free, value_copy, set_value_component_location): Make the funcs
4922 variable const.
4923 * value.h (allocate_computed_value): Make the funcs parameter target
4924 const.
4925 (value_computed_funcs): Return the funcs target const.
4926 * windows-tdep.c (tlb_value_funcs): Make it const.
4927
4928 2011-07-14 Hui Zhu <teawater@gmail.com>
4929
4930 * remote.c (remote_get_trace_status): Initialize p.
4931
4932 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4933
4934 Work around kgdb.
4935 * remote.c (remote_get_trace_status): New variable ex. Put
4936 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4937
4938 2011-07-13 Tom Tromey <tromey@redhat.com>
4939
4940 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4941 value_from_contents for final conversion.
4942
4943 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4944
4945 Code cleanup.
4946 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4947 Indent prototypes so they do not get into tags.
4948
4949 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4950
4951 Code cleanup making also optimized out values lazy.
4952 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4953 allocate_optimized_out_value. Twice.
4954 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4955 * findvar.c (read_var_value): Likewise.
4956 * value.c (allocate_optimized_out_value): New function.
4957 * value.h (allocate_optimized_out_value): New declaration.
4958
4959 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4960
4961 Fix occasional crash of CTRL-C during DWARF read in.
4962 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4963
4964 2011-07-11 Tom Tromey <tromey@redhat.com>
4965
4966 * regcache.c (struct regcache_descr): Fix typo.
4967 * i387-tdep.c (i387_supply_xsave): Fix typo.
4968
4969 2011-07-11 Tom Tromey <tromey@redhat.com>
4970
4971 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4972 (read_file_scope, read_type_unit_scope): Use it.
4973
4974 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4975
4976 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4977 `int'.
4978
4979 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4980
4981 PR python/12438
4982 * python/python.c: Set gdbpy_should_print_stack default to off.
4983 (set_python): Deprecate maint set python print-stack to
4984 class_deprecate.
4985 (_initialize_python): Deprecate maint set/show python print-stack.
4986 Add new prefix command, python. Add new setting, print-backtrace.
4987 * NEWS: Document set python print-stack. Document default change.
4988
4989 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4990
4991 * python/py-inferior.c (infpy_dealloc): New function.
4992 (inferior_to_inferior_object): Return a new object, or a
4993 new reference to the existing object.
4994 (find_thread_object): Cleanup references to inferior.
4995 (delete_thread_object): Ditto.
4996 * python/py-infthread.c (create_thread_object): Do not increment
4997 inferior reference count.
4998
4999 2011-07-08 Tom Tromey <tromey@redhat.com>
5000
5001 * dwarf2loc.c (locexpr_regname): New function.
5002 (locexpr_describe_location_piece): Use it.
5003 (disassemble_dwarf_expression): Add per_cu argument. Use
5004 locexpr_regname.
5005 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5006 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5007 New cases.
5008 (locexpr_describe_location_1): Add per_cu argument.
5009 (locexpr_describe_location): Update.
5010 (loclist_describe_location): Update.
5011
5012 2011-07-08 Tom Tromey <tromey@redhat.com>
5013
5014 * dwarf2expr.c (execute_stack_op): Add QUIT.
5015
5016 2011-07-07 Hui Zhu <teawater@gmail.com>
5017
5018 Revert:
5019 2011-07-06 Hui Zhu <teawater@gmail.com>
5020 * remote.c (remote_start_remote): Add TRY_CATCH for
5021 remote_get_trace_status.
5022 * tracepoint.c (disconnect_tracing): Ditto.
5023
5024 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
5025
5026 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5027 variables as signed, not unsigned.
5028
5029 2011-07-06 Joel Brobecker <brobecker@adacore.com>
5030
5031 * jit.c (jit_inferior_init): Reformat forward declaration.
5032
5033 2011-07-06 Matt Rice <ratmice@gmail.com>
5034
5035 * MAINTAINERS (Write After Approval): Add myself to the list.
5036
5037 2011-07-06 Hui Zhu <teawater@gmail.com>
5038
5039 * remote.c (remote_start_remote): Add TRY_CATCH for
5040 remote_get_trace_status.
5041 * tracepoint.c (disconnect_tracing): Ditto.
5042
5043 2011-07-05 Tom Tromey <tromey@redhat.com>
5044
5045 * symtab.c (operator_chars): Now static.
5046 * linespec.c (operator_chars): Don't declare.
5047
5048 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5049
5050 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5051
5052 2011-07-05 Tom Tromey <tromey@redhat.com>
5053
5054 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5055 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5056 (TYPE_CPLUS_REALLY_JAVA): New macro.
5057 * dwarf2read.c (process_structure_scope): Set
5058 TYPE_CPLUS_REALLY_JAVA.
5059
5060 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5061
5062 * ada-lang.c: Fix typos.
5063 * amd64-tdep.c: Likewise.
5064 * breakpoint.c: Likewise.
5065 * cli/cli-decode.c: Likewise.
5066 * findcmd.c: Likewise.
5067 * inline-frame.c: Likewise.
5068 * mi/mi-main.c: Likewise.
5069 * minsyms.c: Likewise.
5070 * monitor.c: Likewise.
5071 * monitor.h: Likewise.
5072 * prologue-value.c: Likewise.
5073 * reverse.c: Likewise.
5074 * s390-tdep.c: Likewise.
5075
5076 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5077
5078 * jit.c (jit_inferior_init): Forward declare.
5079 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5080
5081 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5082
5083 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5084
5085 2011-07-04 Tristan Gingold <gingold@adacore.com>
5086
5087 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5088 (tcb_fieldno): Add activation_link field.
5089 (get_known_tasks_addr): Moved and rewritten.
5090 (get_tcb_types_info): Set activation_link field.
5091 (read_known_tasks_array): Add parameter. Rewritten.
5092 (read_known_tasks_list): New function.
5093 (read_known_tasks): New function.
5094 (ada_build_task_list): Call read_known_tasks instead of
5095 read_known_tasks_array.
5096 * ravenscar-thread.c: Add first_task_name constant.
5097 (has_ravenscar_runtime): Check for task list too.
5098
5099 2011-07-04 Tristan Gingold <gingold@adacore.com>
5100
5101 * ada-tasks.c: Renames fieldno to actb_fieldno.
5102 (ada_get_task_number): Indentation.
5103 (get_tcb_types_info): Remove all parameters. Write directly
5104 the globals.
5105 (ptid_from_atcb_common): Adjust.
5106 (read_atcb): Adjust.
5107
5108 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5109
5110 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5111
5112 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5113
5114 * ui-out.c (ui_out_field_core_addr): Mention that the function
5115 description is in the header file.
5116 * ui-out.h (ui_out_field_core_addr): Document function.
5117
5118 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5119
5120 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5121 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5122
5123 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5124
5125 * symtab.c (expand_line_sal): Remove empty line.
5126
5127 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
5128
5129 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5130 same way as ELFOSABI_NONE.
5131 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5132
5133 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5134
5135 * breakpoint.c: Fix typos in comments.
5136 * linespec.c: Likewise.
5137 * symtab.c: Likewise.
5138
5139 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5140
5141 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5142 section in separate object files.
5143
5144 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5145
5146 Fix false GCC warning.
5147 * linespec.c (decode_line_1): Initialize values.
5148
5149 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5150
5151 * linespec.c (find_method): Accept the function type automatically only
5152 if it was specified with parameter types.
5153
5154 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5155
5156 Stop on first linespec terminator instead of eating what we can.
5157 * linespec.c (is_linespec_boundary): New function.
5158 (name_end): Remove function.
5159 (keep_name_info): New parameter on_boundary, replace the body.
5160 (decode_line_1): Provide the parameter to keep_name_info.
5161 (decode_compound): Likewise. Drop the trailing java return type
5162 handling. Twice.
5163
5164 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5165
5166 Fall back linespec to minimal symbols.
5167 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5168 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5169 (find_method, symbol_found): Change error to cplusplus_error.
5170
5171 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5172
5173 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5174
5175 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5176 Tom Tromey <tromey@redhat.com>
5177
5178 * dwarf2read.c (check_physname): New variable.
5179 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5180 (show_check_physname): New function.
5181 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5182
5183 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5184
5185 * machoread.c (macho_symfile_read): Delete OBE comment.
5186
5187 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5188
5189 * machoread.c (struct macho_oso_data): Delete.
5190 (current_oso): Delete.
5191 (macho_relocate_common_syms): New function, mostly extracted
5192 out of
5193 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5194 Remove code that sets and unset current_oso.
5195 (macho_symfile_relocate): Delete handling of common symbols,
5196 now moved to macho_relocate_common_syms.
5197
5198 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5199
5200 * darwin-nat.c (darwin_ptrace): Add documentation.
5201 Set errno to zero before calling ptrace. If ptrace returns
5202 -1 and errno is zero, then change then return zero.
5203 (darwin_kill_inferior): Issue a warning instead of triggering
5204 a failed assertion when the PT_KILL ptrace operations returned
5205 nonzero.
5206
5207 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5208
5209 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5210 only when inf->private->no_ptrace.
5211
5212 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5213
5214 * ada-lang.c (print_it_exception): Print temporary catchpoints
5215 as "Temporary catchpoint".
5216 (print_mention_exception): Likewise.
5217
5218 2011-07-01 Tom Tromey <tromey@redhat.com>
5219
5220 * jv-lang.c (java_language_defn): Use java_printchar,
5221 java_printstr.
5222 (java_get_encoding): New function.
5223 (java_emit_char): Use generic_emit_char.
5224 (java_printchar): New function.
5225 (java_printstr): Likewise.
5226
5227 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5228
5229 * ada-typeprint.c (print_record_type): If unable to decode
5230 the name of the parent type, use the encoded name.
5231
5232 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5233
5234 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5235 pointer to constrained packed array type output.
5236 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5237 packed array output.
5238
5239 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5240
5241 * ada-typeprint.c (print_array_type): removed if condition on show
5242 being negative for bounds printing.
5243
5244 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5245
5246 * ada-lang.c (ada_identical_enum_types_p): New function.
5247 (symbols_are_identical_enums): New function.
5248 (remove_extra_symbols): Do nothing if NSYMS < 2.
5249 Use symbols_are_identical_enums.
5250
5251 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5252
5253 * ada-valprint.c (ada_value_print): Handle typedefs.
5254
5255 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5256
5257 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5258
5259 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5260
5261 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5262 (decode_constrained_packed_array): Likewise.
5263 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5264
5265 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5266
5267 * ada-exp.y (convert_char_literal): Handle typedef types.
5268
5269 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5270
5271 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5272
5273 2011-06-30 Tom Tromey <tromey@redhat.com>
5274
5275 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5276 * valops.c (find_overload_match): Call do_cleanups on early exit
5277 path.
5278 * solib.c (solib_find): Call do_cleanups on early exit path.
5279
5280 2011-06-30 Tom Tromey <tromey@redhat.com>
5281
5282 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5283 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5284 return paths. Defer final do_cleanups until last return.
5285 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5286 early return.
5287
5288 2011-06-30 Tom Tromey <tromey@redhat.com>
5289
5290 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5291
5292 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5293
5294 * MAINTAINERS (Write After Approval): Add myself to the list.
5295
5296 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5297
5298 Disable epilogue unwinders on recent GCCs.
5299 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5300 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5301 * dwarf2read.c (process_full_comp_unit): Initialize
5302 EPILOGUE_UNWIND_VALID.
5303 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5304 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5305 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5306
5307 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5308
5309 Code cleanup - reformatting.
5310 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5311 (producer_is_gcc_ge_4): ... here, change the return value.
5312 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5313 interpretation.
5314
5315 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5316
5317 Fix non-only rename list for Fortran modules import.
5318 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5319 cp_add_using_directive caller.
5320 (cp_add_using_directive): New parameter excludes, describe it. New
5321 variables ix and param. Compare if also excludes match. Allocate NEW
5322 with variable size, initialize EXCLUDES there.
5323 (cp_lookup_symbol_imports): New variable excludep, test
5324 current->EXCLUDES with it.
5325 * cp-support.h: Include vec.h.
5326 (struct using_direct): New field excludes, describe it.
5327 (DEF_VEC_P (const_char_ptr)): New.
5328 (cp_add_using_directive): New parameter excludes.
5329 * defs.h (const_char_ptr): New typedef.
5330 * dwarf2read.c (read_import_statement): New variables child_die,
5331 excludes and cleanups, read in excludes.
5332 (read_namespace): Adjust the cp_add_using_directive caller.
5333
5334 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5335
5336 Code cleanup.
5337 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5338 negative comparisons.
5339
5340 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5341
5342 * mi/mi-main.c (mi_cmd_list_features): Emit
5343 breakpoint-notifications.
5344
5345 2011-06-29 Tom Tromey <tromey@redhat.com>
5346
5347 PR fortran/10036:
5348 * valprint.h (generic_emit_char, generic_printstr): Declare.
5349 * valprint.c (wchar_printable, append_string_as_wide)
5350 (print_wchar): Move from c-lang.c.
5351 (generic_emit_char): New function; mostly taken from c_emit_char.
5352 (generic_printstr): New function; mostly taken from c_printstr.
5353 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5354 represented as arrays.
5355 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5356 type.
5357 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5358 identically to TYPE_CODE_INT.
5359 * f-lang.c (f_get_encoding): New function.
5360 (f_emit_char): Use generic_emit_char.
5361 (f_printchar): Replace comment.
5362 (f_printstr): Use generic_printstr.
5363 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5364 "character" types specially.
5365 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5366 for Fortran.
5367 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5368 Move to valprint.c
5369 (c_emit_char): Call generic_emit_char.
5370 (c_printstr): Call generic_printstr.
5371
5372 2011-06-29 Gary Benson <gbenson@redhat.com>
5373
5374 * breakpoint.c (bpstat_what): Removed duplicated case.
5375
5376 2011-06-28 Tom Tromey <tromey@redhat.com>
5377
5378 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5379
5380 2011-06-27 Tom Tromey <tromey@redhat.com>
5381
5382 * valops.c (find_overload_match): Call do_cleanups before early
5383 return.
5384 * top.c (execute_command): Call do_cleanups before early return.
5385 (command_loop): Likewise.
5386 * stack.c (backtrace_command): Make a null cleanup early. Don't
5387 conditionally call do_cleanups.
5388 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5389 TRY_CATCH.
5390 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5391 so cleanups are always run.
5392 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5393 * findcmd.c (parse_find_args): Call do_cleanups on early return
5394 path.
5395 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5396 Don't conditionally call do_cleanups.
5397 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5398 later.
5399
5400 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5401
5402 * MAINTAINERS (Write After Approval): Use default email address.
5403
5404 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5405
5406 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5407
5408 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5409
5410 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5411 saved_regs_mask and copied_regs_mask fields.
5412 (sparc_record_save_insn): New prototype.
5413 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5414 (sparc_record_save_insn): New function.
5415 (sparc_analyze_prologue): Add head comment. Recognize store insns
5416 of call-saved registers. Use OFFSET consistently. Recognize flat
5417 frames and cache their settings.
5418 (sparc32_skip_prologue): Handle flat frames.
5419 (sparc_frame_cache): Add frame_offset to the base address.
5420 (sparc32_frame_cache): Adjust to new frame description.
5421 (sparc32_frame_prev_register): Likewise.
5422 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5423 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5424 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5425 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5426 frame by calling sparc_record_save_insn.
5427 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5428 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5429 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5430
5431 2011-06-27 Tristan Gingold <gingold@adacore.com>
5432
5433 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5434 field by map_addr and map_len.
5435 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5436 (munmap_section_buffer): Likewise.
5437
5438 2011-06-24 Tom Tromey <tromey@redhat.com>
5439
5440 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5441 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5442 * python/python.c (gdbpy_parameter): Make 'arg' const.
5443 (execute_gdb_command): Likewise.
5444 (gdbpy_decode_line): Likewise. Copy it.
5445 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5446 (gdbpy_write): Make 'arg' const.
5447 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5448 const.
5449 (gdbpy_lookup_type): Likewise.
5450 * python/py-prettyprint.c (print_children): Make 'name' const.
5451 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5452 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5453 Py_ssize_t.
5454 * python/py-function.c (fnpy_init): Make 'name' const.
5455 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5456 (gdbpy_string_to_argv): Make 'input' const.
5457 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5458 it.
5459 * gdbtypes.h (lookup_typename): Update.
5460 * gdbtypes.c (lookup_typename): Make 'name' const.
5461 (lookup_struct): Likewise.
5462 (lookup_union): Likewise.
5463 (lookup_enum): Likewise.
5464
5465 2011-06-24 Tom Tromey <tromey@redhat.com>
5466
5467 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5468 gdb_thread_db.h. Move all common/ entries to be together.
5469 (TAGS): Don't depend on DEPFILES.
5470
5471 2011-06-23 Yao Qi <yao@codesourcery.com>
5472
5473 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5474 * remote.c (remote_start_remote): ... here.
5475 * monitor.c (monitor_open): ... here.
5476
5477 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5478
5479 * gdbtypes.c (append_composite_type_field_aligned): Fix
5480 calculation of bit position based on alignment.
5481
5482 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5483
5484 * breakpoint.c (bpstat_stop_status): Call the check_status
5485 breakpoint_ops method.
5486 (print_one_breakpoint_location): Also print the condition for Ada
5487 exception catchpoints.
5488 (allocate_bp_location): New, factored out from
5489 allocate_bp_location.
5490 (allocate_bp_location): Adjust. Call the owner breakpoint's
5491 allocate_location method, if there is one.
5492 (free_bp_location): Call the locations's dtor method, if there is
5493 one.
5494 (init_raw_breakpoint_without_location): New breakpoint_ops
5495 parameter. Use it.
5496 (set_raw_breakpoint_without_location): Adjust.
5497 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5498 (set_raw_breakpoint): Adjust.
5499 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5500 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5501 re_set and check_status methods.
5502 (init_catchpoint): Don't memset, initialize thread, addr_string
5503 and enable_state. Pass the ops down to init_raw_breakpoint.
5504 (install_catchpoint): Rename to ...
5505 (install_breakpoint): ... this, and make extern.
5506 (create_fork_vfork_event_catchpoint): Adjust.
5507 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5508 re_set and check_status methods.
5509 (create_syscall_event_catchpoint): Adjust.
5510 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5511 (masked_watchpoint_breakpoint_ops): Install NULL
5512 allocate_location, re_set and check_status methods.
5513 (catch_exec_command_1): Adjust.
5514 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5515 re_set and check_status methods.
5516 (create_ada_exception_breakpoint): Rename to ...
5517 (init_ada_exception_breakpoint): ... this. Add a struct
5518 breakpoint parameter, and delete the exp_string, cond_string and
5519 cond parameters. Use init_raw_breakpoint, and don't install or
5520 mention the breakpoint yet. Don't clear breakpoint fields that
5521 init_raw_breakpoint already clears.
5522 (re_set_breakpoint): Delete, split into ...
5523 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5524 functions.
5525 (breakpoint_re_set_one): Call the breakpoint's
5526 breakpoint_ops->re_set implementation, if there's one. Adjust.
5527 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5528 (struct bp_location_ops): New type.
5529 (struct bp_location): New field `ops'.
5530 (struct breakpoint_ops): New `allocate_location', `re_set' and
5531 `check_status' fields. Make `breakpoint_hit''s description match
5532 reality.
5533 (init_bp_location): Declare.
5534 (breakpoint_re_set_default): Declare.
5535 (create_ada_exception_breakpoint): Rename to ...
5536 (init_ada_exception_breakpoint): ... this. Add a struct
5537 breakpoint parameter, and delete the exp_string, cond_string and
5538 cond parameters.
5539 (install_breakpoint): Declare.
5540 * ada-lang.c: Include exceptions.h.
5541 <Ada exceptions description>: Update.
5542 (struct ada_catchpoint_location): New type.
5543 (ada_catchpoint_location_dtor): New function.
5544 (ada_catchpoint_location_ops): New global.
5545 (ada_catchpoint): New type.
5546 (create_excep_cond_exprs): New function.
5547 (dtor_exception, allocate_location_exception, re_set_exception)
5548 (should_stop_exception, check_status_exception): New functions.
5549 (print_one_exception, print_mention_exception)
5550 (print_recreate_exception): Adjust.
5551 (dtor_catch_exception, allocate_location_catch_exception)
5552 (re_set_catch_exception, check_status_catch_exception): New
5553 functions.
5554 (catch_exception_breakpoint_ops): Install them.
5555 (dtor_catch_exception_unhandled)
5556 (allocate_location_catch_exception_unhandled)
5557 (re_set_catch_exception_unhandled)
5558 (check_status_catch_exception_unhandled): New functions.
5559 (catch_exception_unhandled_breakpoint_ops): Install them.
5560 (dtor_catch_assert, allocate_location_catch_assert)
5561 (re_set_catch_assert, check_status_catch_assert): New functions.
5562 (catch_assert_breakpoint_ops): Install them.
5563 (ada_exception_catchpoint_p): Delete.
5564 (catch_ada_exception_command_split)
5565 (ada_exception_catchpoint_cond_string): Rename exp_string
5566 parameter to excep_string. Adjust.
5567 (ada_parse_catchpoint_condition): Delete.
5568 (ada_exception_sal): Rename the exp_string parameter to
5569 excep_string. Delete the cond_string and cond parameters.
5570 Adjust.
5571 (ada_decode_exception_location): Rename the exp_string parameter
5572 to excep_string. Delete the cond_string and cond parameters.
5573 Adjust.
5574 (create_ada_exception_catchpoint): New function.
5575 (catch_ada_exception_command, ada_decode_assert_location)
5576 (catch_assert_command): Adjust.
5577 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5578
5579 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5580
5581 * ada-lang.c: Include arch-utils.h.
5582 (ada_decode_exception_location): Make static.
5583 (catch_ada_exception_command): Moved here from breakpoint.c.
5584 (ada_decode_assert_location): Make static.
5585 (catch_assert_command): Moved here from breakpoint.c.
5586 (_initialize_ada_lang): Install the exception and assert
5587 catchpoint commands here.
5588 * ada-lang.h (ada_decode_exception_location)
5589 (ada_decode_assert_location): Delete declarations.
5590 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5591 breakpoint.h.
5592 (create_ada_exception_breakpoint): Make extern.
5593 (catch_ada_exception_command, catch_assert_command): Moved to
5594 ada-lang.c.
5595 (add_catch_command): Make extern.
5596 (_initilize_breakpoint): Don't install the exception and assert
5597 catchpoint commands here.
5598 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5599 breakpoint.c
5600 (add_catch_command, create_ada_exception_breakpoint): Declare.
5601
5602 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5603
5604 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5605 the breakpoint to the breakpoint chain here.
5606 (set_raw_breakpoint_without_location): Add the breakpoint to the
5607 breakpoint chain here.
5608 (init_raw_breakpoint): Adjust comments.
5609 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5610 here.
5611 (init_catchpoint): Don't set the catchpoint's breakpoint number
5612 here.
5613 (install_catchpoint): New function.
5614 (create_fork_vfork_event_catchpoint)
5615 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5616 use install_catchpoint.
5617
5618 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5619
5620 * breakpoint.c (create_catchpoint_without_mention)
5621 (create_catchpoint): Delete.
5622
5623 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5624
5625 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5626 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5627 reference to exec_pathname.
5628 (struct exec_catchpoint): New type.
5629 (dtor_catch_exec): New function.
5630 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5631 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5632 (catch_exec_command_1): Adjust to use init_catchpoint.
5633 (delete_breakpoint): Remove reference to exec_pathname.
5634
5635 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5636
5637 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5638 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5639 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5640 reference to syscalls_to_be_caught.
5641 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5642 NULL `dtor'.
5643 (struct syscall_catchpoint): New type.
5644 (dtor_catch_syscall): New function.
5645 (insert_catch_syscall, remove_catch_syscall)
5646 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5647 (print_recreate_catch_syscall): Adjust.
5648 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5649 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5650 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5651 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5652 (masked_watchpoint_breakpoint_ops)
5653 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5654 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5655 there is one. Remove references to syscalls_to_be_caught.
5656 (catching_syscall_number): Adjust.
5657 * ada-lang.c (catch_exception_breakpoint_ops)
5658 (catch_exception_unhandled_breakpoint_ops)
5659 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5660
5661 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5662
5663 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5664 field.
5665 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5666 reference to forked_inferior_pid.
5667 (struct fork_catchpoint): New type.
5668 (breakpoint_hit_catch_fork, print_it_catch_fork)
5669 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5670 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5671 (create_fork_vfork_event_catchpoint): Adjust to use
5672 init_catchpoint.
5673
5674 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5675
5676 * breakpoint.c (add_to_breakpoint_chain)
5677 (init_raw_breakpoint_without_location): New functions, factored
5678 out from ...
5679 (set_raw_breakpoint_without_location): ... this one.
5680 (init_raw_breakpoint): New function, factored out from
5681 set_raw_breakpoint and adjusted to use
5682 init_raw_breakpoint_without_location.
5683 (set_raw_breakpoint): Adjust.
5684 (init_catchpoint): New function, factored out from
5685 create_catchpoint_without_mention and adjusted to use
5686 init_raw_breakpoint.
5687 (create_catchpoint_without_mention): Adjust.
5688
5689 2011-06-22 Tom Tromey <tromey@redhat.com>
5690
5691 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5692 argument of 0 specially.
5693
5694 2011-06-22 Yao Qi <yao@codesourcery.com>
5695
5696 * infrun.c (handle_inferior_event): Remove write-only local variable
5697 `sw_single_step_trap_p'.
5698
5699 2011-06-20 Tom Tromey <tromey@redhat.com>
5700
5701 * symtab.c (lookup_language_this): End loop if block is NULL.
5702
5703 2011-06-17 Tom Tromey <tromey@redhat.com>
5704
5705 * valops.c (value_of_this): Use lookup_language_this.
5706 * symtab.h (lookup_language_this): Declare.
5707 * symtab.c (lookup_language_this): New function.
5708 (lookup_symbol_aux): Use lookup_language_this.
5709 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5710
5711 2011-06-17 Tom Tromey <tromey@redhat.com>
5712
5713 * value.h (value_of_this): Update.
5714 (value_of_local): Remove.
5715 * valops.c (value_of_this): Rename from value_of_local. Change
5716 parameters.
5717 * p-exp.y (exp): Update.
5718 (variable): Likewise.
5719 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5720
5721 2011-06-17 Tom Tromey <tromey@redhat.com>
5722
5723 * valops.c (value_of_local): Complain if NAME is NULL.
5724 * std-operator.def (OP_OBJC_SELF): Remove.
5725 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5726 * objc-exp.y (name_not_typename): Use OP_THIS.
5727 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5728 name for "this".
5729 <OP_OBJC_SELF>: Remove.
5730 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5731
5732 2011-06-16 Tristan Gingold <gingold@adacore.com>
5733
5734 * python/py-events.h (gdb_py_events): Make it extern.
5735 * python/py-evtregistry.c (gdb_py_events): Declare.
5736
5737 2011-06-16 Hui Zhu <teawater@gmail.com>
5738
5739 * remote.c (remote_trace_set_readonly_regions): Add check for
5740 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5741 output warning.
5742
5743 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5744
5745 * arm-linux-tdep.c: Include "auxv.h".
5746 (AT_HWCAP): Define.
5747 (ARM_LINUX_SIZEOF_VFP): Define.
5748 (arm_linux_supply_vfp): New function.
5749 (arm_linux_collect_vfp): Likewise.
5750 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5751 (arm_linux_fpa_regset_sections): New variable.
5752 (arm_linux_vfp_regset_sections): Likewise.
5753 (arm_linux_core_read_description): New function.
5754 (arm_linux_init_abi): Install arm_linux_core_read_description and
5755 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5756 appropriate for the architecture.
5757 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5758 (tdesc_arm_with_m): Declare.
5759 (tdesc_arm_with_iwmmxt): Likewise.
5760 (tdesc_arm_with_vfpv2): Likewise.
5761 (tdesc_arm_with_vfpv3): Likewise.
5762 (tdesc_arm_with_neon): Likewise.
5763 * arm-linux-nat.c: Move features/*.c includes ...
5764 * arm-tdep.c: ... here.
5765 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5766 target description data structures ...
5767 * arm-tdep.c (_initialize_arm_tdep): ... here.
5768 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5769 HWCAP_VFPv3D16): Move definitions ...
5770 * arm-linux-tdep.h: ... here.
5771
5772 2011-06-15 Hui Zhu <teawater@gmail.com>
5773
5774 * remote.c (remote_trace_set_readonly_regions): Add a check for
5775 target_buf_size.
5776
5777 2011-06-14 Tom Tromey <tromey@redhat.com>
5778
5779 * coffread.c (coffread_objfile): Rename from current_objfile.
5780 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5781 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5782
5783 2011-06-14 Tom Tromey <tromey@redhat.com>
5784
5785 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5786 (class_symtab): Remove.
5787 (jv_dynamics_progspace_key): New global.
5788 (jv_per_objfile_free): Reset program space data. Update assert.
5789 Don't clear globals.
5790 (get_dynamics_objfile): Use and set program space data.
5791 (get_java_class_symtab): Use get_dynamics_objfile.
5792 (add_class_symbol): Likewise.
5793 (java_link_class_type): Likewise.
5794 (java_object_type, jv_clear_object_type, set_java_object_type):
5795 Remove.
5796 (get_java_object_type): Update. Don't cache result.
5797 (is_object_type): Don't call set_java_object_type.
5798 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5799 initialize jv_dynamics_progspace_key.
5800
5801 2011-06-14 Tom Tromey <tromey@redhat.com>
5802
5803 * symtab.h (current_objfile): Don't declare.
5804 * objfiles.h (current_objfile): Don't declare.
5805 * objfiles.c (current_objfile): Remove.
5806 * mdebugread.c (current_objfile): New file-scope global.
5807 * dbxread.c (current_objfile): New file-scope global.
5808 * coffread.c (current_objfile): New file-scope global.
5809
5810 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5811
5812 * top.h (line): Rename to ...
5813 (saved_command_line): ... this.
5814 (linesize): Rename to ...
5815 (saved_command_line_size): ... this.
5816 * top.c (line): Rename to ...
5817 (saved_command_line): ... this.
5818 (linesize): Rename to ...
5819 (saved_command_line_size): ... this.
5820 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5821 * event-top.c (command_line_handler): Adjust.
5822 * main.c (captured_main): Adjust.
5823
5824 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5825
5826 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5827 get_frame_func instead of get_frame_pc to determine the code
5828 address used to construct the frame ID.
5829 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5830 (i386_epilogue_frame_this_id): Likewise.
5831 (i386_epilogue_frame_prev_register): New function.
5832 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5833 (i386_stack_tramp_frame_sniffer): Fix coding style.
5834 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5835 (i386_gdbarch_init): Fix comments.
5836
5837 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5838
5839 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5840 instruction when walking back through the instruction stream.
5841
5842 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5843
5844 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5845 fullname parameters order.
5846
5847 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5848
5849 Code cleanup.
5850 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5851 for fun.
5852 * psymtab.c (map_symbol_filenames_psymtab)
5853 (map_partial_symbol_filenames): Likewise.
5854 * psymtab.h: Include symfile.h.
5855 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5856 * symfile.h (symbol_filename_ftype): New.
5857 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5858 map_symbol_filenames, clarify more the naming in comment.
5859
5860 2011-06-07 Doug Evans <dje@google.com>
5861
5862 * cc-with-index.sh: Fix typos in comment.
5863 Look for ../../gdb, for fullname.exp.
5864
5865 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5866 Pedro Alves <pedro@codesourcery.com>
5867
5868 * cli/cli-cmds.c (shell_escape): Use waitpid.
5869 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5870
5871 2011-06-07 Tristan Gingold <gingold@adacore.com>
5872
5873 * xcoffread.c (dwarf2_xcoff_names): New variable.
5874 (aix_process_linenos): Add a guard.
5875 (xcoff_symfile_finish): Free dwarf2.
5876 (xcoff_initial_scan): Add dwarf2 support.
5877
5878 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5879
5880 * infcall.c (run_inferior_call): Don't mask async. Instead force
5881 a synchronous wait, if the target can async.
5882
5883 * target.h (struct target_ops): Delete to_async_mask.
5884 (target_async_mask): Delete.
5885 * target.c (update_current_target): Delete references to to_async_mask.
5886 * linux-nat.c (linux_nat_async_mask_value): Delete.
5887 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5888 to linux_nat_async_mask_value.
5889 (linux_nat_async_mask): Delete.
5890 (linux_nat_async, linux_nat_close): Remove references to
5891 linux_nat_async_mask_value.
5892 * record.c (record_async_mask_value): Delete.
5893 (record_async): Remove references to record_async_mask_value.
5894 (record_async_mask): Delete.
5895 (record_can_async_p, record_is_async_p): Remove references to
5896 record_async_mask_value.
5897 (init_record_ops, init_record_core_ops): Remove references to
5898 record_async_mask.
5899 * remote.c (remote_async_mask_value): Delete.
5900 (init_remote_ops): Remove reference to remote_async_mask.
5901 (remote_can_async_p, remote_is_async_p): Remove references to
5902 remote_async_mask_value.
5903 (remote_async): Remove references to remote_async_mask_value.
5904 (remote_async_mask): Delete.
5905
5906 * infrun.c (fetch_inferior_event): Don't claim registers changed
5907 if the current thread is already not executing.
5908
5909 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5910
5911 From Stephen Kitt <steve@sk2.org>
5912 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5913 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5914
5915 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5916
5917 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5918 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5919
5920 2011-06-03 Tom Tromey <tromey@redhat.com>
5921
5922 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5923 code fields.
5924 * python/py-exitedevent.c (create_exited_event_object): Change
5925 type of 'exit_code'. Optionally add exit_code attribute.
5926 (emit_exited_event): Change type of 'exit_code'.
5927 * python/py-event.h (emit_exited_event): Update.
5928 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5929 * infrun.c (handle_inferior_event): Set exit code fields on
5930 inferior.
5931 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5932 fields.
5933 * inferior.c (exit_inferior_1): Initialize new fields.
5934
5935 2011-06-03 Tom Tromey <tromey@redhat.com>
5936
5937 * dwarf2expr.c (get_signed_type): New function.
5938 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5939
5940 2011-06-02 Keith Seitz <keiths@redhat.com>
5941
5942 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5943
5944 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5945
5946 * top.h (simplified_command_loop): Delete declaration.
5947
5948 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5949
5950 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5951 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5952
5953 2011-06-01 Yao Qi <yao@codesourcery.com>
5954
5955 * objfiles.h (obj_section_addr): Update reference to objfile from
5956 `abfd' to `obfd'.
5957 (obj_section_endaddr): Likewise.
5958
5959 2011-06-01 Daniel Jacobowitz <drow@false.org>
5960
5961 * MAINTAINERS: Update my email address and affiliation. Also
5962 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5963
5964 2010-05-31 Keith Seitz <keiths@redhat.com>
5965
5966 PR c++/12750
5967 * linespec.c (get_search_block): New function.
5968 (find_methods): Add FILE_SYMTATB parameter and use it and
5969 get_search_block to pass an appropriate block to
5970 lookup_symbol_in_namespace.
5971 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5972 Check if *ARGPTR starts with a filename first.
5973 If it does, call locate_first_half again to locate the next
5974 "first half" of the linespec.
5975 Pass FILE_SYMTATB to decode_objc and decode_compound.
5976 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5977 (locate_first_half): Stop on the first colon seen.
5978 (decode_compound): Add FILE_SYMTAB parameter.
5979 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5980 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5981 get_search_block with lookup_symbol.
5982 (find_method): Add FILE_SYMTAB parameter and pass it to
5983 find_methods.
5984 (decode_objc): Use get_search_block.
5985
5986 2010-05-31 Keith Seitz <keiths@redhat.com>
5987
5988 PR symtab/12704
5989 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5990 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5991 and CP_ANONYMOUS_NAMESPACE_LEN.
5992 (cp_is_anonymous): Likewise.
5993 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5994 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5995 * dwarf2read.c (namespace_name): Likewise.
5996 (fixup_partial_die): Likewise.
5997 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5998 seen in the input, keep it.
5999
6000 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6001
6002 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6003 * inf-loop.h (inferior_event_handler_wrapper): Delete.
6004 * inf-loop.c (inferior_event_handler_wrapper): Delete.
6005 (inferior_event_handler): Don't handle INF_QUIT_REQ.
6006 * remote.c (_initialize_remote): Register
6007 async_remote_interrupt_twice directly as
6008 sigint_remote_twice_token event.
6009
6010 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6011
6012 * target.h (enum inferior_event_type): Delete INF_ERROR.
6013 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6014
6015 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6016
6017 * interps.c (interp_set): Don't cancel continuations.
6018
6019 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6020
6021 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6022
6023 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6024
6025 * continuations.h (continuation_ftype): Add `err' parameter.
6026 Document parameters.
6027 (do_all_continuations, do_all_continuations_thread)
6028 (do_all_intermediate_continuations)
6029 (do_all_intermediate_continuations_thread)
6030 (do_all_inferior_continuations): Add `err' parameter.
6031 * continuations.c (do_my_continuations_1, do_my_continuations)
6032 (do_all_inferior_continuations, do_all_continuations_ptid)
6033 (do_all_continuations_thread_callback)
6034 (do_all_continuations_thread, do_all_continuations)
6035 (do_all_intermediate_continuations_thread_callback)
6036 (do_all_intermediate_continuations_thread)
6037 (do_all_intermediate_continuations): Add `err' parameter, and pass
6038 it down all the way to the continuations proper.
6039 * inf-loop.c (inferior_event_handler): If fetching an inferior
6040 event throws an error, don't pop the target, and still call the
6041 continuations, but with `err' set. Adjust all other continuation
6042 calls.
6043 * breakpoint.c (until_break_command_continuation): Add `err'
6044 parameter.
6045 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6046 issue another step if `err' is set.
6047 (struct until_next_continuation_args): New.
6048 (until_next_continuation): Add `err' parameter. Adjust.
6049 (until_next_command): Adjust.
6050 (struct finish_command_continuation_args): Add `thread' field.
6051 (finish_command_continuation): Add `err' parameter. Handle it.
6052 (finish_forward): Adjust.
6053 (attach_command_continuation): Add `err' parameter. Handle it.
6054 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6055 cancel the continuations.
6056 * interps.c (interp_set): Adjust to cancel the continuations.
6057 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6058 continuations rather than discarding.
6059 (free_thread): Don't clear thread inferior resources here.
6060 (delete_thread_1): Do it here instead. And do it before removing
6061 the thread from the threads list. Tag the thread as exited before
6062 clearing thread inferior resources.
6063
6064 2011-05-30 Joel Brobecker <brobecker@adacore.com>
6065
6066 * infcall.c (call_function_by_hand): Rephrase error message.
6067
6068 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6069
6070 * defs.h (struct thread_info, struct inferior): Delete forward
6071 declarations.
6072 * breakpoint.h (struct thread_info): New forward declaration.
6073 * observer.sh (struct inferior): New forward declaration.
6074 * python/python-internal.h (struct inferior): New forward
6075 declaration.
6076
6077 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6078
6079 * defs.h (struct continuation, continuation_ftype)
6080 (continuation_free_arg_ftype, add_continuation)
6081 (do_all_continuations, do_all_continuations_thread)
6082 (discard_all_continuations, discard_all_continuations_thread)
6083 (add_intermediate_continuation, do_all_intermediate_continuations)
6084 (do_all_intermediate_continuations_thread)
6085 (discard_all_intermediate_continuations)
6086 (discard_all_intermediate_continuations_thread)
6087 (add_inferior_continuation, do_all_inferior_continuations)
6088 (discard_all_inferior_continuations): Move to ...
6089 * continuations.h: ... this new file.
6090 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6091 infcmd.c, inferior.c, infrun.c, interps.c: Include
6092 continuations.h.
6093
6094 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6095 Doug Evans <dje@google.com>
6096
6097 Fix PR 10970, PR 12702.
6098 * linux-nat.c (linux_lwp_is_zombie): New function.
6099 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6100 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6101
6102 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6103
6104 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6105 typedefs.
6106 (add_continuation, add_intermediate_continuation)
6107 (add_inferior_continuation): Use them.
6108 * continuations.c (struct continuation): Use them.
6109 (make_continuation_ftype): Delete.
6110 (make_continuation, add_inferior_continuation, add_continuation)
6111 (add_intermediate_continuation): Use continuation_ftype and
6112 continuation_free_arg_ftype. Rename parameters to shorter names.
6113
6114 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6115
6116 * continuations.c (make_continuation): Make it return void.
6117 (do_my_continuations): Rename to ...
6118 (do_my_continuations_1): ... this. Remove old_chain parameter and
6119 adjust.
6120 (do_my_continuations): New.
6121 (discard_my_continuations): Rename to ...
6122 (discard_my_continuations_1): ... this. Remove old_chain
6123 parameter and adjust.
6124 (discard_my_continuations): New.
6125 (add_inferior_continuation): Simplify.
6126 (do_all_inferior_continuations): Reimplement on top
6127 do_my_continuations.
6128 (discard_all_inferior_continuations): Simplify.
6129 (add_continuation): Simplify.
6130 (do_all_continuations_ptid): Simplify.
6131 (discard_all_continuations_thread_callback): Simplify.
6132 (add_intermediate_continuation): Simplify.
6133 (discard_all_intermediate_continuations_thread_callback):
6134 Simplify.
6135
6136 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6137
6138 * utils.c (struct continuation, add_continuation)
6139 (add_inferior_continuation)
6140 (do_all_inferior_continuations, discard_all_inferior_continuations)
6141 (restore_thread_cleanup, do_all_continuations_ptid)
6142 (do_all_continuations_thread_callback)
6143 (do_all_continuations_thread, do_all_continuations)
6144 (discard_all_continuations_thread_callback)
6145 (discard_all_continuations_thread, discard_all_continuations)
6146 (add_intermediate_continuation)
6147 (do_all_intermediate_continuations_thread_callback)
6148 (do_all_intermediate_continuations_thread)
6149 (do_all_intermediate_continuations)
6150 (discard_all_intermediate_continuations_thread_callback)
6151 (discard_all_intermediate_continuations_thread)
6152 (discard_all_intermediate_continuations): Move to ...
6153 * continuations.c: ... this new file, and adjust to no longer
6154 implement continuations on top of cleanups.
6155 * Makefile.in (SFILES): Add continuations.c.
6156 (COMMON_OBS): Add continuations.o.
6157
6158 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6159
6160 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6161 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6162 Internal error on invalid values.
6163 * reverse.c: Don't handle EXEC_ERROR.
6164 * mi/mi-main.c: Don't handle EXEC_ERROR.
6165
6166 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6167
6168 * record.c: Include event-loop.h, inf-loop.h.
6169 (record_beneath_to_async): New global.
6170 (tmp_to_async): New global.
6171 (record_async_inferior_event_token): New global.
6172 (record_open_1): Don't error out if async is enabled.
6173 (record_open): Handle to_async. Create an async event source in
6174 the event loop.
6175 (record_close): Delete the async event source.
6176 (record_resumed): New global.
6177 (record_execution_dir): New global.
6178 (record_resume, record_core_resume): Set them. Register the
6179 target on the event loop.
6180 (record_wait): Rename to ...
6181 (record_wait_1): ... this. Add more debug output. Handle
6182 TARGET_WNOHANG, and the target beneath returning
6183 TARGET_WAITKIND_IGNORE.
6184 (record_wait): Reimplement on top of record_wait_1.
6185 (record_async_mask_value): New global.
6186 (record_async, record_async_mask, record_can_async_p)
6187 (record_is_async_p, record_execution_direction): New functions.
6188 (init_record_ops, init_record_core_ops): Install new methods.
6189 * infrun.c (fetch_inferior_event): Temporarily switch the global
6190 execution direction to the direction the target was going.
6191 (execution_direction): Change type to int.
6192 * target.c (default_execution_direction): New function.
6193 (update_current_target): Inherit and de_fault
6194 to_execution_direction.
6195 * target.h (struct target_ops) <to_execution_direction>: New
6196 field.
6197 (target_execution_direction): New macro.
6198 * inferior.h (execution_direction): Change type to int.
6199
6200 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6201
6202 * infcall.c (call_function_by_hand): Don't allow calling functions
6203 in reverse execution mode.
6204
6205 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6206
6207 * infcmd.c (finish_command): Allow async finish in reverse.
6208
6209 2011-05-26 Yao Qi <yao@codesourcery.com>
6210
6211 * gdb_thread_db.h: Delete. Move to ...
6212 * common/gdb_thread_db.h: ... here.
6213
6214 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6215
6216 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6217 function's entry point instead of a manually managed momentary
6218 breakpoint, and only ever issue one proceed call.
6219 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6220 doing a reverse-finish, switch to stepi mode, to do another step.
6221 (insert_step_resume_breakpoint_at_sal): Make public.
6222 (normal_stop): No need to save function value return registers if
6223 going reverse.
6224 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6225
6226 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6227
6228 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6229 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6230 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6231 at the end.
6232 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6233 step-resume breakpoints.
6234 (print_it_typical): Handle bp_hp_step_resume.
6235 (bpstat_what): Ditto.
6236 (bptype_string): Ditto.
6237 (print_one_breakpoint_location): Ditto.
6238 (allocate_bp_location): Ditto.
6239 (mention): Ditto.
6240 (breakpoint_re_set_one): Ditto.
6241 * infrun.c (handle_inferior_event): Adjust. Split
6242 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6243 BPSTAT_WHAT_HP_STEP_RESUME.
6244 (insert_step_resume_breakpoint_at_sal): Rename to ...
6245 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6246 parameter. Handle it.
6247 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6248 insert_step_resume_breakpoint_at_sal_1.
6249 (insert_step_resume_breakpoint_at_frame): Rename to ...
6250 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6251 set a high-priority step-resume breakpoint.
6252 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6253 (insert_step_resume_breakpoint_at_caller): Ditto.
6254
6255 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6256
6257 * breakpoint.c (iterate_over_related_breakpoints): New.
6258 (do_map_delete_breakpoint): New.
6259 (delete_command): Pass do_map_delete_breakpoint to
6260 map_breakpoint_numbers.
6261 (do_disable_breakpoint): New.
6262 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6263 breakpoints.
6264 (do_enable_breakpoint): Rename to ...
6265 (enable_breakpoint_disp): ... this.
6266 (enable_breakpoint): Adjust.
6267 (do_enable_breakpoint): New.
6268 (enable_once_breakpoint): Delete.
6269 (do_map_enable_breakpoint): New.
6270 (do_map_enable_once_breakpoint): New.
6271 (enable_once_command, enable_delete_command)
6272 (delete_trace_command): Iterate over the breakpoint's related
6273 breakpoints.
6274
6275 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6276
6277 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6278 for ALPHA_ZERO_REGNUM.
6279 (alpha_supply_int_regs): Explicitly supply zero as the value for
6280 ALPHA_ZERO_REGNUM in the register cache.
6281 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6282
6283 2011-05-26 Yao Qi <yao@codesourcery.com>
6284
6285 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6286
6287 2011-05-26 Tristan Gingold <gingold@adacore.com>
6288
6289 * symfile.h (struct dwarf2_section_names): New type.
6290 (struct dwarf2_debug_sections): New type.
6291 (dwarf2_has_info): Add parameter.
6292 * dwarf2read.c (dwarf2_elf_names): New variable.
6293 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6294 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6295 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6296 (dwarf2_has_info): Add names parameter. Pass names
6297 to dwarf2_locate_sections.
6298 (section_is_p): Rewrite using the names parameter.
6299 (dwarf2_locate_sections): Use section names from the names parameter.
6300 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6301 * elfread.c (read_psyms): Ditto.
6302 * machoread.c (macho_symfile_read): Ditto.
6303
6304 2011-05-25 Andreas Schwab <schwab@redhat.com>
6305
6306 PR gdb/8677
6307 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6308
6309 2011-05-24 Keith Seitz <keiths@redhat.com>
6310
6311 PR breakpoint/12803
6312 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6313 (decode_compound): Unconditionally call keep_name_info.
6314
6315 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6316
6317 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6318 scope, clear its command list.
6319 (map_breakpoint_numbers): Don't walk the related breakpoints list
6320 of each breakpoint.
6321
6322 2011-05-24 Tom Tromey <tromey@redhat.com>
6323
6324 * MAINTAINERS: Move Jim Blandy to past maintainers.
6325
6326 2011-05-24 Tristan Gingold <gingold@adacore.com>
6327
6328 * symfile.h (enum dwarf2_section_enum): New type.
6329 (dwarf2_get_section_info): New prototype.
6330 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6331 section_name by sect. Use a switch to select the info.
6332 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6333 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6334
6335 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6336
6337 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6338 shared library event breakpoint if there's no execution.
6339
6340 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6341
6342 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6343 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6344
6345 2011-05-23 Tom Tromey <tromey@redhat.com>
6346
6347 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6348 NULL.
6349
6350 2011-05-23 Doug Evans <dje@google.com>
6351
6352 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6353 entry for RuntimeError to doc string.
6354
6355 2011-05-23 Jerome Guitton <guitton@adacore.com>
6356
6357 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6358 sequence for probing loops.
6359
6360 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6361
6362 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6363 comment.
6364
6365 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6366
6367 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6368 zero as the value for %g0 in the register cache.
6369 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6370 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6371
6372 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6373
6374 * infrun.c (proceed): Set previous_inferior_ptid here.
6375 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6376 inferior_ptid, not null_ptid.
6377 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6378 (fetch_inferior_event): Nor here.
6379
6380 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6381
6382 * inf-loop.c (inferior_event_handler): Only output a message if
6383 verbose.
6384
6385 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6386
6387 * MAINTAINERS: Update my e-mail address.
6388
6389 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6390
6391 * infrun.c (proceed): Switch the inferior event loop to
6392 INF_EXEC_COMPLETE if the target refused to resume from a
6393 vfork/fork.
6394
6395 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6396
6397 * infcmd.c: Include "inf-loop.h".
6398 (step_once): When stepping into an inline subroutine, pretend the
6399 target has run. If the target can async, switch the inferior
6400 event loop to INF_EXEC_COMPLETE.
6401 * inferior.h (user_visible_resume_ptid): Declare.
6402 * infrun.c (user_visible_resume_ptid): New function, factored out
6403 from `resume'.
6404 (resume): Use it.
6405 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6406 that the current thread is running. Merge async and sync
6407 branches.
6408
6409 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6410
6411 * infcmd.c (step_1): Simplify synchronous case.
6412
6413 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6414
6415 * tracepoint.c: Include exceptions.h.
6416 (TFILE_PID): Move higher in file.
6417 (tfile_open): Delay pushing the tfile target until we're assured
6418 the tfile header is present in the file. Wrap reading the initial
6419 newline-terminated lines in TRY_CATCH. Pop the target if the
6420 initial setup failed. Add the tfile's thread immediately
6421 aftwards, before any non-essential setup. Don't skip
6422 post_create_inferior if there are no traceframes present in the
6423 file.
6424 (tfile_close): Remove redundant check for null before xfree call.
6425 (tfile_thread_alive): New function.
6426 (init_tfile_ops): Register it as to_thread_alive callback.
6427
6428 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6429
6430 * tracepoint.c (tfile_open): Delete #if 0'd code.
6431
6432 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6433
6434 Fix -readnow for -gdwarf-4 unused type units.
6435 * dwarf2read.c (struct signatured_type): Remove the field offset.
6436 (create_signatured_type_table_from_index): Remove its initialization.
6437 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6438 instead. Add a complaint call.
6439 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6440 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6441 (lookup_signatured_type_at_offset, read_signatured_type)
6442 (write_one_signatured_type): Update the field for per_cu.
6443
6444 2011-05-19 Tom Tromey <tromey@redhat.com>
6445
6446 * python/py-inferior.c (python_inferior_exit): Use
6447 target_gdbarch.
6448 (python_on_resume): Likewise.
6449
6450 2011-05-19 Matt Rice <ratmice@gmail.com>
6451
6452 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6453
6454 2011-05-19 Hui Zhu <teawater@gmail.com>
6455
6456 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6457
6458 2011-05-19 Hui Zhu <teawater@gmail.com>
6459
6460 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6461
6462 2011-05-18 Tom Tromey <tromey@redhat.com>
6463
6464 * dwarf2read.c (dwarf2_add_field): Constify.
6465 * value.c (value_static_field): Constify.
6466 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6467 Now const.
6468 * ax-gdb.c (gen_static_field): Constify
6469
6470 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6471
6472 * linux-nat.c (kill_callback): Use SIGKILL first.
6473
6474 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6475
6476 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6477
6478 2011-05-18 Tom Tromey <tromey@redhat.com>
6479
6480 * value.c (value_fn_field): Constify.
6481 * symtab.c (gdb_mangle_name): Constify.
6482 * stabsread.c (update_method_name_from_physname): Make 'physname'
6483 argument const.
6484 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6485 const. Use explicit fputc_filtered loop.
6486 (pascal_type_print_base): Constify.
6487 * p-lang.h (pascal_type_print_method_args): Update.
6488 * linespec.c (add_matching_methods): Constify.
6489 (add_constructors): Likewise.
6490 * jv-typeprint.c (java_type_print_base): Constify.
6491 * gdbtypes.h (struct cplus_struct_type)
6492 <fn_fieldlist.fn_field.physname>: Now const.
6493 * dwarf2read.c (compute_delayed_physnames): Constify.
6494 (dwarf2_add_member_fn): Likewise.
6495 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6496
6497 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6498
6499 * infrun.c (resume): Mention which is the current thread, and its
6500 current PC in debug output.
6501 (prepare_to_proceed): Mention the thread switching in debug
6502 output.
6503
6504 2011-05-18 Tom Tromey <tromey@redhat.com>
6505
6506 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6507 path check. Use xmalloc and cleanups.
6508 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6509
6510 2011-05-17 Tom Tromey <tromey@redhat.com>
6511
6512 * cp-valprint.c (cp_print_value_fields): Catch errors from
6513 value_static_field.
6514
6515 2011-05-17 Tom Tromey <tromey@redhat.com>
6516
6517 * dwarf2read.c (dwarf2_get_die_type): Call
6518 get_die_type_at_offset.
6519 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6520 get_base_type function.
6521
6522 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6523
6524 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6525 trap_expected.
6526
6527 2011-05-16 Doug Evans <dje@google.com>
6528
6529 * python/py-auto-load.c (source_section_scripts): Mention objfile
6530 name in warning.
6531
6532 2011-05-15 Doug Evans <dje@google.com>
6533
6534 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6535 (try_thread_db_load_from_pdir): Call it. If unable to find
6536 libthread_db in directory of libpthread, see if we're looking at
6537 the separate-debug-info copy.
6538
6539 * python/py-autoload.c (print_script): Print "Missing" instead of
6540 "No" for missing scripts.
6541 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6542
6543 2011-05-13 Doug Evans <dje@google.com>
6544
6545 * ui-file.c (stdio_file_write_async_safe): Add comment.
6546
6547 2011-05-14 Hui Zhu <teawater@gmail.com>
6548
6549 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6550
6551 2011-05-13 Doug Evans <dje@google.com>
6552
6553 Support $pdir and $sdir in libthread-db-search-path.
6554 * NEWS: Mention $sdir,$pdir.
6555 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6556 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6557 (try_thread_db_load_from_sdir): New function.
6558 (try_thread_db_load_from_dir): New function.
6559 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6560 system directories if search of libthread-db-search-path fails,
6561 that is now done via $sdir.
6562 (has_libpthread): New function.
6563 (thread_db_load): Remove search for libthread_db in directory of
6564 libpthread, that is now done via $pdir.
6565
6566 * NEWS: Mention "info auto-load-scripts".
6567 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6568 script_not_found_warning_printed.
6569 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6570 all callers updated. Initialize script_not_found_warning_printed.
6571 (get_auto_load_pspace_data_for_loading): New function.
6572 (maybe_add_script): New function.
6573 (source_section_scripts): Simplify. Only print one warning regardless
6574 of the number of auto-load scripts not found.
6575 (clear_section_scripts): Clear script_not_found_warning_printed.
6576 (auto_load_objfile_script): Record script in hash table.
6577 (count_matching_scripts): New function.
6578 (maybe_print_script): Renamed from maybe_print_section_script, all
6579 callers updated. Rewrite to use ui_out_*.
6580 (info_auto_load_scripts): Renamed from
6581 maintenance_print_section_scripts, all callers updated.
6582 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6583 renamed as "info auto-load-scripts".
6584
6585 2011-05-13 Tom Tromey <tromey@redhat.com>
6586
6587 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6588 (read_sleb128): Likewise.
6589
6590 2011-05-13 Tom Tromey <tromey@redhat.com>
6591
6592 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6593 offset display.
6594
6595 2011-05-13 Doug Evans <dje@google.com>
6596
6597 * linux-nat.c (debug_linux_nat_async): Delete.
6598 Replace all references to use debug_linux_nat instead.
6599 (show_debug_linux_nat_async): Delete.
6600 (sigchld_handler): Call ui_file_write_async_safe instead of
6601 fprintf_unfiltered.
6602 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6603 * ui-file.c (struct ui_file): New member to_write_async_safe.
6604 (null_file_write_async_safe): New function.
6605 (ui_file_write_async_safe): New function.
6606 (set_ui_file_write_async_safe): New function.
6607 (ui_file_new): Initialize to_write_async_safe.
6608 (stdio_file_write_async_safe): New function.
6609 (struct stdio_file): New member fd.
6610 (stdio_file_new): Initialize to_write_async_safe, fd.
6611 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6612 fileno.
6613 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6614 (set_ui_file_write_async_safe): Declare.
6615 (ui_file_write_async_safe): Declare.
6616
6617 2011-05-13 Tom Tromey <tromey@redhat.com>
6618
6619 * utils.c (do_value_free): New function.
6620 (make_cleanup_value_free): Likewise.
6621 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6622 freeing correctly.
6623 (dwarf2_loc_desc_needs_frame): Call
6624 make_cleanup_value_free_to_mark.
6625 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6626 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6627 value_free_to_mark.
6628 (new_dwarf_expr_context): Don't call value_mark.
6629 * dwarf2-frame.c (execute_stack_op): Call
6630 make_cleanup_value_free_to_mark.
6631 * defs.h (make_cleanup_value_free): Declare.
6632
6633 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6634
6635 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6636 prepare_execute_command.
6637 * top.c (prepare_execute_command): Return cleanup.
6638 (execute_command): Use cleanup from prepare_execute_command.
6639 * top.h (prepare_execute_command): Change prototype to return
6640 cleanup.
6641 * defs.h (struct value): Add opaque declaration.
6642 (make_cleanup_value_free_to_mark): Add prototype.
6643 * utils.c (do_value_free_to_mark): New function.
6644 (make_cleanup_value_free_to_mark): Likewise.
6645
6646 2011-05-12 Tom Tromey <tromey@redhat.com>
6647
6648 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6649 cast left-hand-side to unsigned.
6650
6651 2011-05-12 Tom Tromey <tromey@redhat.com>
6652
6653 PR gdb/12617:
6654 * value.h (value_from_contents): Declare.
6655 * value.c (value_from_contents): New function.
6656 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6657 (dwarf2_get_die_type): New function.
6658 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6659 (allocate_piece_closure): Acquire reference to values.
6660 (read_pieced_value): Update for value-based expressions.
6661 (write_pieced_value): Likewise.
6662 (free_pieced_value_closure): Call value_free as needed.
6663 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6664 Update for value-based expressions.
6665 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6666 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6667 <get_base_type>: New field.
6668 (struct dwarf_expr_piece) <v.value>: Change type.
6669 <v.regno>: New field.
6670 (struct dwarf_expr_context) <mark>: New field.
6671 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6672 (dwarf_expr_pop, dwarf_expr_push): Remove.
6673 (dwarf_expr_push_address): Declare.
6674 * dwarf2expr.c (dwarf_arch_cookie): New global.
6675 (struct dwarf_gdbarch_types): New.
6676 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6677 functions.
6678 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6679 static.
6680 (dwarf_expr_push_address): New function.
6681 (dwarf_expr_pop): Now static.
6682 (dwarf_expr_fetch): Change return type.
6683 (dwarf_require_integral): New function.
6684 (dwarf_expr_fetch): Simplify.
6685 (add_piece): Update.
6686 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6687 functions.
6688 (execute_stack_op) <sign_ext>: Remove.
6689 Use values for DWARF stack.
6690 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6691 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6692 New cases.
6693 (_initialize_dwarf2expr): New function.
6694 (add_piece): Update.
6695 (new_dwarf_expr_context): Set new field.
6696 (free_dwarf_expr_context): Call value_free_to_mark.
6697 * dwarf2-frame.c (no_base_type): New function.
6698 (execute_stack_op): Set get_base_type field. Update.
6699
6700 2011-05-12 Tom Tromey <tromey@redhat.com>
6701
6702 * dwarf2read.c (read_common_block): Fix formatting.
6703
6704 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6705
6706 * breakpoint.c (disable_breakpoint): Disable all locations
6707 associated with a tracepoint on target if a trace experiment is
6708 running.
6709 (disable_command): Disable a specific tracepoint location on target if
6710 a trace experiment is running.
6711 (do_enable_breakpoint): Enable all locations associated with a
6712 tracepoint on target if a trace experiment is running.
6713 (enable_command) Enable a specific tracepoint location on target if a
6714 trace experiment is running.
6715 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6716 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6717 to_disable_tracepoint.
6718 * target.h: Add declaration of struct bp_location.
6719 (struct target_ops): Add new functions
6720 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6721 to_disable_tracepoint to target operations.
6722 (target_supports_enable_disable_tracepoint): New macro.
6723 (target_enable_tracepoint): New macro.
6724 (target_disable_tracepoint): New macro.
6725 * remote.c (struct remote_state): Add new field.
6726 (remote_enable_disable_tracepoint_feature): New.
6727 (remote_protocol_features): Add new entry.
6728 (remote_supports_enable_disable_tracepoint): New.
6729 (remote_enable_tracepoint): New.
6730 (remote_disable_tracepoint): New.
6731 (init_remote_ops): Add remote_enable_tracepoint,
6732 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6733 to remote operations.
6734 * tracepoint.c (start_tracing): Allow tracing to start without any
6735 tracepoints enabled with just a warning if they can be re-enabled
6736 later.
6737 * NEWS: Add news item for the new behaviour of the enable and disable
6738 GDB commands when applied to tracepoints.
6739 Add news items for the new remote packets QTEnable and QTDisable.
6740
6741 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6742
6743 * config.in: Regenerate.
6744 * configure: Regenerate.
6745 * configure.ac <--with-system-readline> (for readline_echoing_p):
6746 Remove the test.
6747 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6748 (tui_old_rl_echoing_p): ... here.
6749 (tui_setup_io): Rename extern declaration readline_echoing_p to
6750 _rl_echoing_p. Adjust assignments for the both renames.
6751
6752 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6753
6754 * symtab.c (lookup_symtab): Run cleanup before returning.
6755
6756 2011-05-11 Tom Tromey <tromey@redhat.com>
6757
6758 * dwarf2read.c (handle_data_member_location): New function.
6759 (dwarf2_add_field): Use it.
6760 (read_common_block): Likewise.
6761
6762 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6763
6764 Make addrs->SECTINDEX always defined.
6765 * symfile.c (relative_addr_info_to_section_offsets): Check for
6766 SECTINDEX -1, not for zero ADDR.
6767 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6768 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6769 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6770 on its validity.
6771
6772 2011-05-10 Doug Evans <dje@google.com>
6773
6774 * linux-thread-db.c: Whitespace cleanup.
6775 (try_thread_db_load_1): Fix comment.
6776
6777 * linux-thread-db.c (set_libthread_db_search_path): New function.
6778 (_initialize_thread_db): Add setter for libthread-db-search-path.
6779
6780 2011-05-09 Doug Evans <dje@google.com>
6781
6782 * NEWS: Mention --with-iconv-bin.
6783 * configure.ac: New option --with-iconv-bin.
6784 * configure: Regenerate.
6785 * config.in: Regenerate.
6786 * defs.h (relocate_gdb_directory): Declare.
6787 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6788 removed progname parameter, and exported. All callers updated.
6789 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6790
6791 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6792 adding missing call to restore_child_signals_mask.
6793
6794 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6795
6796 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6797 parameter.
6798 * infrun.c (proceed, start_remote): Adjust.
6799 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6800 and adjust to not handle it.
6801 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6802 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6803 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6804 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6805 * windows-nat.c (do_initial_windows_stuff): Adjust.
6806 * infcmd.c (attach_command): Adjust.
6807 (notice_new_inferior): Adjust.
6808
6809 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6810
6811 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6812 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6813 * spu-tdep.c (op_selb): Use correct value.
6814
6815 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6816
6817 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6818 "parent" parameter to symbol_file_add_from_bfd call.
6819
6820 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6821 Thiago Jung Bauermann <bauerman@br.ibm.com>
6822
6823 Implement support for PowerPC BookE masked watchpoints.
6824 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6825 section.
6826 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6827 method. Initialize to NULL in all existing breakpoint_ops instances.
6828 (struct breakpoint) <hw_wp_mask>: New field.
6829 * breakpoint.c (is_masked_watchpoint): Add prototype.
6830 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6831 breakpoint's breakpoint_ops.works_in_software_mode if available.
6832 (watchpoints_triggered): Handle the case of a hardware masked
6833 watchpoint trigger.
6834 (watchpoint_check): Likewise.
6835 (works_in_software_mode_watchpoint): New function.
6836 (insert_masked_watchpoint, remove_masked_watchpoint)
6837 (resources_needed_masked_watchpoint)
6838 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6839 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6840 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6841 functions.
6842 (masked_watchpoint_breakpoint_ops): New structure.
6843 (watch_command_1): Check for the existence of the `mask' parameter.
6844 Set b->ops according to the type of hardware watchpoint being created.
6845 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6846 (ppc_linux_remove_mask_watchpoint)
6847 (ppc_linux_masked_watch_num_registers): New functions.
6848 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6849 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6850 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6851 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6852 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6853 (target_masked_watch_num_registers): New functions.
6854 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6855 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6856 methods.
6857 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6858 (target_masked_watch_num_registers): Add prototypes.
6859
6860 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6861
6862 PR 12573
6863 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6864 (producer_is_gcc_ge_4_0): New function.
6865 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6866 symtab->language code.
6867 (var_decode_location): Set cu->has_loclist.
6868 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6869 skip. Intialize force_skip from locations_valid. Move the prologue
6870 skipping code into two passes.
6871 * symtab.h (struct symtab): Make the primary field a bitfield. New
6872 field locations_valid.
6873
6874 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6875
6876 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6877 (classify_inner_name): Call cp_lookup_nested_type with
6878 yylval.tsym.type.
6879 * cp-namespace.c (cp_lookup_nested_type): New variable
6880 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6881 type_name_no_tag_or_error with saved_parent_type.
6882 * dwarf2read.c (load_partial_dies): Read in any children of
6883 DW_TAG_typedef with complaint in such case.
6884 * gdbtypes.c (type_name_no_tag_or_error): New function.
6885 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6886 * valops.c (destructor_name_p): New comment for parameter type. Remove
6887 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6888 * value.h (destructor_name_p): Remove type const.
6889
6890 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6891
6892 * symtab.c (compare_symbol_name): New function.
6893 (completion_list_add_name, expand_partial_symbol_name): Call it,
6894 remove the variable ncmp.
6895 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6896 gdb_assert it.
6897
6898 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6899
6900 Demote to sw watchpoint only in update_watchpoint.
6901 * breakpoint.c (update_watchpoint): Change between software and
6902 hardware watchpoint for all kinds of watchpoints, not just
6903 read/write ones. Determine b->exact value here instead of
6904 in watch_command_1. Error out if there are not enough resources
6905 for a read or access hardware watchpoint.
6906 (watch_command_1): Remove logic of checking whether there are
6907 enough resources available, since update_watchpoint will do that
6908 work now. Don't set b->exact here. Catch exceptions thrown by
6909 update_watchpoint and delete the watchpoint.
6910 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6911 Use target_exact_watchpoints instead.
6912 (delete_breakpoint): Notify observers only if deleted watchpoint
6913 has a breakpoint number assigned to it.
6914
6915 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6916
6917 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6918
6919 2011-05-05 Jerome Guitton <guitton@adacore.com>
6920
6921 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6922 New functions.
6923 (i386_stack_tramp_frame_unwind): New static global.
6924 (i386_match_pattern): New function, extracted from i386_match_insn.
6925 (i386_match_insn): Use i386_match_pattern.
6926 (i386_match_insn_block): New function.
6927 (i386_tramp_chain_in_reg_insns)
6928 (i386_tramp_chain_on_stack_insns): New static variables.
6929 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6930 of unwinders.
6931
6932 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6933
6934 * configure.host (xscale*): Don't handle target.
6935 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6936 handle targets.
6937
6938 2011-05-04 Yao Qi <yao@codesourcery.com>
6939
6940 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6941
6942 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6943
6944 Revert:
6945 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6946 | * elfread.c (elf_symtab_read): Stop memory leak.
6947
6948 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6949
6950 * nto-tdep.c (nto_target): Replace deprecated call to
6951 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6952
6953 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6954
6955 Fix false GCC warning.
6956 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6957
6958 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6959
6960 * breakpoint.c (update_watchpoint): Move code to change
6961 the enable state of breakpoint from here ...
6962 (do_enable_breakpoint): ... to here.
6963
6964 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6965
6966 * valprint.c (val_print_array_elements): Fixed poor performance
6967 of printing very large arrays with repeat_count_threshold set
6968 to unlimited. New comment.
6969
6970 2011-04-29 Tom Tromey <tromey@redhat.com>
6971
6972 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6973 (mi_parse): Likewise.
6974 * breakpoint.c (break_range_command): Use sizeof char*, not
6975 char**.
6976 (create_breakpoint): Likewise.
6977 (parse_breakpoint_sals): Likewise.
6978
6979 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6980
6981 * linux-nat.c (linux_child_remove_fork_catchpoint)
6982 (linux_child_remove_vfork_catchpoint)
6983 (linux_child_remove_exec_catchpoint): New functions.
6984 (linux_target_install_ops): Install them.
6985
6986 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6987
6988 PR mi/12531
6989
6990 * varobj.c (install_default_visualizer): Do not install a
6991 visualizer if the varobj is CPLUS_FAKE_CHILD.
6992 (construct_visualizer): Likewise.
6993
6994 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6995
6996 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6997 case insensitive comparison.
6998
6999 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
7000
7001 * infrun.c (proceed): Revert previous change.
7002 (resume): Instead, handle the case of signal delivery while stepping
7003 off a breakpoint location here, and only if software single-stepping
7004 is used. Handle nested signals.
7005
7006 2011-04-28 Yao Qi <yao@codesourcery.com>
7007
7008 * arm-tdep.c (copy_unmodified): Rename to ...
7009 (arm_copy_unmodified): .. this. New.
7010 (copy_preload): Move common part to ...
7011 (install_preload): .. this. New.
7012 (arm_copy_preload): New.
7013 (copy_preload_reg): Move common part to ...
7014 (install_preload_reg): ... this. New.
7015 (arm_copy_preload_reg): New.
7016 (copy_b_bl_blx): Move common part to ...
7017 (install_b_bl_blx): .. this. New.
7018 (arm_copy_b_bl_blx): New.
7019 (copy_bx_blx_reg): Move common part to ...
7020 (install_bx_blx_reg): ... this. New.
7021 (arm_copy_bx_blx_reg): New.
7022 (copy_alu_reg): Move common part to ...
7023 (install_alu_reg): ... this. New.
7024 (arm_copy_alu_reg): New.
7025 (copy_alu_shifted_reg): Move common part to ...
7026 (install_alu_shifted_reg): ... this. New.
7027 (copy_ldr_str_ldrb_strb): Move common part to ...
7028 (install_ldr_str_ldrb_strb): ... this. New.
7029 (arm_copy_ldr_str_ldrb_strb): New.
7030 (copy_copro_load_store): Move some common part to ...
7031 (install_copy_copro_load_store): ... this. New.
7032 (arm_copy_copro_load_store): New.
7033 (copy_svc): Delete.
7034 (arm_copy_svc): Renamed from copy_svc.
7035 (copy_undef): Delete.
7036 (arm_copy_undef): Renamed from copy_undef.
7037 (decode_ext_reg_ld_st): Delete.
7038 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7039 (decode_svc_copro): Delete.
7040 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7041 (copy_copro_load_store, copy_alu_imm): update callers.
7042 (copy_extra_ld_st, copy_block_xfer): Likewise.
7043 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7044 (decode_miscellaneous, decode_dp_misc): Likewise.
7045 (decode_ld_st_word_ubyte, decode_media): Likewise.
7046 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7047 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7048 (decode_unconditional, decode_miscellaneous): Likewise.
7049 (decode_media, decode_b_bl_ldmstm): Likewise.
7050 (arm_process_displaced_insn): Likewise..
7051 (decode_misc_memhint_neon): Delete.
7052 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7053 (decode_miscellaneous): Delete.
7054 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7055 (decode_dp_misc): Delete.
7056 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7057 (decode_ld_st_word_ubyte): Delete.
7058 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7059 (decode_media): Delete.
7060 (arm_decode_media): Renamed from decode_media.
7061 (decode_b_bl_ldmstm): Delete.
7062 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7063 (decode_ext_reg_ld_st): Delete.
7064 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7065 (decode_unconditional): Delete.
7066 (arm_decode_unconditional): Renamed from decode_unconditional.
7067
7068 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7069
7070 Case insensitive lookups implementation.
7071 * dwarf2read.c: Include ctype.h.
7072 (struct mapped_index): New field version.
7073 (mapped_index_string_hash): New parameter index_version. New comment
7074 for it. Call tolower appropriately.
7075 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7076 Choose the right index version for mapped_index_string_hash.
7077 (dwarf2_read_index): Support also the index version 5. Initialize the
7078 new struct mapped_index field version.
7079 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7080 (find_slot): Explain the version needs. Pass INT_MAX for the new
7081 parameter.
7082 (write_psymtabs_to_index): Produce version 5.
7083 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7084 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7085 * psymtab.c (lookup_partial_symbol): Find the
7086 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7087 entries.
7088 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7089 NAME lowercasing.
7090 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7091 (completion_list_add_name): New variable ncmp, initialize it, use it.
7092 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7093 * utils.c (strcmp_iw): Support case_sensitive_off.
7094 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7095 New function comment part. New variables saved_string1,
7096 saved_string2 and case_pass. Add a proper second pass.
7097
7098 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7099
7100 Replace re_comp/re_exec by regcomp/regexec.
7101 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7102 (search_symbols_name_matches): Use them, use regexec.
7103 (search_symbols): New variable retval_chain, adjust the use of
7104 old_chain against it. Replace re_comp by regcomp. Use the new struct
7105 search_symbols_data fields, use regexec instead of re_exec.
7106
7107 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7108
7109 Format the code for the next patch.
7110 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7111 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7112 New variables c1 and c2.
7113
7114 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7115
7116 * infrun.c (proceed): Do not single-step into signal delivery
7117 when stepping off a breakpoint location.
7118 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7119 (insert_step_resume_breakpoint_at_caller): Likewise.
7120 (insert_step_resume_breakpoint_at_sal): Likewise.
7121 (insert_longjmp_resume_breakpoint): Likewise.
7122
7123 2011-04-27 Yao Qi <yao@codesourcery.com>
7124
7125 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7126
7127 2011-04-27 Joel Brobecker <brobecker@adacore.com>
7128
7129 * procfs.c (procfs_pass_signals): Fix advance declaration.
7130
7131 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7132
7133 * target.h (struct target_ops): Remove to_notice_signals;
7134 add to_pass_signals.
7135 (target_notice_signals): Remove.
7136 (target_pass_signals): Add prototype.
7137 * target.c (update_current_target): Remove to_notice_signals;
7138 mention to_pass_signals.
7139 (target_pass_signals): New function.
7140 (debug_to_notice_signals): Remove.
7141 (setup_target_debug): Do not install debug_to_notice_signals.
7142
7143 * infrun.c (signal_pass): New global.
7144 (resume): Call target_pass_signals.
7145 (handle_inferior_event): Report all signals while stepping over
7146 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7147 are re-inserted when stepping over a signal handler.
7148 (signal_cache_update): New function.
7149 (signal_stop_update): Call it.
7150 (signal_print_update): Likewise.
7151 (signal_pass_update): Likewise.
7152 (handle_command): Call signal_cache_update and target_pass_signals
7153 instead of target_notice_signals.
7154 (_initialize_infrun): Initialize signal_pass.
7155
7156 * linux-nat.c (pass_mask): New global.
7157 (linux_nat_pass_signals): New function.
7158 (linux_nat_create_inferior): Report all signals initially.
7159 (linux_nat_attach): Likewise.
7160 (linux_nat_resume): Use pass_mask to decide whether to directly
7161 handle an inferior signal.
7162 (linux_nat_wait_1): Likewise.
7163 (linux_nat_add_target): Install to_pass_signals callback.
7164
7165 * nto-procfs.c (notice_signals): Remove.
7166 (procfs_resume): Do not call notice_signals.
7167 (procfs_notice_signals): Remove.
7168 (procfs_pass_signals): New function.
7169 (init_procfs_ops): Install to_pass_signals callback instead of
7170 to_notice_signals callback.
7171 (_initialize_procfs): Report all signals initially.
7172
7173 * procfs.c (procfs_notice_signals): Remove.
7174 (procfs_pass_signals): New function.
7175 (procfs_target): Install to_pass_signals callback instead of
7176 to_notice_signals callback.
7177 (register_gdb_signals): Remove.
7178 (procfs_debug_inferior): Report all signals initially.
7179 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7180
7181 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7182 parameters; use them instead of calling signal_..._state routines.
7183 (remote_notice_signals): Remove.
7184 (remote_start_remote): Report all signals initially.
7185 (remote_resume): Do not call remote_pass_signals.
7186 (_initialize_remote): Install to_pass_signals callback instead of
7187 to_notice_signals callback.
7188
7189 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7190
7191 * breakpoint.c (user_settable_breakpoint): Delete.
7192 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7193 (delete_command): Check user_breakpoint_p instead of looking at
7194 the breakpoint's type.
7195 (disable_command): Ditto.
7196 (enable_command): Ditto.
7197 (delete_trace_command): Use user_breakpoint_p instead of looking
7198 at the breakpoint number directly. When checking if there are
7199 user visible tracepoints, in order to know whether to ask the user
7200 for confirmation, check whether the breakpoint is actually a
7201 tracepoint.
7202
7203 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7204
7205 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7206 compilation.
7207
7208 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7209
7210 MI breakpoint notifications.
7211
7212 * annotate.c (breakpoint_changed): Adjust parameter type.
7213 * breakpoint.c (set_breakpoint_condition): Adjust to change
7214 in breakpoint_modified type.
7215 (breakpoint_set_commands): Likewise.
7216 (do_map_commands_command): Likewise.
7217 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7218 changed after bumping hit count.
7219 (bpstat_stop_status): Likewise.
7220 (print_one_breakpoint_location): Don't wrap in tuple here.
7221 (print_one_breakpoint): Always print individual locations.
7222 For locations, use unnamed tuple.
7223 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7224 has changed.
7225 (create_catchpoint, create_syscall_event_catchpoint): Call
7226 breakpoint_created obsever.
7227 (mention): Don't call breakpoint_created observer.
7228 (create_breakpoint_sal): Call breakpoint_created observer.
7229 (create_breakpoint, watch_command_1): Likewise.
7230 (create_ada_exception_breakpoint): Likewise.
7231 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7232 (locations_are_equal): New.
7233 (update_breakpoint_locations): If locations were changed, notify.
7234 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7235 Call breakpoint_modified observer.
7236
7237 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7238 (mi_cmd_break_insert): Don't set observers for modify and delete.
7239 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7240 (mi_breakpoint_created, mi_breakpoint_deleted)
7241 (mi_breakpoint_modified): New.
7242 (mi_interpreter_init): Hook the above.
7243 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7244 while -break-* commands are executing.
7245 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7246 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7247 (mi_redirect): New.
7248 (mi_ui_out_impl): Hook in mi_redirect.
7249 (mi_field_skip): True to the name, skip the field, don't output
7250 a field with an empty value.
7251
7252 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7253 (gdbpy_breakpoint_deleted): Adjust.
7254 * tui/tui-hooks.c (tui_event_create_breakpoint)
7255 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7256
7257 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7258
7259 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7260 (procfs_remove_hw_watchpoint): Likewise.
7261
7262 2011-04-26 Michael Walle <michael@walle.cc>
7263
7264 * remote.c (remote_start_remote): Ack packet after sending the
7265 interrupt sequence.
7266
7267 2011-04-26 Yao Qi <yao@codesourcery.com>
7268
7269 * linux-nat.c: Move common macros to ...
7270 Include linux-ptrace.h.
7271 * common/linux-ptrace.h: ... here. New.
7272
7273 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7274
7275 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7276 !objfile_has_partial_symbols. New comment.
7277 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7278 SYM_READ_PSYMBOLS is not present. Extend the comment.
7279 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7280
7281 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7282
7283 * defs.h (ENUM_BITFIELD): Remove.
7284
7285 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7286 Eli Zaretskii <eliz@gnu.org>
7287
7288 * NEWS: Document the new gdbserver --once option.
7289
7290 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7291
7292 * MAINTAINERS: Update my email address.
7293
7294 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7295
7296 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7297 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7298 function call if __STDC_ISO_10646__ macro is defined.
7299 (intermediate_encoding): New prototype.
7300 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7301 to generate compile time error for unsupported gdb_wchar_t size.
7302 (ENDIAN_SUFFIX): New macro.
7303 (intermediate_encoding): New function.
7304
7305 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7306
7307 * ada-lang.c (struct add_partial_datum): Update the comment for
7308 expand_partial_symbol_name.
7309 (ada_add_partial_symbol_completions): Rename to ...
7310 (ada_expand_partial_symbol_name): ... here, change return type, update
7311 function comment, call symbol_completion_match instead of
7312 symbol_completion_add.
7313 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7314 and ada_expand_partial_symbol_name.
7315 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7316 FILE_MATCHER.
7317 (dw2_map_symbol_names): Remove.
7318 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7319 * psymtab.c (map_symbol_names_psymtab): Remove.
7320 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7321 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7322 order.
7323 (psym_functions): Unlist map_symbol_names_psymtab.
7324 (map_partial_symbol_names): Rename to ...
7325 (expand_partial_symbol_names): ... here, change the FUN type, call
7326 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7327 * psymtab.h (map_partial_symbol_names): Rename to ...
7328 (expand_partial_symbol_names): ... here, change the FUN type.
7329 * symfile.h (struct quick_symbol_functions): Update the description of
7330 expand_symtabs_matching. Remove map_symbol_names.
7331 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7332 (struct add_name_data): Update the comment for
7333 expand_partial_symbol_name.
7334 (add_partial_symbol_name): Rename to ...
7335 (expand_partial_symbol_name): ... here. Replace
7336 completion_list_add_name call by strncmp.
7337 (default_make_symbol_completion_list_break_on): Use now
7338 expand_partial_symbol_names and expand_partial_symbol_name.
7339 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7340
7341 2011-04-20 Tom Tromey <tromey@redhat.com>
7342
7343 * dwarf2read.c (save_gdb_index_command): Replace format
7344 documentation with a pointer to the manual.
7345
7346 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7347
7348 * regcache.c: Include remote.h.
7349 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7350 (regcache_dump): Handle regcache_dump_remote.
7351 (maintenance_print_remote_registers): New function.
7352 (_initialize_regcache): Install "maint print remote-registers"
7353 command.
7354 * remote.c (map_regcache_remote_table): New function, factored out
7355 from ...
7356 (init_remote_state): ... here.
7357 (remote_register_number_and_offset): New.
7358 * remote.h (remote_register_number_and_offset): Declare.
7359
7360 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7361
7362 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7363 null_ptid, assume and allow a NULL address space, instead of
7364 asking the target for the ptid's address space.
7365 * infrun.c (ptid_is_pid): Remove assertion.
7366
7367 2011-04-19 Tom Tromey <tromey@redhat.com>
7368
7369 * windows-tdep.c (windows_xfer_shared_library):
7370 * windows-nat.c (get_module_name, windows_make_so):
7371 * v850-tdep.c (v850_handle_pushm):
7372 * utils.c (null_cleanup, gdb_realpath):
7373 * ui-out.c (get_next_header):
7374 * tracepoint.c (clear_traceframe_info):
7375 * symtab.c (lookup_symtab):
7376 * serial.h (struct serial_ops):
7377 * mipsread.c (read_alphacoff_dynamic_symtab):
7378 * infcmd.c (print_return_value):
7379 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7380 * f-exp.y (parse_number):
7381 * exceptions.c (catch_exceptions):
7382 * dummy-frame.c (dummy_frame_this_id):
7383 * defs.h (struct cleanup):
7384 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7385 * arm-tdep.c (arm_push_dummy_call):
7386 * amd64-tdep.h (amd64_collect_xsave):
7387 * amd64-tdep.c (amd64_collect_xsave):
7388 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7389 * README (typing): Remove duplicate words.
7390 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7391 * infrun.c (siginfo_value_read): Fix typo.
7392 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7393 * top.c (source_line_number): Add comma.
7394
7395 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7396
7397 * thread.c (any_live_thread_of_process): Prioritize threads
7398 that are not executing.
7399 * gdbthread.h (any_live_thread_of_process): Update comment
7400 as per above change.
7401
7402 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7403
7404 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7405 (scan_xcoff_symtab): Likewise.
7406
7407 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7408
7409 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7410 inside if clause.
7411
7412 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7413 Pedro Alves <pedro@codesourcery.com>
7414
7415 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7416 variables to simplify code and avoid == operator at end of
7417 line as this is against GNU coding standards.
7418
7419 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7420
7421 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7422 lm_name to name_lm to avoid conflict with lm_name function.
7423
7424 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7425
7426 ARI fixes: Use only lowercase function name for static functions.
7427 * nto-tdep.c (LM_ADDR): Rename to...
7428 (lm_addr): New function name.
7429 (nto_relocate_section_addresses): Adapt to change above.
7430 * solib-sunos.c (LM_ADDR): Rename to...
7431 (lm_addr): New function name.
7432 (LM_NEXT): Rename to...
7433 (lm_next): New function name.
7434 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7435 function name changes above.
7436 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7437 (lm_addr_from_link_map): New function name.
7438 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7439 (has_lm_dynamic_from_link_map): New function name.
7440 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7441 (lm_dynamic_from_link_map): New function name.
7442 (LM_ADDR_CHECK): Rename to...
7443 (lm_addr_check): New function name.
7444 (LM_NEXT): Rename to...
7445 (lm_next): New function name.
7446 (LM_PREV): Rename to...
7447 (lm_prev): New function name.
7448 (LM_NAME): Rename to...
7449 (lm_name): New function name.
7450 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7451 (ignore_first_link_map_entry): New function name.
7452 (svr4_keep_data_in_core): Adapt to function name changes above.
7453 (svr4_current_sos): Likewise.
7454 (enable_break): Likewise.
7455 (svr4_relocate_section_addresses): Likewise.
7456
7457 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7458
7459 ARI cleanup.
7460 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7461 sprintf. Simplify code and avoid loosing memory.
7462 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7463 (call0_frame_cache): Remove && operator from end of line.
7464
7465 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7466
7467 Fix libraries displacement if they change whether they were prelinked.
7468 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7469 does not match. Comment why.
7470
7471 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7472
7473 * corelow.c: Include wrapper.h.
7474 (core_open): Call now gdb_target_find_new_threads.
7475 * wrapper.c: Include target.h.
7476 (gdb_target_find_new_threads): New.
7477 * wrapper.h (gdb_target_find_new_threads): New declaration.
7478
7479 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7480
7481 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7482 even if !TARGET_HAS_EXECUTION.
7483
7484 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7485
7486 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7487 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7488 bfd_get_synthetic_symtab.
7489 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7490 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7491 parameter parent, remove the call to add_separate_debug_objfile.
7492 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7493 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7494 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7495 parent, new comment for it, call add_separate_debug_objfile for it.
7496 (symbol_file_add_separate): Pass objfile as the parameter parent,
7497 remove the call to add_separate_debug_objfile.
7498 (symbol_file_add_from_bfd): New parameter parent, pass it.
7499 (symbol_file_add): Pass NULL to the new parameter parent.
7500 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7501
7502 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7503
7504 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7505 BSF_SYNTHETIC.
7506
7507 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7508
7509 Fix Python access to inlined frames.
7510 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7511 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7512
7513 2011-04-15 Tom Tromey <tromey@redhat.com>
7514
7515 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7516
7517 2011-04-15 Gary Benson <gbenson@redhat.com>
7518
7519 * MAINTAINERS: Add myself to write-after-approval section.
7520
7521 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7522
7523 * remote-sim.c (sim_command_completer): New function.
7524 (_initialize_remote_sim): Set completer to sim_command_completer.
7525
7526 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7527
7528 * breakpoint.c (print_exception_catchpoint): Rename to ...
7529 (print_it_exception_catchpoint): ... this.
7530 (gnu_v3_exception_catchpoint_ops): Update with new name
7531 for print_it_exception_catchpoint.
7532
7533 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7534
7535 * MAINTAINERS: Add myself for write after approval privileges.
7536
7537 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7538
7539 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7540
7541 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7542
7543 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7544
7545 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7546
7547 * breakpoint.c (save_breakpoints): Verify whether
7548 breakpoint_ops.print_recreate is defined before calling it.
7549
7550 2011-04-11 Gary Benson <gbenson@redhat.com>
7551
7552 Fix failure with --enable-maintainer-mode.
7553 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7554
7555 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7556
7557 Code cleanup.
7558 * symtab.c (search_symbols): Reorder the KIND description in the
7559 function comment. Remove the unused 4th element of types, types2,
7560 types3 and types4. New gdb_assert on KIND.
7561 (symtab_symbol_info): Remove the unused 4th element of classnames.
7562 New gdb_assert on KIND.
7563 * symtab.h (enum search_domain): New warning in the enum comment.
7564 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7565 TYPES_DOMAIN.
7566
7567 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7568
7569 Fix crash of gdb save-index on a STABS file.
7570 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7571 PSYMTABS_ADDRMAP.
7572
7573 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7574
7575 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7576 * dwarf2read.c: Include ctype.h.
7577 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7578 functions.
7579 (dwarf2_add_field): Fix new_field->accessibility by calling
7580 dwarf2_default_access_attribute. Restructure setting accessibility
7581 vs. virtuality.
7582 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7583 is_private and is_protected by calling
7584 dwarf2_default_access_attribute.
7585
7586 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7587
7588 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7589 to the initialization.
7590
7591 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7592
7593 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7594 initalization.
7595
7596 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7597
7598 Remove support for old Cygwin 1.5 versions.
7599 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7600 function on old Cygwin version.
7601 * windows-nat.c: Remove cygwin version check and always define
7602 __USEWIDE for Cygwin compilation.
7603
7604 2011-04-07 Yao Qi <yao@codesourcery.com>
7605
7606 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7607 and TO.
7608 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7609 (arm_copy_svc): Remove parameters INSN and TO.
7610 (decode_svc_copro): Update caller.
7611 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7612 from function pointer `copy_svc_os'.
7613
7614 2011-04-07 Yao Qi <yao@codesourcery.com>
7615
7616 * arm-tdep.c (cleanup_branch): Set a correct return address in
7617 LR for ARM and Thumb.
7618
7619 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7620
7621 Code cleanup.
7622 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7623 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7624 in the function comment, a new note on values compatibility.
7625 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7626 * symtab.h (SYMBOL_HASH_NEXT): New.
7627
7628 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7629
7630 * ppc-linux-nat.c (check_condition): Add len output parameter.
7631 Set it based on the memory region referenced in the condition
7632 expression. Update all callers.
7633
7634 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7635
7636 Fix crash regression on systems featuring .gdb_index.
7637 * objfiles.c (free_objfile): Move the
7638 forget_cached_source_info_for_objfile call earlier. Comment it.
7639 Extend the comment for objfile_free_data.
7640
7641 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7642
7643 Fix regression of displaying the debug format.
7644 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7645 subfile.
7646
7647 2011-04-04 Tom Tromey <tromey@redhat.com>
7648
7649 * cli/cli-interp.c (struct captured_execute_command_args):
7650 Remove.
7651 (do_captured_execute_command): Remove.
7652 (safe_execute_command): Use TRY_CATCH.
7653 * cli/cli-script.c (struct wrapped_read_command_file_args):
7654 Remove.
7655 (wrapped_read_command_file): Remove.
7656 (script_from_file): Use TRY_CATCH.
7657 * exceptions.c (catch_exception): Remove.
7658 * exceptions.h (catch_exception): Remove.
7659 (deprecated_throw_reason): Update comment.
7660 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7661 argument to 'context'.
7662 (mi_execute_command): Use TRY_CATCH.
7663 * remote.c (struct start_remote_args): Remove.
7664 (remote_start_remote): Update; change arguments.
7665 (remote_open_1): Use TRY_CATCH.
7666
7667 2011-04-04 Tom Tromey <tromey@redhat.com>
7668
7669 * tracepoint.c (scope_info): Update.
7670 * symtab.c (decode_line_spec): Update.
7671 * python/python.c (gdbpy_decode_line): Update.
7672 * linespec.h (decode_line_1): Update.
7673 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7674 (decode_compound, find_method, symtab_from_filename)
7675 (decode_variable): Likewise.
7676 * cli/cli-cmds.c (edit_command): Update.
7677 (list_command): Update.
7678 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7679 argument.
7680 (create_breakpoint): Update.
7681 (until_break_command): Update.
7682 (addr_string_to_sals): Update.
7683 (decode_line_spec_1): Update.
7684
7685 2011-04-04 Tom Tromey <tromey@redhat.com>
7686
7687 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7688 (do_captured_parse_breakpoint): Remove.
7689 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7690 Use TRY_CATCH directly.
7691
7692 2011-04-04 Tom Tromey <tromey@redhat.com>
7693
7694 * symtab.h (free_symtab): Remove.
7695 (forget_cached_source_info_for_objfile): Declare.
7696 * symmisc.c (free_symtab): Remove.
7697 * source.c (forget_cached_source_info_for_objfile): New function.
7698 (forget_cached_source_info): Use it.
7699 * objfiles.c (free_objfile): Simplify check before calling
7700 clear_current_source_symtab_and_line. Call
7701 forget_cached_source_info_for_objfile.
7702
7703 2011-04-04 Tom Tromey <tromey@redhat.com>
7704
7705 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7706 (new_symtab): Don't set `free_code' on symtab.
7707 (new_linetable): Properly handle size==0.
7708 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7709 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7710 free_func.
7711 * jv-lang.c (struct jv_per_objfile_data): New.
7712 (jv_per_objfile_free): Free the data.
7713 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7714 (get_java_class_symtab): Set the `dict' field on the
7715 jv_per_objfile_data.
7716 (free_class_block): Remove.
7717 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7718 the symtab.
7719
7720 2011-04-04 Tom Tromey <tromey@redhat.com>
7721
7722 * symfile.c (reread_symbols): Update.
7723 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7724 field.
7725 * objfiles.c (allocate_objfile): Update.
7726 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7727 declare.
7728 * cp-namespace.c (lookup_symbol_file): Don't call
7729 lookup_possible_namespace_symbol.
7730 (initialize_namespace_symtab, get_possible_namespace_block)
7731 (free_namespace_block, cp_check_possible_namespace_symbols)
7732 (check_possible_namespace_symbols_loop)
7733 (check_one_possible_namespace_symbol)
7734 (lookup_possible_namespace_symbol): Remove.
7735 (maintenance_cplus_namespace): Replace with notice.
7736 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7737
7738 2011-04-04 Tom Tromey <tromey@redhat.com>
7739
7740 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7741 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7742 * symmisc.c (free_symtab): Don't free debugformat.
7743 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7744 (record_debugformat, record_producer): Document.
7745 * buildsym.c (end_symtab): Don't save debugformat and producer
7746 names on obstack.
7747 (end_symtab): Don't free debugformat and producer fields.
7748 (record_debugformat): Don't call xstrdup.
7749 (record_producer): Likewise.
7750
7751 2011-04-04 Tom Tromey <tromey@redhat.com>
7752
7753 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7754 (source_line_charpos, source_charpos_line): Remove.
7755
7756 2011-04-04 Tom Tromey <tromey@redhat.com>
7757
7758 * symtab.h (domain_enum): Split in two...
7759 (enum search_domain): New.
7760 (search_symbols): Update.
7761 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7762 redundant declarations.
7763 (search_symbols): Change 'kind' argument to search_domain.
7764 Update.
7765 (print_symbol_info): Likewise.
7766 (symtab_symbol_info): Likewise.
7767 * symfile.h (struct quick_symbol_functions)
7768 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7769 <expand_symtabs_matching>: Likewise.
7770 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7771 (expand_symtabs_matching_via_partial): Update.
7772 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7773 (dw2_expand_symtabs_for_function): Update.
7774 * block.h: Moved anonymous enum...
7775 * defs.h (enum block_enum): ... here. Now named.
7776
7777 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7778
7779 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7780 * version.in: Bump version to 7.3.50.20110403-cvs.
7781
7782 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7783
7784 * NEWS: Create a new section for the next release branch.
7785 Rename the section of the current branch, now that it has
7786 been cut.
7787
7788 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7789
7790 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7791 for "fpscr" in target description.
7792
7793 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7794
7795 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7796 initialize it. Delay HASH initialization. Strip the part after open
7797 parenthesis for languages with qualifiers. Call do_cleanups.
7798
7799 2011-04-01 Tom Tromey <tromey@redhat.com>
7800
7801 * utils.c (report_command_stats): Don't print `-' for negative
7802 number.
7803
7804 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7805
7806 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7807 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7808 typedefs.
7809
7810 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7811
7812 * breakpoint.h (bpdisp_text): Add declaration.
7813 * breakpoint.c (bpdisp_text): Make non-static.
7814 * ada-lang.c: #include "mi/mi-common.h".
7815 (print_it_exception): Rewrite to improve GDB/MI output.
7816
7817 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7818
7819 * arm-tdep.h (struct address_space): Add forward declaration.
7820
7821 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7822
7823 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7824 * arm-tdep.c (arm_override_mode): New global.
7825 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7826 execution mode heuristics.
7827 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7828 second single-step breakpoint if needed, using
7829 arm_insert_single_step_breakpoint.
7830 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7831 ARM execution mode, do not call thumb_get_next_pc_raw.
7832 (arm_get_next_pc): Encode execution mode in return value. Call
7833 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7834 (arm_insert_single_step_breakpoint): New function.
7835 (arm_software_single_step): Call it.
7836 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7837 argument to return execution mode of sigreturn target.
7838 (arm_linux_syscall_next_pc): Use it.
7839 (arm_linux_copy_svc): Update call.
7840 (arm_linux_software_single_step): Call
7841 arm_insert_single_step_breakpoint.
7842
7843 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7844
7845 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7846 the comment.
7847
7848 2011-03-31 Tom Tromey <tromey@redhat.com>
7849
7850 * varobj.c (update_dynamic_varobj_children): Properly handle
7851 errors from iterator.
7852
7853 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7854
7855 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7856 struct linkage name twice.
7857
7858 2011-03-31 Tom Tromey <tromey@redhat.com>
7859
7860 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7861 missing ">" to message.
7862
7863 2011-03-31 Tom Tromey <tromey@redhat.com>
7864
7865 * varobj.c (instantiate_pretty_printer): Remove duplicate
7866 'return'.
7867
7868 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7869
7870 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7871 if neither saved value nor register available (e.g. signal frame).
7872
7873 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7874
7875 * macroexp.c (expand): Avoid uninitialized variable
7876 compiler warning.
7877
7878 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7879
7880 * breakpoint.c (break_range_command): Fix typo in comment.
7881
7882 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7883 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7884
7885 Implement support for PowerPC BookE ranged breakpoints.
7886 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7887 * breakpoint.h (struct bp_target_info) <length>: New member
7888 variable.
7889 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7890 instead of struct breakpoint as argument, and also add ASPACE
7891 and BP_ADDR arguments. Update all callers.
7892 (struct breakpoint_ops) <print_one_detail>: New method.
7893 (struct breakpoint) <addr_string_range_end>: New member variable.
7894 * breakpoint.c (breakpoint_location_address_match): Add function
7895 prototype.
7896 (insert_bp_location): Set bl->target_info.length.
7897 (breakpoint_here_p): Call breakpoint_location_address_match.
7898 (moribund_breakpoint_here_p): Likewise.
7899 (regular_breakpoint_inserted_here_p): Likewise.
7900 (breakpoint_thread_match): Likewise.
7901 (bpstat_stop_status): Likewise.
7902 (bpstat_check_location): Move call to
7903 breakpoint_ops.breakpoint_hit to the top.
7904 (print_one_breakpoint_location): Call
7905 breakpoint_ops.print_one_detail if available.
7906 (breakpoint_address_match_range): New function.
7907 (breakpoint_location_address_match): Likewise.
7908 (breakpoint_locations_match): Compare the length field of the
7909 locations too.
7910 (hw_breakpoint_used_count): Count resources used by all locations
7911 in a breakpoint, and use breakpoint_ops.resources_needed if
7912 available.
7913 (breakpoint_hit_ranged_breakpoint): New function.
7914 (resources_needed_ranged_breakpoint): Likewise.
7915 (print_it_ranged_breakpoint): Likewise.
7916 (print_one_ranged_breakpoint): Likewise.
7917 (print_one_detail_ranged_breakpoint): Likewise.
7918 (print_mention_ranged_breakpoint): Likewise.
7919 (print_recreate_ranged_breakpoint): Likewise.
7920 (ranged_breakpoint_ops): New structure.
7921 (find_breakpoint_range_end): New function.
7922 (break_range_command): Likewise.
7923 (delete_breakpoint): Free addr_string_range_end.
7924 (update_breakpoint_locations): Add SALS_END argument. Update
7925 all callers. Calculate breakpoint length if a non-zero SALS_END
7926 is given. Call breakpoint_locations_match instead of
7927 breakpoint_address_match.
7928 (reset_breakpoint): Find SaL of the end of the range if B is a
7929 ranged breakpoint.
7930 (_initialize_breakpoint): Register break-range command.
7931 * defs.h (print_core_address): Add function prototype.
7932 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7933 function.
7934 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7935 (ppc_linux_remove_hw_breakpoint): Likewise.
7936 (_initialize_ppc_linux_nat): Initialize
7937 to_ranged_break_num_registers.
7938 * target.c (update_current_target): Add comment about
7939 to_ranged_break_num_registers.
7940 (target_ranged_break_num_registers): New function.
7941 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7942 New method.
7943 (target_ranged_break_num_registers): Add function prototype.
7944 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7945 * utils.c (print_core_address): ... here.
7946
7947 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7948
7949 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7950 variable compiler warning.
7951
7952 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7953
7954 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7955 code from here ...
7956 (re_set_breakpoint): ... to here ...
7957 (addr_string_to_sals): ... and here.
7958
7959 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7960
7961 * Makefile.in (SFILES): Add missing C sources.
7962 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7963 Add missing headers.
7964
7965 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7966
7967 * .gitignore: New file.
7968
7969 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7970
7971 * NEWS: Mention new cfi device simulation.
7972
7973 2011-03-29 Tom Tromey <tromey@redhat.com>
7974
7975 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7976 otherwise anonymous types.
7977 (dwarf2_name): Likewise.
7978 * valops.c (value_struct_elt_for_reference): Refine artificial
7979 type logic. Call error if j==-1.
7980
7981 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7982
7983 Fix false GCC warning.
7984 * infcall.c (find_function_addr): Initialize funaddr.
7985
7986 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7987
7988 Fix mingw compilation with --enable-targets=all.
7989 * remote-mips.c (gdb_usleep.h): Include header.
7990 (mips_enter_debug): Use gdb_usleep instead of sleep.
7991
7992 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7993
7994 Support resolution of STT_GNU_IFUNC via breakpoints.
7995 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7996 bp_gnu_ifunc_resolver_return.
7997 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7998 the loop. Support bp_gnu_ifunc_resolver and
7999 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
8000 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8001 breakpoints.
8002 (bptype_string, print_one_breakpoint_location): Support
8003 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8004 (user_settable_breakpoint): Return true also for
8005 bp_gnu_ifunc_resolver.
8006 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8007 bp_gnu_ifunc_resolver_return.
8008 (set_breakpoint_location_function): New parameter explicit_loc,
8009 describe it. Call find_pc_partial_function_gnu_ifunc with new
8010 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8011 EXPLICIT_LOC is not set.
8012 (set_raw_breakpoint): Set EXPLICIT_LOC for
8013 set_breakpoint_location_function.
8014 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8015 set_breakpoint_location_function.
8016 (mention): Support bp_gnu_ifunc_resolver and
8017 bp_gnu_ifunc_resolver_return.
8018 (add_location_to_breakpoint): Set EXPLICIT_LOC for
8019 set_breakpoint_location_function.
8020 (update_breakpoint_locations): Remove static.
8021 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8022 bp_gnu_ifunc_resolver_return.
8023 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8024 bp_gnu_ifunc_resolver_return.
8025 (update_breakpoint_locations): New declaration.
8026 * elfread.c: Include gdbthread.h and regcache.h.
8027 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8028 functions.
8029 (elf_gnu_ifunc_fns): Install them.
8030 * minsyms.c (stub_gnu_ifunc_resolver_stop)
8031 (stub_gnu_ifunc_resolver_return_stop): New functions.
8032 (stub_gnu_ifunc_fns): Install them.
8033 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8034 and gnu_ifunc_resolver_return_stop.
8035 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8036
8037 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8038
8039 STT_GNU_IFUNC reader implementation.
8040 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8041 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8042 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8043 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8044 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8045 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8046 (elf_gnu_ifunc_resolve_addr): New.
8047 (elf_symfile_read): Call elf_rel_plt_read.
8048 (elf_gnu_ifunc_fns): New.
8049 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8050 Install elf_gnu_ifunc_fns.
8051 * infcall.c (find_function_return_type): New function.
8052 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8053 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8054 (stub_gnu_ifunc_resolve_name): New functions.
8055 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8056 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8057 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8058
8059 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8060
8061 Code cleanup for later STT_GNU_IFUNC support.
8062 * infcall.c (find_function_addr): Remove variable code, use explicit
8063 dereferences for it. Move VALUE_TYPE initialization later.
8064
8065 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8066
8067 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8068 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8069 (clear_pc_function_cache): Clear it.
8070 (find_pc_partial_function): Rename to ...
8071 (find_pc_partial_function_gnu_ifunc): ... this function. New
8072 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8073 (find_pc_partial_function): New wrapper for this function.
8074 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8075
8076 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8077
8078 GDB internal type support for STT_GNU_IFUNC.
8079 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8080 (elf_symtab_read): Set mst_text_gnu_ifunc for
8081 BSF_GNU_INDIRECT_FUNCTION.
8082 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8083 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8084 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8085 nodebug_got_plt_symbol.
8086 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8087 (TYPE_GNU_IFUNC): New.
8088 (struct main_type): New field flag_gnu_ifunc.
8089 (struct builtin_type): New field builtin_func_func.
8090 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8091 nodebug_got_plt_symbol.
8092 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8093 (in_gnu_ifunc_stub): New.
8094 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8095 mst_text_gnu_ifunc.
8096 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8097 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8098 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8099 in_gnu_ifunc_stub.
8100 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8101 * symtab.c (search_symbols): Likewise.
8102 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8103 and mst_slot_got_plt.
8104 (in_gnu_ifunc_stub): New declaration.
8105
8106 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8107
8108 Support a ring of related breakpoints.
8109 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8110 other functions, add gdb_assert.
8111 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8112 watchpoint_del_at_next_stop.
8113 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8114 (bpstat_stop_status): Handle ring in related_breakpoint.
8115 (set_raw_breakpoint_without_location): Initialize ring in
8116 related_breakpoint.
8117 (delete_breakpoint): Handle ring in related_breakpoint, use
8118 watchpoint_del_at_next_stop.
8119 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8120
8121 2011-03-28 Tom Tromey <tromey@redhat.com>
8122
8123 PR symtab/12441:
8124 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8125 with `language_minimal'.
8126
8127 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8128
8129 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8130 instead of checking for STT_ARM_TFUNC symbol type.
8131
8132 2011-03-25 Tom Tromey <tromey@redhat.com>
8133
8134 * linespec.c (symbol_found): Restore line-based result for
8135 non-LOC_LABEL symbols.
8136
8137 2011-03-25 Kai Tietz <ktietz@redhat.com>
8138
8139 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8140 instead of strcmp for comparison.
8141 (tui_source_is_displayed): Likewise.
8142 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8143
8144 2011-03-24 Mark Wielaard <mjw@redhat.com>
8145
8146 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8147 complaint.
8148 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8149 (find_partial_die_in_comp_unit): Likewise in comment.
8150 (read_attribute_value): Likewise.
8151 (lookup_die_type): Likewise.
8152 (dwarf_form_name): Likewise.
8153 (dump_die_shallow): Likewise.
8154 (follow_die_ref_or_sig): Likewise.
8155
8156 2011-03-24 Tom Tromey <tromey@redhat.com>
8157
8158 PR breakpoints/11816:
8159 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8160 (decode_compound): Update.
8161 (find_function_symbol): New function.
8162 (decode_dollar): Update.
8163 (decode_label): Add 'function_symbol' parameter. Handle
8164 function-relative labels.
8165 (decode_variable): Update.
8166 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8167 not its line. Set `special_display' and canonical name for
8168 labels.
8169
8170 2011-03-24 Tom Tromey <tromey@redhat.com>
8171
8172 * linespec.h (struct linespec_result) <special_display>: New
8173 field.
8174 * breakpoint.h (struct breakpoint) <display_canonical>: New
8175 field.
8176 * breakpoint.c (print_breakpoint_location): Respect
8177 display_canonical.
8178 (create_breakpoint_sal): Add 'display_canonical' parameter.
8179 (create_breakpoints_sal): Update.
8180 (create_breakpoint): Update.
8181
8182 2011-03-24 Tom Tromey <tromey@redhat.com>
8183
8184 * symtab.c (decode_line_spec): Update.
8185 * linespec.c (build_canonical_line_spec): Change type of
8186 'canonical'.
8187 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8188 (find_method, decode_all_digits, decode_dollar, decode_label)
8189 (symbol_found): Likewise.
8190 (init_linespec_result): New function.
8191 * breakpoint.c (struct captured_parse_breakpoint_args)
8192 <canonical_p>: New field, replaces addr_string_p.
8193 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8194 'addr_string'.
8195 (parse_breakpoint_sals): Likewise.
8196 (do_captured_parse_breakpoint): Update.
8197 (create_breakpoint): Use struct linespec_result.
8198 (until_break_command): Update.
8199 (breakpoint_re_set_one): Update.
8200 (decode_line_spec_1): Update.
8201 * linespec.h (struct linespec_result): New.
8202 (init_linespec_result): Declare.
8203
8204 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8205
8206 * regcache.c (regcache_raw_read): If the target didn't supply a
8207 given raw register, mark it as unavailable.
8208
8209 2011-03-23 Kai Tietz <ktietz@redhat.com>
8210
8211 * breakpoint.c (clear_command): Use filename_cmp
8212 instead of strcmp for comparison.
8213 * buildsym.c (watch_main_source_file_lossage): Likewise.
8214 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8215 checking just for slash.
8216 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8217 strrchr and filename_cmp instead of strcmp for filenames.
8218 (add_old_header_file): Use filename_cmp
8219 instead of strcmp for comparison.
8220 * exec.c (exec_set_section_address): Likewise.
8221 * macrotab.c (macro_lookup_inclusion): Likewise.
8222 (macro_lookup_inclusion): Likewise.
8223 * elfread.c (_initialize_elfread): Likewise.
8224 (elfstab_offset_sections): Likewise.
8225 (elfstab_offset_sections): Use lbasename instead of
8226 strrchr.
8227 * mdebugread.c (parse_partial_symbols): Likewise.
8228 (arse_partial_symbols): Use filename_(n)cmp instead of
8229 str(n)cmp for comparison.
8230 * minsyms.c (lookup_minimal_symbol): Likewise.
8231 * psymtab.c (read_psymtabs_with_filename): Likewise.
8232 * solib.c (solib_read_symbols): Likewise.
8233 (reload_shared_libraries_1): Likewise.
8234 * symmisc.c (maintenance_print_symbols): Likewise.
8235 * symfile.c (separate_debug_file_exists): Likewise.
8236 (reread_symbols): Likewise.
8237 (find_separate_debug_file_by_debuglink): Likewise.
8238 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8239 * source.c (add_path): Likewise.
8240 * symtab.c (filename_seen): Likewise.
8241 (file_matches): Likewise.
8242 (print_symbol_info): Likewise.
8243 (maybe_add_partial_symtab_filename): Likewise.
8244 (make_source_files_completion_list): Likewise.
8245 * xml-syscall.c (init_sysinfo): Likewise.
8246 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8247 IS_DIR_SEPARATOR for checking for trailing path separator.
8248
8249 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8250
8251 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8252 label abort_expression.
8253 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8254 DWARF_VALUE_OPTIMIZED_OUT.
8255
8256 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8257
8258 Code cleanup.
8259 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8260 to linkage_name. Invert its value. Update the function comment.
8261 (c_type_print_varspec_suffix): Invert it at the caller.
8262 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8263
8264 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8265
8266 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8267 errors when reading the `stop_pc'.
8268 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8269 get_frame_pc.
8270
8271 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8272
8273 * NEWS: Document gdb.Write stream keyword.
8274
8275 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8276
8277 Revert:
8278 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8279 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8280 (dwarf2_add_field): Fix new_field->accessibility for
8281 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8282
8283 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8284
8285 PR python/12183
8286
8287 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8288 other error classes. Do not print stack trace.
8289
8290 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8291
8292 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8293 (dwarf2_add_field): Fix new_field->accessibility for
8294 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8295
8296 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8297
8298 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8299 encountering a load via a non-SP register.
8300
8301 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8302
8303 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8304 field in returned unwinder.
8305
8306 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8307
8308 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8309
8310 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8311
8312 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8313 of xmalloc.
8314
8315 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8316
8317 * frame.c (frame_unwind_register): Throw an error if unwinding the
8318 register failed.
8319 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8320 an unwind stop reason.
8321 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8322 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8323 UNWIND_UNAVAILABLE>: New.
8324 * inline-frame.c (inline_frame_unwind): Install
8325 default_frame_unwind_stop_reason.
8326 * frame-unwind.c: Include "exceptions.h".
8327 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8328 (default_frame_unwind_stop_reason): New.
8329 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8330 (default_frame_unwind_stop_reason): Declare.
8331 (struct frame_unwind) <stop_reason>: New function pointer.
8332
8333 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8334 * dwarf2-frame.c: Include exceptions.h.
8335 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8336 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8337 computing the CFA. If such an error was thrown, set
8338 unavailable_retaddr.
8339 (dwarf2_frame_unwind_stop_reason): New.
8340 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8341 unavailable.
8342 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8343 (dwarf2_signal_frame_unwind): Ditto.
8344
8345 * amd64-tdep.c: Include "exceptions.h".
8346 (struct amd64_frame_cache): New field "base_p".
8347 (amd64_init_frame_cache): Clear it.
8348 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8349 Avoid reading registers with functions that throw if the register
8350 is not necessary to compute the frame base.
8351 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8352 swallowing NOT_AVAILABLE_ERROR.
8353 (amd64_frame_unwind_stop_reason): New.
8354 (amd64_frame_this_id): Don't build a frame id if the frame base
8355 was unavailable.
8356 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8357 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8358 base_p if the frame base was computable.
8359 (amd64_sigtramp_frame_unwind_stop_reason): New.
8360 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8361 frame base was unavailable.
8362 (amd64_sigtramp_frame_unwind): Install
8363 amd64_sigtramp_frame_unwind_stop_reason.
8364 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8365 base_p if the frame base was computable.
8366 (amd64_epilogue_frame_unwind_stop_reason): New.
8367 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8368 frame base was unavailable.
8369 (amd64_epilogue_frame_unwind): Install
8370 amd64_epilogue_frame_unwind_stop_reason.
8371 * i386-tdep.c: Include "exceptions.h".
8372 (struct i386_frame_cache): New field "base_p".
8373 (i386_init_frame_cache): Clear it.
8374 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8375 Avoid reading registers with functions that throw if the register
8376 is not necessary to compute the frame base.
8377 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8378 swallowing NOT_AVAILABLE_ERROR.
8379 (i386_frame_unwind_stop_reason): New.
8380 (i386_frame_this_id): Don't build a frame id if the frame base was
8381 unavailable.
8382 (i386_frame_prev_register): Handle unavailable SP.
8383 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8384 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8385 base_p if the frame base was computable.
8386 (i386_epilogue_frame_unwind_stop_reason): New.
8387 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8388 base was unavailable.
8389 (i386_epilogue_frame_unwind): Install
8390 i386_epilogue_frame_unwind_stop_reason.
8391 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8392 base_p if the frame base was computable.
8393 (i386_sigtramp_frame_unwind_stop_reason): New.
8394 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8395 base was unavailable.
8396 (i386_sigtramp_frame_unwind): Install
8397 i386_sigtramp_frame_unwind_stop_reason.
8398 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8399 type's size, not the register's.
8400 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8401
8402 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8403 default_frame_unwind_stop_reason.
8404 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8405 (alpha_heuristic_frame_unwind): Ditto.
8406 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8407 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8408 * avr-tdep.c (avr_frame_unwind): Ditto.
8409 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8410 Ditto.
8411 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8412 * frv-tdep.c (frv_frame_unwind): Ditto.
8413 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8414 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8415 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8416 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8417 (hppa_stub_frame_unwind): Ditto.
8418 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8419 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8420 (ia64_libunwind_frame_unwind)
8421 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8422 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8423 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8424 * m32c-tdep.c (m32c_unwind): Ditto.
8425 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8426 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8427 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8428 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8429 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8430 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8431 * mep-tdep.c (mep_frame_unwind): Ditto.
8432 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8433 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8434 (mips_stub_frame_unwind): Ditto.
8435 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8436 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8437 * mt-tdep.c (mt_frame_unwind): Ditto.
8438 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8439 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8440 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8441 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8442 (s390_sigtramp_frame_unwind): Ditto.
8443 * score-tdep.c (score_prologue_unwind): Ditto.
8444 * sh-tdep.c (sh_frame_unwind): Ditto.
8445 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8446 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8447 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8448 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8449 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8450 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8451 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8452 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8453 (sparc64obsd_trapframe_unwind): Ditto.
8454 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8455 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8456 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8457 * v850-tdep.c (v850_frame_unwind): Ditto.
8458 * vax-tdep.c (vax_frame_unwind): Ditto.
8459 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8460 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8461 * xtensa-tdep.c (xtensa_unwind): Ditto.
8462
8463 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8464
8465 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8466 there's always a frame. Use get_frame_pc_if_available instead of
8467 get_frame_pc, and if there's no PC available, don't look up a
8468 symtab.
8469
8470 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8471
8472 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8473 unavailable PC.
8474
8475 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8476
8477 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8478 gracefully.
8479
8480 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8481
8482 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8483 * frame.c (frame_unwind_caller_pc_if_available): New.
8484 * stack.c (frame_info): Handle unavailable PC.
8485
8486 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8487
8488 * frame.c (frame_unwind_pc): Rename to ...
8489 (frame_unwind_pc_if_available): ... this. New `pc' output
8490 parameter. Change return type to int. Gracefully handle
8491 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8492 happened, or 1 otherwise.
8493 (frame_unwind_pc): Reimplement on top of
8494 frame_unwind_pc_if_available.
8495 (get_frame_func): Rename to ...
8496 (get_frame_func_if_available): New `pc' output parameter. Change
8497 return type to int. Gracefully handle the PC not being available.
8498 (get_frame_func): Reimplement on top of
8499 get_frame_func_if_available.
8500 (select_frame): Handle the PC being unavailable.
8501 (get_prev_frame): Handle the PC being unavailable.
8502 (get_frame_pc_if_available): New.
8503 (get_frame_address_in_block_if_available): New.
8504 (find_frame_sal): Handle the frame PC not being available.
8505 * frame.h (get_frame_pc_if_available): Declare.
8506 (get_frame_address_in_block_if_available): Declare.
8507 (get_frame_func_if_available): Declare.
8508 * stack.c (print_frame_info): Handle the PC being unavailable.
8509 (find_frame_funname): Ditto.
8510 (print_frame): Handle the PC being unavailable.
8511 (get_frame_language): Ditto.
8512 * blockframe.c (get_frame_block): Ditto.
8513 * macroscope.c (default_macro_scope): Ditto.
8514 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8515
8516 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8517
8518 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8519 NOT_AVAILABLE_ERROR when evaluating the location expression.
8520
8521 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8522
8523 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8524 returning that the register piece is unavailable/optimized out.
8525 (write_pieced_value): Handle get_frame_register_bytes returning
8526 that the register piece is unavailable/optimized out when doing a
8527 read-modify write of a bitfield.
8528 * findvar.c (value_from_register): Handle get_frame_register_bytes
8529 returning that the register piece is unavailable/optimized out.
8530 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8531 and `unavailablep'. Throw error on bad debug info. Use
8532 frame_register instead of frame_register_read, to fill in the new
8533 arguments.
8534 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8535 and `unavailablep'.
8536 * valops.c: (value_assign): Adjust, and handle
8537 get_frame_register_bytes failing.
8538 * spu-tdep.c: Include exceptions.h.
8539 (spu_software_single_step): Adjust, and handle
8540 get_frame_register_bytes failing.
8541 (spu_get_longjmp_target): Ditto.
8542 * gdbarch.sh (register_to_value): Change to return int. New
8543 parameters `optimizedp' and `unavailablep'.
8544 * gdbarch.h, gdbarch.c: Regenerate.
8545 * i386-tdep.c (i386_register_to_value): Adjust to new
8546 gdbarch_register_to_value interface.
8547 * i387-tdep.c (i387_register_to_value): Ditto.
8548 * i387-tdep.h (i387_register_to_value): Ditto.
8549 * alpha-tdep.c (alpha_register_to_value): Ditto.
8550 * ia64-tdep.c (ia64_register_to_value): Ditto.
8551 * m68k-tdep.c (m68k_register_to_value): Ditto.
8552 * mips-tdep.c (mips_register_to_value): Ditto.
8553 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8554
8555 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8556
8557 * findvar.c (value_of_register): Mark the value as unavailable, if
8558 the register is unavailable.
8559 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8560 (frame_register): New `unavailablep' parameter.
8561 (frame_register_read): Update comment.
8562 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8563 Set it if the register is unavailable. If the register is
8564 unavailable, clear the output buffer.
8565 (frame_register): New `unavailablep' parameter. Pass it down.
8566 (frame_unwind_register): Adjust.
8567 (put_frame_register): Adjust.
8568 (frame_register_read): Adjust. Also return false if the register
8569 is not available.
8570 (frame_register_unwind_location): Adjust.
8571 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8572 is unavailable, mark the value accordingly.
8573 * stack.c (frame_info): Handle unavailable registers.
8574
8575 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8576
8577 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8578 simplify, using regcache_cooked_read.
8579
8580 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8581
8582 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8583 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8584 (regcache_raw_read_unsigned, regcache_raw_read_part)
8585 (regcache_cooked_read, regcache_cooked_read_signed)
8586 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8587 (regcache_cooked_read_ftype): Change return to enum
8588 register_status.
8589 * regcache.c: Include exceptions.h
8590 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8591 (do_cooked_read): Change return to enum register_status. Always
8592 forward to regcache_cooked_read.
8593 (regcache_raw_read): Change return to enum register_status. If
8594 the register is not REG_VALID, memset the buffer. Return the
8595 register's status.
8596 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8597 return the register's status.
8598 (regcache_raw_read_unsigned): Ditto.
8599 (regcache_cooked_read): Change return to enum register_status.
8600 Assert that with read-only regcaches, the register's status must
8601 be known. If the regcache is read-only, and the register is not
8602 REG_VALID, memset the buffer. Return the register's status.
8603 (regcache_cooked_read_signed): Change return to enum
8604 register_status. Handle non-REG_VALID registers and return the
8605 register's status.
8606 (regcache_cooked_read_unsigned): Change return to enum
8607 register_status. Handle non-REG_VALID registers and return the
8608 register's status.
8609 (regcache_xfer_part, regcache_raw_read_part)
8610 (regcache_cooked_read_part): Change return to enum
8611 register_status. Return the register's status.
8612 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8613 unavailable.
8614 (regcache_dump): Handle unavailable cooked registers.
8615 * frame.c (do_frame_register_read): Adjust interface to match
8616 regcache_cooked_read_ftype.
8617 * gdbarch.sh (pseudo_register_read): Change return to enum
8618 register_status.
8619 * gdbarch.h, gdbarch.c: Regenerate.
8620
8621 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8622 register_status.
8623 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8624 register_status. If reading a raw register indicates the raw
8625 register is not valid, return the raw register's status,
8626 otherwise, return REG_VALID.
8627 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8628 register_status. Handle non-REG_VALID raw registers and return
8629 the register's status.
8630 * arm-tdep.c (arm_neon_quad_read)
8631 (arm_pseudo_read): Change return to enum register_status. Handle
8632 non-REG_VALID raw registers and return the register's status.
8633 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8634 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8635 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8636 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8637 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8638 register_status.
8639 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8640 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8641 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8642 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8643 (m32c_pseudo_register_read): Change return to enum
8644 register_status. Adjust.
8645 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8646 enum register_status. Return the register's status.
8647 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8648 register_status. Return the register's status.
8649 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8650 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8651 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8652 * rs6000-tdep.c (move_ev_register_func): New typedef.
8653 (e500_move_ev_register): Use it. Change return to enum
8654 register_status. Return the register's status.
8655 (do_regcache_raw_read): New function.
8656 (do_regcache_raw_write): New function.
8657 (e500_pseudo_register_read): Change return to enum
8658 register_status. Return the register's status. Use
8659 do_regcache_raw_read.
8660 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8661 (dfp_pseudo_register_read): Change return to enum register_status.
8662 Return the register's status.
8663 (vsx_pseudo_register_read): Ditto.
8664 (efpr_pseudo_register_read): Ditto.
8665 (rs6000_pseudo_register_read): Ditto.
8666 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8667 register_status. Return the register's status.
8668 * sh64-tdep.c (pseudo_register_read_portions): New function.
8669 (sh64_pseudo_register_read): Change return to enum
8670 register_status. Use pseudo_register_read_portions. Return the
8671 register's status.
8672 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8673 register_status. Return the register's status.
8674 * sh-tdep.c (pseudo_register_read_portions): New function.
8675 (sh_pseudo_register_read): Change return to enum register_status.
8676 Use pseudo_register_read_portions. Return the register's status.
8677 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8678 enum register_status. Return the register's status.
8679 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8680 * spu-tdep.c (spu_pseudo_register_read_spu)
8681 (spu_pseudo_register_read): Ditto.
8682 * xtensa-tdep.c (xtensa_register_read_masked)
8683 (xtensa_pseudo_register_read): Ditto.
8684 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8685
8686 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8687
8688 * python/py-value.c (valpy_getitem): Fix formatting of error function
8689 call.
8690
8691 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8692
8693 ARI fixes: Add missing internationalization markups throughout
8694 C source files.
8695 * darwin-nat-info.c: Ditto.
8696 * record.c: Ditto.
8697 * remote.c: Ditto.
8698 * mi/mi-main.c: Ditto.
8699
8700 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8701
8702 ARI fixes: Add missing internationalization markups throughout
8703 yacc files.
8704 * c-exp.y: Ditto.
8705 * cp-name-parser.y: Ditto.
8706 * f-exp.y: Ditto.
8707 * m2-exp.y: Ditto.
8708 * objc-exp.y: Ditto.
8709 * p-exp.y: Ditto.
8710
8711 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8712
8713 ARI fixes: Messages should have no trailing new lines.
8714 * darwin-nat.c (mach_check_error): Remove trailing new line from
8715 warning function call message.
8716 * record.c (bfdcore_read): Idem for error call.
8717
8718 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8719
8720 * common/signals.c (target_signal_from_host): Add _ markup to error
8721 function call message.
8722 (target_signal_to_host): Add _ markup and remove trailing new line
8723 from warning call message.
8724 (target_signal_from_command): Add _ markup to error function call
8725 message.
8726
8727 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8728
8729 PR python/12149
8730
8731 * python/python.c (gdbpy_write): Accept a stream argument and
8732 operate to the appropriate stream.
8733 (gdbpy_flush): Likewise.
8734 (_initialize_python): Add stream constants.
8735 (finish_python_initialization): Add GdbOutputErrorFile class.
8736
8737 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8738
8739 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8740
8741 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8742
8743 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8744 to store_signed_integer. Add debug message when relocating CALL
8745 instructions. Fix formatting of debug message.
8746 * i386-tdep.c (i386_relocate_instruction): Ditto.
8747
8748 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8749
8750 * target.h (struct target_ops): Remove to_lookup_symbol field.
8751 (target_lookup_symbol): Delete macro.
8752 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8753 (update_current_target, setup_target_debug): Remove handling
8754 of to_lookup_symbol target_ops field.
8755 * ada-tasks.c (get_known_tasks_addr): Remove use of
8756 target_lookup_symbol.
8757 * coffread.c (coff_symtab_read): Likewise.
8758 * dbxread.c (read_dbx_symtab): Ditto.
8759
8760 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8761
8762 PR gdb/12116:
8763 * configure.ac: Add getthrds declaration check.
8764 * configure, config.in: Regenerate.
8765 * aix-thread.c (getthrds): Declare only if not already declared
8766 in procinfo.h. More declaration out of get_signaled_thread to
8767 global scope.
8768
8769 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8770
8771 * python/py-symtab.c: Populate symtab_object_methods,
8772 sal_object_methods.
8773 (stpy_is_valid): New function.
8774 (salpy_is_valid): Ditto.
8775 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8776 (sympy_is_valid): New function.
8777 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8778 (objfpy_is_valid): New function.
8779 * python/py-inferior.c: Populate inferior_object_methods.
8780 (infpy_is_valid): New function.
8781 * python/py-infthread.c: Populate thread_object_methods.
8782 (thpy_is_valid): New function.
8783 * python/py-block.c: Declare block_object_methods. Populate. Declare
8784 block_iterator_object_methods. Populate.
8785 (blpy_is_valid): New function.
8786 (blpy_iter_is_valid): Ditto.
8787
8788 2011-03-16 Keith Seitz <keiths@redhat.com>
8789
8790 * linespec.c (find_methods): Canonicalize NAME before looking
8791 up the symbol.
8792 (name_end): New function.
8793 (keep_name_info): New function.
8794 (decode_line_1): Use keep_name_info.
8795 (decode_compound): Likewise.
8796 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8797 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8798
8799 PR c++/12273
8800 * linespec.c (locate_first_half): Keep overload information, too.
8801 (decode_compound): Use a string to represent break characters
8802 to escape the loop.
8803 If P points to a break character, do not increment it.
8804 For C++ and Java, keep overload information and relevant keywords.
8805 If we cannot find a symbol, search the minimal symbols.
8806
8807 PR c++/11734
8808 * linespec.c (decode_compound): Rename SAVED_ARG to
8809 THE_REAL_SAVED_ARG.
8810 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8811 single-quotes.
8812 Pass a valid block to lookup_symbol.
8813 (lookup_prefix_sym): Likewise.
8814 (find_method): Construct search name based on SYM_CLASS instead
8815 of SAVED_ARG.
8816 * psymtab.c (lookup_partial_symbol): Add language parameter.
8817 (lookup_symbol_aux_psymtabs): Likewise.
8818 Don't assume that the psymtab we found was the right one. Search
8819 for the desired symbol in the symtab to be certain.
8820 (psymtab_search_name): New function.
8821 (lookup_partial_symbol): Use psymtab_search_name.
8822 Add language parameter.
8823 (read_symtabs_for_function): Add language parameter and pass to
8824 lookup_partial_symbol.
8825 (find_symbol_file_from_partial): Likewise.
8826
8827 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8828
8829 PR gdb/12528
8830 * dwarf2read.c (noop_record_line): New function.
8831 (dwarf_decode_lines): Ignore line tables for GCd functions.
8832
8833 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8834
8835 Fix ARI warnings about new lines at the end of messages, which
8836 are unneeded as there is a new line added at the end of the message
8837 automatically.
8838 * darwin-nat.c (darwin_stop_inferior): Ditto.
8839 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8840 * dfp.c (decimal_to_number): Ditto.
8841 * exec.c (print_section_info): Ditto.
8842 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8843 * osdata.c (get_osdata): Ditto.
8844 * record.c (bfdcore_write): Ditto.
8845 * remote-mips.c (mips_readchar): Ditto.
8846 * remote.c (read_ptid): Ditto.
8847 * ser-mingw.c (ser_windows_raw): Ditto.
8848 * tracepoint.c (add_local_symbols): Ditto.
8849 * windows-nat.c (fake_create_process): Ditto.
8850
8851 2011-03-16 Tom Tromey <tromey@redhat.com>
8852
8853 * tracepoint.c (stop_tracing): Don't declare.
8854 * event-top.c (after_char_processing_hook): Add `(void)'.
8855
8856 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8857
8858 * NEWS: Add Parameter sub-classing description.
8859
8860 2011-03-16 Kai Tietz <ktietz@redhat.com>
8861
8862 * MAINTAINERS: Update my e-mail address.
8863
8864 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8865
8866 * MAINTAINERS: Add myself for write after approval privileges.
8867
8868 2011-03-15 Michael Snyder <msnyder@vmware.com>
8869
8870 * frame.c (find_frame_sal): Assert sym is not null.
8871
8872 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8873
8874 * objc-lang.c (selectors_info): Check strchr for null result.
8875
8876 * stabsread.c (define_symbol): Guard against bad stabstring input.
8877
8878 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8879
8880 Remove trailing spaces and tabulations from pascal language
8881 support sources.
8882 p-exp.y: Ditto.
8883 p-lang.c: Ditto.
8884 p-lang.h: Ditto.
8885 p-valprint.c: Ditto.
8886
8887 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8888
8889 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8890 than LOW. Comment it.
8891 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8892 HIGHPC not strictly higher than LOWPC.
8893
8894 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8895
8896 Fix formatting of function declarations returning a pointer in
8897 previous commit.
8898 * varobj.c (varobj_add_child): Ditto.
8899 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8900 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8901
8902 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8903
8904 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8905 for the "generic" vector ABI used with GCC 4.3 and later.
8906 (ppc64_sysv_abi_return_value): Likewise.
8907
8908 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8909
8910 * infcall.c (call_function_by_hand): Function return value is
8911 always a non_lval, even when using struct_return.
8912
8913 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8914
8915 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8916 (map_display_numbers): New.
8917 (do_delete_display): New.
8918 (undisplay_command): Use map_display_numbers.
8919 (do_enable_disable_display): New.
8920 (enable_disable_display_command): New function.
8921 (enable_display): Delete.
8922 (enable_display_command): New.
8923 (disable_display_command): Reimplement.
8924 (_initialize_printcmd): Adjust "enable display" command to use
8925 `enable_display_command' as callback.
8926
8927 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8928
8929 * NEWS: Add Python breakpoint 'stop' operation.
8930
8931 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8932
8933 * NEWS: Delete duplicate entry. Fix typo.
8934
8935 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8936
8937 Fix ARI warning about function names in first column.
8938 Put prototype declaration on same line as return type.
8939 * objc-exp.y: Ditto.
8940 * p-exp.y: Ditto.
8941 * python/py-stopevent.h: Ditto.
8942 For long function names, split parameters to
8943 allow function name on same line as return type.
8944 * solib-pa64.c: Ditto.
8945 * varobj.c: Ditto.
8946 * varobj.h: Ditto.
8947 For long function declaration, use single line.
8948 * hppa-tdep.h: Ditto.
8949 * inferior.h: Ditto.
8950
8951 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8952
8953 * python/python.h: Declare gdbpy_should_stop and
8954 gdbpy_breakpoint_has_py_cond.
8955 * python/python.c: Add python.h to includes. Remove python.h from
8956 HAVE_PYTHON definition
8957 (gdbpy_should_stop): New dummy function.
8958 (gdbpy_breakpoint_has_py_cond): New dummy function.
8959 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8960 sub-classing capabilities.
8961 (gdbpy_should_stop): New function.
8962 (gdbpy_breakpoint_has_py_cond): New function.
8963 (local_setattro): New function.
8964 * breakpoint.c (condition_command): Add check for Python 'stop'
8965 operation.
8966 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8967 operation function as part of stop/continue tests.
8968
8969 2011-03-14 Tom Tromey <tromey@redhat.com>
8970
8971 PR gdb/12576:
8972 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8973 (needs_frame_dwarf_call): Likewise.
8974
8975 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8976
8977 Fix ARI warning about functions without parameters that do not
8978 use (void).
8979 * breakpoint.c (all_tracepoints): Replace () by (void).
8980 * f-exp.y (match_string_literal): Ditto.
8981 (yylex): Ditto.
8982 * m2-exp.y (yylex): Ditto.
8983 * mep-tdep.c (current_me_module): Ditto.
8984 (current_options): Ditto.
8985 (current_cop_data_bus_width): Ditto.
8986 (current_cr_names): Ditto.
8987 (current_cr_is_float): Ditto.
8988 (current_ccr_names): Ditto.
8989 * objc-exp.y (yylex): Ditto.
8990 * p-exp.y (yylex): Ditto.
8991 * remote.c (send_interrupt_sequence): Ditto.
8992 * tracepoint.c (current_trace_status): Ditto.
8993 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8994 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8995
8996 2011-03-11 Michael Snyder <msnyder@vmware.com>
8997
8998 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8999 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9000 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9001 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9002 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9003
9004 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9005 (delete_async_event_handler): Ditto.
9006
9007 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9008
9009 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9010
9011 * top.c (set_verbose): Assert showcmd was found.
9012
9013 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
9014
9015 * xtensa-tdep.c (warning_once): Correct style issues.
9016
9017 2011-03-11 Yao Qi <yao@codesourcery.com>
9018
9019 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9020
9021 2011-03-11 Andreas Schwab <schwab@redhat.com>
9022
9023 * common/aclocal.m4: Remove.
9024
9025 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9026
9027 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9028 (xtensa_write_register, xtensa_read_register): Likewise.
9029 (xtensa_hextochar): Removed.
9030 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9031
9032 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9033
9034 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
9035 (xtensa_call0_frame_cache_t): Update comments. New fields added.
9036 (xtensa_alloc_frame_cache): Add initialization for new fields.
9037 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9038 (warning_once): New function.
9039 (xtensa_insn_kind): New item c0opc_and.
9040 (call0_classify_opcode): Add the case for AND instruction.
9041 (call0_track_op): Change arguments. New local variable litbase.
9042 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9043 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9044 in the prologue.
9045 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
9046 (call0_analyze_prologue): Update the comments. Change arguments.
9047 Add the variety of updates to handle extended prologues, which now can
9048 conduct dynamic stack adjustments.
9049 (call0_frame_cache): Likewise.
9050 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9051 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9052
9053 2011-03-10 Michael Snyder <msnyder@vmware.com>
9054
9055 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9056 (cmd_qtframe): Ditto.
9057 (cmd_qtbuffer): Ditto.
9058 (cmd_bigqtbuffer): Ditto.
9059
9060 2011-03-10 Tom Tromey <tromey@redhat.com>
9061
9062 * tracepoint.c (trace_actions_command): Update.
9063 * thread.c (thread_apply_command): Update.
9064 * reverse.c (delete_bookmark_command): Update.
9065 (bookmarks_info): Update.
9066 * printcmd.c (undisplay_command): Update.
9067 * memattr.c (mem_enable_command): Update.
9068 (mem_disable_command): Update.
9069 (mem_delete_command): Update.
9070 * inferior.c (detach_inferior_command): Update.
9071 (kill_inferior_command): Update.
9072 (remove_inferior_command): Update.
9073 * cli/cli-utils.h (struct get_number_or_range_state): New.
9074 (init_number_or_range): Declare.
9075 (get_number_or_range): Update.
9076 * cli/cli-utils.c (init_number_or_range): New function.
9077 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9078 static variables.
9079 (number_is_in_list): Update.
9080 * breakpoint.h (get_tracepoint_by_number): Update.
9081 * breakpoint.c (map_breakpoint_numbers): Update for change to
9082 get_number_or_range.
9083 (find_location_by_number): Use get_number, not
9084 get_number_or_range.
9085 (trace_pass_set_count): New function.
9086 (trace_pass_command): Update for change to get_number_or_range.
9087 Rework loop logic.
9088 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9089 'state' parameter.
9090
9091 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9092
9093 * python/py-param.c (add_setshow_generic): Add set/show callback
9094 parameters. Register Python object context.
9095 (get_show_value): New function.
9096 (get_set_value): New function.
9097 (call_doc_function): New function.
9098 (get_doc_string): Move behind get_show_value/get_set_value.
9099
9100 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9101
9102 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9103
9104 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9105
9106 * xtensa-tdep.c (xtensa_read_register): Add comment.
9107 (xtensa_write_register): Likewise.
9108 (xtensa_hextochar): Add comment and update to match coding conventions.
9109 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9110 (execute_l32e, execute_s32e, execute_code): Update comments.
9111 (xtensa_exception_handler_t): Update to match coding conventions.
9112 (xtensa_insn_kind): Likewise.
9113
9114 2011-03-09 Michael Snyder <msnyder@vmware.com>
9115
9116 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9117
9118 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9119
9120 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9121
9122 2011-03-09 Tom Tromey <tromey@redhat.com>
9123
9124 * thread.c (restore_selected_frame): Handle frame_level == -1.
9125 (make_cleanup_restore_current_thread): Use
9126 get_selected_frame_if_set.
9127 * frame.h (get_selected_frame_if_set): Declare.
9128 * frame.c (get_selected_frame_if_set): New function.
9129
9130 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9131
9132 * cli/cli-cmds.c (shell_escape): Use lbasename.
9133 * coffread.c (coff_start_symtab): Constify parameter.
9134 (complete_symtab): Constify `name' parameter.
9135 (coff_symtab_read): Constify `filestring' local.
9136 (coff_getfilename): Constify return and `result' local.
9137 Use lbasename.
9138 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9139 * linux-fork.c (info_checkpoints_command): Use lbasename.
9140 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9141 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9142 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9143 * procfs.c (procfs_make_note_section): Use lbasename.
9144 * tui/tui-io.c (printable_part): Constity return and parameter.
9145 Use lbasename.
9146 (print_filename): Constify parameters, and local `s'.
9147 (tui_rl_display_match_list): Constify local `temp'.
9148
9149 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9150
9151 Revert:
9152 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9153 Fix DWARF-3+ DW_AT_accessibility default assumption.
9154 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9155 cu->header.version >= 3.
9156
9157 2011-03-09 Yao Qi <yao@codesourcery.com>
9158
9159 * common/Makefile.in: Remove.
9160 * common/configure: Remove.
9161 * common/configure.ac: Remove.
9162
9163 2011-03-09 Yao Qi <yao@codesourcery.com>
9164
9165 Revert:
9166 2011-02-11 Yao Qi <yao@codesourcery.com>
9167
9168 * common/Makefile.in: Add copyright header.
9169
9170 2011-02-11 Yao Qi <yao@codesourcery.com>
9171
9172 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9173 libcommon.a.
9174 * configure.ac: Add common to sub dir.
9175 * configure: Regenerate.
9176
9177 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9178
9179 * xtensa-tdep.c (call0_ret): New function.
9180 (xtensa_skip_prologue): Speed up analysis.
9181
9182 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9183
9184 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9185 while executing MI command -data-list-changed-registers.
9186
9187 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9188
9189 * xtensa-tdep.c (xtensa_read_register): New function.
9190 (xtensa_write_register): New function.
9191 (xtensa_find_register_by_name): New function.
9192 (xtensa_windowed_frame_cache): Update comments in type description.
9193 (xtensa_frame_cache): Likewise.
9194 (xtensa_window_interrupt_insn): New function.
9195 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9196 (xtensa_insn_kind): Add new instructions.
9197 (rwx_special_register): New function.
9198 (call0_classify_opcode): Add new instructions to the analysis.
9199 (a0_saved, a7_saved, a11_saved): New variables.
9200 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9201 (execute_l32e): New function.
9202 (execute_s32e): New function.
9203 (xtensa_exception_handler_t): New type.
9204 (execute_code): New function.
9205 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9206 analysis for Xtensa Window Exception handlers.
9207
9208 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9209
9210 * xtensa-tdep.c (TX_PS): New.
9211 (windowing_enabled): Update to count for Call0 ABI.
9212 (xtensa_hextochar): New.
9213 (xtensa_init_reggroups): Make algorithm generic.
9214 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9215
9216 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9217
9218 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9219
9220 2011-03-08 Michael Snyder <msnyder@vmware.com>
9221
9222 * i386-tdep.c (i386_follow_jump): Check return value of
9223 target_read_memory.
9224 (i386_analyze_struct_return): Ditto.
9225 (i386_skip_probe): Ditto.
9226 (i386_match_insn): Ditto.
9227 (i386_skip_noop): Ditto.
9228 (i386_analyze_frame_setup): Ditto.
9229 (i386_analyze_register_saves): Ditto.
9230 (i386_skip_prologue): Ditto.
9231 (i386_skip_main_prologue): Ditto.
9232
9233 * target.c (read_whatever_is_readable): Fix memory leak.
9234
9235 * i386-tdep.c (i386_process_record): Document fall through.
9236
9237 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9238
9239 Fix DWARF-3+ DW_AT_accessibility default assumption.
9240 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9241 cu->header.version >= 3.
9242
9243 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9244
9245 * remote.c (remote_check_symbols): Skip if the target has no
9246 execution.
9247
9248 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9249
9250 * target.c (read_whatever_is_readable): Reformat comment,
9251 with a minor typo fix. Minor reformatting of the code.
9252
9253 2011-03-08 Yao Qi <yao@codesourcery.com>
9254
9255 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9256 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9257 Use cached result instead of calling displaced_in_arm_mode again.
9258 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9259 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9260 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9261 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9262 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9263 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9264 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9265 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9266 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9267 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9268 (arm_catch_kernel_helper_return): Likewise.
9269 * gdb/arm-tdep.h : Update function declarations.
9270
9271 2011-03-07 Michael Snyder <msnyder@vmware.com>
9272
9273 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9274
9275 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9276
9277 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9278
9279 * elfread.c (elf_symtab_read): Stop memory leak.
9280
9281 * main.c (captured_main): Fix memory leak.
9282
9283 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9284
9285 * ada-lang.c (compare_names): Call is_name_suffix with string1
9286 instead of string2.
9287
9288 2011-03-07 Tom Tromey <tromey@redhat.com>
9289
9290 * xcoffread.c (xcoff_sym_fns): Update.
9291 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9292 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9293 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9294 (symbol_file_add_with_addrs_or_offsets): Likewise.
9295 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9296 * somread.c (som_sym_fns): Update.
9297 * psymtab.h (require_partial_symbols): Declare.
9298 * psymtab.c (require_partial_symbols): New function.
9299 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9300 (ALL_OBJFILE_PSYMTABS): Undef.
9301 (ALL_PSYMTABS): Move from psympriv.h.
9302 (lookup_partial_symtab, find_pc_sect_psymtab)
9303 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9304 (find_last_source_symtab_from_partial)
9305 (forget_cached_source_info_partial)
9306 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9307 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9308 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9309 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9310 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9311 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9312 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9313 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9314 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9315 psymtabs.
9316 * mipsread.c (ecoff_sym_fns): Update.
9317 * machoread.c (macho_sym_fns): Update.
9318 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9319 (read_psyms): New function.
9320 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9321 (elf_sym_fns_lazy_psyms): New global.
9322 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9323 dwarf2_build_psymtabs.
9324 * dbxread.c (aout_sym_fns): Update.
9325 * coffread.c (coff_sym_fns): Update.
9326
9327 2011-03-07 Tom Tromey <tromey@redhat.com>
9328
9329 * infrun.c (print_exited_reason): Include inferior id and pid in
9330 message.
9331
9332 2011-03-07 Tom Tromey <tromey@redhat.com>
9333
9334 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9335 parameter.
9336 (target_has_execution_1): Update.
9337 (target_has_execution_current): Declare.
9338 (target_has_execution): Call target_has_execution_current.
9339 (default_child_has_execution): Update.
9340 * target.c (default_child_has_execution): Add 'the_ptid'
9341 parameter.
9342 (target_has_execution_1): Likewise.
9343 (target_has_execution_current): New function.
9344 (add_target): Update.
9345 (init_dummy_target): Update.
9346 * remote-m32r-sdi.c (m32r_has_execution): New function.
9347 (init_m32r_ops): Use it.
9348 * record.c (record_core_has_execution): Now static. Add
9349 'the_ptid' parameter.
9350 * inferior.c (have_live_inferiors): Don't save current thread.
9351 Use target_has_execution_1.
9352
9353 2011-03-07 Yao Qi <yao@codesourcery.com>
9354
9355 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9356
9357 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9358
9359 * elfread.c (elf_symtab_read): Minor reformatting.
9360
9361 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9362
9363 * objc-lang.c (selectors_info): Minor reformatting.
9364
9365 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9366
9367 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9368
9369 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9370 Michael Snyder <msnyder@vmware.com>
9371
9372 * ada-valprint.c (ada_val_print_array): Move the declaration of
9373 "byte_order" and "elttype" inside the block where these variables
9374 are actually used. Remove some special handling for the case
9375 where "elttype" and "eltlen" are null. Replace by a comment
9376 and a couple of assertion checks.
9377
9378 2011-03-05 Michael Snyder <msnyder@vmware.com>
9379
9380 * source.c (add_path): Replace semicolon at end of block.
9381 * dwarf2expr.c (execute_stack_op): Ditto.
9382
9383 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9384
9385 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9386 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9387 (bfin-*-*): Likewise.
9388
9389 2011-03-05 Michael Snyder <msnyder@vmware.com>
9390
9391 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9392 * mdebugread.c (parse_symbol): Ditto.
9393 * parse.c (parse_exp_in_context): Ditto.
9394 * source.c (add_path): Ditto.
9395 * utils.c (gnu_debuglink_crc32): Ditto.
9396 * varobj.c (variable_language): Ditto.
9397
9398 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9399
9400 2011-03-04 Michael Snyder <msnyder@vmware.com>
9401
9402 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9403
9404 * symfile.c (simple_overlay_update): Check for null return value
9405 from lookup_minimal_symbol.
9406
9407 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9408
9409 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9410
9411 * eval.c (parse_and_eval_address_1): Remove function.
9412 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9413 instead of parse_and_eval_address_1.
9414 * value.h (parse_and_eval_address_1): Remove prototype.
9415
9416 2011-03-04 Michael Snyder <msnyder@vmware.com>
9417
9418 * remote.c (putpkt_binary): Document that case stmt falls through.
9419
9420 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9421
9422 * breakpointc (print_it_typical): Move NULL check from here...
9423 (print_bp_stop_message): ... to here.
9424
9425 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9426
9427 * breakpoint.c (enable_command): Use break instead of continue,
9428 and fill in a missing break.
9429 (disable_command): Ditto.
9430
9431 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9432
9433 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9434 (terminal_save_ours): Remove misleading comment.
9435 (inflow_inferior_data_cleanup): Free ttystate.
9436 (inflow_inferior_exit): Likewise.
9437 (copy_terminal_info): Copy ttystate.
9438
9439 * serial.c (serial_copy_tty_state): New function.
9440 * serial.h (serial_copy_tty_state): Add prototype.
9441 (struct serial_ops): Add copy_tty_state callback.
9442 * ser-base.c (ser_base_copy_tty_state): New function.
9443 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9444 * ser-go32.c (dos_copy_tty_state): New function.
9445 (dos_ops): Install copy_tty_state callback.
9446 * ser-mingw.c (_initialize_ser_windows): Likewise.
9447 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9448 * ser-unix.c (hardwire_copy_tty_state): New function.
9449 (_initialize_ser_hardwire): Install it.
9450
9451 2011-03-04 Michael Snyder <msnyder@vmware.com>
9452
9453 * breakpoint.c (create_breakpoint): Add missing break statement.
9454
9455 Reverting this patch:
9456 * infcall.c (call_function_by_hand): Add break statements for lint.
9457
9458 Reverting this patch:
9459 * cli/cli-script.c (script_from_file): Add break for lint.
9460
9461 2011-03-04 Michael Snyder <msnyder@vmware.com>
9462
9463 * solib.c (reload_shared_libraries_1): Close memory leak.
9464
9465 2011-03-03 Tom Tromey <tromey@redhat.com>
9466
9467 PR gdb/12538:
9468 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9469 DW_STRING is NULL.
9470
9471 2011-03-03 Michael Snyder <msnyder@vmware.com>
9472
9473 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9474 fields of struct 'st' to zero.
9475
9476 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9477 sal.pspace before calling set_current_source_symtab_and_line.
9478
9479 2011-03-03 Yao Qi <yao@codesourcery.com>
9480
9481 * Makefile.in (configure-common): Remove. Let Makefile
9482 in dir common to rebuild itself.
9483 (common/Makefile): Likewise.
9484
9485 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9486
9487 * utils.c (parse_escape): Add i18n markup in error message.
9488
9489 2011-03-03 Yao Qi <yao@codesourcery.com>
9490
9491 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9492 ARM_PC_REGNUM.
9493 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9494 (displaced_write_reg, displaced_read_reg): Likewise.
9495 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9496 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9497 (cleanup_branch): Replace magic number 14 and 15 with
9498 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9499
9500 2011-03-02 Michael Snyder <msnyder@vmware.com>
9501
9502 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9503
9504 * cli/cli-script.c (script_from_file): Add break for lint.
9505
9506 * mdebugread.c (parse_partial_symbols): Fix indent.
9507
9508 * target-descriptions.c (tdesc_gdb_type): No need to call
9509 xstrdup, callee saves a copy.
9510
9511 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9512
9513 * infcall.c (call_function_by_hand): Add break statements for lint.
9514
9515 * utils.c (parse_escape): Escape the escape char.
9516
9517 * python/py-inferior.c (build_inferior_list): Error out if
9518 PyList_Append fails.
9519 (gdbpy_inferiors): Error out if build_inferior_list fails.
9520
9521 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9522 a function call.
9523
9524 * record.c (record_restore): Move printf to before error return.
9525
9526 2011-03-02 Yao Qi <yao@codesourcery.com>
9527
9528 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9529 is_thumb and insn_size.
9530 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9531 on both ARM and Thumb mode.
9532 (arm_process_displaced_insn): Set is_thumb and insn_size.
9533 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9534 (arm_displaced_step_fixup): Likewise.
9535
9536 2011-03-01 Michael Snyder <msnyder@vmware.com>
9537
9538 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9539
9540 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9541
9542 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9543
9544 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9545
9546 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9547 with xmalloc.
9548
9549 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9550 which shadows function parameter.
9551
9552 * tracepoint.c (create_tsv_from_upload): Superfluous call
9553 to xstrdup. Callee already calls xstrdup.
9554
9555 * linespec.c (decode_line_1): Remove unnecessary null check.
9556
9557 * tracepoint.c (scope_info): Fix mem leak, remove underused
9558 variable.
9559
9560 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9561 superfluous null check.
9562
9563 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9564 (value_of_builtin_frame_fp_reg): Ditto.
9565
9566 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9567
9568 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9569 be null.
9570
9571 * linespec.c (decode_line_1): Check for null before dereference.
9572
9573 * reverse.c (record_restore): Move null-check to before pointer
9574 dereference.
9575
9576 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9577
9578 * objc-lang.c (selectors_info): Add explanitory comment.
9579 (classes_info): Ditto.
9580
9581 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9582
9583 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9584 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9585 versions of the trampoline. Handle Thumb vs. ARM addresses.
9586 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9587 (arm_linux_init_abi): Install it.
9588 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9589 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9590
9591 2011-02-28 Michael Snyder <msnyder@vmware.com>
9592
9593 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9594 a little bigger, to avoid possibility of an overflow.
9595
9596 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9597 buffers a little bigger, to avoid possibility of an overflow.
9598
9599 * coffread.c (coff_getfilename): Add check to avoid overflow.
9600
9601 * objc-lang.c (selectors_info): Add a small safety margin to
9602 avoid overflow.
9603 (classes_info): Error out on too long REGEXP.
9604
9605 * infrun.c (handle_inferior_event): Remove unused function call.
9606
9607 * fork-child.c (fork_inferior): Remove ifdef'd code and
9608 unused variable.
9609
9610 * linux-thread-db.c (attach_thread): Discard unused value.
9611
9612 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9613
9614 * remote.c (remote_get_noisy_reply): Discard unused value.
9615 (remote_vcont_resume): Ditto.
9616 (remote_stop_ns): Ditto.
9617
9618 * linespec.c (decode_objc): Delete unused variable.
9619
9620 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9621
9622 * dwarf2read.c (add_partial_symbol): Discard unused values.
9623 (read_base_type): Delete unused variable.
9624
9625 * dbxread.c (read_dbx_symtab): Discard unused value.
9626
9627 * eval.c (evaluate_subexp_standard): Delete unused variable,
9628 and discard unused values.
9629
9630 * infcmd.c (_initialize_infcmd): Discard unused values.
9631
9632 * stabsread.c (rs6000_builtin_type): Missing break statement.
9633
9634 * dbxread.c (process_one_symbol): Discard unused value.
9635
9636 * coffread.c (coff_end_symtab): Delete unused variable.
9637
9638 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9639 (dwarf2_add_typedef): Delete unused variable.
9640 (read_namespace): Ditto.
9641 (dwarf_decode_macros): Ditto.
9642
9643 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9644
9645 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9646
9647 * p-valprint.c (pascal_val_print): Discard unused value.
9648
9649 * utils.c (nquery): Call va_end before return;
9650 (yquery): Ditto.
9651 (query): Ditto.
9652
9653 * proc-service.c (ps_plog): Call va_end before return.
9654
9655 2011-02-28 Tom Tromey <tromey@redhat.com>
9656
9657 * python/python.c (gdbpy_value_cst): New global.
9658 (_initialize_python): Initialize it.
9659 * python/python-internal.h (gdbpy_value_cst): Declare.
9660 * python/py-value.c (convert_value_from_python): Use
9661 gdbpy_value_cst.
9662
9663 2011-02-28 Michael Snyder <msnyder@vmware.com>
9664
9665 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9666
9667 * breakpoint.c (catch_syscall_completer): Free malloced list.
9668
9669 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9670
9671 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9672 (lval_func_check_synthetic_pointer): Ditto.
9673 (lval_func_free_closure): Fix use-after-free.
9674
9675 2011-02-28 Tom Tromey <tromey@redhat.com>
9676
9677 * psymtab.c (expand_partial_symbol_tables): Use
9678 ALL_OBJFILE_PSYMTABS.
9679
9680 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9681
9682 * objc-lang.c (selectors_info): Error on too long REGEXP.
9683
9684 2011-02-28 Michael Snyder <msnyder@vmware.com>
9685
9686 * python/py-param.c (set_parameter_value): Add missing
9687 break statement.
9688
9689 * linux-record.c (record_linux_system_call): Add missing
9690 break statement.
9691
9692 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9693
9694 * breakpoint.c (print_one_breakpoint_location): Remove unused
9695 argument PRINT_ADDRESS_BITS. Update callers.
9696 (print_one_breakpoint): Likewise.
9697
9698 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9699
9700 * breakpoint.c (wrap_indent_at_field): New function.
9701 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9702 Allocate ui_stream locally instead of using STB argument.
9703 (print_one_breakpoint_location): Update call.
9704 * ui-out.c (ui_out_query_field): New function.
9705 * ui-out.h (ui_out_query_field): Add prototype.
9706
9707 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9708
9709 From Michael Snyder <msnyder@vmware.com>
9710 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9711
9712 2011-02-27 Michael Snyder <msnyder@vmware.com>
9713
9714 * objc-lang.c (selectors_info): Prevent string overrun.
9715
9716 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9717 error in strncpy.
9718
9719 * symtab.c (rbreak_command): Move variable 'file_name' to
9720 outer scope.
9721
9722 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9723 param with a local variable of the same name.
9724
9725 2011-02-27 Michael Snyder <msnyder@vmware.com>
9726
9727 * value.c (value_from_history_ref): New function.
9728 * value.h (value_from_history_ref): Export.
9729 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9730 to parse value history references.
9731 * cli/cli-utils.h (get_number_trailer): Update comment.
9732
9733 2011-02-27 Michael Snyder <msnyder@vmware.com>
9734
9735 * inferior.c (detach_inferior_command): Use get_number_or_range.
9736 (kill_inferior_command): Ditto.
9737 (remove_inferior_command): Ditto.
9738 (initialize_inferiors): Make command names plural.
9739 Update help strings.
9740
9741 2011-02-27 Michael Snyder <msnyder@vmware.com>
9742
9743 * darwin-nat-info.c: Fix comment typo.
9744 * dwarf2expr.h: Ditto.
9745 * fbsd-nat.c: Ditto.
9746 * fbsd-nat.h: Ditto.
9747 * frame-unwind.h: Ditto.
9748 * frame.h: Ditto.
9749 * hppa-hpux-tdep.c: Ditto.
9750 * i386-linux-nat.c: Ditto.
9751 * linux-nat.c: Ditto.
9752 * nbsd-nat.c: Ditto.
9753 * nbsd-nat.h: Ditto.
9754 * ppc-linux-tdep.c: Ditto.
9755 * serial.c: Ditto.
9756 * ui-file.h: Ditto.
9757 * tui/tui-winsource.c: Ditto.
9758
9759 2011-02-26 Michael Snyder <msnyder@vmware.com>
9760
9761 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9762
9763 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9764
9765 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9766 with a local variable of the same name.
9767
9768 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9769 param with a local variable of the same name.
9770 (i387_supply_xsave): Ditto.
9771
9772 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9773 that it does not shadow a function parameter.
9774
9775 * i386-nat.c (i386_length_and_rw_bits): Document that case
9776 statement is meant to fall through.
9777
9778 * expprint.c (dump_subexp_body_standard): Document that case
9779 statement is meant to fall through.
9780
9781 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9782 dead if statement. Condition can't be false.
9783
9784 2011-02-25 Michael Snyder <msnyder@vmware.com>
9785
9786 * arm-tdep.c: Fix typos in comments.
9787 * bsd-uthread.c: Ditto.
9788 * completer.c: Ditto.
9789 * corelow.c: Ditto.
9790 * cp-namespace.c: Ditto.
9791 * cp-support.c: Ditto.
9792 * cris-tdep.c: Ditto.
9793 * dbxread.c: Ditto.
9794 * dwarf2read.c: Ditto.
9795 * frame.h: Ditto.
9796 * gdbtypes.h: Ditto.
9797 * inferior.h: Ditto.
9798 * mdebugread.c: Ditto.
9799 * mips-tdep.c: Ditto.
9800 * ppc-linux-nat.c: Ditto.
9801 * ppc-linux-tdep.c: Ditto.
9802 * printcmd.c: Ditto.
9803 * sol-thread.c: Ditto.
9804 * solib-frv.c: Ditto.
9805 * solist.h: Ditto.
9806 * sparc64-tdep.c: Ditto.
9807 * spu-tdep.c: Ditto.
9808 * stabsread.c: Ditto.
9809 * symfile.c: Ditto.
9810 * valops.c: Ditto.
9811 * varobj.c: Ditto.
9812 * vax-nat.c: Ditto.
9813 * python/py-block.c: Ditto.
9814 * python/py-symbol.c: Ditto.
9815 * python/py-symtab.c: Ditto.
9816 * python/py-value.c: Ditto.
9817 * tui/tui-win.c: Ditto.
9818
9819 2011-02-25 Michael Snyder <msnyder@vmware.com>
9820
9821 * inferior.c (print_inferior): Accept a string instead of an int
9822 for requested_inferiors, and use get_number_or_range to parse it.
9823 (info_inferiors_command): Pass args string to print_inferior.
9824 (initialize_inferiors): Change help string for info inferiors.
9825 * inferior.h (print_inferior): Export prototype change.
9826
9827 2011-02-25 Tom Tromey <tromey@redhat.com>
9828
9829 * common/ax.def (invalid2): Set to 0x31.
9830
9831 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9832
9833 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9834 L and plongest.
9835 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9836 use L and plongest.
9837 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9838
9839 2011-02-24 Michael Snyder <msnyder@vmware.com>
9840
9841 * Makefile.in (clean): Make clean should remove generated files
9842 observer.h and observer.inc.
9843
9844 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9845
9846 Revert the following patch (not approved yet):
9847 2011-02-21 Hui Zhu <teawater@gmail.com>
9848 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9849 * ax-gdb.c (gen_printf_expr_callback): New function.
9850 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9851 * ax-general.c (ax_memcpy): New function.
9852 (ax_print): Handle "printf".
9853 (ax_reqs): Ditto.
9854 * ax.h (ax_memcpy): Forward declare.
9855 * common/ax.def (invalid2): Removed.
9856 (printf): New entry.
9857 * printcmd.c (printcmd.h): New include.
9858 (string_printf): New function.
9859 (ui_printf): Removed.
9860 (printf_command): Remove static. Call string_printf.
9861 (eval_command): Call string_printf.
9862 * printcmd.h: New file.
9863 * tracepoint.c (validate_actionline,
9864 encode_actions_1): handle printf_command.
9865
9866 2011-02-23 Tom Tromey <tromey@redhat.com>
9867
9868 * ax-general.c (ax_pick): Add missing newline.
9869
9870 2011-02-23 Michael Snyder <msnyder@vmware.com>
9871
9872 * breakpoint.c (breakpoint_1): Change first argument from an int
9873 to a char pointer, so that the function now accepts a list of
9874 breakpoints rather than just one. Use new function
9875 'number_is_in_list' to implement.
9876 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9877 (watchpoints_info): Ditto.
9878 (tracepoints_info): Ditto.
9879 (maintenance_info_breakpoints): Ditto.
9880 (_initialize_breakpoint): Update help strings to reflect the fact
9881 that these functions can now take more than one argument.
9882 * cli/cli-utils.c (number_is_in_list): New function.
9883 * cli/cli-utils.h (number_is_in_list): Export.
9884
9885 2011-02-23 Michael Snyder <msnyder@vmware.com>
9886
9887 * memattr.c (mem_enable_command): Use get_number_or_range.
9888 (mem_disable_command): Ditto.
9889 (mem_delete_command): Ditto.
9890 (_initialize_mem): Tweak usage message to reflect multiple
9891 arguments.
9892
9893 2011-02-22 Doug Evans <dje@google.com>
9894
9895 Add gdb.lookup_global_symbol python function.
9896 * NEWS: Add entry.
9897 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9898 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9899 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9900
9901 2011-02-22 Tom Tromey <tromey@redhat.com>
9902
9903 * language.c (language_class_name_from_physname): Rename
9904 'curr_language' argument to 'lang'; use in body.
9905
9906 2011-02-22 Michael Snyder <msnyder@vmware.com>
9907
9908 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9909
9910 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9911
9912 * frame-unwind.h: Fix comment to mention the this frame, not the
9913 next.
9914
9915 2011-02-22 Tom Tromey <tromey@redhat.com>
9916
9917 * symfile.c (auto_solib_limit): Remove.
9918 * symfile.h (auto_solib_limit): Remove.
9919
9920 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9921
9922 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9923
9924 2011-02-21 Michael Snyder <msnyder@vmware.com>
9925
9926 * gdbthread.h (print_thread_info): Change prototype.
9927 * thread.c (print_thread_info): Accept char* instead of int for
9928 requested_threads argument. Use new function number_is_in_list
9929 to determine which threads to list.
9930 (info_threads_command): Pass char* to print_thread_info.
9931 * cli/cli-utils.c (number_is_in_list): New function.
9932 * cli/cli-utils.h (number_is_in_list): Export.
9933 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9934 print_thread_info.
9935 (print_one_inferior): Ditto.
9936 (mi_cmd_list_thread_groups): Ditto.
9937
9938 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9939
9940 * common/Makefile.in (CFLAGS): New.
9941 (COMPILE): Add $(CFLAGS).
9942
9943 2011-02-21 Tom Tromey <tromey@redhat.com>
9944
9945 * breakpoint.c (catch_syscall_command_1): Fix typo.
9946
9947 2011-02-21 Tom Tromey <tromey@redhat.com>
9948
9949 * reverse.c: Include cli-utils.h.
9950 * printcmd.c: Include cli-utils.h.
9951 (string_printf): Use skip_spaces.
9952 * cli/cli-utils.h: New file.
9953 * cli/cli-utils.c: New file.
9954 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9955 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9956 * breakpoint.h (get_number, get_number_or_range): Move to
9957 cli-utils.h.
9958 * breakpoint.c: Include cli-utils.h.
9959 (get_number_trailer, get_number, get_number_or_range)
9960 (ep_skip_leading_whitespace): Move to cli-utils.c.
9961 (create_breakpoint_sal, find_condition_and_thread)
9962 (decode_static_tracepoint_spec, watch_command_1)
9963 (watch_maybe_just_location, ep_parse_optional_if_clause)
9964 (catch_fork_command_1, catch_exec_command_1)
9965 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9966 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9967 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9968 (HFILES_NO_SRCDIR): Add cli-utils.h.
9969 (cli-utils.o): New target.
9970
9971 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9972
9973 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9974 before calling discard_all_inferiors.
9975
9976 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9977
9978 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9979 (struct builtin_opencl_type): Remove.
9980 (builtin_opencl_type): Change return type to "struct type **".
9981 (lookup_opencl_vector_type): Update caller.
9982 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9983 (build_opencl_types): Install plain array of "struct type *"
9984 instead of "struct builtin_opencl_type".
9985
9986 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9987 Ulrich Weigand <uweigand@de.ibm.com>
9988
9989 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9990 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9991 (struct arm_linux_hwbp_cap): New type.
9992 (arm_linux_get_hwbp_cap): New function.
9993 (arm_linux_get_hw_breakpoint_count): Likewise.
9994 (arm_linux_get_hw_watchpoint_count): Likewise.
9995 (arm_linux_can_use_hw_breakpoint): Likewise.
9996 (arm_hwbp_type): New type.
9997 (arm_hwbp_control_t): Likewise.
9998 (struct arm_linux_hw_breakpoint): Likewise.
9999 (struct arm_linux_thread_points): Likewise.
10000 (arm_threads): New global variable.
10001 (arm_linux_find_breakpoints_by_tid): New function.
10002 (arm_hwbp_control_initialize): Likewise.
10003 (arm_hwbp_control_is_enabled): Likewise.
10004 (arm_hwbp_control_disable): Likewise.
10005 (arm_linux_hw_breakpoint_initialize): Likewise.
10006 (arm_linux_get_hwbp_type): Likewise.
10007 (arm_linux_hw_watchpoint_initialize): Likewise.
10008 (arm_linux_hw_breakpoint_equal): Likewise.
10009 (arm_linux_insert_hw_breakpoint1): Likewise.
10010 (arm_linux_remove_hw_breakpoint1): Likewise.
10011 (arm_linux_insert_hw_breakpoint): Likewise.
10012 (arm_linux_remove_hw_breakpoint): Likewise.
10013 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10014 (arm_linux_insert_watchpoint): Likewise.
10015 (arm_linux_remove_watchpoint): Likewise.
10016 (arm_linux_stopped_data_address): Likewise.
10017 (arm_linux_stopped_by_watchpoint): Likewise.
10018 (arm_linux_watchpoint_addr_within_range): Likewise.
10019 (arm_linux_new_thread): Likewise.
10020 (arm_linux_thread_exit): Likewise.
10021 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10022 related target callbacks. Register arm_linux_new_thread and
10023 arm_linux_thread_exit.
10024 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10025 * arm-tdep.c (arm_pc_is_thumb): Make global.
10026 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10027
10028 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10029
10030 * breakpoint.c (update_watchpoint): Do not attempt to recreate
10031 per-frame locations while within a function epilogue.
10032
10033 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10034
10035 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10036 to GNU coding standards.
10037
10038 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10039
10040 Allow use of mingw native on Windows 95 OS.
10041 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
10042 (ser_windows_close): Only call CancelIo if function exists.
10043 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10044 to check for existence of CancelIo function in kernel32 DLL.
10045
10046 2011-02-21 Hui Zhu <teawater@gmail.com>
10047
10048 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10049 * ax-gdb.c (gen_printf_expr_callback): New function.
10050 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10051 * ax-general.c (ax_memcpy): New function.
10052 (ax_print): Handle "printf".
10053 (ax_reqs): Ditto.
10054 * ax.h (ax_memcpy): Forward declare.
10055 * common/ax.def (invalid2): Removed.
10056 (printf): New entry.
10057 * printcmd.c (printcmd.h): New include.
10058 (string_printf): New function.
10059 (ui_printf): Removed.
10060 (printf_command): Remove static. Call string_printf.
10061 (eval_command): Call string_printf.
10062 * printcmd.h: New file.
10063 * tracepoint.c (validate_actionline,
10064 encode_actions_1): handle printf_command.
10065
10066 2011-02-19 Michael Snyder <msnyder@vmware.com>
10067
10068 * reverse.c (delete_one_bookmark): Argument is now bookmark
10069 id rather than pointer to bookmark struct.
10070 (delete_bookmark_command): Use get_number_or_range.
10071 (goto_bookmark_command): Parse with get_number instead of strtoul.
10072 (bookmark_1): New function. Print info for one bookmark.
10073 (bookmarks_info): Use get_number_or_range and bookmark_1.
10074
10075 2011-02-18 Michael Snyder <msnyder@vmware.com>
10076
10077 * thread.c (info_threads_command): Re-implement using
10078 get_number_or_range.
10079 (thread_apply_command): Ditto.
10080
10081 2011-02-18 Tom Tromey <tromey@redhat.com>
10082
10083 * common/ax.def: New file.
10084 * ax.h (enum agent_op): Use ax.def.
10085 * ax-general.c (aop_map): Use ax.def.
10086
10087 2011-02-18 Tom Tromey <tromey@redhat.com>
10088
10089 * ax-general.c (aop_map): Add pick and rot.
10090 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10091 <DW_OP_rot>: Implement.
10092 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10093 (ax_pick): Declare.
10094 * ax-general.c (ax_pick): New function.
10095
10096 2011-02-18 Tom Tromey <tromey@redhat.com>
10097
10098 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10099
10100 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10101 Tom Tromey <tromey@redhat.com>
10102
10103 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10104 make_symbol_overload_list_block with NULL BLOCK.
10105 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10106
10107 2011-02-18 Pedro Alves <pedro@codesourcery.com>
10108
10109 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10110 * breakpoint.h (get_number_or_range): Declare.
10111 * printcmd.c (ALL_DISPLAYS): Declare.
10112 (delete_display): Reimplement taking a display pointer.
10113 (undisplay_command): Accept a range of displays to delete, using
10114 get_number_or_range.
10115
10116 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10117
10118 * c-valprint.c (c_val_print): Add embedded_offset to address
10119 for arrays of unspecified length.
10120 * p-valprint.c (pascal_val_print): Likewise.
10121
10122 2011-02-18 Yao Qi <yao@codesourcery.com>
10123
10124 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10125 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10126 (thumb_process_displaced_insn): New.
10127 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10128 call to arm_process_displaced_insn.
10129 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10130
10131 2011-02-17 Tom Tromey <tromey@redhat.com>
10132
10133 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10134 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10135 compile_dwarf_to_ax. No longer static. Call
10136 dwarf2_compile_cfa_to_ax.
10137 (locexpr_tracepoint_var_ref): Update.
10138 (loclist_tracepoint_var_ref): Update.
10139 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10140 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10141 argument; add 'gdbarch' and 'pc'.
10142 (dwarf2_compile_cfa_to_ax): New function.
10143 (dwarf2_frame_cache): Update.
10144
10145 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10146
10147 * ada-lang.c (ada_type_of_array): Fix the size of the array
10148 in the case of an unconstrained packed array.
10149
10150 2011-02-17 Yao Qi <yao@codesourcery.com>
10151
10152 * common/Makefile.in: Add more targets for make.
10153
10154 2011-02-16 Tom Tromey <tromey@redhat.com>
10155
10156 * dwarf2loc.c (unimplemented): Fix typo.
10157
10158 2011-02-16 Tom Tromey <tromey@redhat.com>
10159
10160 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10161 (compile_dwarf_to_ax) <default>: Use unimplemented.
10162 <DW_OP_deref>: Update.
10163 (disassemble_dwarf_expression): Update.
10164 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10165 (decode_locdesc): Update.
10166 * dwarf2expr.h (dwarf_stack_op_name): Update.
10167
10168 2011-02-16 Tom Tromey <tromey@redhat.com>
10169
10170 * ax.h (struct aop_map) <name>: Now const.
10171
10172 2011-02-16 Tom Tromey <tromey@redhat.com>
10173
10174 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10175 than axs_rvalue.
10176
10177 2011-02-16 Yao Qi <yao@codesourcery.com>
10178
10179 * infrun.c (get_displaced_step_closure_by_addr): New.
10180 * inferior.h: Declare it.
10181 * arm-tdep.c: (arm_pc_is_thumb): Call
10182 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10183 returns non-NULL.
10184
10185 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10186 Jan Kratochvil <jan.kratochvil@redhat.com>
10187
10188 gdb/
10189 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10190
10191 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10192 Jan Kratochvil <jan.kratochvil@redhat.com>
10193
10194 * value.c (value_contents_copy_raw): Extend describing comment.
10195 Assert that the destination contents we're overwriting are wholly
10196 available.
10197 (value_contents_copy): Extend describing comment.
10198
10199 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10200 Jan Kratochvil <jan.kratochvil@redhat.com>
10201
10202 * value.c (value_available_contents_eq): Remove redundant local
10203 variables. Fix available contents comparision.
10204 * value.h (value_available_contents_eq): Extend describing
10205 comment.
10206
10207 2011-02-16 Yao Qi <yao@codesourcery.com>
10208
10209 * thread.c (info_threads_command): Add missing i18n markup and remove
10210 trailing newline.
10211
10212 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10213
10214 * breakpoint.c (longjmp_names): New variable.
10215 (struct breakpoint_objfile_data): New type.
10216 (breakpoint_objfile_key): New variable.
10217 (msym_not_found): New variable.
10218 (msym_not_found_p): New predicate.
10219 (get_breakpoint_objfile_data): New function.
10220 (create_overlay_event_breakpoint): Check per-objfile cache for
10221 symbols first.
10222 (create_longjmp_master_breakpoint): Likewise.
10223 (create_std_terminate_master_breakpoint): Likewise.
10224 (create_exception_master_breakpoint): Likewise.
10225 (_initialize_breakpoint): Register per-objfile data key.
10226
10227 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10228
10229 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10230 parameter value.
10231 (create_longjmp_master_breakpoint): Loop over longjmp names.
10232 (create_std_terminate_master_breakpoint): Const-propagate parameter
10233 value.
10234 (update_breakpoints_after_exec): Adjust.
10235 (breakpoint_re_set): Adjust.
10236
10237 2011-02-15 Michael Snyder <msnyder@vmware.com>
10238
10239 * thread.c (info_threads_command): Process arg as thread id,
10240 or list of thread ids.
10241 (thread_find_command): New command.
10242 (_initialize_thread): Document argument for info threads.
10243 Document 'thread find' command.
10244 * NEWS: Document new command "thread find".
10245
10246 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10247
10248 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10249 * aclocal.m4: Regenerated with aclocal-1.11.1.
10250 * common/configure: Regenerate with autoconf-2.64.
10251
10252 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10253
10254 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10255 bool data type to a size of one byte.
10256
10257 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10258 Jan Kratochvil <jan.kratochvil@redhat.com>
10259
10260 * target.c (memory_xfer_live_readonly_partial): Document where to
10261 look for interface description.
10262
10263 2011-02-15 Yao Qi <yao@codesourcery.com>
10264
10265 PR tdep/12352
10266 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10267 order to store PC value on stack instead of text section.
10268
10269 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10270
10271 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10272 the EFP register set size.
10273 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10274 data from the VMX register.
10275 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10276 and write data from/to the VMX register.
10277
10278 2011-02-14 Michael Snyder <msnyder@vmware.com>
10279
10280 * command.h (enum command_class): New class 'no_set_class', for
10281 "show" commands without a corresponding "set" command.
10282 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10283 * copying.c (_initialize_copying): Ditto for "show copying" and
10284 "show warranty".
10285 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10286 "show version".
10287 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10288 which there is no corresponding "set" command (eg. "show copying").
10289
10290 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10291 Jan Kratochvil <jan.kratochvil@redhat.com>
10292
10293 * exec.c (section_table_available_memory): Change `len' parameter
10294 type to ULONGEST.
10295 * exec.h (section_table_available_memory): Ditto.
10296 * value.h (read_value_memory): Rename the `offset' parameter to
10297 `embedded_offset'.
10298
10299 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10300 Jan Kratochvil <jan.kratochvil@redhat.com>
10301
10302 * memrange.c (compare_mem_ranges): Mention sort order in
10303 describing comment.
10304 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10305 * tracepoint.c (traceframe_available_memory): Extend comment to
10306 mention what happens to RESULT when the target does not support
10307 the query.
10308
10309 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10310 Jan Kratochvil <jan.kratochvil@redhat.com>
10311
10312 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10313 range.
10314
10315 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10316
10317 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10318 No longer handle NULL values.
10319
10320 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10321
10322 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10323 * value.c: Include "exceptions.h".
10324 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10325 generic error.
10326 * cp-abi.c: Include gdb_assert.h.
10327 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10328 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10329 errors.
10330 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10331 parameters. No longer returns -1 on error.
10332 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10333 `val' parameters.
10334 * cp-valprint.c: Include exceptions.h.
10335 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10336 the baseclass_offset. Handle unavailable base classes. Use
10337 val_print_invalid_address.
10338 * p-valprint.c: Include exceptions.h.
10339 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10340 when fetching the baseclass_offset. No longer expect
10341 baseclass_offset returning -1. Handle unavailable base classes.
10342 Use val_print_invalid_address.
10343 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10344 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10345 `embedded_offset' and `val' parameters. Adjust.
10346 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10347 parameter, and change its type to gdb_byte pointer. Add
10348 `embedded_offset' and `val' parameters. Adjust. No longer expect
10349 baseclass_offset returning -1.
10350 (value_dynamic_cast): Use value_contents_for_printing rather than
10351 value_contents. Adjust.
10352 (search_struct_field): No longer expect baseclass_offset returning
10353 -1.
10354 (search_struct_method): If reading memory from the target is
10355 necessary, wrap it in a new value to pass to baseclass_offset. No
10356 longer expect baseclass_offset returning -1.
10357 (find_method_list): No longer expect baseclass_offset returning
10358 -1. Use value_contents_for_printing rather than value_contents.
10359 * valprint.c (val_print_invalid_address): New function.
10360 * valprint.h (val_print_invalid_address): Declare.
10361 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10362 and `val' parameters. No longer expect baseclass_offset returning
10363 -1. Adjust.
10364 * gnu-v2-abi.c: Include "exceptions.h".
10365 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10366 parameters. Handle unavailable memory. Recurse through
10367 gnuv2_baseclass_offset directly, rather than through
10368 baseclass_offset. No longer returns -1 on not found, instead
10369 throw an error.
10370 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10371 `val' parameters. Adjust.
10372
10373 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10374
10375 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10376 almost but not quite adjacent.
10377
10378 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10379
10380 * value.h (value_entirely_available): Declare.
10381 * value.c (value_entirely_available): New function.
10382 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10383 real type if the pointer is unavailable.
10384
10385 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10386
10387 * valops.c (value_repeat): Use read_value_memory instead of
10388 read_memory.
10389
10390 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10391
10392 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10393 * value.c (value_contents_copy_raw, value_contents_copy): New
10394 functions.
10395 (value_primitive_field): Use value_contents_copy_raw instead of
10396 memcpy.
10397 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10398 memcpy.
10399 (value_array, value_slice): Ditto.
10400 * valarith.c (value_subscripted_rvalue): Use
10401 value_contents_copy_raw instead of memcpy.
10402
10403 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10404
10405 <unavailable> references.
10406
10407 * valops.c (get_value_at): Use value_from_contents_and_address,
10408 avoiding read_memory.
10409
10410 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10411
10412 * c-valprint.c (c_val_print): Print a string with unavailable
10413 contents as an array.
10414
10415 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10416
10417 * value.h (unpack_bits_as_long): Delete declaration.
10418 (unpack_value_bits_as_long): Declare.
10419 (unpack_value_field_as_long): Declare.
10420 (value_field_bitfield): Declare.
10421 * value.c (unpack_bits_as_long): Rename to...
10422 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10423 value parameters. Return the extracted result in a new output
10424 parameter. If the value contents are unavailable, return false,
10425 otherwise return true.
10426 (unpack_value_bits_as_long): New.
10427 (unpack_field_as_long): Rename to...
10428 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10429 Add embedded_offset and value parameters. Return the extracted
10430 result in a new output parameter. If the value contents are
10431 unavailable, return false, otherwise return true.
10432 (unpack_value_field_as_long): New.
10433 (unpack_field_as_long_1): New.
10434 (unpack_field_as_long): Reimplement as wrapper around
10435 unpack_value_field_as_long_1.
10436 (value_field_bitfield): New function.
10437 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10438 unpack_value_bits_as_long. Mark the value as unavailable, if it
10439 is unavailable.
10440 * jv-valprint.c (java_print_value_fields): Use
10441 value_field_bitfield.
10442 * p-valprint.c (pascal_object_print_value_fields): Use
10443 value_field_bitfield.
10444 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10445
10446 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10447
10448 * value.c (get_internalvar_integer): Also return the int value of
10449 TYPE_CODE_INT INTERNALVAR_VALUE values.
10450 (set_internalvar): Don't special case TYPE_CODE_INT.
10451
10452 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10453
10454 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10455 INTERNALVAR_POINTER.
10456 <pointer>: Delete.
10457 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10458 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10459 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10460
10461 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10462
10463 * value.h (value_available_contents_eq): Declare.
10464 * value.c (find_first_range_overlap): New function.
10465 (value_available_contents_eq): New function.
10466 * valprint.c (val_print_array_elements): Use
10467 value_available_contents_eq.
10468 * ada-valprint.c (val_print_packed_array_elements): Use
10469 value_available_contents_eq.
10470 * jv-valprint.c (java_value_print): Use
10471 value_available_contents_eq.
10472
10473 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10474
10475 * target.c (target_read_live_memory): New function.
10476 (memory_xfer_live_readonly_partial): New.
10477 (memory_xfer_partial): If reading from a traceframe, fallback to
10478 reading unavailable read-only memory from read-only regions of
10479 live target memory.
10480 * tracepoint.c (disconnect_tracing): Adjust.
10481 (set_current_traceframe): New, factored out from
10482 set_traceframe_number.
10483 (set_traceframe_number): Reimplement to only change the traceframe
10484 number on the GDB side.
10485 (do_restore_current_traceframe_cleanup): Adjust.
10486 (make_cleanup_restore_traceframe_number): New.
10487 (cur_traceframe_number): New global.
10488 (tfile_open): Set cur_traceframe_number to no traceframe.
10489 (set_tfile_traceframe): New function.
10490 (tfile_trace_find): If looking up a traceframe using any method
10491 other than by number, make sure the current tfile traceframe
10492 matches gdb's current traceframe. Update the current tfile
10493 traceframe if the lookup succeeded.
10494 (tfile_fetch_registers, tfile_xfer_partial)
10495 (tfile_get_trace_state_variable_value): Make sure the remote
10496 traceframe matches gdb's current traceframe.
10497 * remote.c (remote_traceframe_number): New global.
10498 (remote_open_1): Set it to -1.
10499 (set_remote_traceframe): New function.
10500 (remote_fetch_registers, remote_store_registers)
10501 (remote_xfer_memory, remote_xfer_partial)
10502 (remote_get_trace_state_variable_value): Make sure the remote
10503 traceframe matches gdb's current traceframe.
10504 (remote_trace_find): If looking up a traceframe using any method
10505 other than by number, make sure the current remote traceframe
10506 matches gdb's current traceframe. Update the current remote
10507 traceframe if the lookup succeeded.
10508 * infrun.c (fetch_inferior_event): Adjust.
10509 * tracepoint.h (set_current_traceframe): Declare.
10510 (get_traceframe_number, set_traceframe_number): Add describing
10511 comments.
10512
10513 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10514
10515 Mark pieces of values as unavailable if the corresponding memory
10516 is unavailable.
10517
10518 * valops.c: Include tracepoint.h.
10519 (value_fetch_lazy): Use read_value_memory.
10520 (read_value_memory): New.
10521 * value.h (read_value_memory): Declare.
10522 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10523 * exec.c (section_table_available_memory): New function.
10524 * exec.h (section_table_available_memory): Declare.
10525
10526 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10527
10528 * Makefile.in (SFILES): Add memrange.c.
10529 (HFILES_NO_SRCDIR): Add memrange.h.
10530 (COMMON_OBS): Add memrange.o.
10531 * memrange.c: New file.
10532 * memrange.h: New file.
10533 * tracepoint.c: Include memrange.h.
10534 (struct mem_range): Delete.
10535 (mem_range_s): Delete.
10536 (traceframe_available_memory): New function.
10537 * tracepoint.h (traceframe_available_memory): Declare.
10538
10539 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10540
10541 * target.h (struct traceframe_info): Forward declare.
10542 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10543 (struct target_ops) <to_traceframe_info>: New field.
10544 (target_traceframe_info): New.
10545 * target.c (update_current_target): Inherit and default
10546 to_traceframe_info.
10547 * remote.c (PACKET_qXfer_traceframe_info): New.
10548 (remote_protocol_features): Register qXfer:traceframe-info:read.
10549 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10550 (remote_traceframe_info): New.
10551 (init_remote_ops): Install it.
10552 (_initialize_remote): Install "set/show remote traceframe-info"
10553 commands.
10554 * tracepoint.h (parse_traceframe_info): Declare.
10555 * tracepoint.c (struct mem_range): New.
10556 (mem_range_s): New typedef.
10557 (struct traceframe_info): New.
10558 (traceframe_info): New global.
10559 (free_traceframe_info): New function.
10560 (clear_traceframe_info): New function.
10561 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10562 info.
10563 (build_traceframe_info): New function.
10564 (tfile_traceframe_info): New function.
10565 (init_tfile_ops): Install tfile_traceframe_info.
10566 (traceframe_info_start_memory, free_result): New functions.
10567 (memory_attributes, traceframe_info_elements): New globals.
10568 (parse_traceframe_info, get_traceframe_info): New functions.
10569 * features/traceframe-info.dtd: New file.
10570 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10571
10572 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10573
10574 Base support for <unavailable> value contents.
10575
10576 * value.h (value_bytes_available): Declare.
10577 (mark_value_bytes_unavailable): Declare.
10578 * value.c (struct range): New struct.
10579 (range_s): New typedef.
10580 (ranges_overlap): New function.
10581 (range_lessthan): New function.
10582 (ranges_contain_p): New function.
10583 (struct value) <unavailable>: New field.
10584 (value_bytes_available): New function.
10585 (mark_value_bytes_unavailable): New function.
10586 (require_not_optimized_out): Constify parameter.
10587 (require_available): New function.
10588 (value_contents_all, value_contents): Require all bytes be
10589 available.
10590 (value_free): Free `unavailable'.
10591 (value_copy): Copy `unavailable'.
10592 * valprint.h (val_print_unavailable): Declare.
10593 * valprint.c (valprint_check_validity): Rename `offset' parameter
10594 to `embedded_offset'. If printing a scalar, check whether the
10595 value chunk is available.
10596 (val_print_unavailable): New.
10597 (val_print_scalar_formatted): Check whether the value is
10598 available.
10599 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10600 pretty-printing unavailable values.
10601
10602 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10603
10604 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10605 * c-typeprint.c (c_type_print_args): Update the function comment. New
10606 variable param_type, initialize it. Remove const/volatile qualifiers
10607 for language_cplus and !show_artificial. Use param_type.
10608
10609 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10610
10611 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10612 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10613 * symtab.h (struct symtab) <next>: Comment extension.
10614
10615 2011-02-12 Yao Qi <yao@codesourcery.com>
10616
10617 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10618
10619 2011-02-11 Yao Qi <yao@codesourcery.com>
10620
10621 * common/Makefile.in: Add copyright header.
10622
10623 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10624
10625 * infrun.c (proceed): Move switching out and in of tfind mode from
10626 here ...
10627 (fetch_inferior_event): ... to here.
10628
10629 2011-02-11 Yao Qi <yao@codesourcery.com>
10630
10631 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10632 libcommon.a.
10633 * configure.ac: Add common to sub dir.
10634 * configure: Regenerate.
10635
10636 2011-02-11 Yao Qi <yao@codesourcery.com>
10637
10638 Build libcommon.a.
10639
10640 * common/Makefile.in: New.
10641 * common/configure.ac: New.
10642 * common/aclocal.m4: New.
10643 * common/configure: Generate.
10644
10645 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10646
10647 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10648 side of the parenthesis.
10649
10650 Merge from GCC:
10651 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10652 * vec.h (VEC_block_remove): Fix comment.
10653
10654 2011-02-08 Michael Snyder <msnyder@vmware.com>
10655
10656 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10657
10658 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10659
10660 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10661 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10662 psubd and paddd.
10663
10664 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10665
10666 PR 12361.
10667 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10668 phsubsw.
10669 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10670 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10671
10672 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10673
10674 * dwarf2read.c (read_subroutine_type): Set special calling
10675 convention flag for functions compiled by IBM XL C for OpenCL.
10676 * ppc-sysv-tdep.c: Include "dwarf2.h"
10677 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10678 calling convention.
10679 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10680 IBM OpenCL vector types calling convention.
10681 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10682 (ppc_sysv_abi_broken_return_value): Likewise.
10683 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10684 types calling convention.
10685 (ppc64_sysv_abi_return_value): Likewise.
10686 * spu-tdep.c: Include "dwarf2.h"
10687 (spu_return_value): Implement IBM OpenCL vector types calling
10688 convention.
10689
10690 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10691
10692 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10693 correct ABI for AltiVec vector arguments.
10694
10695 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10696
10697 * valprint.c (val_print): Extend comment.
10698 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10699 interface explanation to val_print.
10700 (ada_val_print_array): Adjust comment to current interface.
10701 (print_field_values): Adjust comment to current interface.
10702 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10703 explanation to val_print.
10704 * f-valprint.c (f_val_print): Ditto.
10705 * jv-valprint.c (java_val_print): Ditto.
10706 * m2-valprint.c (m2_val_print): Ditto.
10707 * p-valprint.c (pascal_val_print): Ditto.
10708
10709 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10710
10711 * breakpoint.c (parse_breakpoint_sals): Fix description.
10712
10713 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10714 Oguz Kayral <oguzkayral@gmail.com>
10715
10716 * python/py-inferior.c (python_on_normal_stop): New function.
10717 (python_on_resume): New function.
10718 (python_inferior_exit): New function.
10719 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10720 inferior_exit observers.
10721 * python/py-evtregistry.c: New file.
10722 * python/py-threadevent.c : New file.
10723 * python/py-event.c: New file.
10724 * python/py-evts.c: New file.
10725 * python/py-continueevent.c: New file.
10726 * python/py-bpevent.c: New file.
10727 * python/py-signalevent.c: New file.
10728 * python/py-exetiedevent.c: New file.
10729 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10730 Move struct breakpoint_object from here...
10731 * python/python-internal.h: ... to here.
10732 * python/py-event.h: New file.
10733 * python/py-events.h: New file.
10734 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10735 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10736 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10737 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10738 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10739 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10740 Add build rules for all the above.
10741
10742 2011-02-04 Tom Tromey <tromey@redhat.com>
10743
10744 * dwarf2read.c (dwarf2_section_empty_p): New function.
10745 (dwarf2_read_section): Use dwarf2_section_empty_p.
10746 (dwarf2_section_size): New function.
10747 (dwarf2_get_section_info): Unconditionally read section.
10748 (dwarf2_read_index): Use dwarf2_section_empty_p.
10749 (partial_read_comp_unit_head): Use dwarf2_section_size.
10750 (dwarf2_symbol_mark_computed): Likewise.
10751
10752 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10753
10754 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10755
10756 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10757
10758 * mips-linux-tdep.c: Include xml-syscall.h.
10759 (mips_linux_get_syscall_number): New function.
10760 (mips_linux_init_abi): Add calls to
10761 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10762 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10763 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10764 * syscalls/mips-n32-linux.xml: New file.
10765 * syscalls/mips-n64-linux.xml: New file.
10766 * syscalls/mips-o32-linux.xml: New file.
10767
10768 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10769
10770 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10771 Complain about inverted range entries.
10772 (dwarf2_record_block_ranges): Likewise.
10773
10774 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10775
10776 Fix some typos.
10777 * breakpoint.c (update_watchpoint): Fix name of the
10778 update_global_location_list function.
10779 (print_one_breakpoint): Fix typo.
10780 (_initialize_breakpoint): Remove extra space in hbreak help
10781 string.
10782 * breakpoint.h (struct bp_location) <length>: Fix field
10783 description.
10784
10785 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10786
10787 * regcache.c (registers_changed_ptid): Don't explictly always
10788 clear `current_regcache'. Only clear current_thread_ptid and
10789 current_thread_arch when PTID matches. Only reinit the frame
10790 cache if PTID matches the current inferior_ptid. Move alloca(0)
10791 call to ...
10792 (registers_changed): ... here.
10793
10794 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10795
10796 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10797 starts with __stack_chk_guard as stack guard symbol.
10798
10799 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10800
10801 * disasm.c (compare_lines): Handle the end of sequence markers
10802 within the line table to better support disassembling over
10803 compilation unit boundaries.
10804
10805 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10806
10807 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10808 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10809 implementation even if no symbols are available.
10810 (thumb_analyze_prologue): Update call to skip_prologue_function.
10811 (arm_analyze_prologue): Likewise.
10812
10813 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10814
10815 * arm-tdep.c: Include "observer.h".
10816 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10817 (arm_exidx_data_key): New static variable.
10818 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10819 (struct arm_exidx_data): Likewise.
10820 (arm_exidx_data_free): New function.
10821 (arm_compare_exidx_entries): Likewise.
10822 (arm_obj_section_from_vma): Likewise.
10823 (arm_exidx_new_objfile): Likewise.
10824 (arm_find_exidx_entry): Likewise.
10825 (arm_exidx_fill_cache): Likewise.
10826 (arm_exidx_unwind_sniffer): Likewise.
10827 (arm_exidx_unwind): New global variable.
10828 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10829 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10830 observer. Register arm_exidx_data_key as objfile data.
10831
10832 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10833
10834 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10835 due to accessing uninitialized variable. Fix indentation.
10836
10837 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10838
10839 * c-valprint.c (c_value_print): When doing virtual base pointer
10840 adjustment, create a new value with adjusted contents rather than
10841 changing the contents of the value being printed (and getting it
10842 wrong).
10843
10844 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10845
10846 * xml-support.c (xml_find_attribute): New.
10847 (xinclude_start_include): Use it.
10848 * xml-support.h (xml_find_attribute): Declare.
10849 * memory-map.c (memory_map_start_memory)
10850 (memory_map_start_property): Use xml_find_attribute.
10851 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10852 xml_find_attribute.
10853 * remote.c (start_thread): Use xml_find_attribute.
10854 * solib-target.c (library_list_start_segment)
10855 (library_list_start_section, library_list_start_library)
10856 (library_list_start_list): Use xml_find_attribute.
10857 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10858 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10859 (tdesc_start_field): Use xml_find_attribute.
10860
10861 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10862
10863 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10864 (BUILD_OCL_VTYPES): Update.
10865
10866 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10867
10868 * configure.ac: Work around non-GNU sed limitation when computing
10869 python version number.
10870 * configure: Regenerate.
10871
10872 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10873
10874 Fix debug printing of TYPE_INSTANCE.
10875 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10876 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10877
10878 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10879
10880 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10881 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10882 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10883 * ada-operator.inc: Rename the file to ...
10884 * ada-operator.def: ... here, wrap all the entries by macro OP.
10885 * expprint.c (op_name_standard): Remove all the entries. Include
10886 "std-operator.def" instead.
10887 * expression.h (enum exp_opcode): Include "std-operator.def" and
10888 "ada-operator.def". Move all the entries ...
10889 * std-operator.def: ... here, wrap all the entries by macro OP.
10890
10891 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10892
10893 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10894 * breakpoint.c (remove_jit_event_breakpoints): New function.
10895 * jit.c (jit_descriptor_addr): Delete.
10896 (registering_code): Delete.
10897 (clear_int): Delete.
10898 (jit_inferior_data): New variable.
10899 (struct jit_inferior_data): New type.
10900 (get_jit_inferior_data): New function.
10901 (jit_inferior_data_cleanup): New function.
10902 (jit_read_descriptor): Adjust.
10903 (jit_register_code): Adjust.
10904 (jit_breakpoint_re_set_internal): New function; move code here ...
10905 (jit_inferior_init): ... from here.
10906 (jit_breakpoint_re_set): Adjust.
10907 (jit_reset_inferior_data_and_breakpoints): New function.
10908 (jit_inferior_created_observer): Adjust.
10909 (jit_inferior_exit_hook): Adjust.
10910 (jit_executable_changed_observer): New function.
10911 (jit_event_handler): Adjust.
10912 (_initialize_jit): Adjust.
10913
10914 2011-01-31 Michael Snyder <msnyder@vmware.com>
10915
10916 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10917 line.
10918
10919 2011-01-31 Tom Tromey <tromey@redhat.com>
10920
10921 PR python/12216:
10922 * python/python.c (execute_gdb_command): Call
10923 prevent_dont_repeat.
10924 * top.c (suppress_dont_repeat): New global.
10925 (dont_repeat): Use it.
10926 (prevent_dont_repeat): New function.
10927 * command.h (prevent_dont_repeat): Declare.
10928
10929 2011-01-31 Tom Tromey <tromey@redhat.com>
10930
10931 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10932 * python/py-breakpoint.c (bppy_set_silent): Use
10933 breakpoint_set_silent.
10934 (bppy_set_thread): Use breakpoint_set_thread.
10935 (bppy_set_task): Use breakpoint_set_task.
10936 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10937 (breakpoint_set_task): Declare.
10938 (make_breakpoint_silent): Remove.
10939 * breakpoint.c (breakpoint_set_silent): New function.
10940 (breakpoint_set_thread): Likewise.
10941 (breakpoint_set_task): Likewise.
10942 (make_breakpoint_silent): Remove.
10943
10944 2011-01-31 Tom Tromey <tromey@redhat.com>
10945
10946 * breakpoint.h (user_breakpoint_p): Declare.
10947 * breakpoint.c (user_breakpoint_p): New function.
10948 (breakpoint_1): Use it.
10949 (save_breakpoints): Likewise.
10950
10951 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10952
10953 * configure.ac: Add handling of Python distribution on Windows.
10954 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10955 sysconfig variables are not defined, then do not use them.
10956 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10957 instead. On Windows, return all paths using forward-slashes
10958 rather than backslashes.
10959
10960 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10961
10962 * configure.ac: Remove fallback behavior for building
10963 against Python. Remove tweaking of Python include path.
10964 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10965 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10966 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10967 Always restore CPPFLAGS and LIBS after linking test.
10968 * configure: Regenerated.
10969 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10970 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10971 * python/python-internal.h: Adjust includes of Python .h files.
10972
10973 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10974
10975 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10976 in error message.
10977
10978 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10979
10980 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10981 value test.
10982
10983 2011-01-31 Yao Qi <yao@codesourcery.com>
10984
10985 * arm-linux-nat.c: Update calls to regcache_register_status
10986 instead of regcache_valid_p.
10987 * aix-thread.c: Likewise.
10988 * i386gnu-nat.c: Likewise.
10989
10990 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10991
10992 Fix crash.
10993 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10994 touching TYPE_FIELD_ARTIFICIAL.
10995
10996 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10997
10998 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10999 Committers.
11000
11001 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11002
11003 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11004 selected, don't try iterating over the traceframe's blocks.
11005 (tfile_has_stack): If there's no traceframe selected, then there's
11006 no stack.
11007 (tfile_has_registers): If there's no traceframe selected, then
11008 there's no registers.
11009
11010 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11011
11012 * target.c (memory_xfer_partial): No need to restore shadows if we
11013 haven't read anything.
11014
11015 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11016
11017 * mips-tdep.c (mips_print_register): Use get_frame_register_value
11018 and val_print_scalar_formatted.
11019
11020 2011-01-27 Pedro Alves <pedro@codesourcery.com>
11021
11022 * tracepoint.c (tfile_read): New.
11023 (tfile_open): Use it.
11024 (tfile_get_traceframe_address): Use it.
11025 (tfile_trace_find): Use it.
11026 (walk_blocks_callback_func): New typedef.
11027 (match_blocktype): New function.
11028 (traceframe_walk_blocks): New function.
11029 (traceframe_find_block_type): New function.
11030 (tfile_fetch_registers, tfile_xfer_partial)
11031 (tfile_get_trace_state_variable_value): Use
11032 traceframe_find_block_type and tfile_read.
11033
11034 2011-01-26 Kevin Buettner <kevinb@redhat.com>
11035
11036 * remote-mips.c: Add internationalization mark ups. Remove
11037 trailing \n from already marked up strings.
11038
11039 2011-01-26 Tom Tromey <tromey@redhat.com>
11040
11041 * python/py-prettyprint.c (print_string_repr): Clear
11042 'addressprint' option when calling val_print_string.
11043 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11044 option when calling val_print_string.
11045
11046 2011-01-26 Tom Tromey <tromey@redhat.com>
11047
11048 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11049 GDB_PY_LL_ARG.
11050 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11051 macros.
11052 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11053 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11054 (gdb_py_long_as_ulongest): New defines.
11055 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11056 (gdb_py_int_as_long): Declare.
11057 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11058 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11059 (valpy_long): Add comment.
11060 * python/py-utils.c (get_addr_from_python): Use
11061 gdb_py_long_as_ulongest. Handle overflow properly.
11062 (gdb_py_object_from_longest): New function.
11063 (gdb_py_object_from_ulongest): Likewise.
11064 (gdb_py_int_as_long): Likewise.
11065 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11066 * python/py-symtab.c (salpy_get_pc): Use
11067 gdb_py_long_from_ulongest.
11068 (salpy_get_line): Use PyInt_FromLong.
11069 * python/py-param.c (set_parameter_value): Use
11070 gdb_py_int_as_long.
11071 * python/py-lazy-string.c (stpy_get_address): Use
11072 gdb_py_long_from_ulongest.
11073 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11074 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11075 * python/py-breakpoint.c (bppy_set_thread): Use
11076 gdb_py_int_as_long.
11077 (bppy_set_task): Likewise.
11078 (bppy_set_ignore_count): Likewise.
11079 (bppy_set_hit_count): Likewise.
11080 * python/py-block.c (blpy_get_start): Use
11081 gdb_py_object_from_ulongest.
11082 (blpy_get_end): Likewise.
11083 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11084
11085 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11086
11087 PR/symtab 11766:
11088 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11089 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11090 equality test for objfile, initialize addr_low if needed.
11091
11092 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11093
11094 * tui/tui-regs.c (tui_register_format): Remove dead code.
11095
11096 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11097
11098 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11099 instead of print_scalar_formatted.
11100 (print_scalar_formatted): Don't handle 's' format strings here,
11101 and add an assertion that we never see such format here.
11102 * valprint.h (val_print_scalar_formatted): Declare.
11103 * valprint.c (val_print_scalar_formatted): New.
11104 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11105 instead of print_scalar_formatted.
11106 * jv-valprint.c (java_val_print): Ditto.
11107 * p-valprint.c (pascal_val_print): Ditto.
11108 * ada-valprint.c (ada_val_print_1): Ditto.
11109 * f-valprint.c (f_val_print): Ditto.
11110 * infcmd.c (registers_info): Ditto.
11111 * m2-valprint.c (m2_val_print): Ditto.
11112
11113 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11114
11115 * m2-valprint.c (print_unbounded_array): Pass
11116 value_contents_for_printing rather than value_contents, to
11117 m2_print_array_contents. Also pass in the value.
11118
11119 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11120
11121 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11122 (save_gdb_index_command): Switch to .gdb_index version 4.
11123
11124 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11125
11126 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11127 than frame_register, and always pass a valid value to val_print.
11128
11129 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11130
11131 Centralize printing "<optimized out>".
11132
11133 * valprint.h (val_print_optimized_out): Declare.
11134 * cp-valprint.c (cp_print_value_fields): Use
11135 val_print_optimized_out.
11136 * jv-valprint.c (java_print_value_fields): Ditto.
11137 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11138 * printcmd.c (print_formatted): Ditto.
11139 * valprint.c (valprint_check_validity): Ditto.
11140 (value_check_printable): Ditto.
11141 (val_print_optimized_out): New.
11142
11143 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11144
11145 * infcmd.c (default_print_registers_info): Allocate values so to
11146 never pass a NULL value to val_print.
11147
11148 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11149
11150 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11151 boolean. Make sure to always pass a value that matches the
11152 contents buffer to callees. Preserve `address' for following
11153 iterations.
11154 * value.c (value_contents_for_printing_const): New.
11155 (value_address): Constify value argument.
11156 * value.h (value_contents_for_printing_const): Declare.
11157 (value_address): Constify value argument.
11158
11159 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11160
11161 * regcache.c (struct regcache_descr): Rename
11162 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11163 and sizeof_cooked_register_valid_p to
11164 sizeof_cooked_register_status.
11165 (init_regcache_descr): Adjust.
11166 (struct regcache): Rename register_valid_p field to
11167 register_status.
11168 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11169 (do_cooked_read): Adjust.
11170 (regcache_valid_p): Rename to ...
11171 (regcache_register_status): ... this. Adjust.
11172 (regcache_invalidate): Adjust.
11173 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11174 Adjust.
11175 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11176 as unavailable, not valid.
11177 (regcache_dump): Adjust.
11178 * regcache.h (enum register_status): New.
11179 (regcache_register_status): Declare.
11180 (regcache_invalidate): Delete declaration.
11181 * corelow.c (get_core_registers): Adjust.
11182 * tracepoint.c (tfile_fetch_registers): Adjust.
11183 * trad-frame.c (REG_VALUE): Rename to ...
11184 (TF_REG_VALUE): ... this.
11185 (REG_UNKNOWN): Rename to ...
11186 (TF_REG_UNKNOWN): ... this.
11187 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11188 * mi/mi-main.c (register_changed_p): Adjust.
11189
11190 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11191
11192 * regcache.c (struct regcache_descr): Remove outdated comment.
11193 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11194 overallocate hack.
11195 (regcache_xmalloc): Rename to ...
11196 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11197 Allocate the regcache type accordingly.
11198 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11199 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11200 cooked registers, not raw.
11201 (regcache_dup_no_passthrough): Delete.
11202 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11203 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11204 mention obsolete write_register_bytes.
11205 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11206
11207 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11208
11209 Stop remote_read_bytes from handling partial reads itself.
11210
11211 * remote-fileio.c: Include target.h.
11212 (remote_fileio_write_bytes): Delete.
11213 (remote_fileio_func_open, remote_fileio_func_write)
11214 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11215 target_read_memory.
11216 (remote_fileio_func_stat): Use target_read_memory and
11217 target_write_memory.
11218 (remote_fileio_func_gettimeofday): Use target_write_memory.
11219 (remote_fileio_func_system): Use target_read_memory.
11220 * remote.c (remote_write_bytes): Make it static.
11221 (remote_read_bytes): Don't handle partial reads here.
11222 * remote.h (remote_read_bytes): Delete declaration.
11223
11224 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11225
11226 Simplify XML parsing a bit.
11227
11228 * xml-support.h (gdb_xml_parse_quick): Declare.
11229 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11230 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11231 parameter.
11232 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11233 gdb_xml_create_parser_and_cleanup_1.
11234 (gdb_xml_parse_quick): New.
11235 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11236 * osdata.c (osdata_parse): Ditto.
11237 * remote.c (remote_threads_info): Ditto.
11238 * solib-target.c (solib_target_parse_libraries): Ditto.
11239 * xml-syscall.c (syscall_parse_xml): Ditto.
11240 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11241
11242 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11243
11244 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11245 with remote-mips.o added to gdb_target_obs.
11246 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11247
11248 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11249
11250 * ada-valprint.c (val_print_packed_array_elements): Pass the
11251 correct struct value to val_print.
11252 (ada_val_print_1): Ditto.
11253
11254 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11255
11256 Don't lose embedded_offset in printing routines throughout.
11257
11258 * valprint.h (val_print_array_elements): Change prototype.
11259 * valprint.c (val_print_array_elements): Add `embedded_offset'
11260 parameter, and adjust to pass it down to val_print, while passing
11261 `valaddr' or `address' unmodified. Take embedded_offset into
11262 account when checking repetitions.
11263 * c-valprint.c (c_val_print): Pass embedded_offset to
11264 val_print_array_elements instead of adjusting `valaddr' and
11265 `address'.
11266 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11267 embedded_offset to val_print_array_elements instead of adjusting
11268 `valaddr'.
11269 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11270 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11271 val_print_array_elements and pascal_object_print_value_fields
11272 instead of adjusting `valaddr'.
11273 (pascal_object_print_value_fields): Add `offset' parameter, and
11274 adjust to use it.
11275 (pascal_object_print_value): Add `offset' parameter, and adjust to
11276 use it.
11277 (pascal_object_print_static_field): Use
11278 value_contents_for_printing/value_embedded_offset, rather than
11279 value_contents.
11280 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11281 parameter, and adjust to use it. Use
11282 value_contents_for_printing/value_embedded_offset, rather than
11283 value_contents.
11284 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11285 (ada_val_print_array): Add `offset' parameter, and adjust to use
11286 it.
11287 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11288 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11289 Instead work with offsets. Use
11290 value_contents_for_printing/value_embedded_offset, rather than
11291 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11292 and use value_from_pointer to extract a target pointer, rather
11293 than value_from_longest.
11294 (print_variant_part): Add `offset' parameter. Replace
11295 `outer_valaddr' parameter by a new `outer_offset' parameter.
11296 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11297 (ada_value_print): Use
11298 value_contents_for_printing/value_embedded_offset, rather than
11299 value_contents.
11300 (print_record): Add `offset' parameter, and adjust to pass it
11301 down.
11302 (print_field_values): Add `offset' parameter. Replace
11303 `outer_valaddr' parameter by a new `outer_offset' parameter.
11304 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11305 Use value_contents_for_printing/value_embedded_offset, rather than
11306 value_contents.
11307 * d-valprint.c (dynamic_array_type): Use
11308 value_contents_for_printing/value_embedded_offset, rather than
11309 value_contents.
11310 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11311 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11312 (java_print_value_fields): Take `offset' into account. Don't
11313 re-adjust `valaddr'. Instead pass down adjusted offsets.
11314 (java_val_print): Take `embedded_offset' into account. Pass it to
11315 java_print_value_fields.
11316 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11317 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11318 down adjusted offsets.
11319 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11320 (f_val_print): Take `embedded_offset' into account.
11321
11322 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11323
11324 * inflow.c: Include "gdbcmd.h".
11325 (interactive_mode): New static global, moved here from top.c.
11326 (show_interactive_mode): New function, moved here from top.c.
11327 use gdb_has_a_terminal instead of input_from_terminal_p to
11328 determine the current mode.
11329 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11330 setting.
11331 (_initialize_inflow): Add the "set/show interactive-mode"
11332 commands. Moved here from top.c, after having adjusted slightly
11333 the help text.
11334 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11335 to inflow.c.
11336 (input_from_terminal_p): Remove handling of "interactive-mode"
11337 setting, moved to infow.c.
11338 (init_main): Remove creation of the "set/show interactive-mode"
11339 commands, moved to inflow.c.
11340
11341 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11342
11343 * NEWS: Add entry for native ia64-hpux support.
11344
11345 2011-01-19 Tom Tromey <tromey@redhat.com>
11346
11347 PR mi/8618:
11348 * thread.c (free_thread): Free 'name'.
11349 (print_thread_info): Emit thread name. Change CLI output.
11350 (thread_name_command): New function.
11351 (do_captured_thread_select): Emit newline.
11352 (_initialize_thread): Register 'thread name' command.
11353 * target.h (struct target_ops) <to_thread_name>: New field.
11354 (target_thread_name): New macro.
11355 * target.c (update_current_target): Handle to_thread_name.
11356 * python/py-infthread.c (thpy_get_name): New function.
11357 (thpy_set_name): Likewise.
11358 (thread_object_getset): Add "name".
11359 * linux-nat.c (linux_nat_thread_name): New function.
11360 (linux_nat_add_target): Set to_thread_name.
11361 * gdbthread.h (struct thread_info) <name>: New field.
11362
11363 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11364
11365 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11366 (ada_val_print_1): Likewise.
11367
11368 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11369
11370 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11371 upper limit address is not greater than the function end address
11372 when the upper limit could not be computed using the debugging
11373 info.
11374
11375 2011-01-17 Tom Tromey <tromey@redhat.com>
11376
11377 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11378 get_regcomp_error.
11379 * utils.c: Include gdb_regex.h.
11380 (do_regfree_cleanup): New function.
11381 (make_regfree_cleanup): Likewise.
11382 (get_regcomp_error): Likewise.
11383 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11384
11385 2011-01-17 Tom Tromey <tromey@redhat.com>
11386
11387 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11388 re_compile_fastmap.
11389
11390 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11391
11392 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11393 for internal variables.
11394 (last_was_structop): New static variable.
11395 (COMPLETE): New token.
11396 (field_exp): New rule to group all '.' suffix handling.
11397 Add mark_struct_expression calls when approriate to be able
11398 to correctly find fields for completion.
11399 (yylex): Adapt to handle field completion and set INTVAR when
11400 required.
11401
11402 2011-01-14 Yao Qi <yao@codesourcery.com>
11403
11404 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11405 save_reggroup, restore_reggroup and all_reggroup.
11406
11407 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11408
11409 * ada-valprint. (ada_printchar): Use the correct type length
11410 in call to ada_emit_char.
11411 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11412
11413 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11414
11415 * solib-som.h (hpux_major_release): Declare variable here.
11416 * solib-som.c: Remove <sys/utsname.h> header.
11417 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11418 (hpux_major_release): Make global, change default value to
11419 DEFAULT_HPUX_MAJOR_RELEASE.
11420 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11421 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11422 Add "solib-som.h" header.
11423 (set_hpux_major_release): New function.
11424 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11425
11426 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11427
11428 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11429
11430 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11431
11432 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11433 new-line at end of warning message.
11434 (ia64_hpux_store_register): Remove trailing new-line at end of
11435 error message.
11436 * ia64-hpux-tdep.c: Rephrase comment.
11437 * solib-ia64-hpux.c (struct dld_info): Change type of field
11438 dld_flags from "long long" to ULONGEST.
11439
11440 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11441
11442 * target.h (deprecated_child_ops): Delete declaration.
11443 * target.c (deprecated_child_ops): Delete definition.
11444
11445 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11446
11447 * Makefile.in (hpux-thread.o): Delete rule.
11448 * configure.ac: Don't check for HPUX DCE threads support.
11449 * configure, config.in: Regenerate.
11450 * hppa-hpux-nat.c (child_suppress_run): Delete.
11451 (hppa_hpux_child_can_run): Delete.
11452 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11453 * hpux-thread.c: Delete.
11454
11455 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11456
11457 * hpux-thread.c (hpux_pid_to_str): Delete.
11458
11459 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11460
11461 * ada-valprint.c (ada_emit_char): Remove strange code.
11462 Check that c is <= UCHAR_MAX before passing it to isascii.
11463 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11464
11465 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11466
11467 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11468 to the case where instream is stdin.
11469
11470 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11471
11472 * ia64-tdep.h (struct regcache): Forward declare.
11473 (struct ia64_infcall_ops): New struct type.
11474 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11475 and "infcall_ops".
11476 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11477 Renames ia64_find_global_pointer.
11478 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11479 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11480 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11481 methods.
11482 (ia64_infcall_ops): New static global constant.
11483 (ia64_gdbarch_init): Set tdep->infcall_ops.
11484 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11485 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11486 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11487 (ia64_hpux_dummy_code): New static global constant.
11488 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11489 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11490 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11491 New function.
11492 (ia64_hpux_infcall_ops): New static global constant.
11493 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11494 for inferior function calls to work properly on ia64-hpux.
11495
11496 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11497
11498 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11499 * ia64-tdep.h (struct frame_info): forward declaration.
11500 (struct gdbarch_tdep): Add field size_of_register_frame.
11501 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11502 to determine the size of the register frame.
11503 (ia64_size_of_register_frame): New function.
11504 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11505 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11506 (IA64_HPUX_UREG_REASON): New macro.
11507 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11508 New functions.
11509 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11510 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11511 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11512 objects.
11513
11514 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11515
11516 Add support for ia64-hpux.
11517 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11518 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11519
11520 * configure.host: Add handling for ia64-hpux hosts. Add associated
11521 floatformats.
11522 * configure.tgt: Add handling for ia64-hpux targets.
11523 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11524 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11525 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11526
11527 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11528
11529 [ttrace] Compute thread list immediately after attach.
11530 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11531 New subprogram.
11532 (inf_ttrace_attach): Use it.
11533
11534 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11535
11536 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11537 if we could not determine the frame's function address. Instead,
11538 use the frame's PC, and then continue.
11539
11540 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11541
11542 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11543 not already defined.
11544
11545 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11546
11547 * ia64-tdep.c (ia64_struct_type_p): New function.
11548 (ia64_extract_return_value): Handle integral values that are
11549 less than 8 bytes long.
11550 (ia64_push_dummy_call): Likewise.
11551
11552 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11553
11554 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11555 floatformat_ia64_ext.
11556 (floatformat_ia64_ext_big): New static const.
11557 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11558
11559 2011-01-12 Tom Tromey <tromey@redhat.com>
11560
11561 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11562 messages.
11563 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11564 (mi_cmd_thread_list_ids): Likewise.
11565 (mi_cmd_data_list_changed_registers): Likewise.
11566 (mi_cmd_data_list_register_values): Likewise.
11567 (mi_cmd_data_write_register_values): Likewise.
11568 (mi_cmd_data_evaluate_expression): Likewise.
11569 (mi_cmd_data_read_memory): Likewise.
11570 (mi_cmd_data_read_memory_bytes): Likewise.
11571 (mi_cmd_data_write_memory): Likewise.
11572 (mi_cmd_enable_timings): Likewise.
11573 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11574 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11575 (mi_cmd_var_delete): Likewise.
11576 (mi_cmd_var_set_format): Likewise.
11577 (mi_cmd_var_show_format): Likewise.
11578 (mi_cmd_var_info_num_children): Likewise.
11579 (mi_cmd_var_list_children): Likewise.
11580 (mi_cmd_var_info_type): Likewise.
11581 (mi_cmd_var_info_expression): Likewise.
11582 (mi_cmd_var_show_attributes): Likewise.
11583 (mi_cmd_var_assign): Likewise.
11584 (mi_cmd_var_update): Likewise.
11585 (mi_cmd_enable_pretty_printing): Likewise.
11586 (mi_cmd_var_set_update_range): Likewise.
11587 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11588 messages.
11589 (mi_cmd_target_file_put): Likewise.
11590 (mi_cmd_target_file_delete): Likewise.
11591 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11592 messages.
11593 (mi_cmd_stack_info_depth): Likewise.
11594 (mi_cmd_stack_list_locals): Likewise.
11595 (mi_cmd_stack_list_args): Likewise.
11596 (mi_cmd_stack_select_frame): Likewise.
11597 (mi_cmd_stack_select_frame): Likewise.
11598 (mi_cmd_stack_info_frame): Likewise.
11599 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11600 messages.
11601 (mi_cmd_file_list_exec_source_files): Likewise.
11602 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11603 (mi_cmd_env_cd): Likewise.
11604 (mi_cmd_env_path): Likewise.
11605 (mi_cmd_env_dir): Likewise.
11606 (mi_cmd_inferior_tty_show): Likewise.
11607 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11608 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11609 (mi_cmd_break_watch): Likewise.
11610
11611 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11612
11613 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11614 (ppc_linux_insert_hw_breakpoint): Likewise.
11615 (ppc_linux_remove_hw_breakpoint): Likewise.
11616 (ppc_linux_insert_watchpoint): Likewise.
11617
11618 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11619 Jan Kratochvil <jan.kratochvil@redhat.com>
11620
11621 PR fortran/11104 and DWARF unbound arrays detection.
11622 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11623 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11624 unspecified upper bound.
11625 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11626 variables array_size_array, tmp_type and offset_item. New variable
11627 array. Remove call to f77_get_upperbound. New variables array_type
11628 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11629 the final call to deprecated_set_value_type.
11630
11631 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11632
11633 Make value allocations more lazy.
11634 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11635 instead of allocate_value and set_value_lazy when possible.
11636 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11637 instead of allocate_value and set_value_lazy.
11638 * findvar.c (value_of_register_lazy): Likewise.
11639 (read_var_value): Remove V preallocation, call just check_typedef in
11640 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11641 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11642 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11643 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11644 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11645 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11646 the end, remove set_value_lazy there.
11647 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11648 instead of allocate_value and set_value_lazy when possible.
11649 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11650 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11651 of allocate_value and set_value_lazy.
11652 (value_from_contents_and_address): Use allocate_value_lazy instead of
11653 allocate_value and set_value_lazy when possible.
11654
11655 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11656
11657 * disasm.c (dump_insns): Support dumping opcodes for MI.
11658 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11659 dumping of instruction opcodes.
11660
11661 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11662
11663 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11664 appropiately.
11665
11666 2011-01-11 Tom Tromey <tromey@redhat.com>
11667
11668 * thread.c (do_captured_thread_select): Emit newline before
11669 printing frame.
11670
11671 2011-01-11 Michael Snyder <msnyder@vmware.com>
11672
11673 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11674 * score-tdep.c: Ditto.
11675 * score-tdep.h: Ditto.
11676 * ser-base.c: Ditto.
11677 * ser-go32.c: Ditto.
11678 * serial.c: Ditto.
11679 * serial.h: Ditto.
11680 * ser-mingw.c: Ditto.
11681 * ser-pipe.c: Ditto.
11682 * ser-tcp.c: Ditto.
11683 * ser-unix.c: Ditto.
11684 * sh64-tdep.c: Ditto.
11685 * shnbsd-nat.c: Ditto.
11686 * sh-tdep.c: Ditto.
11687 * sh-tdep.h: Ditto.
11688 * solib.c: Ditto.
11689 * solib-darwin.c: Ditto.
11690 * solib-frv.c: Ditto.
11691 * solib.h: Ditto.
11692 * solib-irix.c: Ditto.
11693 * solib-osf.c: Ditto.
11694 * solib-pa64.c: Ditto.
11695 * solib-som.c: Ditto.
11696 * solib-spu.c: Ditto.
11697 * solib-sunos.c: Ditto.
11698 * solib-svr4.c: Ditto.
11699 * solist.h: Ditto.
11700 * sol-thread.c: Ditto.
11701 * somread.c: Ditto.
11702 * source.c: Ditto.
11703 * source.h: Ditto.
11704 * sparc64-linux-tdep.c: Ditto.
11705 * sparc64-tdep.c: Ditto.
11706 * sparc-linux-nat.c: Ditto.
11707 * sparc-linux-tdep.c: Ditto.
11708 * sparc-sol2-nat.c: Ditto.
11709 * sparc-sol2-tdep.c: Ditto.
11710 * sparc-tdep.c: Ditto.
11711 * sparc-tdep.h: Ditto.
11712 * spu-tdep.c: Ditto.
11713 * stabsread.c: Ditto.
11714 * stabsread.h: Ditto.
11715 * stack.c: Ditto.
11716 * symfile.c: Ditto.
11717 * symfile.h: Ditto.
11718 * symmisc.c: Ditto.
11719 * symtab.c: Ditto.
11720 * symtab.h: Ditto.
11721 * target.c: Ditto.
11722 * target-descriptions.c: Ditto.
11723 * target-descriptions.h: Ditto.
11724 * target.h: Ditto.
11725 * target-memory.c: Ditto.
11726 * terminal.h: Ditto.
11727 * thread.c: Ditto.
11728 * top.c: Ditto.
11729 * tracepoint.c: Ditto.
11730 * tracepoint.h: Ditto.
11731 * trad-frame.h: Ditto.
11732 * typeprint.c: Ditto.
11733
11734 2011-01-11 Michael Snyder <msnyder@vmware.com>
11735
11736 * ui-file.c: Comment cleanup, mostly periods and spaces.
11737 * ui-file.h: Ditto.
11738 * ui-out.c: Ditto.
11739 * ui-out.h: Ditto.
11740 * utils.c: Ditto.
11741 * v850-tdep.c: Ditto.
11742 * valarith.c: Ditto.
11743 * valops.c: Ditto.
11744 * valprint.c: Ditto.
11745 * valprint.h: Ditto.
11746 * value.c: Ditto.
11747 * value.h: Ditto.
11748 * varobj.c: Ditto.
11749 * varobj.h: Ditto.
11750 * vax-tdep.c: Ditto.
11751 * vec.c: Ditto.
11752 * vec.h: Ditto.
11753 * version.h: Ditto.
11754 * windows-nat.c: Ditto.
11755 * windows-tdep.c: Ditto.
11756 * xcoffread.c: Ditto.
11757 * xcoffsolib.c: Ditto.
11758 * xml-support.c: Ditto.
11759 * xstormy16-tdep.c: Ditto.
11760 * xtensa-tdep.c: Ditto.
11761 * xtensa-tdep.h: Ditto.
11762
11763 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11764
11765 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11766 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11767
11768 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11769 Thiago Jung Bauermann <bauerman@br.ibm.com>
11770
11771 Implement support for PowerPC BookE ranged watchpoints.
11772 * breakpoint.h
11773 (struct breakpoint_ops) <resources_needed>: New method.
11774 Initialize to NULL in all existing breakpoint_ops instances.
11775 (struct breakpoint) <exact>: New field.
11776 (target_exact_watchpoints): Declare external global.
11777 * breakpoint.c (target_exact_watchpoints): New global flag.
11778 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11779 b->enable_state to bp_enabled before calling
11780 hw_watchpoint_used_count.
11781 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11782 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11783 if available.
11784 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11785 if the watchpoint is exact.
11786 (resources_needed_watchpoint): New function.
11787 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11788 (watch_command_1): Set b->exact if the user asked for an exact
11789 watchpoint and one can be set.
11790 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11791 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11792 the user asks for an exact watchpoint and one can be set. Return
11793 number of needed debug registers to watch the expression.
11794 * gdbtypes.c (is_scalar_type): New function, based on
11795 valprint.c:scalar_type_p.
11796 (is_scalar_type_recursive): New function.
11797 * gdbtypes.h (is_scalar_type_recursive): Declare.
11798 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11799 handle regions when ranged watchpoints are available.
11800 (create_watchpoint_request): New function.
11801 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11802 create_watchpoint_request.
11803 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11804 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11805 `set powerpc' and `show powerpc' commands.
11806 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11807 Mention documentation comment in the target macro.
11808 (target_region_ok_for_hw_watchpoint): Document return value.
11809
11810 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11811
11812 * breakpoint.c (update_watchpoint): Decide on using a software or
11813 hardware watchpoint after the bp_locations are created.
11814
11815 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11816
11817 Convert hardware watchpoints to use breakpoint_ops.
11818 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11819 <insert_location>: ... this. Return int instead of void.
11820 Accept pointer to struct bp_location instead of pointer to
11821 struct breakpoint. Adapt all implementations.
11822 (breakpoint_ops) <remove>: Rename to...
11823 <remove_location>: ... this. Accept pointer to struct bp_location
11824 instead of pointer to struct breakpoint. Adapt all implementations.
11825 * breakpoint.c (insert_catchpoint): Delete function.
11826 (insert_bp_location): Call the watchpoint or catchpoint's
11827 breakpoint_ops.insert method.
11828 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11829 breakpoint_ops.remove method.
11830 (insert_watchpoint, remove_watchpoint): New functions.
11831 (watchpoint_breakpoint_ops): New structure.
11832 (watch_command_1): Initialize the OPS field.
11833 * inf-child.c (inf_child_insert_fork_catchpoint)
11834 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11835 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11836 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11837 Delete functions.
11838 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11839 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11840 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11841 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11842 * target.c (update_current_target): Change default implementation of
11843 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11844 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11845 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11846 to_set_syscall_catchpoint to return_one.
11847 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11848 (debug_to_insert_exec_catchpoint): Report return value.
11849 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11850 (to_insert_exec_catchpoint): Change declaration to return int instead
11851 of void.
11852
11853 2011-01-11 Michael Snyder <msnyder@vmware.com>
11854
11855 * arm-tdep.c: Internationalization.
11856 * c-lang.c: Ditto.
11857 * charset.c: Ditto.
11858 * fork-child.c: Ditto.
11859 * nto-procfs.c: Ditto.
11860 * ppc-sysv-tdep.c: Ditto.
11861 * procfs.c: Ditto.
11862 * remote-mips.c: Ditto.
11863 * remote.c: Ditto.
11864 * rs6000-nat.c: Ditto.
11865 * rs6000-tdep.c: Ditto.
11866 * target.c: Ditto.
11867 * valops.c: Ditto.
11868 * value.c: Ditto.
11869 * xml-support.c: Ditto.
11870 * mi/mi-cmd-break.c: Ditto.
11871 * mi/mi-cmd-var.c: Ditto.
11872 * mi/mi-interp.c: Ditto.
11873 * mi/mi-main.c: Ditto.
11874
11875 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11876
11877 * remote-sim.c (gdbsim_store_register): Update API to
11878 sim_store_register to check more error conditions.
11879
11880 2011-01-10 Michael Snyder <msnyder@vmware.com>
11881
11882 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11883 * nto-tdep.c: Ditto.
11884 * nto-tdep.h: Ditto.
11885 * objc-exp.y: Ditto.
11886 * objc-lang.c: Ditto.
11887 * objfiles.c: Ditto.
11888 * objfiles.h: Ditto.
11889 * observer.c: Ditto.
11890 * opencl-lang.c: Ditto.
11891 * osabi.c: Ditto.
11892 * parse.c: Ditto.
11893 * parser-defs.h: Ditto.
11894 * p-exp.y: Ditto.
11895 * p-lang.c: Ditto.
11896 * posix-hdep.c: Ditto.
11897 * ppcbug-rom.c: Ditto.
11898 * ppc-linux-nat.c: Ditto.
11899 * ppc-linux-tdep.c: Ditto.
11900 * ppc-linux-tdep.h: Ditto.
11901 * ppcnbsd-tdep.c: Ditto.
11902 * ppcobsd-tdep.c: Ditto.
11903 * ppcobsd-tdep.h: Ditto.
11904 * ppc-sysv-tdep.c: Ditto.
11905 * ppc-tdep.h: Ditto.
11906 * printcmd.c: Ditto.
11907 * proc-abi.c: Ditto.
11908 * proc-flags.c: Ditto.
11909 * procfs.c: Ditto.
11910 * proc-utils.h: Ditto.
11911 * progspace.h: Ditto.
11912 * prologue-value.c: Ditto.
11913 * prologue-value.h: Ditto.
11914 * psympriv.h: Ditto.
11915 * psymtab.c: Ditto.
11916 * p-typeprint.c: Ditto.
11917 * p-valprint.c: Ditto.
11918 * ravenscar-sparc-thread.c: Ditto.
11919 * ravenscar-thread.c: Ditto.
11920 * ravenscar-thread.h: Ditto.
11921 * record.c: Ditto.
11922 * regcache.c: Ditto.
11923 * regcache.h: Ditto.
11924 * remote.c: Ditto.
11925 * remote-fileio.c: Ditto.
11926 * remote-fileio.h: Ditto.
11927 * remote.h: Ditto.
11928 * remote-m32r-sdi.c: Ditto.
11929 * remote-mips.c: Ditto.
11930 * remote-sim.c: Ditto.
11931 * rs6000-aix-tdep.c: Ditto.
11932 * rs6000-nat.c: Ditto.
11933 * rs6000-tdep.c: Ditto.
11934
11935 2011-01-10 Michael Snyder <msnyder@vmware.com>
11936
11937 * charset.c (validate): Internationalization.
11938 * coffread.c (read_one_sym): Ditto.
11939 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11940 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11941 * inflow.c (new_tty): Ditto.
11942 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11943 * m32c-tdep.c (m32c_return_value): Ditto.
11944 * mep-tdep.c (mep_store_return_value): Ditto.
11945 * score-tdep.c (score7_fetch_insn): Ditto.
11946 * ser-mingw.c (pipe_windows_open): Ditto.
11947 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11948 * spu-tdep.c (spu_register_type): Ditto.
11949 * tracepoint.c (trace_find_command): Ditto.
11950 * valarith.c (value_pos): Ditto.
11951
11952 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11953
11954 * ada-valprint.c (printstr): Minor comment reformatting.
11955
11956 2011-01-08 Michael Snyder <msnyder@vmware.com>
11957
11958 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11959 markup.
11960
11961 2011-01-08 Michael Snyder <msnyder@vmware.com>
11962
11963 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11964 * hppa-hpux-tdep.c: Ditto.
11965 * hppa-linux-nat.c: Ditto.
11966 * hppa-linux-tdep.c: Ditto.
11967 * hppanbsd-tdep.c: Ditto.
11968 * hppa-tdep.c: Ditto.
11969 * hppa-tdep.h: Ditto.
11970 * hpux-thread.c: Ditto.
11971 * i386-cygwin-tdep.c: Ditto.
11972 * i386-darwin-nat.c: Ditto.
11973 * i386gnu-nat.c: Ditto.
11974 * i386-linux-nat.c: Ditto.
11975 * i386-linux-tdep.c: Ditto.
11976 * i386-nat.c: Ditto.
11977 * i386-nat.h: Ditto.
11978 * i386nbsd-tdep.c: Ditto.
11979 * i386-sol2-nat.c: Ditto.
11980 * i386-stub.c: Ditto.
11981 * i386-tdep.c: Ditto.
11982 * i386-tdep.h: Ditto.
11983 * i387-tdep.c: Ditto.
11984 * ia64-linux-nat.c: Ditto.
11985 * ia64-linux-tdep.c: Ditto.
11986 * ia64-tdep.c: Ditto.
11987 * infcall.c: Ditto.
11988 * infcall.h: Ditto.
11989 * infcmd.c: Ditto.
11990 * inferior.c: Ditto.
11991 * inferior.h: Ditto.
11992 * infloop.c: Ditto.
11993 * inflow.c: Ditto.
11994 * infrun.c: Ditto.
11995 * interps.c: Ditto.
11996 * interps.h: Ditto.
11997 * iq2000-tdep.c: Ditto.
11998 * irix5-nat.c: Ditto.
11999 * jit.c: Ditto.
12000 * jit.h: Ditto.
12001 * jv-exp.y: Ditto.
12002 * jv-lang.c: Ditto.
12003 * jv-lang.h: Ditto.
12004 * jv-typeprint.c: Ditto.
12005 * jv-valprint.c: Ditto.
12006 * language.c: Ditto.
12007 * language.h: Ditto.
12008 * linespec.c: Ditto.
12009 * linux-fork.c: Ditto.
12010 * linux-nat.c: Ditto.
12011 * linux-thread-db.c: Ditto.
12012 * lm32-tdep.c: Ditto.
12013
12014 2011-01-08 Michael Snyder <msnyder@vmware.com>
12015
12016 * m2-exp.y: Comment cleanup, mostly periods and spaces.
12017 * m2-lang.c: Ditto.
12018 * m2-typeprint.c: Ditto.
12019 * m2-valprint.c: Ditto.
12020 * m32c-tdep.c: Ditto.
12021 * m32r-linux-nat.c: Ditto.
12022 * m32r-rom.c: Ditto.
12023 * m32r-tdep.c: Ditto.
12024 * m32r-tdep.h: Ditto.
12025 * m68hc11-tdep.c: Ditto.
12026 * m58klinux-nat.c: Ditto.
12027 * m68k-tdep.c: Ditto.
12028 * m88k-tdep.c: Ditto.
12029 * m88k-tdep.h: Ditto.
12030 * machoread.c: Ditto.
12031 * macrocmd.c: Ditto.
12032 * macroexp.c: Ditto.
12033 * macrotab.c: Ditto.
12034 * main.c: Ditto.
12035 * maint.c: Ditto.
12036 * mdebugread.c: Ditto.
12037 * mdebugread.h: Ditto.
12038 * memattr.c: Ditto.
12039 * memattr.h: Ditto.
12040 * memory-map.h: Ditto.
12041 * mep-tdep.c: Ditto.
12042 * microblaze-rom.c: Ditto.
12043 * microblaze-tdep.c: Ditto.
12044 * minsyms.c: Ditto.
12045 * mips-irix-tdep.c: Ditto.
12046 * mips-linux-nat.c: Ditto.
12047 * mips-linux-tdep.c: Ditto.
12048 * mips-linux-tdep.h: Ditto.
12049 * mipsnbsd-nat.c: Ditto.
12050 * mipsnbsd-tdep.c: Ditto.
12051 * mipsread.c: Ditto.
12052 * mips-tdep.c: Ditto.
12053 * mips-tdep.h: Ditto.
12054 * mn10300-linux-tdep.c: Ditto.
12055 * mn10300-tdep.c: Ditto.
12056 * mn10300-tdep.h: Ditto.
12057 * monitor.c: Ditto.
12058 * monitor.h: Ditto.
12059 * moxie-tdep.c: Ditto.
12060 * moxie-tdep.h: Ditto.
12061 * mt-tdep.c: Ditto.
12062
12063 2011-01-08 Mike Frysinger <vapier@gentoo.org>
12064
12065 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12066
12067 2011-01-08 Robert Millan <rmh@gnu.org>
12068
12069 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12070
12071 2011-01-07 Michael Snyder <msnyder@vmware.com>
12072
12073 * charset.c (_initialize_charset): Fix typo in string.
12074
12075 2011-01-07 Michael Snyder <msnyder@vmware.com>
12076
12077 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12078 for i18n.
12079 * tui/tui-layout.c (tui_set_layout_for_display_command):
12080 Split line so that operator goes to beginning of line.
12081 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12082 assignment out of if statement.
12083
12084 2011-01-07 Michael Snyder <msnyder@vmware.com>
12085
12086 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12087 * ada-lang.h: Ditto.
12088 * ada-tasks.c: Ditto.
12089 * ada-valprint.c: Ditto.
12090 * aix-threads.c: Ditto.
12091 * alpha-linux-nat.c: Ditto.
12092 * alpha-linux-tdep.c: Ditto.
12093 * alpha-mdebug-tdep.c: Ditto.
12094 * alpha-nat.c: Ditto.
12095 * alpha-osf1-tdep.c: Ditto.
12096 * alpha-tdep.c: Ditto.
12097 * alphabsd-nat.c: Ditto.
12098 * alphabsd-tdep.c: Ditto.
12099 * amd64-darwin-tdep.c: Ditto.
12100 * amd64-linux-nat.c: Ditto.
12101 * amd64-linux-tdep.c: Ditto.
12102 * amd64-sol2-tdep.c: Ditto.
12103 * amd64-tdep.c: Ditto.
12104 * amd64-fbsd-tdep.c: Ditto.
12105 * amd64-nbsd-tdep.c: Ditto.
12106 * amd64-obsd-tdep.c: Ditto.
12107 * amd64-linux-nat.c: Ditto.
12108 * amd64-linux-tdep.c: Ditto.
12109 * arm-tdep.c: Ditto.
12110 * arm-tdep.h: Ditto.
12111 * armnbsd-nat.c: Ditto.
12112 * avr-tdep.c: Ditto.
12113 * bfin-tdep.c: Ditto.
12114 * bsd-kvm.c: Ditto.
12115 * c-typeprintc: Ditto.
12116 * c-valprint.c: Ditto.
12117 * coff-pe-read.h: Ditto.
12118 * coffreead.c: Ditto.
12119 * cris-tdep.c: Ditto.
12120 * d-lang.c: Ditto.
12121 * darwin-nat-info.c: Ditto.
12122 * darwin-nat.c: Ditto.
12123 * dbug-rom.c: Ditto.
12124 * dbxread.c: Ditto.
12125 * dcache.c: Ditto.
12126 * dcache.h: Ditto.
12127 * dec-thread.c: Ditto.
12128 * defs.h: Ditto.
12129 * demangle.c: Ditto.
12130 * dicos-tdep.c: Ditto.
12131 * dictionary.c: Ditto.
12132 * dictionary.h: Ditto.
12133 * dink32-rom.c: Ditto.
12134 * disasm.c: Ditto.
12135 * doublest.c: Ditto.
12136 * dsrec.c: Ditto.
12137 * dummy-frame.c: Ditto.
12138 * dwarf2-frame.c: Ditto.
12139 * dwarf2expr.c: Ditto.
12140 * dwarf2loc.c: Ditto.
12141 * dwarf2read.c: Ditto.
12142 * elfread.c: Ditto.
12143 * environ.c: Ditto.
12144 * eval.c: Ditto.
12145 * event-top.h: Ditto.
12146 * exceptions.c: Ditto.
12147 * exceptions.h: Ditto.
12148 * exec.c: Ditto.
12149 * expprint.c: Ditto.
12150 * expression.h: Ditto.
12151 * f-exp.y: Ditto.
12152 * f-lang.c: Ditto.
12153 * f-lang.h: Ditto.
12154 * f-typeprint.c: Ditto.
12155 * f-valprint.c: Ditto.
12156 * fbsd-nat.c: Ditto.
12157 * findvar.c: Ditto.
12158 * fork-child.c: Ditto.
12159 * frame.c: Ditto.
12160 * frame.h: Ditto.
12161 * frv-linux-tdep.c: Ditto.
12162 * frv-tdep.c: Ditto.
12163 * gcore.c: Ditto.
12164 * gdb-stabs.h: Ditto.
12165 * gdb_assert.h: Ditto.
12166 * gdb_string.h: Ditto.
12167 * gdb_thread_db.h: Ditto.
12168 * gdb_wait.h: Ditto.
12169 * gdbarch.sh: Ditto.
12170 * gdbcore.h: Ditto.
12171 * gdbthread.h: Ditto.
12172 * gdbtypes.c: Ditto.
12173 * gdbtypes.h: Ditto.
12174 * gnu-nat.c: Ditto.
12175 * gnu-nat.h: Ditto.
12176 * gnu-v2-abi.c: Ditto.
12177 * gnu-v3-abi.c: Ditto.
12178 * go32-nat.c: Ditto.
12179 * gdbarch.c: Regenerate.
12180 * gdbarch.h: Regenerate.
12181
12182 2011-01-07 Michael Snyder <msnyder@vmware.com>
12183
12184 * ax-gdb.c: Adjust some long output strings.
12185 * breakpoint.c: Ditto.
12186 * charset.c: Ditto.
12187 * cp-abi.c: Ditto.
12188 * infcall.c: Ditto.
12189 * infrun.c: Ditto.
12190 * linux-nat.c: Ditto.
12191 * solib-pa64.c: Ditto.
12192 * solib-som.c: Ditto.
12193
12194 2011-01-06 Tom Tromey <tromey@redhat.com>
12195
12196 PR python/12367:
12197 * NEWS: Add item.
12198 * python/python.c (GdbMethods): Add "newest_frame" method.
12199 * python/python-internal.h (gdbpy_newest_frame): Declare.
12200 * python/py-frame.c (gdbpy_newest_frame): New function.
12201
12202 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12203
12204 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12205 * jit.c (jit_debug): New variable.
12206 (show_jit_debug): New function.
12207 (struct target_buffer): Use ULONGEST.
12208 (bfd_open_from_target_memory): Likewise.
12209 (jit_register_code, jit_inferior_init): Add debug output.
12210 (_initialize_jit): Register "debug jit" command.
12211
12212 2011-01-06 Tom Tromey <tromey@redhat.com>
12213
12214 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12215 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12216 and ARCH_FRAME.
12217
12218 2011-01-06 Tom Tromey <tromey@redhat.com>
12219
12220 * python/py-frame.c (frapy_block): Use get_frame_block.
12221
12222 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12223
12224 Do not stop on SIGPRIO signals by default
12225 * infrun.c (_initialize_infrun): Unset signal_stop and
12226 signal_print for TARGET_SIGNAL_PRIO.
12227
12228 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12229
12230 * ada-tasks.c: Fix style violation in comment.
12231
12232 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12233
12234 * linespec.c (decode_compound, find_method): Remove trailing \n
12235 at end of error string.
12236 * solib-irix.c (irix_current_sos): Likewise.
12237 * varobj.c (uninstall_variable): Likewise.
12238
12239 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12240
12241 * copyright.py: New script.
12242 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12243 Launch emacs without exec'ing. Call copyright.py afterwards.
12244
12245 2011-01-05 Michael Snyder <msnyder@vmware.com>
12246
12247 * addrmap.c: Shorten lines of >= 80 columns.
12248 * arch-utils.c: Ditto.
12249 * arch-utils.h: Ditto.
12250 * ax-gdb.c: Ditto.
12251 * ax-general.c: Ditto.
12252 * bcache.c: Ditto.
12253 * blockframe.c: Ditto.
12254 * breakpoint.c: Ditto.
12255 * buildsym.c: Ditto.
12256 * c-lang.c: Ditto.
12257 * c-typeprint.c: Ditto.
12258 * charset.c: Ditto.
12259 * coffread.c: Ditto.
12260 * command.h: Ditto.
12261 * corelow.c: Ditto.
12262 * cp-abi.c: Ditto.
12263 * cp-namespace.c: Ditto.
12264 * cp-support.c: Ditto.
12265 * dbug-rom.c: Ditto.
12266 * dbxread.c: Ditto.
12267 * defs.h: Ditto.
12268 * dfp.c: Ditto.
12269 * dfp.h: Ditto.
12270 * dictionary.c: Ditto.
12271 * disasm.c: Ditto.
12272 * doublest.c: Ditto.
12273 * dwarf2-frame.c: Ditto.
12274 * dwarf2expr.c: Ditto.
12275 * dwarf2loc.c: Ditto.
12276 * dwarf2read.c: Ditto.
12277 * elfread.c: Ditto.
12278 * eval.c: Ditto.
12279 * event-loop.c: Ditto.
12280 * event-loop.h: Ditto.
12281 * exceptions.h: Ditto.
12282 * exec.c: Ditto.
12283 * expprint.c: Ditto.
12284 * expression.h: Ditto.
12285 * f-lang.c: Ditto.
12286 * f-valprint.c: Ditto.
12287 * findcmd.c: Ditto.
12288 * frame-base.c: Ditto.
12289 * frame-unwind.c: Ditto.
12290 * frame-unwind.h: Ditto.
12291 * frame.c: Ditto.
12292 * frame.h: Ditto.
12293 * gcore.c: Ditto.
12294 * gdb-stabs.h: Ditto.
12295 * gdb_assert.h: Ditto.
12296 * gdb_dirent.h: Ditto.
12297 * gdb_obstack.h: Ditto.
12298 * gdbcore.h: Ditto.
12299 * gdbtypes.c: Ditto.
12300 * gdbtypes.h: Ditto.
12301 * inf-ttrace.c: Ditto.
12302 * infcall.c: Ditto.
12303 * infcmd.c: Ditto.
12304 * inflow.c: Ditto.
12305 * infrun.c: Ditto.
12306 * inline-frame.h: Ditto.
12307 * language.c: Ditto.
12308 * language.h: Ditto.
12309 * libunwind-frame.c: Ditto.
12310 * libunwind-frame.h: Ditto.
12311 * linespec.c: Ditto.
12312 * linux-nat.c: Ditto.
12313 * linux-nat.h: Ditto.
12314 * linux-thread-db.c: Ditto.
12315 * machoread.c: Ditto.
12316 * macroexp.c: Ditto.
12317 * macrotab.c: Ditto.
12318 * main.c: Ditto.
12319 * maint.c: Ditto.
12320 * mdebugread.c: Ditto.
12321 * memattr.c: Ditto.
12322 * minsyms.c: Ditto.
12323 * monitor.c: Ditto.
12324 * monitor.h: Ditto.
12325 * objfiles.c: Ditto.
12326 * objfiles.h: Ditto.
12327 * osabi.c: Ditto.
12328 * p-typeprint.c: Ditto.
12329 * p-valprint.c: Ditto.
12330 * parse.c: Ditto.
12331 * printcmd.c: Ditto.
12332 * proc-events.c: Ditto.
12333 * procfs.c: Ditto.
12334 * progspace.c: Ditto.
12335 * progspace.h: Ditto.
12336 * psympriv.h: Ditto.
12337 * psymtab.c: Ditto.
12338 * record.c: Ditto.
12339 * regcache.c: Ditto.
12340 * regcache.h: Ditto.
12341 * remote-fileio.c: Ditto.
12342 * remote.c: Ditto.
12343 * ser-mingw.c: Ditto.
12344 * ser-tcp.c: Ditto.
12345 * ser-unix.c: Ditto.
12346 * serial.c: Ditto.
12347 * serial.h: Ditto.
12348 * solib-frv.c: Ditto.
12349 * solib-irix.c: Ditto.
12350 * solib-osf.c: Ditto.
12351 * solib-pa64.c: Ditto.
12352 * solib-som.c: Ditto.
12353 * solib-sunos.c: Ditto.
12354 * solib-svr4.c: Ditto.
12355 * solib-target.c: Ditto.
12356 * solib.c: Ditto.
12357 * somread.c: Ditto.
12358 * source.c: Ditto.
12359 * stabsread.c: Ditto.
12360 * stabsread.c: Ditto.
12361 * stack.c: Ditto.
12362 * stack.h: Ditto.
12363 * symfile-mem.c: Ditto.
12364 * symfile.c: Ditto.
12365 * symfile.h: Ditto.
12366 * symmisc.c: Ditto.
12367 * symtab.c: Ditto.
12368 * symtab.h: Ditto.
12369 * target-descriptions.c: Ditto.
12370 * target-memory.c: Ditto.
12371 * target.c: Ditto.
12372 * target.h: Ditto.
12373 * terminal.h: Ditto.
12374 * thread.c: Ditto.
12375 * top.c: Ditto.
12376 * tracepoint.c: Ditto.
12377 * tracepoint.h: Ditto.
12378 * ui-file.c: Ditto.
12379 * ui-file.h: Ditto.
12380 * ui-out.h: Ditto.
12381 * user-regs.c: Ditto.
12382 * user-regs.h: Ditto.
12383 * utils.c: Ditto.
12384 * valarith.c: Ditto.
12385 * valops.c: Ditto.
12386 * valprint.c: Ditto.
12387 * valprint.h: Ditto.
12388 * value.c: Ditto.
12389 * varobj.c: Ditto.
12390 * varobj.h: Ditto.
12391 * vec.h: Ditto.
12392 * xcoffread.c: Ditto.
12393 * xcoffsolib.c: Ditto.
12394 * xcoffsolib.h: Ditto.
12395 * xml-syscall.c: Ditto.
12396 * xml-tdesc.c: Ditto.
12397
12398 2011-01-05 Michael Snyder <msnyder@vmware.com>
12399
12400 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12401 * cli/cli-decode.c: Ditto.
12402 * cli/cli-dump.c: Ditto.
12403 * cli/cli-logging.c: Ditto.
12404 * cli/cli-script.c: Ditto.
12405 * cli/cli-setshow.c: Ditto.
12406 * common/signals.c: Ditto.
12407 * mi/mi-cmd-break.c: Ditto.
12408 * mi/mi-cmd-disas.c: Ditto.
12409 * mi/mi-cmd-stack.c: Ditto.
12410 * mi/mi-cmd-var.c: Ditto.
12411 * mi/mi-cmds.c: Ditto.
12412 * mi/mi-common.h: Ditto.
12413 * mi/mi-console.c: Ditto.
12414 * mi/mi-interp.c: Ditto.
12415 * mi/mi-main.c: Ditto.
12416 * osf-share/cma_attr.c: Ditto.
12417 * osf-share/cma_deb_core.h: Ditto.
12418 * osf-share/cma_debug_client.h: Ditto.
12419 * osf-share/cma_handle.h: Ditto.
12420 * osf-share/cma_mutex.h: Ditto.
12421 * osf-share/cma_stack_int.h: Ditto.
12422 * osf-share/cma_tcb_defs.h: Ditto.
12423 * python/py-auto-load.c: Ditto.
12424 * python/py-breakpoint.c: Ditto.
12425 * python/py-cmd.c: Ditto.
12426 * python/py-frame.c: Ditto.
12427 * python/py-objfile.c: Ditto.
12428 * python/py-param.c: Ditto.
12429 * python/py-progspace.c: Ditto.
12430 * python/py-symbol.c: Ditto.
12431 * python/py-value.c: Ditto.
12432 * python/python-internal.h: Ditto.
12433 * python/python.c: Ditto.
12434 * tui/tui-data.c: Ditto.
12435 * tui/tui-disasm.c: Ditto.
12436 * tui/tui-hooks.c: Ditto.
12437 * tui/tui-io.c: Ditto.
12438 * tui/tui-layout.c: Ditto.
12439 * tui/tui-regs.c: Ditto.
12440 * tui/tui-source.c: Ditto.
12441 * tui/tui-stack.c: Ditto.
12442 * tui/tui-win.c: Ditto.
12443 * tui/tui-windata.c: Ditto.
12444 * tui/tui-winsource.c: Ditto.
12445
12446 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12447
12448 * configure.ac, gdb.1: Copyright year update.
12449
12450 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12451
12452 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12453 this_pc_in_block, morestack_msym and morestack_name. Check for
12454 "__morestack" minimal symbol there.
12455
12456 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12457
12458 * symfile.c (find_sym_fns): Add call to dont_repeat.
12459
12460 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12461
12462 Copyright year update in most files (performed by copyright.sh).
12463
12464 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12465
12466 * top.c (print_gdb_version): Update copyright year in version output.
12467
12468 For older changes see ChangeLog-2010.
12469 \f
12470 Local Variables:
12471 mode: change-log
12472 left-margin: 8
12473 fill-column: 74
12474 version-control: never
12475 coding: utf-8
12476 End: