gdb/
[binutils-gdb.git] / gdb / ChangeLog
1 2011-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * symfile.c (objfilep): New typedef and new DEF_VEC_P.
4 (reread_symbols): Remove variable reread_one, new variables
5 new_objfiles, all_cleanups and ix. Use new_objfiles instead of
6 reread_one. Push changed objfiles to new_objfiles, call
7 observer_notify_new_objfile for them later.
8
9 2011-12-21 Joel Brobecker <brobecker@adacore.com>
10
11 * psymtab.c (expand_symtabs_matching_via_partial): Match
12 the partial symbols using their SYMBOL_SEARCH_NAME.
13 * symfile.h (struct quick_symbol_functions): Udate the
14 documentation of expand_symtabs_matching.
15 * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
16 of SYMBOL_NATURAL_NAME in index entry.
17
18 2011-12-21 Joel Brobecker <brobecker@adacore.com>
19
20 * linespec.c (locate_first_half): Add handling of Ada operators
21 when the current language is Ada.
22
23 2011-12-21 Joel Brobecker <brobecker@adacore.com>
24
25 * objfiles.c (insert_section_p): Do not detect overlay sections
26 if overlay debugging is off.
27
28 2011-12-21 Joel Brobecker <brobecker@adacore.com>
29
30 * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
31 Update function documentation.
32 * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
33 computation.
34
35 2011-12-20 Pedro Alves <alves.ped@gmail.com>
36 Jan Kratochvil <jan.kratochvil@redhat.com>
37
38 * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
39 first LWP.
40 * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
41 `lwp->arch_private' if NULL.
42 (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
43 is NULL.
44 * i386-linux-nat.c (update_debug_registers_callback): Instantiate
45 `lwp->arch_private' if NULL.
46 (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
47 is NULL.
48
49 2011-12-19 Doug Evans <dje@google.com>
50
51 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
52 scripts vector to collect_matching_scripts.
53 (collect_matching_scripts): Update.
54
55 2011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
56
57 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
58 preserve_values, sym_finish and clear_objfile_data calls before BFD
59 close. Move free_objfile_separate_debug as the very first call. New
60 comment on the ordering.
61
62 2011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
63
64 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
65 in return PSWA.
66
67 2011-12-19 Tom Tromey <tromey@redhat.com>
68
69 * symtab.h (add_minsym_to_hash_table): Don't declare.
70 * minsyms.c (add_minsym_to_hash_table): Now static.
71
72 2011-12-19 Joel Brobecker <brobecker@adacore.com>
73
74 * elfread.c (elf_symtab_read): Ignore undefined symbols with
75 nonzero addresses if they do not correspond to a .plt section
76 when one is available in the objfile.
77
78 2011-12-17 Andreas Schwab <schwab@linux-m68k.org>
79
80 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
81 obstack_empty_p.
82
83 2011-12-17 Mark Kettenis <kettenis@gnu.org>
84
85 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
86 regset_from_core_section.
87 (amd64obsd_core_init_abi): New function that sets
88 regset_from_core_section.
89 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
90 traditional core dumps.
91
92 2011-12-17 Mark Kettenis <kettenis@gnu.org>
93
94 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
95 trampoline to be introduced in OpenBSD 5.0.
96
97 2011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
98
99 Fix build regression from the PR threads/10729 fix.
100 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
101 not LP->PTID.
102
103 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
104
105 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
106 `optarg' to `oind' and `oarg', respectively(-Wshadow).
107 (mi_cmd_data_read_memory): Ditto.
108 (mi_cmd_data_read_memory_bytes): Ditto.
109 (mi_cmd_data_write_memory): Ditto.
110
111 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
112
113 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
114 `oind' and `oarg', respectively(-Wshadow).
115 (mi_valid_noargs): Ditto.
116
117 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
118
119 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
120 `oind' and `oarg', respectively(-Wshadow).
121
122 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
123
124 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
125 `optarg' to `oind' and `oarg', respectively(-Wshadow).
126 (mi_cmd_target_file_put): Ditto.
127 (mi_cmd_target_file_delete): Ditto.
128
129 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
130
131 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
132 `optarg' to `oind' and `oarg', respectively(-Wshadow).
133 (mi_cmd_env_dir): Ditto.
134
135 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
136
137 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
138 `optarg' to `oind' and `oarg', respectively(-Wshadow).
139
140 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
141
142 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
143 `optparg' to `oind' and `oarg', respectively(-Wshadow).
144 (mi_cmd_break_watch): Ditto.
145
146 2011-12-16 Tom Tromey <tromey@redhat.com>
147
148 * linespec.c (collect_symbols): Call maybe_add_address after
149 calling symbol_to_sal.
150 (minsym_found): Call maybe_add_address here.
151 (search_minsyms_for_name): Don't call maybe_add_address.
152
153 2011-12-16 Tom Tromey <tromey@redhat.com>
154
155 * linespec.c (struct collect_info) <objfile>: Remove field.
156 (decode_objc): Update.
157 (find_method): Update.
158 (decode_variable): Update.
159 (struct minsym_and_objfile): New.
160 (struct collect_minsyms): New.
161 (classify_mtype): New function.
162 (compare_msyms): Likewise.
163 (add_minsym): Likewise.
164 (check_minsym): Remove.
165 (search_minsyms_for_name): Sort minsyms and apply only those with
166 top priority.
167
168 2011-12-16 Tom Tromey <tromey@redhat.com>
169
170 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
171
172 2011-12-16 Pedro Alves <pedro@codesourcery.com>
173
174 * inf-loop.c: Include top.h.
175 (inferior_event_handler): Call check_frame_language.
176 * top.c (check_frame_language_change): New, factored out from ...
177 (execute_command): ... this. Use check_frame_language_change.
178 * top.h (check_frame_language_change): Declare.
179
180 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
181
182 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
183 prototypes.
184
185 2011-12-16 Doug Evans <dje@google.com>
186
187 * NEWS: Add entry for stdio gdbserver.
188
189 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
190
191 * python/python.c: Define python_excp_enums.
192 (eval_python_from_control_command): Do not call gdbpy_print_stack.
193 (python_command): Ditto.
194 (gdbpy_print_stack): Rewrite to use new enum constants.
195 (maint_set_python): Remove function.
196 (maint_show_python): Ditto.
197 (_initialize_python): Do not add "maint" commands. Add "set/show
198 python print-stack commands".
199 * NEWS: Update to reflect removal for "maint set/show
200 print-stack"
201
202 2011-12-15 Doug Evans <dje@google.com>
203
204 * exceptions.c (catcher_list_size): New function.
205 (last_message): Delete.
206 (exception_messages, exception_messages_size): New static globals.
207 (throw_it): Use exception_messages array to handle nested calls.
208
209 2011-12-15 Tom Tromey <tromey@redhat.com>
210
211 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
212 do_cleanups call.
213
214 2011-12-14 Doug Evans <dje@google.com>
215
216 * defs.h (wait_to_die_with_timeout): Declare.
217 * utils.c: #include "gdb_wait.h".
218 (sigalrm_handler, wait_to_die_with_timeout): New functions.
219 * ser-pipe.c: Don't #include "gdb_wait.h".
220 (pipe_close): Give child a chance to die on its own after closing
221 its stdin before SIGTERM'ing it.
222
223 2011-12-14 Joel Brobecker <brobecker@adacore.com>
224 Tom Tromey <tromey@redhat.com>
225
226 * ada-lang.c (add_nonlocal_symbols): Initialize data to
227 all zeros. Remove setting of data.arg_sym to NULL.
228
229 2011-12-14 Pedro Alves <pedro@codesourcery.com>
230
231 PR threads/10729
232
233 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
234 pointer.
235 (linux_nat_prepare_to_resume): New global.
236 (lwp_free): New.
237 (purge_lwp_list): Use it.
238 (add_lwp): Call linux_nat_new_thread even on the first LWP.
239 Adjust to interface change.
240 (delete_lwp): Call lwp_free instead of xfree.
241 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
242 (linux_handle_syscall_trap, linux_handle_extended_wait)
243 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
244 linux_nat_prepare_to_resume before resuming.
245 (linux_stop_lwp): New.
246 (linux_nat_set_new_thread): Adjust.
247 (linux_nat_set_prepare_to_resume): New.
248 * linux-nat.h (struct arch_lwp_info): Forward declare.
249 (struct lwp_info) <arch_private>: New field.
250 (linux_stop_lwp): Declare.
251 (linux_nat_set_new_thread): Adjust.
252 (linux_nat_set_prepare_to_resume): New.
253
254 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
255 (struct i386_debug_reg_state): Move to i386-nat.h.
256 (dr_mirror): Comment.
257 (i386_debug_reg_state): New.
258 (i386_update_inferior_debug_regs): Simplify.
259 (i386_stopped_data_address): Use the debug register state from the
260 inferior, not from the local cache.
261 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
262 unset_status fields. New get_addr and get_control fields.
263 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
264 (DR_NADDR, DR_STATUS): New.
265 (struct i386_debug_reg_state): Moved from i386-nat.c.
266
267 * amd64-linux-nat.c (struct arch_lwp_info): New.
268 (amd64_linux_dr): Delete global.
269 (amd64_linux_dr_get_addr): New.
270 (amd64_linux_dr_get_control): New.
271 (amd64_linux_dr_unset_status): Delete.
272 (amd64_linux_dr_set_addr): Reimplement.
273 (amd64_linux_dr_reset_addr): Delete.
274 (update_debug_registers_callback): New.
275 (amd64_linux_dr_set_control): Reimplement.
276 (amd64_linux_dr_set_addr): Reimplement.
277 (amd64_linux_prepare_to_resume): New.
278 (amd64_linux_new_thread): Change parameter to an lwp pointer.
279 Reimplement.
280 (_initialize_amd64_linux_nat): No longer install
281 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
282 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
283 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
284 amd64_linux_prepare_to_resume.
285 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
286 (DR_CONTROL): Delete.
287 (struct arch_lwp_info): New.
288 (i386_linux_dr): Delete global.
289 (i386_linux_dr_set_control): Reimplement.
290 (i386_linux_dr_get_addr): New.
291 (i386_linux_dr_set_addr): Reimplement.
292 (i386_linux_dr_get_control): New.
293 (update_debug_registers_callback): New.
294 (i386_linux_dr_unset_status): Delete.
295 (i386_linux_dr_set_addr): Reimplement.
296 (i386_linux_prepare_to_resume): New.
297 (i386_linux_new_thread): Change parameter to an lwp pointer.
298 Reimplement.
299 (_initialize_i386_linux_nat): No longer install
300 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
301 i386_linux_dr_get_control as i386_dr_low.get_control. Install
302 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
303 i386_linux_prepare_to_resume.
304
305 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
306 lwp pointer. Adjust.
307 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
308 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
309 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
310 * s390-nat.c (s390_fix_watch_points): Likewise.
311
312 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
313 (DR_CONTROL): Delete.
314 (i386_darwin_dr_reset_addr): Delete.
315 (i386_darwin_dr_get_addr): New.
316 (i386_darwin_dr_get_control): New.
317 * go32-nat.c
318 (go32_get_dr7, go32_get_dr): New.
319 (init_go32_ops): No longer install i386_dr_low.reset_addr.
320 Install go32_get_dr7 as i386_dr_low.get_control. Install
321 go32_get_dr as i386_dr_low.get_addr.
322 * i386bsd-nat.c (i386bsd_dr_get): New.
323 (i386bsd_dr_reset_addr): Delete.
324 (i386bsd_dr_get_addr): New.
325 (i386bsd_dr_get_status): Use i386bsd_dr_get.
326 (i386bsd_dr_get_control): New.
327 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
328 (i386bsd_dr_get_addr): New.
329 (i386bsd_dr_get_control): New.
330 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
331 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
332 i386bsd_dr_get_control as i386_dr_low.get_control. Install
333 i386bsd_dr_get_addr as i386_dr_low.get_addr.
334 * windows-nat.c (init_windows_ops): No longer install
335 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
336 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
337 as i386_dr_low.get_addr.
338 (cygwin_get_dr): New.
339 (cygwin_get_dr7): New.
340
341 2011-12-14 Pedro Alves <pedro@codesourcery.com>
342
343 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
344 target_write_raw_memory.
345 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
346 target_write_raw_memory.
347 * microblaze-linux-tdep.c
348 (microblaze_linux_memory_remove_breakpoint): Use
349 target_write_raw_memory.
350 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
351 target_write_raw_memory.
352
353 2011-12-14 Joel Brobecker <brobecker@adacore.com>
354
355 * linespec.c (decode_line_internal): Make static.
356
357 2011-12-14 Yao Qi <yao@codesourcery.com>
358
359 * breakpoint.c (create_breakpoint): Set canonical.addr_string
360 for static tracepoint.
361
362 2011-12-13 Joel Brobecker <brobecker@adacore.com>
363
364 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
365 * version.in: Bump version to 7.4.50.20111213-cvs.
366
367 2011-12-13 Joel Brobecker <brobecker@adacore.com>
368
369 * NEWS: Create a new section for the next release branch.
370 Rename the section of the current branch, now that it has
371 been cut.
372
373 2011-12-11 Joel Brobecker <brobecker@adacore.com>
374
375 * ada-lang.c (ada_exception_support_info_sniffer): Improve
376 error message.
377
378 2011-12-11 Joel Brobecker <brobecker@adacore.com>
379
380 * ada-lang.c (struct ada_inferior_data) [exception_info]:
381 New field.
382 (exception_info): Delete.
383 (ada_exception_support_info_sniffer): Get exception_support_info
384 data from our per-inferior data. Adjust code accordingly.
385 (ada_unhandled_exception_name_addr_from_raise): Likewise.
386 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
387 (ada_executable_changed_observer): Delete.
388 (_initialize_ada_language): Remove call to
389 observer_attach_executable_changed.
390
391 2011-12-11 Joel Brobecker <brobecker@adacore.com>
392
393 * ada-lang.c (ada_has_this_exception_support): Raise an error
394 if we could find the Ada exception hook in the Ada runtime,
395 but no debugging info for that hook.
396
397 2011-12-11 Joel Brobecker <brobecker@adacore.com>
398
399 * ada-lang.c (ada_has_this_exception_support): New function,
400 extracted out of ada_exception_sal and ada_exception_sal.
401 (ada_exception_support_info_sniffer): Simplify by using
402 ada_has_this_exception_support.
403 (ada_exception_sal): Replace unnecessary checks by assertions.
404 Minor simplifications.
405
406 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
407
408 * breakpoint.c (update_global_location_list): Remove nested
409 definition of `b'(-Wshadow).
410
411 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
412
413 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
414 `error_flag'(-Wshadow).
415
416 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
417
418 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
419 `abfd'(-Wshadow).
420
421 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
422
423 * annotate.c (annotate_array_section_begin): Rename `index' to
424 `idx'(-Wshadow).
425
426 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
427
428 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
429 `idx'(-Wshadow).
430
431 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
432
433 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
434 `syscall' to `syscall_number'(-Wshadow).
435
436 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
437
438 * ada-lang.c (remove_extra_symbols): Rename `remove' to
439 `remove_p'(-Wshadow).
440
441 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
442
443 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
444 `ren_sym'(-Wshadow).
445
446 2011-12-10 Doug Evans <dje@google.com>
447
448 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
449 debug_types_section. All uses updated.
450 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
451 to is_debug_types_section.
452
453 * python/py-auto-load.c (source_section_scripts): Call xfree
454 instead of free.
455
456 2011-12-10 Hui Zhu <teawater@gmail.com>
457 Yao Qi <yao@codesourcery.com>
458
459 * tracepoint.c (start_tracing): Clear `inserted' flag.
460
461 2011-12-10 Hui Zhu <teawater@gmail.com>
462
463 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
464
465 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
466
467 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
468 `bpoint'(-Wshadow).
469
470 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
471
472 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
473 `marker' variables to `sal2' and `tpmarker' respectively
474 (-Wshadow).
475
476 2011-12-09 Andrew Pinski <apinski@cavium.com>
477
478 * linespec.c (hash_address_entry): Use iterative_hash_object on each
479 field rather than the struct itself.
480
481 2011-12-09 Tom Tromey <tromey@redhat.com>
482
483 * breakpoint.c (compare_breakpoints): New function.
484 (clear_command): Remove duplicate breakpoints. Properly clean
485 up.
486
487 2011-12-08 Maciej W. Rozycki <macro@mips.com>
488 Maciej W. Rozycki <macro@codesourcery.com>
489
490 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
491 address chunks retrieved from decoded lui/addiu pairs.
492
493 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
494
495 * mips-tdep.c (extended_offset): Correct calculation.
496 (unpack_mips16): Correct bitfield positions used for extraction
497 of the immediate argument; fix sign-extension of same.
498 (extended_mips16_next_pc): Correct B instruction's offset
499 calculation. Correct register decoding of the BEQZ and BNEZ
500 as well as jump-register instructions. Handle compact jumps.
501
502 2011-12-08 Tom Tromey <tromey@redhat.com>
503
504 * objfiles.h (struct objfile): Remove obsolete comment.
505 * objfiles.c (build_objfile_section_table): Remove obsolete
506 comment.
507
508 2011-12-07 Stan Shebs <stan@codesourcery.com>
509
510 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
511 maintainer of the tic6x target.
512
513 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
514
515 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
516 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
517 (arm_deal_with_atomic_sequence_raw): Likewise.
518 (arm_deal_with_atomic_sequence): Likewise.
519 (arm_software_single_step): Call it.
520 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
521
522 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
523
524 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
525 where appropriate.
526 * s390-tdep.h: Likewise.
527
528 2011-12-07 Tristan Gingold <gingold@adacore.com>
529
530 * machoread.c (macho_symtab_read): Do not consider N_OPT as
531 a debugging stab. Improve complaint message.
532
533 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
534
535 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
536 load adjustment if still within the prologue.
537
538 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
539
540 * mips-tdep.c (mips32_next_pc): Fix floating point condition
541 code mask.
542
543 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
544
545 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
546 of BLTZ* and BGEZ* instructions.
547
548 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
549
550 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
551 performed to determine whether an address refers to standard
552 MIPS or MIPS16 code.
553 (mips16_next_pc): Use mips_pc_is_mips16 instead of
554 is_mips16_addr.
555
556 2011-12-06 Pedro Alves <pedro@codesourcery.com>
557
558 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
559 (breakpoint_xfer_memory): ... this. Change prototype. Handle
560 memory writes too.
561 * breakpoint.h (breakpoint_restore_shadows): Delete.
562 (breakpoint_xfer_memory): Declare.
563 * mem-break.c (default_memory_insert_breakpoint)
564 (default_memory_remove_breakpoint): Use target_write_raw_memory.
565 (memory_xfer_partial): Rename to ...
566 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
567 here.
568 (memory_xfer_partial): New.
569 (target_write_raw_memory): New.
570 * target.h (target_write_raw_memory): New.
571
572 2011-12-06 Doug Evans <dje@google.com>
573
574 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
575
576 2011-12-06 Joel Brobecker <brobecker@acacore.com>
577
578 * language.h (struct language_defn): Add new component
579 la_symbol_name_compare.
580 * symfile.h (struct quick_symbol_functions): Update the profile
581 of parameter "name_matcher" for the expand_symtabs_matching
582 method. Update the documentation accordingly.
583 * ada-lang.h (ada_name_for_lookup): Add declaration.
584 * ada-lang.c (ada_name_for_lookup): New function, extracted out
585 from ada_iterate_over_symbols.
586 (ada_iterate_over_symbols): Do not encode symbol name anymore.
587 (ada_expand_partial_symbol_name): Adjust profile.
588 (ada_language_defn): Add value for la_symbol_name_compare field.
589 * linespec.c: #include "ada-lang.h".
590 (iterate_name_matcher): Add language parameter. Replace call
591 to strcmp_iw by call to language->la_symbol_name_compare.
592 (decode_variable): Encode COPY if current language is Ada.
593 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
594 of name_matcher parameter. Adjust call to name_matcher.
595 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
596 (expand_partial_symbol_names): Update profile of parameter "fun".
597 * psymtab.h (expand_partial_symbol_names): Update profile of
598 parameter "fun".
599 * symtab.c (demangle_for_lookup): Update function documentation.
600 (search_symbols_name_matches): Add language parameter.
601 (expand_partial_symbol_name): Likewise.
602 * c-lang.c (c_language_defn, cplus_language_defn)
603 (asm_language_defn, minimal_language_defn): Add value for
604 la_symbol_name_compare field.
605 * d-lang.c (d_language_defn): Likewise.
606 * f-lang.c (f_language_defn): Ditto.
607 * jv-lang.c (java_language_defn): Ditto.
608 * m2-lang.c (m2_language_defn): Ditto.
609 * objc-lang.c (objc_language_defn): Ditto.
610 * opencl-lang.c (opencl_language_defn): Ditto.
611 * p-lang.c (pascal_language_defn): Ditto.
612 * language.c (unknown_language_defn, auto_language_defn)
613 (local_language_defn): Ditto.
614
615 2011-12-06 Tom Tromey <tromey@redhat.com>
616
617 * linespec.c (iterate_over_all_matching_symtabs): Use
618 LA_ITERATE_OVER_SYMBOLS.
619 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
620 (find_function_symbols, decode_variable): Remove Ada special
621 case.
622 * language.h (struct language_defn) <la_iterate_over_symbols>: New
623 field.
624 (LA_ITERATE_OVER_SYMBOLS): New macro.
625 * language.c (unknown_language_defn, auto_language_defn)
626 (local_language_defn): Update.
627 * c-lang.c (c_language_defn, cplus_language_defn)
628 (asm_language_defn, minimal_language_defn): Update.
629 * d-lang.c (d_language_defn): Update.
630 * f-lang.c (f_language_defn): Update.
631 * jv-lang.c (java_language_defn): Update.
632 * m2-lang.c (m2_language_defn): Update.
633 * objc-lang.c (objc_language_defn): Update.
634 * opencl-lang.c (opencl_language_defn): Update.
635 * p-lang.c (pascal_language_defn): Update.
636 * ada-lang.c (ada_iterate_over_symbols): New function.
637 (ada_language_defn): Update.
638
639 2011-12-06 Tom Tromey <tromey@redhat.com>
640 Joel Brobecker <brobecker@acacore.com>
641
642 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
643 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
644 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
645 PR shlibs/8929, PR shlibs/7393:
646 * python/py-type.c (compare_maybe_null_strings): Rename from
647 compare_strings.
648 (check_types_equal): Update.
649 * utils.c (compare_strings): New function.
650 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
651 location changes.
652 * tracepoint.c (scope_info): Update.
653 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
654 * symtab.h (iterate_over_minimal_symbols)
655 (iterate_over_some_symtabs, iterate_over_symtabs)
656 (find_pcs_for_symtab_line, iterate_over_symbols)
657 (demangle_for_lookup): Declare.
658 (expand_line_sal): Remove.
659 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
660 (lookup_symtab_callback): New functions.
661 (lookup_symtab): Rewrite.
662 (demangle_for_lookup): New function, extract from
663 lookup_symbol_in_language.
664 (lookup_symbol_in_language): Use it.
665 (iterate_over_symbols): New function.
666 (find_line_symtab): Update.
667 (find_pcs_for_symtab_line): New functions.
668 (find_line_common): Add 'start' argument.
669 (decode_line_spec): Update. Change argument to 'flags', change
670 interpretation.
671 (append_expanded_sal): Remove.
672 (append_exact_match_to_sals): Remove.
673 (expand_line_sal): Remove.
674 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
675 Remove.
676 <map_symtabs_matching_filename>: New field.
677 * stack.c (func_command): Only look in the current program space.
678 Use DECODE_LINE_FUNFIRSTLINE.
679 * source.c (line_info): Set pspace on sal. Check program space in
680 the loop. Use DECODE_LINE_LIST_MODE.
681 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
682 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
683 * python/python.c (gdbpy_decode_line): Update.
684 * psymtab.c (partial_map_expand_apply): New function.
685 (partial_map_symtabs_matching_filename): Rename from
686 lookup_partial_symbol. Update arguments.
687 (lookup_symtab_via_partial_symtab): Remove.
688 (psym_functions): Update.
689 * objc-lang.h (parse_selector, parse_method): Don't declare.
690 (find_imps): Update.
691 * objc-lang.c (parse_selector, parse_method): Now static.
692 (find_methods): Change arguments. Fill in a vector of symbol
693 names.
694 (uniquify_strings): New function.
695 (find_imps): Change arguments.
696 * minsyms.c (iterate_over_minimal_symbols): New function.
697 * linespec.h (enum decode_line_flags): New.
698 (struct linespec_sals): New.
699 (struct linespec_result) <canonical>: Remove.
700 <pre_expanded, addr_string, sals>: New fields.
701 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
702 (decode_line_full): Declare.
703 (decode_line_1): Update.
704 * linespec.c (struct address_entry, struct linespec_state, struct
705 collect_info): New types.
706 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
707 (eq_address_entry, maybe_add_address): New functions.
708 (total_number_of_methods): Remove.
709 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
710 functions.
711 (find_methods): Change arguments. Don't canonicalize input.
712 Simplify logic.
713 (add_matching_methods, add_constructors)
714 (build_canonical_line_spec): Remove.
715 (filter_results, convert_results_to_lsals): New functions.
716 (decode_line_2): Change arguments. Rewrite for new data
717 structures.
718 (decode_line_internal): Rename from decode_line_1. Change
719 arguments. Add cleanups. Update for new data structures.
720 (linespec_state_constructor, linespec_state_destructor)
721 (decode_line_full, decode_line_1): New functions.
722 (decode_indirect): Change arguments. Update.
723 (locate_first_half): Use skip_spaces.
724 (decode_objc): Change arguments. Update for new data structures.
725 Simplify logic.
726 (decode_compound): Change arguments. Add cleanups. Remove
727 fallback code, replace with error.
728 (struct decode_compound_collector): New type.
729 (collect_one_symbol): New function.
730 (lookup_prefix_sym): Change arguments. Update.
731 (compare_symbol_name, add_all_symbol_names_from_pspace)
732 (find_superclass_methods ): New functions.
733 (find_method): Rewrite.
734 (struct symtab_collector): New type.
735 (add_symtabs_to_list, collect_symtabs_from_filename): New
736 functions.
737 (symtabs_from_filename): Change API. Rename from
738 symtab_from_filename.
739 (collect_function_symbols): New function.
740 (find_function_symbols): Change API. Rename from
741 find_function_symbol. Rewrite.
742 (decode_all_digits): Change arguments. Rewrite.
743 (decode_dollar): Change arguments. Use decode_variable.
744 (decode_label): Change arguments. Rewrite.
745 (collect_symbols): New function.
746 (minsym_found): Change arguments. Rewrite.
747 (check_minsym, search_minsyms_for_name)
748 (add_matching_symbols_to_info): New function.
749 (decode_variable): Change arguments. Iterate over all symbols.
750 (symbol_found): Remove.
751 (symbol_to_sal): New function.
752 (init_linespec_result, destroy_linespec_result)
753 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
754 New functions.
755 (decode_digits_list_mode, decode_digits_ordinary): New functions.
756 * dwarf2read.c (dw2_map_expand_apply): New function.
757 (dw2_map_symtabs_matching_filename): Rename from
758 dw2_lookup_symtab. Change arguments.
759 (dwarf2_gdb_index_functions): Update.
760 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
761 * defs.h (compare_strings): Declare.
762 * cli/cli-cmds.c (compare_strings): Move to utils.c.
763 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
764 filter_sals.
765 (compare_symtabs, filter_sals): New functions.
766 * breakpoint.h (struct bp_location) <line_number, source_file>:
767 New fields.
768 (struct breakpoint) <line_number, source_file>: Remove.
769 <filter>: New field.
770 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
771 (momentary_breakpoint_from_master, add_location_to_breakpoint):
772 Update for changes to locations.
773 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
774 breakpoint.
775 (create_breakpoint_sal): Add 'filter' argument.
776 (remove_sal, expand_line_sal_maybe): Remove.
777 (create_breakpoints_sal): Remove 'sals' argument. Handle
778 pre-expanded sals and the filter.
779 (parse_breakpoint_sals): Use decode_line_full.
780 (check_fast_tracepoint_sals): Use get_sal_arch.
781 (create_breakpoint): Create a linespec_sals. Update.
782 (break_range_command): Use decode_line_full. Update.
783 (until_break_command): Update.
784 (clear_command): Update match conditions for linespec.c changes.
785 Use DECODE_LINE_LIST_MODE.
786 (say_where): Update for changes to locations.
787 (bp_location_dtor): Free 'source_file'.
788 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
789 (update_static_tracepoint): Update for changes to locations.
790 (update_breakpoint_locations): Disable ranged breakpoint if too
791 many locations match. Update.
792 (addr_string_to_sals): Use decode_line_full. Resolve all sal
793 PCs.
794 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
795 (decode_line_spec_1): Update. Change argument name to 'flags',
796 change interpretation.
797 * block.h (block_containing_function): Declare.
798 * block.c (block_containing_function): New function.
799 * skip.c (skip_function_command): Update.
800 (skip_re_set): Update.
801 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
802 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
803 * NEWS: Add entry.
804
805 2011-12-06 Tom Tromey <tromey@redhat.com>
806
807 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
808 breakpoint's pspace to be NULL.
809 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
810 * breakpoint.c (init_raw_breakpoint): Conditionally set
811 breakpoint's pspace.
812 (init_breakpoint_sal): Don't set breakpoint's pspace.
813 (prepare_re_set_context): Conditionally switch program space.
814 (addr_string_to_sals): Check executing_startup on location's
815 program space.
816
817 2011-12-06 Tom Tromey <tromey@redhat.com>
818
819 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
820 * breakpoint.c (should_be_inserted): Explicitly check if program
821 space is executing startup.
822 (describe_other_breakpoints): Update.
823 (disable_breakpoints_before_startup): Change executing_startup
824 earlier. Remove loop.
825 (enable_breakpoints_after_startup): Likewise.
826 (init_breakpoint_sal): Don't use bp_startup_disabled.
827 (create_breakpoint): Don't use bp_startup_disabled.
828 (update_global_location_list): Use should_be_inserted.
829 (bkpt_re_set): Update.
830
831 2011-12-06 Tom Tromey <tromey@redhat.com>
832
833 * python/lib/gdb/command/pretty_printers.py
834 (InfoPrettyPrinter.invoke1): Remove extra double quote.
835
836 2011-12-06 Tom Tromey <tromey@redhat.com>
837
838 * NEWS: Add MI news.
839
840 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
841
842 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
843 (S390_LAST_BREAK_REGNUM): Likewise.
844 (S390_SYSTEM_CALL_REGNUM): Likewise.
845 (S390_NUM_REGS): Update.
846
847 (s390_regmap_last_break): Add declaration.
848 (s390x_regmap_last_break): Likewise.
849 (s390_regmap_system_call): Likewise.
850
851 (tdesc_s390_linux32v1): Add declaration.
852 (tdesc_s390_linux32v2): Likewise.
853 (tdesc_s390_linux64v1): Likewise.
854 (tdesc_s390_linux64v2): Likewise.
855 (tdesc_s390x_linux64v1): Likewise.
856 (tdesc_s390x_linux64v2): Likewise.
857
858 * s390-tdep.c: Include new target description files
859 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
860 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
861 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
862 (s390_cannot_store_register): New function.
863 (s390_write_pc): Likewise.
864 (s390_dwarf_regmap): Add fields for new registers.
865 (s390_regmap_gregset): Likewise.
866 (s390x_regmap_gregset): Likewise.
867 (s390_regmap_fpregset): Likewise.
868 (s390_regmap_upper): Likewise.
869 (s390_regmap_last_break): New variable.
870 (s390x_regmap_last_break): Likewise.
871 (s390_regmap_system_call): Likewise.
872 (s390_last_break_regset): Likewise.
873 (s390x_last_break_regset): Likewise.
874 (s390_system_call_regset): Likewise.
875 (s390_upper_regset_sections): Rename to ...
876 (s390_linux64_regset_sections): ... this.
877 (s390_linux32_regset_sections): New variable.
878 (s390x_linux64_regset_sections): Likewise.
879 (s390_linux32v1_regset_sections): Likewise.
880 (s390_linux32v2_regset_sections): Likewise.
881 (s390_linux64v1_regset_sections): Likewise.
882 (s390_linux64v2_regset_sections): Likewise.
883 (s390x_linux64v1_regset_sections): Likewise.
884 (s390x_linux64v2_regset_sections): Likewise.
885 (s390_regset_from_core_section): Handle .reg-s390-last-break and
886 .reg-s390-system-call core file sections.
887 (s390_core_read_description): Check for presence of
888 .reg-s390-last-break and .reg-s390-system-call core file
889 sections and return appropriate target description.
890 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
891 "last_break" and "system_call" in target description. Install
892 appropriate gdbarch_core_regset_sections array.
893 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
894 (_initialize_s390_tdep): Initialize additional target descriptions.
895
896 * s390-nat.c: Include "elf/common.h".
897 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
898 (have_regset_last_break): New static variable.
899 (have_regset_system_call): Likewise.
900 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
901 (s390_native_collect): Likewise.
902 (fetch_regset, store_regset, check_regset): New functions.
903 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
904 and S390_SYSTEM_CALL_REGNUM.
905 (s390_linux_store_inferior_registers): Likewise.
906 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
907 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
908
909 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
910 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
911 (s390-linux32v1-expedite): Define.
912 (s390-linux32v2-expedite): Likewise.
913 (s390-linux64v1-expedite): Likewise.
914 (s390-linux64v2-expedite): Likewise.
915 (s390x-linux64v1-expedite): Likewise.
916 (s390x-linux64v2-expedite): Likewise.
917
918 * features/s390-linux32.xml: Add orig_r2 register.
919 * features/s390-linux64.xml: Likewise.
920 * features/s390x-linux64.xml: Likewise.
921 * features/s390-linux32v1.xml: New file.
922 * features/s390-linux32v2.xml: Likewise.
923 * features/s390-linux64v1.xml: Likewise.
924 * features/s390-linux64v2.xml: Likewise.
925 * features/s390x-linux64v1.xml: Likewise.
926 * features/s390x-linux64v2.xml: Likewise.
927
928 * features/s390-linux32.c: Regenerate.
929 * features/s390-linux64.c: Likewise.
930 * features/s390x-linux64.c: Likewise.
931 * features/s390-linux32v1.c: New generated file.
932 * features/s390-linux32v2.c: Likewise.
933 * features/s390-linux64v1.c: Likewise.
934 * features/s390-linux64v2.c: Likewise.
935 * features/s390x-linux64v1.c: Likewise.
936 * features/s390x-linux64v2.c: Likewise.
937
938 * regformats/s390-linux32.dat: Regenerate.
939 * regformats/s390-linux64.dat: Regenerate.
940 * regformats/s390x-linux64.dat: Regenerate.
941 * regformats/s390-linux32v1.dat: New generated file.
942 * regformats/s390-linux32v2.dat: Likewise.
943 * regformats/s390-linux64v1.dat: Likewise.
944 * regformats/s390-linux64v2.dat: Likewise.
945 * regformats/s390x-linux64v1.dat: Likewise.
946 * regformats/s390x-linux64v2.dat: Likewise.
947
948 2011-12-05 Pedro Alves <pedro@codesourcery.com>
949
950 * linux-nat.c (resume_stopped_resumed_lwps): Call
951 registers_changed.
952
953 2011-12-05 Pedro Alves <pedro@codesourcery.com>
954
955 * breakpoint.c: Include record.h.
956 (breakpoints_always_inserted_mode): Return false when the record
957 target is in use.
958
959 2011-12-05 Pedro Alves <pedro@codesourcery.com>
960
961 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
962 Reinstate perror_with_name call on ptrace error. Remove #if 0.
963 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
964 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
965
966 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
967
968 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
969 `i'(-Wshadow).
970
971 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
972
973 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
974
975 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
976
977 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
978 of `tdep'(-Wshadow).
979
980 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
981
982 Fix compilation --without-expat.
983 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
984 from ...
985 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
986
987 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
988 Jan Kratochvil <jan.kratochvil@redhat.com>
989
990 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
991 * features/library-list-svr4.dtd: New file.
992 * remote.c (PACKET_qXfer_libraries_svr4): New.
993 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
994 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
995 * solib-svr4.c (struct svr4_library_list): New.
996 [HAVE_LIBEXPAT]: Include xml-support.h.
997 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
998 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
999 [HAVE_LIBEXPAT] (svr4_library_list_children)
1000 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
1001 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
1002 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
1003 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
1004 (svr4_read_so_list): Extend the corruption message by addresses.
1005 (svr4_current_sos): New variable library_list, call
1006 svr4_current_sos_via_xfer_libraries.
1007 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1008
1009 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1010
1011 PR threads/13448
1012 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1013 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1014
1015 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1016
1017 PR breakpoints/13346
1018 * dwarf2read.c (process_psymtab_comp_unit): Set
1019 PSYMTABS_ADDRMAP_SUPPORTED.
1020 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1021 validity. New field psymtabs_addrmap_supported.
1022 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1023 psymtabs_addrmap_supported.
1024 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1025 !PSYMTABS_ADDRMAP_SUPPORTED.
1026 (dump_psymtab, maintenance_info_psymtabs): Print also
1027 psymtabs_addrmap_supported.
1028
1029 2011-12-01 Doug Evans <dje@google.com>
1030
1031 * python/py-type.c (type_object_methods): Fix "array" doc string.
1032
1033 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
1034
1035 * source.c (print_source_lines_base): Fix missing braces on else
1036 clause leading to additional output.
1037
1038 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1039
1040 * s390-nat.c (SUBOFF): Remove.
1041 (s390_native_supply, s390_native_collect): New functions.
1042 (supply_gregset, supply_fpregset): Use s390_native_supply.
1043 (fill_gregset, fill_fpregset): Use s390_native_collect.
1044
1045 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1046 (s390_unwind_pseudo_register): New function.
1047 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1048 registers instead of PC and CC.
1049 (s390_backchain_frame_unwind_cache): Likewise.
1050 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1051 full GPR pseudos.
1052 (s390_trad_frame_prev_register): New function.
1053 (s390_frame_prev_register): Use it.
1054 (s390_sigtramp_frame_prev_register): Likewise.
1055 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1056 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1057 special callback to unwind any pseudo.
1058
1059 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1060 * features/s390-core64.xml: Likewise.
1061 * features/s390x-core64.xml: Likewise.
1062 * features/s390-linux32.c: Regenerate.
1063 * features/s390-linux64.c: Likewise.
1064 * features/s390x-linux64.c: Likewise.
1065
1066 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1067
1068 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1069
1070 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1071
1072 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1073 instruction. Add more diagnostic output.
1074
1075 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1076
1077 * MAINTAINERS (Write After Approval): Add myself to the list.
1078
1079 2011-11-29 Sanjoy Das <sdas@igalia.com>
1080
1081 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1082 (jit_bfd_try_read_symtab): Fix comments.
1083
1084 2011-11-28 DJ Delorie <dj@redhat.com>
1085
1086 * NEWS: Mention RL78 simulator.
1087
1088 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1089
1090 * symfile.h (struct quick_symbol_functions): Fix the documentation
1091 of field map_matching_symbols, as symbols are sorted using
1092 strcmp_iw_ordered, not strcmp_iw.
1093
1094 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1095
1096 * symfile.h (struct quick_symbol_functions): Update the
1097 documentation for field map_matching_symbols.
1098
1099 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1100
1101 * ada-lang.c (compare_names): Fix wrong return value in case
1102 string1 starts with the same contents as string2, followed
1103 by an underscore that do not start a symbol name suffix.
1104
1105 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1106
1107 PR python/13369
1108 PR python/13374
1109
1110 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1111 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1112 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1113 exceptions.
1114 * python/py-type.c (typy_strip_typedefs): Ditto.
1115 (typy_legacy_template_argument): Ditto.
1116 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1117 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1118
1119 2011-11-27 Joel Brobecker <brobecker@acacore.com>
1120
1121 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1122 local variable. Avoid use of sprintf_vma.
1123
1124 2011-11-27 Sanjoy Das <sdas@igalia.com>
1125
1126 Fix regression in jit.exp.
1127 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1128 (jit_register_code): Set the jit_objfile_data field to the correct
1129 value.
1130
1131 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1132
1133 * alpha-tdep.c (br_opcode): New.
1134 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1135 (alpha_deal_with_atomic_sequence): New function.
1136 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1137 with alpha_deal_with_atomic_sequence.
1138
1139 2011-11-24 Tristan Gingold <gingold@adacore.com>
1140
1141 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1142 fields. Add oso_sym, end_sym and nbr_syms.
1143 (macho_register_oso): Change interface.
1144 (macho_symtab_add_minsym): New function.
1145 (macho_symtab_read): Rewritten.
1146 (get_archive_prefix_len): Remove trailing blanks.
1147 (oso_el_compare_name): Add comment.
1148 (struct macho_sym_hash_entry): New structure.
1149 (macho_relocate_common_syms): Remove.
1150 (macho_sym_hash_newfunc): New function.
1151 (macho_resolve_oso_sym_with_minsym): Likewise.
1152 (macho_add_oso_symfile): Rewritten.
1153 (macho_symfile_read_all_oso): Remove trailing blanks.
1154 Adjust code to free oso vector.
1155 (macho_symfile_read): Likewise.
1156 Move code to initialize minimal symbol
1157
1158 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1159
1160 * mips-tdep.c (extended_offset): Fix formatting.
1161
1162 2011-11-23 Doug Evans <dje@google.com>
1163
1164 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1165 (dw2_expand_symtabs_with_filename): Ditto.
1166 (dw2_expand_symtabs_matching): Ditto.
1167 (dw2_map_symbol_filenames): Ditto.
1168
1169 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1170
1171 * ada-lang.c (assign_aggregate): Minor reformatting.
1172
1173 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1174
1175 * ada-lang.c (assign_aggregate): Remove declaration of local
1176 variable `i' which is shadowing another variable with the same
1177 name declared in the outer scope.
1178
1179 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1180
1181 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1182 calls throughout this file.
1183
1184 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1185
1186 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1187 FormatMessage.
1188
1189 2011-11-22 Tom Tromey <tromey@redhat.com>
1190
1191 PR mi/8444:
1192 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1193 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1194 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1195 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1196 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1197 (print_it_catch_syscall, print_it_catch_exec)
1198 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1199 (bpstat_print): Add 'kind' argument. Handle
1200 TARGET_WAITKIND_LOADED.
1201 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1202 handle TARGET_WAITKIND_LOADED here.
1203 * breakpoint.h (bpstat_print): Update.
1204
1205 2011-11-22 Tom Tromey <tromey@redhat.com>
1206
1207 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1208
1209 2011-11-22 Tom Tromey <tromey@redhat.com>
1210
1211 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1212 Use static_assert to check the size of
1213 async_reason_string_lookup.
1214 * common/gdb_assert.h (static_assert): New macro.
1215
1216 2011-11-22 Alan Modra <amodra@gmail.com>
1217
1218 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1219 destination calculation. Don't expect >> to sign extend. Don't
1220 add a break if branch lands inside the sequence anywhere.
1221
1222 2011-11-21 Keith Seitz <keiths@redhat.com>
1223
1224 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1225 -var-evaluate-expression of an enumeration and fix expected result.
1226 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1227
1228 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1229
1230 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1231 the case where osdata->items is empty. Rename column names to a
1232 canonical form to avoid problems with unusual column names.
1233
1234 2011-11-21 Yao Qi <yao@codesourcery.com>
1235
1236 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1237
1238 2011-11-20 Stan Shebs <stan@codesourcery.com>
1239
1240 * NEWS: Mention tracepoint additions.
1241 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1242 * breakpoint.c (print_one_breakpoint_location): Identify
1243 tracepoints as such when reporting hit counts, report
1244 trace buffer usage.
1245 (create_tracepoint_from_upload): Copy status info.
1246 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1247 add fields user_name, notes, start_time, stop_time.
1248 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1249 * tracepoint.c (trace_user): New global.
1250 (trace_notes): New global.
1251 (trace_stop_notes): New global.
1252 (start_tracing): Add argument and trace note handling.
1253 (stop_tracing): Ditto.
1254 (trace_start_command): Add notes argument.
1255 (trace_stop_command): Ditto.
1256 (trace_status_command): Report additional status info.
1257 (trace_status_mi): Similarly.
1258 (trace_save): Update, record tracepoint status.
1259 (set_disconnected_tracing): Call target method directly.
1260 (send_disconnected_tracing_value): Remove.
1261 (set_trace_user): New function.
1262 (set_trace_notes): New function.
1263 (set_trace_stop_notes): New function.
1264 (parse_trace_status): Handle additional status.
1265 (parse_tracepoint_status): New function.
1266 (parse_tracepoint_definition): Call it.
1267 (tfile_get_tracepoint_status): New function.
1268 (init_tfile_ops): Use it.
1269 (_initialize_tracepoint): Add new setshows.
1270 * target.h (struct target_ops): New methods to_get_tracepoint_status
1271 and to_set_trace_notes.
1272 (target_get_tracepoint_status): New macro.
1273 (target_set_trace_notes): New macro.
1274 * target.c (update_current_target): Add new methods.
1275 * remote.c (remote_get_tracepoint_status): New function.
1276 (remote_set_trace_notes): New function.
1277 (init_remote_ops): Add them.
1278 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1279 (mi_cmd_trace_stop): Ditto.
1280
1281 2011-11-20 Sanjoy Das <sdas@igalia.com>
1282
1283 * jit.c: Include regcache.h.
1284 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1285 (jit_unwind_reg_set_impl, free_reg_value_impl)
1286 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1287 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1288 (jit_frame_prev_register, jit_dealloc_cache)
1289 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1290 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1291 jit_prepend_unwinder.
1292 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1293
1294 2011-11-20 Sanjoy Das <sdas@igalia.com>
1295
1296 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1297 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1298 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1299 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1300 (finalize_symtab, jit_object_close_impl)
1301 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1302 (free_objfile_data): New functions.
1303 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1304 function.
1305
1306 2011-11-20 Sanjoy Das <sdas@igalia.com>
1307
1308 * jit.c: Include gdb-dlfcn.h.
1309 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1310 (jit_reader_load, jit_reader_load_command)
1311 (jit_reader_unload_command): New functions.
1312 (_initialize_jit): Add commands "jit-reader-load" and
1313 "jit-reader-unload".
1314
1315 2011-11-20 Sanjoy Das <sdas@igalia.com>
1316
1317 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1318 * config.in: Add new #define HAVE_LIBDL.
1319 * configure.ac: Add check for -ldl.
1320 * configure: Re-generated by autoconf.
1321 * gdb-dlfcn.c: New file.
1322 * gdb-dlfcn.h: New file.
1323
1324 2011-11-20 Sanjoy Das <sdas@igalia.com>
1325
1326 * config.in: Add new #defines: JIT_READER_DIR and
1327 JIT_READER_DIR_RELOCATABLE.
1328 * configure.ac: New GDB directory entry for jit-reader-dir.
1329 * configure: Re-generated by autoconf.
1330 * jit.c: New static variable: const char *jit_reader_dir.
1331 (_initialize_jit): Relocate jit_reader_dir.
1332
1333 2011-11-20 Sanjoy Das <sdas@igalia.com>
1334
1335 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1336 $(includedir)/gdb.
1337 * configure.ac: Generate a correct value for TARGET_PTR for
1338 jit-reader.h. Tell configure to generate jit-reader.h from
1339 jit-reader.in.
1340 * configure: Re-generated by autoconf.
1341 * jit-reader.in: New file.
1342 * jit.c: Include jit-reader.h.
1343
1344 2011-11-20 Sanjoy Das <sdas@igalia.com>
1345
1346 * MAINTAINERS (Write After Approval): Add myself to the list.
1347
1348 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1349
1350 * findvar.c (read_frame_register_value): Respect value_offset
1351 of the register value. Remove big-endian special case.
1352
1353 2011-11-18 Tom Tromey <tromey@redhat.com>
1354
1355 PR build/7196:
1356 * remote.c (putpkt_for_catch_errors): New function.
1357 (remote_kill): Use it.
1358
1359 2011-11-18 Yao Qi <yao@codesourcery.com>
1360
1361 * breakpoint.c (create_breakpoint): Produce query message according to
1362 breakpoint's type.
1363 Allocate tracepoint per correct type.
1364 Don't check SALs for pending fast tracepoints.
1365 * tracepoint.c (process_tracepoint_on_disconnect): New.
1366 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1367
1368 2011-11-18 Yao Qi <yao@codesourcery.com>
1369
1370 * breakpoint.c (install_breakpoint): Add one more parameter so that
1371 update_global_location_list is called conditionally.
1372 (create_fork_vfork_event_catchpoint): Update.
1373 (create_syscall_event_catchpoint): Update.
1374 (create_breakpoint_sal): Update.
1375 (create_breakpoint_sal): Update. Call do_cleanups before
1376 install_breakpoint.
1377 * ada-lang.c (create_ada_exception_catchpoint): Update.
1378 * breakpoint.h (install_breakpoint): Update declaration.
1379
1380 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1381
1382 * spu-tdep.c (spu_return_value): Fix handling of
1383 TYPE_CALLING_CONVENTION annotation.
1384
1385 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1386
1387 * skip.c (skip_function_command): Work around uninitialized
1388 variable warning.
1389
1390 2011-11-16 David S. Miller <davem@davemloft.net>
1391
1392 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1393 'tv_usec' to long for printf since these fields have a type which
1394 varies.
1395
1396 2011-11-15 Doug Evans <dje@google.com>
1397
1398 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1399
1400 2011-11-15 Paul Koning <paul_koning@dell.com>
1401
1402 * python/py-type.c (typy_get_composite): New function.
1403 (typy_nonzero): New function.
1404 (typy_values): Rename from typy_fields.
1405 (typy_fields): New function.
1406 (typy_length): Raise exception if not struct, union, or enum type.
1407 (typy_getitem): Ditto.
1408 (typy_has_key): Ditto.
1409 (typy_make_iter): Ditto.
1410
1411 2011-11-15 Doug Evans <dje@google.com>
1412
1413 PR gdb/8367
1414 * NEWS: Mention new parameter basenames-may-differ.
1415 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1416 ! basenames_may_differ.
1417 * psymtab.c (lookup_partial_symtab): Ditto.
1418 * symtab.c (lookup_symtab): Ditto.
1419 (basenames_may_differ): New global.
1420 (_initialize_symtab): New parameter basenames-may-differ.
1421 * symtab.h (basenames_may_differ): Declare.
1422
1423 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1424 Luis Machado <lgustavo@codesourcery.com>
1425
1426 * auxv.c: Include observer.h.
1427 (auxv_inferior_data_cleanup): New.
1428 (invalidate_auxv_cache_inf): New.
1429 (invalidate_auxv_cache): New.
1430 (get_auxv_inferior_data): New.
1431 (auxv_inferior_data): New static global.
1432 (auxv_info): New structure.
1433 (target_auxv_search): Use get_auxv_inferior_data instead of
1434 target_read_alloc and don't free cached buffers.
1435 (fprint_target_auxv): Likewise
1436 (_initialize_auxv): Register per-inferior auxv cache and register
1437 observers to invalidate auxv cache when needed.
1438
1439 2011-11-14 Doug Evans <dje@google.com>
1440
1441 PR gdb/7200 Make "!" an alias for "shell".
1442 * NEWS: Add mention.
1443 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1444 adding "!" command, always add it.
1445 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1446 command of length one.
1447
1448 2011-11-14 Stan Shebs <stan@codesourcery.com>
1449 Kwok Cheung Yeung <kcy@codesourcery.com>
1450
1451 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1452 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1453 the minimum instruction size for fast tracepoints.
1454 * target.h (struct target_ops): Add new method
1455 to_get_min_fast_tracepoint_insn_len.
1456 (target_get_min_fast_tracepoint_insn_len): New.
1457 * target.c (update_current_target): Set up new target operation.
1458 * remote.c (remote_write_bytes_aux): Fix typo.
1459 (remote_get_min_fast_tracepoint_insn_len): New.
1460 (init_remote_ops): Initialize new field.
1461
1462 2011-11-14 Tom Tromey <tromey@redhat.com>
1463
1464 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1465 (encode_actions): Likewise.
1466
1467 2011-11-14 Yao Qi <yao@codesourcery.com>
1468
1469 * remote.c (struct remote_state): <install_in_trace> new field.
1470 (PACKET_InstallInTrace): New enum value.
1471 (remote_install_in_trace_feature): Support InstallInTrace.
1472 (remote_supports_install_in_trace): Likewise.
1473 (remote_protocol_features): Likewise.
1474 (_initialize_remote): Likewise.
1475 (remote_can_download_tracepoint): New.
1476 * target.h (struct target): New field
1477 `to_can_download_tracepoint'.
1478 (target_can_download_tracepoint): New macro.
1479 * target.c (update_current_target): Update.
1480 * breakpoint.h (struct bp_location): Add comment on field
1481 `duplicate'.
1482 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1483 and tracepoint.
1484 (remove_breakpoints): Don't remove tracepoints.
1485 (tracepoint_locations_match ): New.
1486 (breakpoint_locations_match): Call it.
1487 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1488 (download_tracepoint_locations): New.
1489 (update_global_location_list): Call it.
1490 * tracepoint.c (find_matching_tracepoint): Delete.
1491 (find_matching_tracepoint_location): Renamed from
1492 find_matching_tracepoint. Return bp_location rather than
1493 tracepoint.
1494 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1495 tracepoint is found.
1496
1497 2011-11-14 Yao Qi <yao@codesourcery.com>
1498
1499 * target.h (struct target): <to_download_tracepoint> Change type
1500 of parameter from tracepoint to bp_location.
1501 * target.c (update_current_target): Update.
1502 * tracepoint.c (start_tracing): Update.
1503 * remote.c (remote_download_tracepoint): Remove loop for each location
1504 of a tracepoint.
1505
1506 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1507
1508 * i386-nat.c (i386_insert_hw_breakpoint): Call
1509 i386_update_inferior_debug_regs.
1510 (i386_remove_hw_breakpoint): Likewise.
1511
1512 2011-11-14 Yao Qi <yao@codesourcery.com>
1513
1514 * breakpoint.c (init_raw_breakpoint): Call
1515 add_location_to_breakpoint to replace duplicated code.
1516 (add_location_to_breakpoint): Adjust the breakpoint's
1517 address prior to allocating a location.
1518
1519 2011-11-12 Matt Rice <ratmice@gmail.com>
1520
1521 * macrocmd.c (macro_no_macro_info): New function.
1522 (macro_expand_command): Use macro_no_macro_info.
1523 (macro_expand_once_command): Ditto.
1524 (info_macro_command): Add argument processing,
1525 move info_definitions_command here.
1526 (_initialize_macrocmd): Remove info definitions command.
1527 Add arguments to info macro help text.
1528 * NEWS: Replace info definitions command with new info macro options.
1529
1530 2011-11-11 Keith Seitz <keiths@redhat.com>
1531
1532 PR gdb/12843
1533 * linespec.c (locate_first_half): Keep ':' if it looks
1534 like it could be part of a Windows path starting with
1535 a drive letter.
1536
1537 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1538
1539 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1540 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1541
1542 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1543
1544 * target.c (target_waitstatus_to_string): Handle
1545 TARGET_WAITKIND_NO_RESUMED.
1546
1547 2011-11-10 Doug Evans <dje@google.com>
1548
1549 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1550 `need_fullname'.
1551 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1552 (map_partial_symbol_filenames): Ditto. All callers updated.
1553 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1554 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1555 parameter need_fullname.
1556
1557 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1558 * source.c (symtab_to_fullname): Ditto.
1559
1560 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1561 * gdb-demangle.h: ... here. New file.
1562 * demangle.c: #include "gdb-demangle.h".
1563 (_initialize_demangler): Use initialize_file_ftype for prototype.
1564 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1565 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1566 from utils.c
1567 * utils.c: Update. #include "gdb-demangle.h".
1568 * symtab.h (asm_demangle): Delete.
1569 (demangle): Move declaration next to use.
1570 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1571 * dwarf2read.c: #include "gdb-demangle.h".
1572 * gnu-v2-abi.c: Ditto.
1573 * jv-typeprint.c: Ditto.
1574 * mdebugread.c: Ditto.
1575 * p-typeprint.c: Ditto.
1576 * stabsread.c: Ditto.
1577 * printcmd.c: Ditto.
1578 (asm_demangle): Delete declaration.
1579 * tui/tui-stack.c: #include "gdb-demangle.h".
1580
1581 * python/py-type.c (typy_fields_items): Call check_typedef.
1582
1583 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1584
1585 * findvar.c (read_frame_register_value): Read the correct bytes
1586 from registers on big-endian architectures.
1587
1588 2011-11-10 Tom Tromey <tromey@redhat.com>
1589
1590 * procfs.c (load_syscalls): Make a cleanup.
1591 (open_procinfo_files): fd==0 is ok.
1592
1593 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1594
1595 * procfs.c (iterate_over_mappings): Call do_cleanups before
1596 returning.
1597
1598 2011-11-09 Doug Evans <dje@google.com>
1599
1600 * gdbtypes.c (check_typedef): Document that this function can
1601 throw an exception.
1602
1603 2011-11-09 Tom Tromey <tromey@redhat.com>
1604
1605 PR c++/13342:
1606 * valops.c (value_full_object): Return early if real type is
1607 smaller than the enclosing type.
1608
1609 2011-11-08 Yao Qi <yao@codesourcery.com>
1610
1611 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1612
1613 2011-11-08 Meador Inge <meadori@codesourcery.com>
1614
1615 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1616 register when the frame can't be determined.
1617 * arm-tdep.c (arm_analyze_prologue): Ditto.
1618
1619 2011-11-07 Stan Shebs <stan@codesourcery.com>
1620
1621 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1622
1623 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1624
1625 * infrun.c (handle_inferior_event): Minor reformatting.
1626
1627 2011-11-05 Doug Evans <dje@google.com>
1628
1629 * source.c (forget_cached_source_info_for_objfile): Move call to
1630 objfile->sf->qf->forget_cached_source_info outside of
1631 ALL_OBJFILE_SYMTABS loop.
1632 (forget_cached_source_info): Delete unused variable `s'.
1633
1634 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1635
1636 * i386-nat.c (dr_ref_count): Remove unused variable.
1637
1638 2011-11-05 Doug Evans <dje@google.com>
1639
1640 * main.c (captured_main): Set lim_at_start before calling
1641 make_command_stats_cleanup.
1642
1643 2011-11-04 Doug Evans <dje@google.com>
1644
1645 * utils.c: #include "timeval-utils.h".
1646 (cmd_stats): Rename start_time to start_cpu_time.
1647 New member start_wall_time.
1648 (report_command_stats): Report wall time.
1649 (make_command_stats_cleanup): Record start wall time.
1650
1651 2011-11-04 Tom Tromey <tromey@redhat.com>
1652
1653 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1654
1655 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1656
1657 * coff-pe-read.c: Include defs.h before bfd.h.
1658
1659 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1660
1661 PR Python/13345
1662
1663 * python/python.c (python_run_simple_file): Expand tilde in path.
1664
1665 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1666
1667 PR Python/13363
1668
1669 * python/py-type.c (typy_lookup_type): Do not return a type in
1670 an exception handler.
1671
1672 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1673 Eli Zaretskii <eliz@gnu.org>
1674
1675 * linux-nat.c (_initialize_linux_nat): Improve help
1676 for `info proc stat', `info proc status', `info proc cwd',
1677 `info proc cmdline' and `info proc exe'.
1678
1679 2011-11-02 Stan Shebs <stan@codesourcery.com>
1680
1681 String collection for tracepoints.
1682 * NEWS: Mention string collection.
1683 * common/ax.def (tracenz): New bytecode.
1684 * ax-gdb.h (trace_string_kludge): Declare.
1685 * ax-gdb.c: Include valprint.h and c-lang.h.
1686 (trace_string_kludge): New global.
1687 (gen_traced_pop): Add string case.
1688 (agent_command): Add string case.
1689 * tracepoint.h (decode_agent_options): Declare.
1690 * tracepoint.c: Include cli-utils.h.
1691 (decode_agent_options): New function.
1692 (validate_actionline): Call it.
1693 (encode_actions_1): Ditto.
1694 * target.h (struct target_ops): New method to_supports_string_tracing.
1695 (target_supports_string_tracing): New macro.
1696 * target.c (update_current_target): Add to_supports_string_tracing.
1697 * remote.c (struct remote_state): New field string_tracing.
1698 (remote_string_tracing_feature): New function.
1699 (remote_protocol_features): New feature tracenz.
1700 (remote_supports_string_tracing): New function.
1701 (init_remote_ops): Set to_supports_string_tracing.
1702
1703 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1704 Jan Kratochvil <jan.kratochvil@redhat.com>
1705
1706 * linux-nat.c: Include cli/cli-utils.h.
1707 (enum info_proc_what): New.
1708 (linux_nat_info_proc_cmd): Rename to ...
1709 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1710 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1711 status_f and stat_f from WHAT. Throw error on extra parameters.
1712 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1713 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1714 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1715 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1716 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1717 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1718 `info proc cmdline', `info proc exe' and `info proc all' as real
1719 subcommands of `info proc'.
1720
1721 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1722
1723 * Makefile.in: (SFILES): Add skip.c.
1724 (HFILES_NO_SRCDIR): Add skip.h.
1725 (COMMON_OBS): Add skip.o.
1726 * skip.h, skip.c: New.
1727 * breakpoint.h (set_default_breakpoint): Remove.
1728 (get_sal_arch): Declare.
1729 * breakpoint.c: Remove default_breakpoint_valid,
1730 default_breakpoint_address, default_breakpoint_symtab,
1731 default_breakpoint_line, default_breakpoint_pspace variables.
1732 (get_sal_arch): Make public.
1733 (set_default_breakpoint): Remove.
1734 (parse_breakpoint_sals, create_breakpoint, clear_command,
1735 decode_line_spec_1): Remove uses of default_breakpoint variables;
1736 replaced with function calls into stack.c.
1737 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1738 * cli/cli-cmds.c: Add skiplist.
1739 (init_cmd_lists): Initialize skiplist.
1740 (init_cli_cmds): Fix comment (classes of commands appear in
1741 alphabetical order).
1742 * infrun.c (handle_inferior_event): Add check that we don't step into
1743 a function whose pc is marked for skip.
1744 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1745 last_displayed_addr, last_displayed_symtab, last_displayed_line
1746 variables.
1747 (set_last_displayed_sal): New static function.
1748 (print_frame_info): Switch call to set_default_breakpoint to call to
1749 set_last_displayed_sal.
1750 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1751 get_last_displayed_pspace, get_last_displayed_addr,
1752 get_last_displayed_symtab, get_last_displayed_line,
1753 get_last_displayed_sal): New public functions.
1754 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1755 get_last_displayed_pspace, get_last_displayed_addr,
1756 get_last_displayed_symtab, get_last_displayed_line,
1757 get_last_displayed_sal): Declare.
1758
1759 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1760
1761 * MAINTAINERS (Write After Approval): Add myself to the list.
1762
1763 2011-10-29 Yao Qi <yao@codesourcery.com>
1764
1765 * infcmd.c (disconnect_command): Call disconnect_tracing.
1766
1767 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1768
1769 Code cleanup.
1770 * symtab.c (skip_prologue_sal): Code reformatting.
1771
1772 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1773
1774 PR symtab/13208
1775 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1776 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1777 SAI.
1778
1779 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1780
1781 * linux-nat.c (linux_nat_filter_event): Remove `options'
1782 parameter, and dead code that used it. If we're handling a
1783 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1784 in our lwp list, re-add it.
1785 (check_zombie_leaders): New.
1786 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1787 wait for children with WNOHANG, and always wait for all children.
1788 Don't check for no resumed children upfront. Simplify wait loop.
1789 Check for zombie thread group leaders after handling all wait
1790 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1791 unwaited-for children left.
1792 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1793 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1794 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1795 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1796
1797 2011-10-28 Sterling Augustine <saugustine@google.com>
1798
1799 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1800 * symtab.c (free_completion_list): New function.
1801 (do_free_completion_list): Likewise.
1802 (default_make_symbol_completion_list_break_on): New variable
1803 back_to. Call make_cleanup and discard_cleanups.
1804 (make_source_files_completion_list): Likewise.
1805
1806 2011-10-28 Paul Koning <paul_koning@dell.com>
1807
1808 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1809 * NEWS: Mention deep_items.
1810
1811 2011-10-28 Alen Skondro <askondro@gmail.com>
1812
1813 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1814 defined.
1815
1816 2011-10-27 Meador Inge <meadori@codesourcery.com>
1817
1818 * MAINTAINERS (Write After Approval): Add myself to the list.
1819
1820 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1821
1822 * value.h (read_frame_register_value): Add declaration.
1823 * findvar.c (read_frame_register_value): New function.
1824 (value_from_register): Use read_frame_register_value
1825 instead of get_frame_register_value + value_contents_copy
1826 to get value contents.
1827
1828 2011-10-27 Doug Evans <dje@google.com>
1829
1830 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1831 source_script_from_stream if it may have been found on the search path.
1832 * python/py-auto-load.c (source_section_scripts): Pass full path to
1833 source_python_script_for_objfile.
1834 * python/python.c (source_python_script): Delete stream parameter.
1835 All callers updated.
1836 (source_python_script_for_objfile): Ditto.
1837 * python/python-internal.h (source_python_script_for_objfile): Update.
1838 * python/python.h (source_python_script): Update.
1839
1840 2011-10-27 Tom Tromey <tromey@redhat.com>
1841
1842 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1843 (ada_sals_for_line): Remove declarations.
1844
1845 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1846
1847 Move unwind reasons to an external .def file
1848 * frame.c (frame_stop_reason_string): Rewrite using
1849 unwind_stop_reasons.def.
1850 * frame.h (enum unwind_stop_reason): Likewise.
1851 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1852 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1853 constants for bound-checking.
1854 * unwind_stop_reasons.def: New file.
1855 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1856 instead of a distinct value.
1857
1858 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1859
1860 PR python/13331
1861
1862 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1863 (convert_values_to_python): Return on Python tuple allocation
1864 failure. Return NULL on value conversion error.
1865
1866 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1867
1868 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1869 (bppy_set_task): Ditto.
1870 (bppy_delete_breakpoint): Ditto.
1871 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1872 (gdbpy_lookup_global_symbol): Ditto.
1873 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1874 * python/py-frame.c (frapy_is_valid): Ditto.
1875 (frame_info_to_frame_object): Ditto.
1876 * python/py-type.c (typy_lookup_type): Ditto.
1877 (typy_getitem): Ditto.
1878 (typy_has_key): Ditto.
1879 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1880
1881 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1882
1883 * gdbarch.h: Regenerate.
1884
1885 2011-10-26 Meador Inge <meadori@codesourcery.com>
1886
1887 * gdbarch.sh (function_list): Use 'pstring' when printing
1888 'gcore_bfd_target'.
1889 * gdbarch.c: Regenerate.
1890
1891 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1892
1893 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1894 and frame caches if PTID refers to all threads of a process.
1895
1896 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1897
1898 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1899 to create_breakpoint.
1900
1901 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1902
1903 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1904 (ppc_sysv_abi_push_dummy_call): Use it.
1905 (do_ppc_sysv_return_value): Likewise.
1906 (ppc64_sysv_abi_push_dummy_call): Likewise.
1907 (ppc64_sysv_abi_return_value): Likewise.
1908
1909 2011-10-26 Paul Koning <paul_koning@dell.com>
1910
1911 * python/lib/gdb/types.py (deepitems): New function.
1912
1913 2011-10-25 Paul Koning <paul_koning@dell.com>
1914
1915 PR python/13327
1916
1917 * python/py-value.c (value_to_value_object): Remove fetching of
1918 the value if it was lazy.
1919 (valpy_get_is_lazy): New function.
1920 (valpy_fetch_lazy): New function.
1921
1922 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1923
1924 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1925 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1926
1927 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1928
1929 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1930 event, in non-stop, if not stopping, make sure the new lwp has
1931 last_resume_kind set to resume_continue. Assert that when we're
1932 resuming the new lwp, its last_resume_kind is resume_continue.
1933
1934 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1935
1936 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1937 already set when marking the event thread as not executing in
1938 non-stop mode.
1939
1940 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1941
1942 * infrun.c (handle_inferior_event): Add debug output for
1943 TARGET_WAITKIND_NO_HISTORY.
1944
1945 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1946
1947 * NEWS: Move set/show extended-prompt to "New Options". Expand
1948 description. Fix typos.
1949
1950 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1951
1952 PR python/13310
1953
1954 * python/py-param.c (call_doc_function): Correctly deference on
1955 function exit.
1956
1957 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1958
1959 * ada-tasks.c (print_ada_task_info): Fix computation of
1960 number of tasks displayed in command output.
1961
1962 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1963 Ulrich Weigand <uweigand@de.ibm.com>
1964
1965 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1966 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1967 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1968 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1969 gdbarch_unwind_pc.
1970
1971 2011-10-20 Cary Coutant <ccoutant@google.com>
1972
1973 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1974 section to...
1975 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1976 flag. Adjust all callers.
1977 (process_psymtab_comp_unit): Remove adjustment for type section.
1978
1979 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1980
1981 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1982 arguments by adding OBJFILE. Instead of getting objfile from
1983 symbol's symtab, use new argument OBJFILE.
1984 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1985 arguments by adding OBJFILE.
1986 * gdb/dwarf2read.c (new_symbol_full): Change call to
1987 cp_scan_for_anonymous_namespaces to match new signature.
1988 * gdb/stabsread.c (define_symbol): Change call to
1989 cp_scan_for_anonymous_namespaces to match new signature.
1990
1991 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1992
1993 PR python/13308
1994 PR python/13309
1995
1996 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1997 leak.
1998 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1999 leak. Delete unused variables.
2000
2001 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2002
2003 PR python/12656
2004
2005 * python/py-frame.c (frapy_read_var): Use const struct *block.
2006 * python/py-type.c (typy_lookup_typename): Likewise.
2007 (typy_lookup_type): Likewise.
2008 (typy_legacy_template_argument): Likewise.
2009 (typy_template_argument): Likewise.
2010 (gdbpy_lookup_type): Likewise.
2011 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2012 * python/py-block.c (blpy_block_object): Likewise.
2013 (blpy_iter): Likewise.
2014 (blpy_get_start): Likewise.
2015 (blpy_get_end): Likewise.
2016 (blpy_get_function): Likewise.
2017 (blpy_get_superblock): Likewise.
2018 (set_block): Likewise.
2019 (block_to_block_object): Likewise.
2020 (block_object_to_block): Likewise.
2021 (blpy_is_valid): Likewise.
2022 (blpy_get_global_block): New function.
2023 (blpy_get_static_block): New function.
2024 (blpy_is_global): New function.
2025 (blpy_is_static): New function.
2026 * blockframe.c (block_innermost_frame): Likewise.
2027 * valops.c (value_of_variable): Likewise.
2028 * frame.h: Update prototypes.
2029 * python/python-internal.h: Likewise.
2030 * value.h: Likewise.
2031
2032 2011-10-19 Cary Coutant <ccoutant@google.com>
2033
2034 * dwarf2read.c (create_debug_types_hash_table): Fix size of
2035 type_offset field.
2036
2037 2011-10-19 Cary Coutant <ccoutant@google.com>
2038
2039 * dwarf2read.c (peek_abbrev_code): New function.
2040 (dw2_get_file_names): Check for dummy compilation units.
2041 (create_debug_types_hash_table): Likewise.
2042 (process_psymtab_comp_unit): Likewise.
2043 (load_partial_comp_unit): Likewise.
2044 (load_full_comp_unit): Likewise.
2045
2046 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2047
2048 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2049 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2050 pt_phdr if PT_PHDR was found.
2051
2052 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
2053
2054 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2055 type or "<unnamed type"> when there is no name assigned.
2056 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2057 avoid a sigint when no name is assigned.
2058
2059 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2060
2061 Revert:
2062 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2063 * dwarf2expr.c (ctx_no_read_reg): New function.
2064 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2065 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2066 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2067 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2068
2069 2011-10-16 Doug Evans <dje@google.com>
2070
2071 * NEWS: Document python gdb.printing.register_pretty_printer's new
2072 `replace' parameter.
2073
2074 2011-10-14 Keith Seitz <keiths@redhat.com>
2075
2076 PR c++/13225
2077 * eval.c (evaluate_subexp_standard): Do not construct
2078 an array of types; pass the value array directly to
2079 find_overload_match.
2080 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2081 (rank_function): Take an array of values instead of types.
2082 (rank_one_type): Add struct value * parameter.
2083 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2084 (rank_function): For each argument, pass the argument's
2085 value to rank_one_type.
2086 (rank_one_type): Add VALUE parameter.
2087 If the parameter type is a pointer and the argument type
2088 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2089 VALUE is zero.
2090 Update all calls to rank_one_type, passing NULL for new
2091 VALUE parameter.
2092 * valarith.c (value_user_defined_cpp_op): Do not construct
2093 an array of types; pass the value array directly to
2094 find_overload_match.
2095 * valops.c (find_overload_method_list): Take an array of
2096 values instead of types.
2097 Save the type of OBJP for later use.
2098 Update calls to find_oload_champ, and find_oload_champ_namespace.
2099 (find_oload_champ_namespace): Take an array of values instead
2100 of types.
2101 (find_oload_champ_namespace_loop): Likewise.
2102 (find_oload_champ): Likewise.
2103 (classify_oload_match): Inspect all arguments
2104 until INCOMPATIBLE is found. Return the worst badness found
2105 otherwise.
2106 (compare_parameters): Update call to rank_one_type.
2107 * value.h (find_overload_match): Take an array of values instead
2108 of types.
2109
2110 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2111
2112 Drop lazy lm_info reading.
2113 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2114 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2115 (lm_info_read): New function.
2116 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2117 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2118 lm_dynamic_from_link_map.
2119 (lm_next, lm_prev, lm_name): Remove.
2120 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2121 initialization incl. read_memory. No longer use lm_name.
2122 (svr4_free_so): Drop lm_info->lm freeing.
2123 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2124 explicit lm_addr and lm initialization.
2125 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2126 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2127 lm_name.
2128
2129 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2130 Paul Pluzhnikov <ppluzhnikov@google.com>
2131
2132 * defs.h (struct so_list): New forward declaration.
2133 (make_cleanup_free_so): New declaration.
2134 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2135 (svr4_free_so): Move the function here from downwards. Handle NULL
2136 so->lm_info.
2137 (svr4_free_library_list): New.
2138 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2139 Use more cleanups. Use new parameter ignore_first instead of
2140 ignore_first_link_map_entry.
2141 (svr4_current_sos): New variable ignore_first, initialize it. New
2142 variable back_to, use it for svr4_free_library_list protection.
2143 (svr4_free_so): Remove - move upwards.
2144 * utils.c: Include solist.h.
2145 (do_free_so, make_cleanup_free_so): New functions.
2146
2147 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2148
2149 Fix internal error regression.
2150 * value.c (value_primitive_field): Handle value_optimized_out. Move
2151 packed bitfields comment.
2152
2153 2011-10-13 Tom Tromey <tromey@redhat.com>
2154
2155 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2156 always released.
2157
2158 2011-10-13 Tom Tromey <tromey@redhat.com>
2159
2160 * python/py-type.c (typy_has_key): Make 'field' const.
2161
2162 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2163
2164 * remote.c (remote_save_trace_data): Invert comparison.
2165
2166 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2167
2168 * tracepoint.c (trace_save_command): Use filename instead of
2169 args when printing.
2170
2171 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2172
2173 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2174 if .size is 0.
2175
2176 2011-10-13 Yao Qi <yao@codesourcery.com>
2177
2178 PR gdb/12703
2179 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2180 whether insn is a 32-bit Thumb-2 instruction.
2181 (thumb_in_function_epilogue_p): Likewise.
2182 (thumb_get_next_pc_raw): Likewise.
2183 (arm_breakpoint_from_pc): Likewise.
2184
2185 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2186
2187 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2188 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2189 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2190 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2191 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2192 zero DATA.
2193 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2194 validity.
2195 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2196 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2197 clear DATA on zero SIZE.
2198
2199 2011-10-12 Doug Evans <dje@google.com>
2200
2201 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2202 header->first_die_offset here. All callers updated.
2203
2204 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2205
2206 Fix compatibility with texinfo versions older than 4.12.
2207 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2208 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2209 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2210 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2211 * configure: Regenerate.
2212 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2213 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2214 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2215
2216 2011-10-12 Gary Benson <gbenson@redhat.com>
2217
2218 * breakpoint.h (pc_at_non_inline_function): Declare.
2219 * breakpoint.c (is_non_inline_function,
2220 pc_at_non_inline_function): New functions.
2221 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2222 if the stop is at a location where functions cannot be inlined.
2223
2224 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2225
2226 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2227 the core wanted them stopped, or if they now have a pending event
2228 to report.
2229 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2230 down to stop_and_resume_callback.
2231 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2232 having new pending events after calling linux_nat_filter_event.
2233
2234 2011-10-11 Sterling Augustine <saugustine@google.com>
2235
2236 * dwarf2read.c: Undo inadvertent changes in previous commit.
2237
2238 2011-10-11 Sterling Augustine <saugustine@google.com>
2239
2240 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2241 logic.
2242
2243 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2244
2245 * symfile.c (separate_debug_file_exists): Fix condition.
2246
2247 2011-10-11 David S. Miller <davem@davemloft.net>
2248
2249 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2250 static.
2251 * regcache.h (regcache_restore): Remove declaration.
2252
2253 * gdbarch.sh: New field 'long_long_align_bit'.
2254 * gdbarch.c, gdbarch.h: Regenerate.
2255 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2256 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2257
2258 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2259
2260 Revert this part of:
2261 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2262 Support @entry in input expressions.
2263 * c-exp.y (ENTRY, unknown_cpp_name): New.
2264 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2265 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2266 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2267 (name_not_typename: ENTRY): New.
2268 (yylex): Recognize ENTRY.
2269
2270 Reimplement @entry in input expressions.
2271 * c-exp.y (ENTRY): New.
2272 (variable: name_not_typename ENTRY): New.
2273 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2274
2275 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2276
2277 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2278 parent and child's pids as soon as we detect a clone event.
2279 Adjust another debug message.
2280
2281 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2282
2283 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2284 not zombie instead of reading the whole file.
2285
2286 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2287
2288 Fix separate debuginfo warning with "remote:" access.
2289 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2290 * symfile.c (get_file_crc): New function with the code moved from ...
2291 (separate_debug_file_exists): ... this function, specifically variables
2292 buffer and count. New variable verified_as_different, set it. Remove
2293 file_crc initialization. Verify also if both files are not the same
2294 manually, if needed.
2295
2296 2011-10-11 Yao Qi <yao@codesourcery.com>
2297
2298 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2299 to get address.
2300
2301 2011-10-10 Doug Evans <dje@google.com>
2302
2303 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2304 libthread_db when we load libpthread or the main symbol file.
2305 (thread_db_inferior_created): New function.
2306 (_initialize_thread_db): Attach inferior_created observer.
2307 * linux-nat.c (linux_child_post_attach): Remove call to
2308 check_for_thread_db.
2309 (linux_child_post_startup_inferior): Ditto.
2310 * objfiles.h (OBJF_MAINLINE): Define.
2311 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2312 allocate_objfile when appropriate.
2313
2314 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2315
2316 PR gdb/13218
2317 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2318 Remove unused variables.
2319 (get_linux_version): Remove function.
2320 (_initialize_arm_linux_nat): Do not call it.
2321
2322 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2323
2324 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2325 new clone lwp if the core asked it to stop. Don't pass on
2326 unexpected signals to the new clone; leave them pending instead.
2327
2328 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2329
2330 * linux-nat.c (resume_lwp): Remove redundant debug output.
2331
2332 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2333
2334 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2335 last_resume_kind before clearing it, and use the copy instead to
2336 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2337 resume_clear_callback in the non-stop path too.
2338
2339 2011-10-09 Yao Qi <yao@codesourcery.com>
2340
2341 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2342 Honor OPTIONS and VAL's type.
2343 (common_val_print, value_print): Update to pass one more parameter.
2344
2345 2011-10-09 Doug Evans <dje@google.com>
2346
2347 Add new "alias" command.
2348 * NEWS: Mention new command.
2349 * command.h (valid_user_defined_cmd_name_p): Declare.
2350 * defs.h (make_cleanup_dyn_string_delete): Declare.
2351 * utils.c: #include "dyn-string.h".
2352 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2353 * cli/cli-cmds.c: #include "dyn-string.h".
2354 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2355 (init_cli_cmds): Add new command.
2356 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2357
2358 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2359
2360 Fix compatibility with older GCCs.
2361 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2362 * stack.c (read_frame_arg): Initialize val_deref.
2363
2364 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2365
2366 Entry values NEWS entries, DWARF disassembly support.
2367 * NEWS: New entry values entry.
2368 (set print entry-values, show print entry-values)
2369 (set debug entry-values, show debug entry-values): New entries.
2370 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2371 indent. Remove variable start. Move header printing out. Respect
2372 INDENT. Support DW_OP_GNU_entry_value.
2373 (locexpr_describe_location_1): Move the header printing here, extend
2374 the disassemble_dwarf_expression passed parameters.
2375
2376 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2377
2378 Display @entry parameter values even for references.
2379 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2380 coerce_ref_if_computed.
2381 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2382 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2383 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2384 existing push_dwarf_reg_entry_value call. Add new detection calling
2385 dwarf_block_to_dwarf_reg_deref. Update the error message.
2386 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2387 * dwarf2expr.h
2388 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2389 parameter deref_size, describe it in the comment.
2390 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2391 (dwarf_block_to_dwarf_reg_deref): New declaration.
2392 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2393 deref_size, describe it in the function comment. New variables
2394 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2395 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2396 describe it in the function comment. Fetch the alternative block
2397 accoring to DEREF_SIZE.
2398 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2399 (entry_data_value_free_closure, entry_data_value_funcs): New.
2400 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2401 outer_val, target_val, val and addr. Try to fetch and create also
2402 referenced value content.
2403 (pieced_value_funcs): NULL value for coerce_ref.
2404 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2405 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2406 coerce_ref_if_computed.
2407 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2408 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2409 * stack.c (read_frame_arg): Compare also dereferenced values.
2410 * value.c (value_computed_funcs): Make the parameter v const, use
2411 value_lval_const for it.
2412 (value_lval_const, coerce_ref_if_computed): New function.
2413 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2414 * value.h (struct lval_funcs): New field coerce_ref.
2415 (value_computed_funcs): Make the parameter v const.
2416 (value_lval_const, coerce_ref_if_computed): New declarations.
2417
2418 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2419
2420 Support @entry in input expressions.
2421 * c-exp.y (ENTRY, unknown_cpp_name): New.
2422 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2423 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2424 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2425 (name_not_typename: ENTRY): New.
2426 (yylex): Recognize ENTRY.
2427 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2428 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2429 Likewise.
2430 * parse.c (operator_length_standard): Likewise.
2431 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2432
2433 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2434
2435 Display referenced values in backtraces.
2436 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2437 * stack.c (print_frame_arg): Likewise.
2438
2439 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2440
2441 Make some lval_funcs methods to default on NULL.
2442 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2443 NULL.
2444 (value_assign): Check if lval_computed write method is NULL.
2445 * value.h (struct lval_funcs): Comment NULL values for read and write
2446 methods.
2447
2448 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2449
2450 Display @entry parameter values (without references).
2451 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2452 New functions.
2453 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2454 New declarations.
2455 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2456 entry record.
2457 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2458 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2459 functions.
2460 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2461 (loclist_read_variable_at_entry): New function.
2462 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2463 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2464 DW_AT_location, call dwarf_block_to_sp_offset for it.
2465 * frame.h (print_entry_values_no, print_entry_values_only)
2466 (print_entry_values_preferred, print_entry_values_if_needed)
2467 (print_entry_values_both, print_entry_values_compact)
2468 (print_entry_values_default, print_entry_values): New declarations.
2469 (struct frame_arg): New field entry_kind.
2470 (read_frame_arg): New parameter entryargp.
2471 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2472 arg->entry_kind. Optionally print the `@entry' suffix.
2473 (list_args_or_locals): New variable entryarg, initialize it.
2474 Initialize also entry_kind of arg and entryarg. Conditionalize
2475 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2476 xfree for entryarg.error.
2477 * stack.c (print_entry_values_no, print_entry_values_only)
2478 (print_entry_values_preferred, print_entry_values_if_needed)
2479 (print_entry_values_both, print_entry_values_compact)
2480 (print_entry_values_default, print_entry_values_choices)
2481 (print_entry_values): New variables.
2482 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2483 print the `@entry' suffix, possibly in combination for
2484 print_entry_values_compact.
2485 (read_frame_arg): New parameter entryargp, new variables entryval,
2486 entryval_error and val_equal. Read in also entryargp, respect
2487 print_entry_values, compare the values using val_equal, fill in also
2488 argp->entry_kind (together with entryargp->entry_kind).
2489 (print_frame_args): New variable entryarg, initialize it.
2490 Conditionalize print_frame_arg for arg, add print_frame_arg for
2491 entryarg. Call xfree for entryarg.error.
2492 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2493 * symtab.h (struct symbol_computed_ops): New field
2494 read_variable_at_entry.
2495
2496 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2497
2498 Code reshuffle.
2499 * frame.h (struct frame_arg): New definition.
2500 (read_frame_arg): New declaration.
2501 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2502 (list_args_or_locals): ... the code here. New variable arg, call
2503 read_frame_arg and list_arg_or_local with it. Unify the
2504 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2505 arg.error.
2506 * stack.c (print_frame_arg): New functiom from the code of
2507 print_frame_args.
2508 (read_frame_arg): New function.
2509 (print_frame_args): Remove variable val. New variable arg, call
2510 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2511
2512 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2513
2514 Protect entry values against self tail calls.
2515 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2516 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2517
2518 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2519
2520 Recognize virtual tail call frames.
2521 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2522 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2523 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2524 * dwarf2-frame-tailcall.c: New file.
2525 * dwarf2-frame-tailcall.h: New file.
2526 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2527 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2528 REGS.PREV only after CIE execution.
2529 (struct dwarf2_frame_cache): New field tailcall_cache.
2530 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2531 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2532 parts, try to find entry_cfa_sp_offset. Call
2533 dwarf2_tailcall_sniffer_first.
2534 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2535 when appropriate.
2536 (dwarf2_frame_dealloc_cache): New function.
2537 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2538 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2539 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2540 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2541 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2542 * dwarf2loc.c (func_addr_to_tail_call_list)
2543 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2544 (call_site_find_chain_1, call_site_find_chain): New.
2545 * dwarf2loc.h (struct call_site_chain): New.
2546 (call_site_find_chain): New declaration.
2547 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2548 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2549 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2550 * stack.c (frame_info): Support also TAILCALL_FRAME.
2551
2552 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2553
2554 Tail call sites reader implementation.
2555 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2556 fill in TYPE_TAIL_CALL_LIST.
2557 * gdbtypes.h (struct func_type): New field tail_call_list.
2558 (struct call_site): New field tail_call_next.
2559 (TYPE_TAIL_CALL_LIST): New definition.
2560
2561 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2562
2563 Implement basic support for DW_TAG_GNU_call_site.
2564 * block.c: Include gdbtypes.h and exceptions.h.
2565 (call_site_for_pc): New function.
2566 * block.h (call_site_for_pc): New declaration.
2567 * defs.h: Include hashtab.h.
2568 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2569 declarations.
2570 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2571 ctx_no_push_dwarf_reg_entry_value.
2572 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2573 (dwarf_block_to_dwarf_reg): New function.
2574 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2575 (ctx_no_push_dwarf_reg_entry_value): New function.
2576 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2577 push_dwarf_reg_entry_value.
2578 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2579 declarations.
2580 * dwarf2loc.c: Include gdbcmd.h.
2581 (dwarf_expr_ctx_funcs): New forward declaration.
2582 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2583 (dwarf_expr_reg_to_entry_parameter)
2584 (dwarf_expr_push_dwarf_reg_entry_value): New.
2585 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2586 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2587 (needs_dwarf_reg_entry_value): New function.
2588 (needs_frame_ctx_funcs): Install it.
2589 (_initialize_dwarf2loc): New function.
2590 * dwarf2loc.h (entry_values_debug): New declaration.
2591 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2592 (read_call_site_scope): New forward declaration.
2593 (process_full_comp_unit): Copy call_site_htab.
2594 (process_die): Support DW_TAG_GNU_call_site.
2595 (read_call_site_scope): New function.
2596 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2597 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2598 (cleanup_htab): Delete.
2599 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2600 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2601 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2602 FIELD_LOC_KIND_DWARF_BLOCK.
2603 * gdbtypes.h (enum field_loc_kind): New entry
2604 FIELD_LOC_KIND_DWARF_BLOCK.
2605 (struct main_type): New loc entry dwarf_block.
2606 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2607 (TYPE_FIELD_DWARF_BLOCK): New.
2608 * python/py-type.c: Include dwarf2loc.h.
2609 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2610 internal_error call on unknown FIELD_LOC_KIND.
2611 * symtab.h (struct symtab): New field call_site_htab.
2612 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2613 (core_addr_hash, core_addr_eq): New functions.
2614
2615 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2616
2617 Code reshuffle.
2618 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2619 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2620 calling_convention under func_stuff there.
2621 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2622 (init_type) <TYPE_CODE_FUNC>: Likewise.
2623 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2624 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2625 * gdbtypes.h (enum type_specific_kind): Change
2626 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2627 (struct main_type) <type_specific>: Change calling_convention to
2628 func_stuff. Move calling_convention to ...
2629 (struct func_type): ... this new struct.
2630 (INIT_FUNC_SPECIFIC): New #define.
2631 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2632
2633 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2634
2635 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2636 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2637 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2638 ctx->ref_addr_size. Handle its invalid value.
2639 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2640 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2641 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2642 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2643 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2644 (dwarf2_per_cu_ref_addr_size): New function.
2645
2646 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2647
2648 Code cleanup.
2649 * dwarf2read.c (per_cu_header_read_in): New function.
2650 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2651 variables cu_header_local and cu_headerp.
2652
2653 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2654
2655 Fix initial language detection with -readnow.
2656 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2657 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2658 searches only for global symbols.
2659
2660 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2661
2662 Fix printed anonymous struct name.
2663 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2664 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2665 (anonymous_struct_prefix): New function.
2666 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2667 (dwarf2_name): Strip for anonymous structs any prefixes.
2668
2669 2011-10-07 Doug Evans <dje@google.com>
2670
2671 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2672 `replace'.
2673
2674 * python/lib/gdb/printing.py: Whitespace cleanup.
2675
2676 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2677 warning.
2678
2679 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2680
2681 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2682 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2683 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2684 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2685 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2686 (arm_linux_remove_watchpoint): Adjust.
2687 * i386-linux-nat.c (i386_linux_dr_set_control)
2688 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2689 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2690 (ia64_linux_remove_watchpoint): Adjust.
2691 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2692 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2693 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2694 (ppc_linux_insert_mask_watchpoint)
2695 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2696 (ppc_linux_remove_watchpoint): Adjust.
2697 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2698 Adjust.
2699
2700 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2701
2702 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2703 (clear_win32_environment): New function for Cygwin to clear out
2704 Win32 environment.
2705 (windows_create_inferior): Prepare new environment from in_env
2706 for Cygwin, too.
2707
2708 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2709
2710 PR python/13264
2711 * python/py-value.c (valpy_call): Check that arguments are
2712 a tuple.
2713 (is_intlike): Remove call to CHECK_TYPEDEF.
2714 (valpy_nonzero): Catch GDB exceptions.
2715 (valpy_absolute): Ditto.
2716 (valpy_lazy_string): Ditto.
2717 (valpy_call): Ditto.
2718 (valpy_get_is_optimized_out): Ditto.
2719 (valpy_long): Ditto.
2720 (valpy_float): Ditto.
2721 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2722 (valpy_richcompare): Ditto.
2723
2724 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2725
2726 * inferior.h (disable_randomization): Declare.
2727 * infrun.c (disable_randomization): New global variable.
2728 (show_disable_randomization): New function.
2729 (set_disable_randomization): Likewise.
2730 (_initialize_infrun): Install set/show disable-randomization
2731 commands.
2732 * linux-nat.c (disable_randomization): Remove.
2733 (show_disable_randomization): Likewise.
2734 (set_disable_randomization): Likewise.
2735 (_initialize_linux_nat): No longer install set/show
2736 disable-randomization commands here.
2737 (linux_nat_supports_disable_randomization): New function.
2738 (linux_nat_add_target): Install it.
2739 * remote.c (PACKET_QDisableRandomization): New enum value.
2740 (remote_protocol_packets): Support QDisableRandomization.
2741 (_initialize_remote): Likewise.
2742 (remote_supports_disable_randomization): New function.
2743 (init_remote_ops): Install it.
2744 (extended_remote_supports_disable_randomization): New function.
2745 (init_extended_remote_ops): Install it.
2746 (extended_remote_disable_randomization): New function.
2747 (extended_remote_create_inferior_1): Call it.
2748 * target.h (struct target_ops): Add to_supports_disable_randomization.
2749 (target_supports_disable_randomization): Add prototype.
2750 * target.c (target_supports_disable_randomization): New function.
2751 (find_default_supports_disable_randomization): Likewise.
2752 (init_dummy_target): Install it.
2753
2754 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2755
2756 Allow Python notification of new object-file loadings.
2757 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2758 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2759 Add build rule for this file.
2760 * python/py-event.h (emit_new_objfile_event): New prototype.
2761 (newobjfile): New Python event emitter.
2762 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2763 Python event registry.
2764 * python/py-inferior.c: Include objfiles.h
2765 (python_new_objfile): New function.
2766 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2767 observers.
2768 * python/py-newobjfileevent.c: New file.
2769 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2770 prototype.
2771 * python/python.c (_initialize_python): Add
2772 gdbpy_initialize_new_objfile_event call.
2773 * NEWS: Add item for new Python event "gdb.newobjfile"
2774
2775 2011-10-05 Tristan Gingold <gingold@adacore.com>
2776
2777 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2778 Extract the ravenscar task name from the symbol for the atcb.
2779
2780 2011-10-04 Paul Koning <paul_koning@dell.com>
2781
2782 * python/py-type.c (typy_make_iter): Add forward declaration.
2783 (typy_fields_items): Use the gdb.Type iterator.
2784
2785 2011-10-04 Paul Koning <paul_koning@dell.com>
2786
2787 * NEWS: Add entry for Python gdb.Type mapping methods.
2788
2789 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2790
2791 PR python/12691: Add the inferior to Python exited event
2792 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2793 to exited_event.
2794 * python/py-event.h (emit_exited_event): Likewise
2795 * python/-inferior.c (python_inferior_exit): Likewise
2796
2797 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2798
2799 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2800 in output of -ada-task-info GDB/MI command.
2801
2802 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2803
2804 * ada-lang.h (struct inferior): Declare.
2805 (print_ada_task_info): Add declaration.
2806 * ada-tasks.c (print_ada_task_info): Make non-static.
2807 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2808 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2809 * mi/mi-main.c: #include "ada-lang.h".
2810 (mi_cmd_list_features): Add "ada-task-info" to the list
2811 of supported features.
2812 (mi_cmd_ada_task_info): New function.
2813
2814 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2815
2816 * python/python.c (python_run_simple_file): New function.
2817 (source_python_script, source_python_script_for_objfile):
2818 Replace call to PyRun_SimpleFile by call to
2819 python_run_simple_file.
2820
2821 2011-10-03 Paul Koning <paul_koning@dell.com>
2822
2823 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2824 (value_to_value_object): Fetch value if it was lazy.
2825
2826 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2827
2828 Code cleanup.
2829 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2830 Rearrange the code for it.
2831
2832 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2833
2834 * breakpoint.c (bkpt_print_recreate): Add call to
2835 print_recreate_thread.
2836
2837 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2838
2839 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2840 PTRACE_GETFDPIC_INTERP): Define.
2841
2842 2011-09-28 Yao Qi <yao@codesourcery.com>
2843
2844 * symfile.c (add_symbol_file_command): Update message on usage.
2845
2846 2011-09-28 Paul Koning <paul_koning@dell.com>
2847
2848 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2849 (typy_length, typy_get, typy_has_key, typy_make_iter)
2850 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2851 (typy_iterator_iter, typy_iterator_iternext)
2852 (typy_iterator_dealloc): New functions to implement standard
2853 Python mapping methods on gdb.Type object.
2854 (gdb.TypeIterator): New Python type.
2855 * python/python-internal.h (gdbpy_iter_kind): New enum.
2856
2857 2011-09-28 David S. Miller <davem@davemloft.net>
2858
2859 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2860 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2861 * sparc-tdep.c (sparc_complex_floating_p): New function.
2862 (sparc32_store_arguments): Handle complex floats.
2863 (sparc32_extract_return_value): Likewise.
2864 (sparc32_store_return_value): Likewise.
2865 (sparc32_stabs_argument_has_addr): Likewise.
2866 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2867 (sparc64_store_floating_fields): Handle complex floats.
2868 (sparc64_store_arguments): Likewise.
2869 (sparc64_store_return_value): Likewise.
2870
2871 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2872
2873 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2874 before the change on 2006-12-09.
2875 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2876 generates the environment block for CreateProcessA, modulo the
2877 Cygwin-specific parts that are not needed here.
2878
2879 2011-09-27 Tristan Gingold <gingold@adacore.com>
2880
2881 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2882 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2883 (darwin_solib_get_all_image_info_addr_at_init): New function.
2884 (darwin_solib_read_all_image_info_addr): Likewise.
2885 (darwin_solib_create_inferior_hook): Use the above two functions.
2886 * darwin-nat.c (darwin_execvp): Renames retval to res.
2887 (darwin_read_write_inferior): Update comment.
2888 (darwin_read_dyld_info): New function.
2889 (darwin_xfer_partial): Handle DYLD_INFO.
2890
2891 2011-09-27 Stan Shebs <stan@codesourcery.com>
2892
2893 Add return address collection for tracepoints.
2894 * tracepoint.c (encode_actions_1): Add case for $_ret.
2895 (validate_actionline): Check for $_ret.
2896 (trace_dump_actions): Ditto.
2897 * ax-gdb.h (gen_trace_for_return_address): Declare.
2898 * ax-gdb.c: Include arch-utils.h.
2899 (gen_trace_for_return_address): New function.
2900 (agent_command): Add return address special case.
2901 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2902 (amd64_gen_return_address): New function.
2903 (amd64_init_abi): Call it.
2904 * i386-tdep.c: Include ax.h and ax-gdb.h.
2905 (i386_gen_return_address): New function.
2906 (i386_init_abi): Call it.
2907 * arch-utils.h (default_gen_return_address): Declare.
2908 * arch-utils.c (default_gen_return_address): New function.
2909 * gdbarch.sh (gen_return_address): New method.
2910 * gdbarch.h, gdbarch.c: Regenerate.
2911
2912 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2913
2914 PR gdb/13079
2915 * i386-tdep.c (i386_frame_align): New.
2916 (i386_gdbarch_init): Use i386_frame_align.
2917
2918 2011-09-23 Yao Qi <yao@codesourcery.com>
2919
2920 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2921 to get address.
2922
2923 2011-09-22 Tristan Gingold <gingold@adacore.com>
2924
2925 * fork-child.c (fork_inferior): Add exec_fun parameter.
2926 Call exec_fun or execvp.
2927 * inferior.h: Adjust prototype.
2928 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2929 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2930 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2931 * procfs.c (procfs_create_inferior): Ditto.
2932 * darwin-nat.c (darwin_execvp): New function.
2933 (darwin_create_inferior): Use it.
2934
2935 2011-09-22 Yao Qi <yao@codesourcery.com>
2936
2937 * infrun.c (context_switch): Print debug message when switching to
2938 a different thread.
2939
2940 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2941
2942 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2943 complex and vector types.
2944 (s390_return_value_convention): Likewise.
2945
2946 (s390_value_from_register): Call check_typedef.
2947 (extend_simple_arg): Likewise.
2948 (alignment_of): Likewise.
2949 (s390_push_dummy_call): Likewise.
2950 (s390_return_value): Likewise.
2951
2952 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2953
2954 * event-top.c (async_disconnect): If an exception is thrown from
2955 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2956 catch_errors.
2957 * top.c (quit_cover): Return void and take no arguments.
2958 * top.h (quit_cover): Update prototype.
2959
2960 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2961
2962 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2963 current_uiout, not uiout.
2964
2965 2011-09-19 Doug Evans <dje@google.com>
2966
2967 * python/py-auto-load.c (source_section_scripts): Fix file
2968 descriptor leak.
2969 * python/python.c (source_python_script_for_objfile): Tweak comments.
2970
2971 2011-09-18 Yao Qi <yao@codesourcery.com>
2972 Ulrich Weigand <ulrich.weigand@linaro.org>
2973
2974 Support displaced stepping for Thumb 16-bit insns.
2975 * arm-tdep.c (THUMB_NOP) Define.
2976 (thumb_copy_unmodified_16bit): New.
2977 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2978 (thumb_copy_alu_reg): New.
2979 (arm_copy_svc): Move some common code to ...
2980 (install_svc): ... here. New.
2981 (thumb_copy_svc): New.
2982 (install_pc_relative): New.
2983 (thumb_copy_pc_relative_16bit): New.
2984 (thumb_decode_pc_relative_16bit): New.
2985 (thumb_copy_16bit_ldr_literal): New.
2986 (thumb_copy_cbnz_cbz): New.
2987 (cleanup_pop_pc_16bit_all): New.
2988 (thumb_copy_pop_pc_16bit): New.
2989 (thumb_process_displaced_16bit_insn): New.
2990 (thumb_process_displaced_32bit_insn): New.
2991 (thumb_process_displaced_insn): process thumb instruction.
2992
2993 Support displaced stepping for Thumb 32-bit insns.
2994 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2995 (thumb2_copy_preload): New.
2996 (thumb2_copy_copro_load_store): New.
2997 (thumb2_copy_b_bl_blx): New.
2998 (thumb2_copy_alu_imm): New.
2999 (thumb2_copy_load_reg_imm): New.
3000 (thumb2_copy_load_literal): New
3001 (thumb2_copy_block_xfer): New.
3002 (thumb_32bit_copy_undef): New.
3003 (thumb_32bit_copy_unpred): New.
3004 (thumb2_decode_ext_reg_ld_st): New.
3005 (thumb2_decode_svc_copro): New.
3006 (decode_thumb_32bit_store_single_data_item): New.
3007 (thumb_copy_pc_relative_32bit): New.
3008 (thumb_decode_pc_relative_32bit): New.
3009 (decode_thumb_32bit_ld_mem_hints): New.
3010 (thumb2_copy_table_branch): New
3011 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3012 instructions.
3013
3014 2011-09-18 Yao Qi <yao@codesourcery.com>
3015
3016 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3017 (install_b_bl_blx): Likewise.
3018
3019 2011-09-17 Yao Qi <yao@codesourcery.com>
3020
3021 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3022 (install_load_store): ... this. New.
3023 Change parameter BYTE to SIZE.
3024 (arm_copy_ldr_str_ldrb_strb): Update caller.
3025 (arm_decode_ld_st_word_ubyte): Update caller.
3026
3027 2011-09-17 Yao Qi <yao@codesourcery.com>
3028
3029 * infrun.c (displaced_step_fixup): Move some code ...
3030 (displaced_step_restore): ... here. New function.
3031 (handle_inferior_event): Cleanup displaced stepping state for both
3032 child and parent when get forked or vforked event.
3033 * regcache.c (get_thread_arch_aspace_regcache): New function.
3034 get_thread_arch_regcache (): Call it.
3035
3036 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3037
3038 * ada-tasks.c (print_ada_task_info): New function, merging
3039 short_task_info and info_tasks together. Reimplement using
3040 ui-out instead of printing to stdout directly. Move the code
3041 building and checking the task list here, instead of leaving it
3042 in info_tasks_command.
3043 (info_task): Move the code building and checking the task
3044 list here, instead of leaving it in info_tasks_command.
3045 (info_tasks_command): Delete code building and checking
3046 the task list - moved elsewhere. Update calls to info_tasks
3047 and info_task.
3048
3049 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3050
3051 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3052
3053 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3054
3055 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3056
3057 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3058
3059 * ada-lang.h (ada_build_task_list): Remove parameter
3060 `warn_if_null'.
3061 * ada-tasks.c (ada_build_task_list): Remove parameter
3062 `warn_if_null'. Adjust implementation and documentation.
3063 (valid_task_id, ada_get_environment_task)
3064 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3065 (info_tasks_command): Adjust implementation.
3066 (task_command): Likewise.
3067 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3068 to ada_build_task_list.
3069
3070 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3071
3072 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3073 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3074 (ada_tasks_inferior_data_handle): New static global.
3075 (get_ada_tasks_inferior_data): New function.
3076 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3077 (ada_get_environment_task, iterate_over_live_ada_tasks)
3078 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3079 Adjust.
3080 (ada_set_current_inferior_known_tasks_addr): New function.
3081 (read_known_tasks, ada_build_task_list, short_task_info)
3082 (info_tasks, info_task, info_tasks_command, task_command_1)
3083 (task_command, ada_task_list_changed): Adjust.
3084 (ada_tasks_invalidate_inferior_data): New function.
3085 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3086 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3087 * ada-lang.h (struct inferior): Add declaration.
3088 (ada_task_list_changed): Update profile.
3089 * remote-wtx-pd.c: #include "inferior.h".
3090 (switch_to_pd_internal): Update call to ada_task_list_changed.
3091
3092 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3093
3094 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3095 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3096 (atcb_fieldno): Delete these static globals.
3097 (struct ada_tasks_pspace_data): New struct.
3098 (ada_tasks_pspace_data_handle): New static global.
3099 (get_ada_tasks_pspace_data): New function.
3100 (ada_tasks_invalidate_pspace_data): New function.
3101 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3102 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3103 (_initialize_tasks): Create this module's per-progspace
3104 data handle.
3105
3106 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3107
3108 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3109
3110 2011-09-16 Tristan Gingold <gingold@adacore.com>
3111
3112 * fork-child.c (fork_inferior): Update comment. Use alloca
3113 instead of xmalloc for argv. Move len and shell_command
3114 declarations in the block where they are used.
3115 Only call execvp. Factorize failure code.
3116
3117 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3118
3119 Code cleanup.
3120 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3121 `exp_element' instead of an element of the same and make the function
3122 static.
3123 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3124 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3125 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3126 Change argument of `write_exp_elt' function call.
3127 Remove extra spaces from comments.
3128 * parser-defs.h (write_exp_elt): Remove prototype.
3129
3130 2011-09-15 Paul Koning <paul_koning@dell.com>
3131
3132 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3133 count of item appended to list.
3134 * python/py-type.c (typy_fields): Likewise.
3135
3136 2011-09-15 Paul Koning <paul_koning@dell.com>
3137
3138 * MAINTAINERS (Write After Approval): Add myself to the list.
3139
3140 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3141
3142 PR threads/12628
3143 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3144 processes with multiple threads.
3145 (inf_has_multiple_thread_cb): New function.
3146 (inf_has_multiple_threads): New function.
3147
3148 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3149
3150 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3151 * python/py-inferior.c (GdbMethods): New Python method definition.
3152
3153 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3154
3155 Handle multiple breakpoint hits in Python interface:
3156 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3157 variable to breakpoints.
3158 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3159 bps instead of single breakpoint. Fix some space typos.
3160 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3161 variable to breakpoints.
3162
3163 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3164
3165 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3166 note if the breakpoint is internal.
3167
3168 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3169
3170 * MAINTAINERS (Write After Approval): Add myself to the list
3171
3172 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3173
3174 * infrun.c (prepare_for_detach, wait_for_inferior)
3175 (fetch_inferior_event): Don't flush the register cache.
3176 * remote.c (struct stop_reply) <regcache>: Add comment.
3177
3178 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3179
3180 Remove excessive DWARF expressions memory duplication.
3181 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3182 for block.data.
3183 (indirect_pieced_value): Remove variable result. Remove variable
3184 back_to and its use for baton.data.
3185 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3186 block.data.
3187 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3188 Update the function comment.
3189
3190 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3191
3192 * inferior.h (ALL_INFERIORS): New.
3193 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3194 for a stopped thread.
3195 (thread_db_find_new_threads): Look for threads in all inferiors.
3196
3197 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3198
3199 * breakpoint.c (update_watchpoint): Handle the case of the
3200 watchpoint to update not being in the breakpoint list yet.
3201 (hw_watchpoint_use_count): New, factored out from
3202 hw_watchpoint_used_count.
3203 (hw_watchpoint_used_count): Rename to ...
3204 (hw_watchpoint_used_count_others): ... this. Add `except'
3205 parameter. Don't count resources of `except'. Use
3206 hw_watchpoint_use_count.
3207
3208 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3209
3210 * gdbthread.h (enum thread_state): Moved here.
3211 (struct thread_info): Rename `executing_' field to `executing' and
3212 `state_' to `state'.
3213 * thread.c (enum thread_state): Moved to gdbthread.h.
3214 (new_thread, add_thread_silent, delete_thread_1)
3215 (any_live_thread_of_process, thread_alive, set_running)
3216 (set_running, is_thread_state, any_running, is_executing)
3217 (set_executing, finish_thread_state, print_thread_info)
3218 (do_captured_thread_select): Adjust.
3219
3220 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3221
3222 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3223 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3224
3225 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3226 Matt Rice <ratmice@gmail.com>
3227
3228 PR gdb/13175
3229
3230 * interps.c (struct interp) <interpreter_out>: Delete field.
3231 (interp_new): Remove the data and uiout parameters and adjust.
3232 (interp_set): Only set the current_uiout from the interpreter's
3233 uiout after initializing the interpreter. Adjust call to
3234 init_proc.
3235 (interp_ui_out): Adjust to call procs->ui_out_proc.
3236 (interp_data, interp_name): New.
3237 * interps.h (interp_init_ftype): Add `self' parameter.
3238 (interp_ui_out_ftype): New typedef.
3239 (struct interp_procs) <ui_out_proc>: New method pointer.
3240 (interp_new): Remove the data and uiout parameters.
3241 (interp_data, interp_name): Declare.
3242 * tui/tui-interp.c (tui_init): Adjust prototype.
3243 (tui_ui_out): New.
3244 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3245 tui_out here. Adjust call to interp_new.
3246 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3247 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3248 (cli_ui_out): New.
3249 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3250 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3251 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3252 Initialize mi->uiout depending on the mi_version as extracted from
3253 the interpreter's name.
3254 (mi_ui_out): New.
3255 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3256 interp_new. Don't allocate the ui_out's of the interpreters here.
3257
3258 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3259
3260 * solib.c (solib_used): New function.
3261 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3262 by another so_list object before freeing it.
3263
3264 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3265
3266 Code cleanup.
3267 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3268 values.
3269
3270 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3271
3272 Code cleanup.
3273 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3274 (amd64_skip_xmm_prologue): ... this new function. Describe its
3275 parameters. No longer use amd64_prologue_line_bug.
3276 * defs.h (producer_is_gcc_ge_4): New declaration.
3277 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3278 (process_full_comp_unit): Update its caller. Remove
3279 amd64_prologue_line_bug initialization.
3280 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3281 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3282
3283 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3284
3285 * linux-nat.h (enum resume_kind): New.
3286 (struct lwp_info) <last_resume_kind>: New field.
3287 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3288 resume_stop on the new lwp.
3289 (add_lwp): Set last_resume_kind as resume_continue by default.
3290 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3291 (resume_lwp): New, factored out from resume_callback. Also check
3292 for pending status in lp->waitstatus.
3293 (resume_callback): Reimplement.
3294 (resume_clear_callback): Set last_resume_kind as resume_stop.
3295 (resume_set_callback): Set last_resume_kind as resume_continue.
3296 (linux_nat_resume, linux_handle_extended_wait): Set
3297 last_resume_kind.
3298 (running_callback): Also check lp->waitstatus for pending events.
3299 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3300 is resume_step.
3301 (stop_and_resume_callback): Don't re-resume if the core wanted the
3302 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3303 using an invalidated pointer.
3304 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3305 SIGSTOPs if the core wanted the LWP to stop.
3306 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3307 wanted the lwp to stop. If the core wanted the lwp to stop, and
3308 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3309 of TARGET_SIGNAL_STOP.
3310 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3311 here. Instead, signal the lwp, and set the last_resume_kind to
3312 resume_stop.
3313
3314 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3315
3316 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3317 -1 (error), if the lwp exits right after attaching.
3318
3319 2011-09-08 Doug Evans <dje@google.com>
3320
3321 * py-cmd.c: Some minor formatting fixes.
3322 (gdbpy_parse_command_name): Rename text arg to name, make const.
3323 All callers updated.
3324 * python-internal.h (gdbpy_parse_command_name): Update.
3325
3326 * cli/cli-decode.c (add_cmd): Add comment.
3327
3328 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3329
3330 PR breakpoints/12435
3331 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3332 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3333 * dwarf2read.c (process_full_comp_unit): Initialize
3334 amd64_prologue_line_bug.
3335 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3336
3337 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3338
3339 Fix TUI screen corruption.
3340 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3341 batch_flag.
3342
3343 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3344
3345 * findvar.c (read_var_value): Never return NULL, throw an error
3346 instead. Update the function comment. State symbol name in the error
3347 messages.
3348 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3349 read_var_value.
3350 * stack.c (print_frame_args): Likewise.
3351 * valops.c (value_of_variable): Likewise.
3352
3353 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3354
3355 * stack.c (print_frame_args): New variable except. Wrap
3356 read_var_value and common_val_print into TRY_CATCH.
3357
3358 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3359
3360 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3361 caller to value_of_this.
3362 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3363 Twice.
3364 * valops.c (value_of_this): Remove parameter complain and variable ret.
3365 Update function comment. Never return NULL by this code.
3366 (value_of_this_silent): New function.
3367 * value.h (value_of_this): Remove parameter complain.
3368 (value_of_this_silent): New declaration.
3369
3370 2011-09-07 Yao Qi <yao@codesourcery.com>
3371
3372 * gdbthread.h (struct thread_info): Remove fields
3373 `stepping_through_solib_after_catch' and
3374 `stepping_through_solib_catchpoints'.
3375 * infrun.c (init_thread_stepping_state): Update.
3376 (process_event_stop_test, currently_stepping): Update.
3377 (currently_stepping_or_nexting_callback): Update.
3378
3379 2011-09-07 Yao Qi <yao@codesourcery.com>
3380
3381 * gdbthread.h (struct thread_info): Comment on field
3382 `step_after_step_resume_breakpoint'.
3383
3384 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3385
3386 * remote.c (remote_console_output): Reindent.
3387
3388 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3389
3390 * frame.c (has_stack_frames): Check for currently selected
3391 traceframe.
3392
3393 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3394
3395 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3396 (set_async_annotation_level, set_async_prompt, pop_prompt)
3397 (push_prompt, new_async_prompt): Delete declarations.
3398 * top.h (get_prompt, set_prompt): Change prototype.
3399 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3400 declarations.
3401 * top.c (command_loop):
3402 (top_prompt): New global.
3403 (get_prefix, set_prefix, get_suffix, ): Delete.
3404 (get_prompt, set_prompt): Rewrite.
3405 (show_new_async_prompt): Rename to ...
3406 (show_prompt): ... this.
3407 (init_main): Adjust. Don't handle --annotate=2 here.
3408 * event-top.c (new_async_prompt): Delete.
3409 (the_prompts): Delete.
3410 (more_to_come): Make static.
3411 (display_gdb_prompt): Use top_level_prompt() to compute the top
3412 level prompt, and don't notify the before_prompt observers
3413 directly here. Always trick readline into not trying to display
3414 the prompt if sync_execution and displaying the primary prompt.
3415 If displaying a local/secondary prompt, always show it, even if
3416 sync_execution is set.
3417 (change_annotation_level): Delete.
3418 (top_level_prompt): New, based on change_annotation_level.
3419 (push_prompt, pop_prompt): Delete.
3420 (async_disable_stdin): No longer pushes prompt.
3421 (command_line_handler): No longer pushes or pops prompt. If more
3422 input is expected, call display_gdb_prompt with an explicit empty
3423 prompt.
3424 (async_stop_sig): Adjust.
3425 (set_async_annotation_level, set_async_prompt): Delete.
3426 * python/python.c (before_prompt_hook): Adjust.
3427
3428 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3429
3430 PR cli/13110
3431
3432 * infrun.c (fetch_inferior_event): Check if there's a selected
3433 thread before checking if the selected thread is executing.
3434
3435 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3436
3437 * inf-loop.c (execute_command): Don't check if the current thread
3438 if running before synchronously waiting for command completion.
3439 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3440 here.
3441 (normal_stop): Call async_enable_stdin here.
3442 * inf-loop.c (inferior_event_handler): Don't call
3443 async_enable_stdin, nor handle "set exec-done-display" here.
3444
3445 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3446
3447 GDB 7.3.1 released.
3448
3449 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3450
3451 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3452
3453 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3454
3455 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3456
3457 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3458
3459 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3460
3461 2011-09-02 Matt Rice <ratmice@gmail.com>
3462
3463 PR gdb/10720
3464 * event-top.c (cli_command_loop): Replace readline setup with
3465 direct call to display_gdb_prompt.
3466 (display_gdb_prompt): Do not call observer mechanism during
3467 synchronous execution.
3468
3469 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3470
3471 * linux-nat.c (in_pid_list_p): New.
3472 (linux_record_stopped_pid): Delete.
3473 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3474 already attached to the LWP. Return an indication if so.
3475 (linux_nat_filter_event): Adjust.
3476 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3477 returning an indication to ignore this thread.
3478
3479 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3480
3481 * top.c: Include interps.h.
3482 (execute_command): If the target can async, but the interpreter is
3483 in sync mode, synchronously wait for the command to finish before
3484 returning.
3485 (execute_command_to_string): Force the interpreter to sync mode.
3486 * infrun.c: Include interps.h.
3487 (fetch_inferior_event): Don't restore the prompt yet if the
3488 interpreter is in sync mode.
3489 * interps.c (interpreter_async): New global.
3490 * interps.h (interpreter_async): Declare.
3491 * inf-loop.c: Include interps.h.
3492 (inferior_event_handler): Don't print the language change or run
3493 breakpoint commands yet if the interpreter in is sync mode.
3494 * main.c (captured_command_loop): Flip the interpreter to async
3495 mode.
3496 * cli/cli-script.c: Include interps.h.
3497 (execute_user_command, while_command, if_command): Force the
3498 interpreter to sync mode.
3499 * python/python.c: Include interps.h.
3500 (python_command, execute_gdb_command): Force the interpreter to
3501 sync mode.
3502
3503 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3504
3505 * value.c (show_convenience): Catch errors thrown while printing
3506 each internal variable.
3507 * infrun.c (validate_siginfo_access): New function.
3508 (siginfo_value_read, siginfo_value_write): Call it.
3509
3510 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3511
3512 Revert:
3513 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3514 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3515 attribute.
3516
3517 2011-08-29 Yao Qi <yao@codesourcery.com>
3518
3519 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3520 (cmp_name): New.
3521 (enable_break2): Update caller.
3522 * solib-frv.c (bfd_lookup_symbol): Removed.
3523 (cmp_name): New.
3524 (enable_break2): Update caller.
3525 * solib-pa64.c (bfd_lookup_symbol): Removed.
3526 (cmp_name): New.
3527 * solib-svr4.c (bfd_lookup_symbol): Removed.
3528 (cmp_name_and_sec_flags): New.
3529 (enable_break): Update caller.
3530 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3531 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3532 (gdb_bfd_lookup_symbol): New.
3533 * solib.h: Functions declarations.
3534
3535 2011-08-29 Yao Qi <yao@codesourcery.com>
3536
3537 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3538 and solib-dsbt.o.
3539
3540 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3541
3542 Fix TUI stepi on code without symbols.
3543 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3544 current PC instead.
3545
3546 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3547
3548 Code cleanup.
3549 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3550 and the static keyword.
3551 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3552 Make prefix an array.
3553 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3554 * mi/mi-main.c (get_register): Remove stb initialization and the static
3555 keyword.
3556
3557 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3558
3559 Code cleanup - make mi_opt const.
3560 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3561 opts const.
3562 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3563 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3564 (mi_cmd_env_dir): Likewise.
3565 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3566 (mi_cmd_target_file_put): Likewise.
3567 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3568 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3569 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3570 (mi_valid_noargs): Make opts const.
3571 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3572 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3573 (mi_cmd_data_read_memory): Likewise.
3574 (mi_cmd_data_read_memory_bytes): Likewise.
3575 (mi_cmd_data_write_memory): Likewise.
3576
3577 2011-08-26 Matt Rice <ratmice@gmail.com>
3578
3579 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3580 bcache_xmalloc, replace bcache_xmalloc with call to
3581 psymbol_bcache_init for psymbol_cache.
3582 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3583
3584 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3585
3586 * inf-loop.c (inferior_event_handler): Add exception_print in
3587 INF_EXEC_COMPLETE.
3588
3589 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3590
3591 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3592 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3593 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3594 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3595 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3596 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3597 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3598 * infrun.c (fetch_inferior_event): Call
3599 make_bpstat_clear_actions_cleanup.
3600 * top.c (execute_command): New variable cleanup_if_error, call
3601 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3602 * utils.c (do_bpstat_clear_actions_cleanup)
3603 (make_bpstat_clear_actions_cleanup): New functions.
3604
3605 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3606
3607 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3608 either the parent or the child forks. Rename a couple locals.
3609
3610 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3611
3612 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3613 library call. Avoid reading the `status' local if all waitpid
3614 calls failed.
3615
3616 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3617
3618 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3619 opening /proc/PID/task always succeeds.
3620
3621 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3622
3623 * linespec.c (symtab_from_filename): Check for the end of string.
3624
3625 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3626
3627 PR mi/11912
3628 * varobj.c (cplus_describe_child): Add the keyword
3629 'class' to the output of the method when dealing
3630 with a cast to a base class.
3631
3632 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3633
3634 No functionality change.
3635 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3636 function comment a reference, new variables tp and bs, move here code
3637 from throw_exception.
3638 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3639 describe it in the comment.
3640 * exceptions.c (throw_exception): Remove variable tp, move the code for
3641 bpstat_clear_actions to bpstat_clear_actions.
3642
3643 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3644
3645 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3646 * linux-nat.c: Include linux-procfs.h.
3647 (linux_proc_get_tgid): Move to ...
3648 * common/linux-procfs.c: ... here. New file.
3649 * common/linux-procfs.h: New file.
3650 * linux-thread-db.c: Include linux-procfs.h.
3651 * Makefile.in: Update dependencies.
3652 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3653 * config/arm/linux.mh: Likewise.
3654 * config/i386/linux.mh: Likewise.
3655 * config/i386/linux64.mh: Likewise.
3656 * config/ia64/linux.mh: Likewise.
3657 * config/m32r/linux.mh: Likewise.
3658 * config/m68k/linux.mh: Likewise.
3659 * config/mips/linux.mh: Likewise.
3660 * config/pa/linux.mh: Likewise.
3661 * config/pa/linux.mh: Likewise.
3662 * config/powerpc/linux.mh: Likewise.
3663 * config/powerpc/ppc64-linux.mh: Likewise.
3664 * config/powerpc/spu-linux.mh: Likewise.
3665 * config/sparc/linux.mh: Likewise.
3666 * config/sparc/linux64.mh: Likewise.
3667 * config/xtensa/linux.mh: Likewise.
3668
3669 2011-08-24 Hui Zhu <teawater@gmail.com>
3670
3671 * tracepoint.c (cond_string_is_same): New function.
3672 (find_matching_tracepoint): Add condition check
3673 by cond_string_is_same.
3674
3675 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3676
3677 Fix build error in Darwin port.
3678 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3679
3680 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3681
3682 Code cleanup.
3683 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3684 (command_line_is_silent): New function.
3685 (bpstat_do_actions_1): No longer use commands_left, use
3686 command_line_is_silent for commands.
3687 (bpstat_alloc): Remove clearing of commands_left.
3688 (bpstat_stop_status): Remove initialization of commands_left, use
3689 command_line_is_silent.
3690 * breakpoint.h (struct bpstats): Remove commands_left.
3691
3692 2011-08-18 Keith Seitz <keiths@redhat.com>
3693
3694 PR c++/12266
3695 * cp-name-parser.y (struct demangle_info): Remove unused
3696 member PREV.
3697 (d_grab): Likewise.
3698 (allocate_info): Change return type to struct demangle_info *.
3699 Always allocate a new demangle_info.
3700 Remove unused PREV pointer.
3701 (cp_new_demangle_parse_info): New function.
3702 (cp_demangled_name_parse_free): New function.
3703 (do_demangled_name_parse_free_cleanup): New function.
3704 (make_cleanup_cp_demangled_name_parse_free): New function.
3705 (cp_demangled_name_to_comp): Change return type to
3706 struct demangle_parse_info *.
3707 Allocate a new storage for each call.
3708 (main): Update usage for cp_demangled_name_to_comp
3709 API change.
3710 * cp-support.h (struct demangle_parse_info): New structure.
3711 (cp_demangled_name_to_comp): Update API change for
3712 return type.
3713 (cp_new_demangle_parse_info): Declare.
3714 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3715 (cp_demangled_name_parse_free): Declare.
3716 * cp-support.c (cp_canonicalize_string): Update API
3717 change for cp_demangled_name_to_comp.
3718 (mangled_name_to_comp): Likewise.
3719 Return struct demangle_parse_info, too.
3720 (cp_class_name_from_physname): Update mangled_name_to_comp
3721 API change.
3722 (method_name_from_physname): Likewise.
3723 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3724 (cp_remove_params): Likewise.
3725 * python/py-type.c (typy_legacy_template_argument): Likewise.
3726
3727 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3728 (cp_merge_demangle_parse_infos): Declare.
3729 * cp-support.c (ignore_typedefs): New file global.
3730 (copy_string_to_obstack): New function.
3731 (inspect_type): New function.
3732 (replace_typedefs): New function.
3733 (replace_typedefs_qualified_name): New function.
3734 (cp_canonicalize_string_no_typedefs): New function.
3735 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3736 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3737 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3738 instead of cp_canonicalize_string.
3739 (find_method): Likewise.
3740 (decode_compound): Before looking up the name, call
3741 cp_canonicalize_string_no_typedefs.
3742 (decode_variable): Likewise.
3743
3744 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3745 Tom Tromey <tromey@redhat.com>
3746 Matt Rice <ratmice@gmail.com>
3747
3748 * python/lib/gdb/prompt.py: New file.
3749 * python/lib/gdb/command/prompt.py: New file.
3750 * NEWS: Document set extended-prompt and gdb.prompt library
3751
3752 2011-08-16 Yao Qi <yao@codesourcery.com>
3753
3754 * tic6x-linux-tdep.c: Move const arrays definition from here...
3755 * tic6x-tdep.c: to here ...
3756
3757 2011-08-14 Yao Qi <yao@codesourcery.com>
3758
3759 * NEWS: New port to Texas Instruments TMS320C6x.
3760
3761 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3762 Bernd Schmidt <bernds@codesourcery.com>
3763 Yao Qi <yao@codesourcery.com>
3764
3765 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3766 * solib-dsbt.c: New file. Support DSBT shared object.
3767 * tic6x-linux-tdep.c: New file.
3768 * tic6x-tdep.c: New file.
3769 * tic6x-tdep.h: New file.
3770
3771 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3772 Yao Qi <yao@codesourcery.com>
3773
3774 * remote.c (PACKET_qXfer_fdpic): New enum value.
3775 (remote_protocol_features): Add qXfer:fdpic:read packet.
3776 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3777 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3778 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3779
3780 2011-08-14 Yao Qi <yao@codesourcery.com>
3781
3782 Target description for tic6x.
3783 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3784 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3785 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3786 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3787 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3788 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3789 * features/tic6x-c64xp-linux.xml: New.
3790 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3791 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3792 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3793 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3794 * regformats/tic6x-c64xp.dat,
3795 regformats/tic6x-c62x-linux.dat: Generated.
3796 * regformats/tic6x-c64x-linux.dat,
3797 regformats/tic6x-c64xp-linux.dat: Generated.
3798 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3799 features/tic6x-*.c files.
3800 Add regformats/tic6x-*.dat files.
3801
3802 2011-08-12 Doug Evans <dje@google.com>
3803
3804 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3805 * python/py-symbol.c (sympy_get_type): New function.
3806 (symbol_object_getset): Add "type".
3807
3808 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3809
3810 PR tui/13073
3811
3812 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3813 empty name.
3814 (tui_show_register_group): Don't store a byte buffer in the data
3815 element's value.
3816 (tui_register_format): Skip registers with an empty name.
3817 (tui_get_register): Store a struct value in the data element's
3818 value field instead of a byte buffer holding the raw register
3819 contents. Account for optimized-out and unavailable registers
3820 when comparing register contents.
3821
3822 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3823
3824 * printcmd.c (current_display_number): Update comment.
3825 (disable_current_display_cleanup): Delete.
3826 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3827 catch errors thrown while evaluating and printing the display.
3828
3829 2011-08-09 Tom Tromey <tromey@redhat.com>
3830
3831 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3832
3833 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3834
3835 * elfread.c (elf_symtab_read): Rework comments.
3836 * maint.c (maintenance_command): Ditto.
3837 * somread.c (som_symtab_read): Ditto.
3838 * solib.c (solib_find, solib_map_sections, update_solib_list)
3839 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3840 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3841 (sharedlibrary_command, no_shared_libraries): Ditto.
3842 * solib-irix.c (locate_base, disable_break, enable_break)
3843 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3844 (irix_current_sos, irix_open_symbol_file_object)
3845 (irix_special_symbol_handling): Ditto.
3846 * solib-sunos.c (locate_base, first_link_map_member)
3847 (sunos_current_sos, disable_break, enable_break)
3848 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3849 Ditto.
3850 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3851 (open_symbol_file_object, svr4_current_sos, enable_break)
3852 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3853 Ditto.
3854 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3855 (frv_current_sos, enable_break, frv_special_symbol_handling)
3856 (frv_solib_create_inferior_hook): Ditto.
3857 * solist.h (struct target_so_ops): Extend the comments of the
3858 special_symbol_handling, current_sos and open_symbol_file_object
3859 methods.
3860
3861 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3862
3863 * python/lib/gdb/__init__.py: Auto-load files in command and
3864 function directories.
3865 * python/python.c (finish_python_initialization): Use
3866 os.path.join.
3867 * python/lib/gdb/command/pretty_printers.py: Self register
3868 command.
3869 * NEWS: Document auto-loading.
3870
3871 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3872
3873 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3874 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3875 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3876
3877 2011-08-08 Tom Tromey <tromey@redhat.com>
3878
3879 * breakpoint.c (clean_up_filters): Remove.
3880 (catch_syscall_split_args): Use VEC_cleanup.
3881
3882 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3883
3884 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3885 (main): Uncomment "Demangling error\n".
3886
3887 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3888
3889 * solib-target.c (segment_attributes): Make them static.
3890 (section_attributes, library_children, library_attributes): Likewise.
3891 (library_list_children, library_list_attributes): Likesise.
3892 (library_list_elements): Likewise.
3893
3894 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3895
3896 * exceptions.c (throw_exception): Don't disable the current
3897 display.
3898 * printcmd.c (disable_current_display_cleanup): New function.
3899 (do_one_display): Install a cleanup to disable the current display
3900 if doing the display throws.
3901
3902 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3903
3904 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3905 initialization of the tp_new member to the corresponding
3906 gdbpy_initialize_* function.
3907 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3908 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3909 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3910 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3911 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3912
3913 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3914
3915 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3916 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3917 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3918 references to current_uiout.
3919
3920 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3921
3922 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3923 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3924 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3925 * top.c (gdb_readline_wrapper): Adjust.
3926 * tui/tui-interp.c (tui_command_loop):
3927 (_initialize_tui_interp): Don't install it.
3928
3929 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3930
3931 * ui-out.h (uiout): Rename to ...
3932 (current_uiout): ... this.
3933 * ui-out.c (uiout): Rename to ...
3934 (current_uiout): ... this.
3935 * ada-lang.c (print_it_exception, print_one_exception)
3936 (print_mention_exception): Adjust.
3937 * breakpoint.c (watchpoint_check): Adjust.
3938 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3939 (default_collect_info, watchpoints_info, print_one_catch_fork)
3940 (print_one_catch_vfork, print_one_catch_syscall)
3941 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3942 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3943 (print_it_watchpoint, print_mention_watchpoint)
3944 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3945 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3946 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3947 (bkpt_print_mention, momentary_bkpt_print_it)
3948 (tracepoint_print_mention, update_static_tracepoint)
3949 (tracepoints_info, save_breakpoints): Adjust.
3950 * cli-out.c (field_separator): Adjust.
3951 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3952 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3953 * frame.c (get_current_frame): Adjust.
3954 * infcmd.c (run_command_1, print_return_value): Adjust.
3955 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3956 * infrun.c (print_end_stepping_range_reason): Adjust.
3957 (print_signal_exited_reason, print_exited_reason): Adjust.
3958 (print_signal_received_reason, print_no_history_reason): Adjust.
3959 * interps.c (interp_set): Adjust.
3960 * osdata.c (info_osdata_command): Adjust.
3961 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3962 * remote-fileio.c (remote_fileio_request): Adjust.
3963 * remote.c (show_remote_cmd): Adjust.
3964 * solib.c (info_sharedlibrary_command): Adjust.
3965 * source.c (print_source_lines_base): Adjust.
3966 * stack.c (print_stack_frame): Adjust.
3967 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3968 * symfile-mem.c (add_vsyscall_page): Adjust.
3969 * symfile.c (load_progress, generic_load)
3970 (print_transfer_performance): Adjust.
3971 * thread.c (info_threads_command, restore_selected_frame)
3972 (thread_command): Adjust.
3973 * top.c (make_cleanup_restore_ui_file): Adjust.
3974 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3975 (print_one_static_tracepoint_marker): Adjust.
3976 * cli/cli-cmds.c (print_disassembly): Adjust.
3977 * cli/cli-decode.c (print_doc_line): Adjust.
3978 * cli/cli-interp.c (safe_execute_command): Adjust.
3979 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3980 (handle_redirections): Adjust.
3981 * cli/cli-script.c (show_user_1): Adjust.
3982 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3983 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3984 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3985 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3986 (mi_cmd_env_dir): Adjust.
3987 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3988 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3989 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3990 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3991 (list_args_or_locals): Adjust.
3992 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3993 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3994 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3995 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3996 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3997 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3998 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3999 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
4000 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
4001 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
4002 (list_available_thread_groups, mi_cmd_list_thread_groups)
4003 (mi_cmd_data_list_register_names)
4004 (mi_cmd_data_list_changed_registers)
4005 (mi_cmd_data_list_register_values, get_register)
4006 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
4007 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4008 (mi_cmd_list_target_features, mi_cmd_add_inferior)
4009 (mi_execute_command, mi_load_progress): Adjust.
4010 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4011 * python/py-auto-load.c (print_script, info_auto_load_scripts):
4012 Adjust.
4013 * python/py-breakpoint.c (bppy_get_commands): Adjust.
4014 * tui/tui-interp.c (tui_command_loop): Adjust.
4015 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4016
4017 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4018
4019 * exceptions.c (struct catcher): Remove saved_uiout field.
4020 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4021 no longer save/resvore the global ui_out builder.
4022 (catch_exceptions_with_msg): Save/override/restore the global
4023 ui_out builder manually instead of relying on TRY_CATCH to do it.
4024 (catch_errors): Save/restore the global ui_out builder manually
4025 instead of relying on TRY_CATCH to do it.
4026 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4027 parameter.
4028 (TRY_CATCH): Adjust.
4029 * cli/cli-interp.c (safe_execute_command): Save/override/restore
4030 the global ui_out builder manually instead of relying on TRY_CATCH
4031 to do it.
4032
4033 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4034
4035 * breakpoint.c (update_global_location_list): Ensure
4036 invariant 'first loc marked not duplicated and inserted,
4037 following locs marked duplicated/not inserted' is respected
4038 for multiple locations at the same address.
4039 (unduplicated_should_be_inserted) New function.
4040 (swap_insertion) New function.
4041
4042 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4043
4044 * stack.c (print_frame_arguments_choices): Comment typo fix.
4045
4046 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4047
4048 Revert:
4049 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4050 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4051 argument. Update callers.
4052
4053 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4054
4055 PR gdb/13045
4056 * doublest.c (convert_doublest_to_floatformat): Pass correct
4057 mantissa length to put_field.
4058
4059 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4060
4061 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4062 exception_print code path.
4063 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4064 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4065 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4066
4067 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4068
4069 Code cleanup.
4070 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4071 Remove, merge them into ...
4072 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4073 variable args and its initialization.
4074 (struct print_args_args, print_args_stub): Remove, merge them into
4075 print_frame.
4076 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4077 them into ...
4078 (do_gdb_disassembly): ... here. Remove variable args and its
4079 initialization.
4080 (print_frame): Remove variable args and its initialization, new
4081 variable gdbarch and numargs (from print_args_stub), inline here
4082 print_args_stub with a TRY_CATCH.
4083 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4084 them into ...
4085 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4086 New variable e, remove variable btargs and its initialization.
4087
4088 2011-08-01 Tristan Gingold <gingold@adacore.com>
4089
4090 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4091
4092 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4093
4094 * breakpoint.c (insert_bp_location): Document return value.
4095 (insert_breakpoint_locations): Fix documentation.
4096 (remove_breakpoints): Add documentation.
4097
4098 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4099
4100 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4101 argument. Update callers.
4102
4103 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4104
4105 * stack.c (print_frame_info): Comment typo fix.
4106
4107 2011-07-29 Sterling Augustine <saugustine@google.com>
4108
4109 * MAINTAINERS (Write After Approval): Add myself to the list.
4110
4111 2011-07-29 Tom Tromey <tromey@redhat.com>
4112
4113 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4114 (library_list_start_segment): Update.
4115 (library_list_start_section): Update.
4116
4117 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4118
4119 * varobj.c (value_get_print_value): Move hint check later into the
4120 function. Comment function. Free thevalue before reusing it.
4121
4122 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4123 Pedro Alves <pedro@codesourcery.com>
4124
4125 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4126 value_one.
4127 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4128 Assert the result kind.
4129 * value.h (value_one): Remove parameter lv.
4130
4131 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4132
4133 Fix crash on lval_computed values.
4134 * valops.c (value_zero): Use not_lval for lval_computed.
4135
4136 2011-07-27 Tom Tromey <tromey@redhat.com>
4137
4138 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4139 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4140
4141 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4142
4143 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4144 "ptype" by their typedefs difference.
4145
4146 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4147
4148 * dwarf2expr.c (ctx_no_read_reg): New function.
4149 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4150 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4151 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4152 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4153
4154 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4155
4156 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4157 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4158 file.
4159 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4160 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4161 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4162 (ctx_no_get_base_type): Move the functions here.
4163 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4164 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4165 (ctx_no_get_base_type): New declarations.
4166
4167 2011-07-27 Tom Tromey <tromey@redhat.com>
4168
4169 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4170 entries.
4171 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4172 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4173
4174 2011-07-26 Sterling Augustine <saugustine@google.com>
4175
4176 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4177 ULONGEST.
4178 (dump_bfd_file): Likewise.
4179
4180 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4181
4182 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4183 (remote_hw_watchpoint_length_limit): New variable.
4184 (_initialize_remote) add set,show cmds for this new variable.
4185 * gdb.texinfo: document these new commands.
4186 * NEWS: Mention these new commands.
4187
4188 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4189
4190 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4191 true for software watchpoints.
4192
4193 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4194
4195 GDB 7.3 released.
4196
4197 2011-07-26 Tom Tromey <tromey@redhat.com>
4198
4199 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4200 * dwarf2read.c (read_indirect_string_at_offset): New function.
4201 (read_indirect_string): Use it.
4202 (dwarf_decode_macro_bytes): New function, taken from
4203 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4204 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4205 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4206 New functions.
4207 (struct dwarf2_per_objfile) <macro>: New field.
4208 (dwarf2_elf_names): Add .debug_macro.
4209 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4210 (dwarf2_locate_sections): Handle new section.
4211 (read_file_scope): Handle DW_AT_GNU_macros.
4212 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4213
4214 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4215
4216 * NEWS: Mention dcache configuration.
4217 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4218 (dcache_size, dcache_line_size): New variables.
4219 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4220 (struct dcache_block): Make it expandable.
4221 (struct dcache_struct): New field.
4222 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4223 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4224 (dcache_poke_byte, dcache_print_line): Adjust.
4225 (set_dcache_size, set_dcache_line_size): New functions.
4226 (set_dcache_command, show_dcache_command): New functions.
4227 (_initialize_dcache): Add new commands.
4228
4229 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4230
4231 * progspace.h (struct program_space): Add solib_add_generation.
4232 * infcmd.c (post_create_inferior): Only call solib_add if not
4233 already done.
4234 * solib.c (solib_add): Increment solib_add_generation.
4235
4236 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4237
4238 Fix implicit pointer offsets.
4239 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4240 ptr.OFFSET.
4241
4242 2011-07-25 Tom Tromey <tromey@redhat.com>
4243
4244 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4245 const.
4246 (ada_exception_sal): Make 'ops' const.
4247 (ada_decode_exception_location): Likewise.
4248 (ada_decode_assert_location): Likewise.
4249 (catch_assert_command): Update.
4250 (catch_ada_exception_command): Update.
4251 (create_ada_exception_catchpoint): Make 'ops' const.
4252 * breakpoint.c (set_raw_breakpoint_without_location)
4253 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4254 const.
4255 (create_internal_breakpoint): Update.
4256 (init_raw_breakpoint_without_location): Make 'ops' const.
4257 (init_raw_breakpoint, init_catchpoint)
4258 (create_fork_vfork_event_catchpoint)
4259 (create_syscall_event_catchpoint, init_breakpoint_sal)
4260 (create_breakpoint_sal, create_breakpoints_sal)
4261 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4262 * breakpoint.h (struct breakpoint) <ops>: Now const.
4263 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4264 const.
4265
4266 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4267
4268 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4269
4270 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4271
4272 * breakpoint.h (print_recreate_thread): Declare.
4273 (struct breakpoint): Move step_count, pass_count,
4274 number_on_target, static_trace_marker_id,
4275 static_trace_marker_id_idx ...
4276 (struct tracepoint): ... to this new struct.
4277 (get_tracepoint, get_tracepoint_by_number_on_target)
4278 (get_tracepoint_by_number): Change return type to struct
4279 tracepoint pointer.
4280 * breakpoint.c (is_tracepoint_type): New, factored out from
4281 is_tracepoint.
4282 (is_tracepoint): Adjust.
4283 (print_one_breakpoint_location): Cast to struct tracepoint as
4284 necessary, and adjust.
4285 (print_recreate_catch_fork, print_recreate_catch_vfork)
4286 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4287 print_recreate_thread.
4288 (init_breakpoint_sal): New, factored out from
4289 create_breakpoint_sal.
4290 (create_breakpoint_sal): Reimplement.
4291 (create_breakpoint): Allocate a struct tracecepoint if the caller
4292 wanted a tracepoint. Use init_breakpoint_sal and
4293 install_breakpoint.
4294 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4295 (print_recreate_masked_watchpoint)
4296 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4297 (tracepoint_print_one_detail): Adjust.
4298 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4299 Dump the pass count here.
4300 (update_static_tracepoint): Adjust.
4301 (addr_string_to_sals): Adjust.
4302 (create_tracepoint_from_upload): Adjust. Change return type to
4303 struct tracepoint pointer.
4304 (trace_pass_set_count): Change parameter type to struct tracepoint
4305 pointer, and adjust.
4306 (trace_pass_command): Adjust.
4307 (get_tracepoint, get_tracepoint_by_number_on_target)
4308 (get_tracepoint_by_number): Change return type to struct
4309 tracepoint pointer, and adjust.
4310 (print_recreate_thread): New, factored out from save_breakpoints.
4311 (save_breakpoints): Don't print thread and task and passcount
4312 recreation here.
4313 * remote.c (remote_download_tracepoint): Adjust.
4314 * tracepoint.c (trace_actions_command, validate_actionline)
4315 (start_tracing, tfind_1, trace_find_tracepoint_command)
4316 (trace_dump_command): Adjust.
4317 (find_matching_tracepoint): Change return type to struct
4318 tracepoint pointer, and adjust.
4319 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4320 (tfile_trace_find, tfile_fetch_registers): Adjust.
4321 * tracepoint.h (create_tracepoint_from_upload): Change return type
4322 to struct tracepoint pointer.
4323 * ada-lang.c (print_recreate_exception): Call
4324 print_recreate_thread.
4325 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4326
4327 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4328
4329 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4330 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4331 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4332 watchpoint_thread, watchpoint_triggered ...
4333 (struct watchpoint): ... to this new struct.
4334 (is_watchpoint): Declare.
4335 (install_breakpoint): Add new `internal' parameter.
4336 * breakpoint.c (is_watchpoint): Delete declaration.
4337 (set_breakpoint_condition): Handle watchpoints.
4338 (is_watchpoint): Make public.
4339 (watchpoint_in_thread_scope): Change parameter type to struct
4340 watchpoint.
4341 (watchpoint_del_at_next_stop): Change parameter type to struct
4342 watchpoint. Remove assertion. Adjust.
4343 (update_watchpoint): Ditto.
4344 (insert_breakpoints, breakpoint_init_inferior)
4345 (watchpoints_triggered, watchpoint_check)
4346 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4347 (bpstat_stop_status, print_one_breakpoint_location)
4348 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4349 to struct watchpoint as necessary, and adjust.
4350 (install_breakpoint): Add `internal' argument. If true, don't
4351 mention the new breakpoint. Use set_breakpoint_number.
4352 (create_fork_vfork_event_catchpoint)
4353 (create_syscall_event_catchpoint): Adjust.
4354 (dtor_watchpoint): New.
4355 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4356 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4357 (print_it_watchpoint, print_mention_watchpoint)
4358 (print_recreate_watchpoint, insert_masked_watchpoint)
4359 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4360 (print_one_detail_masked_watchpoint)
4361 (print_mention_masked_watchpoint)
4362 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4363 necessary, and adjust.
4364 (watch_command_1): Allocate and initialize a struct watchpoint
4365 instead of a struct breakpoint. Use install_breakpoint.
4366 (catch_exec_command_1): Adjust.
4367 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4368 fields.
4369 (delete_breakpoint, enable_breakpoint_disp)
4370 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4371 as necessary, and adjust.
4372 (initialize_breakpoint_ops): Install dtor_watchpoint as
4373 watchpoints' dtor method.
4374 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4375 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4376 to struct watchpoint as necessary, and adjust.
4377
4378 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4379
4380 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4381 the the base class ops table.
4382 (catch_exception_breakpoint_ops)
4383 (catch_exception_unhandled_breakpoint_ops)
4384 (catch_assert_breakpoint_ops): Don't statically initialize.
4385 (initialize_ada_catchpoint_ops): New.
4386 (_initialize_ada_language): Call it.
4387 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4388 (bkpt_breakpoint_ops): Forward declare.
4389 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4390 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4391 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4392 (masked_watchpoint_breakpoint_ops)
4393 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4394 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4395 base class ops table.
4396 (null_re_set, null_check_status, null_works_in_software_mode)
4397 (null_resources_needed, null_print_one_detail): Delete.
4398 (bkpt_dtor): Rename to ...
4399 (base_breakpoint_dtor): ... this. Make static.
4400 (bkpt_allocate_location): Rename to ...
4401 (base_breakpoint_allocate_location): ... this. Make static.
4402 (base_breakpoint_re_set): New.
4403 (internal_error_pure_virtual_called): New.
4404 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4405 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4406 (base_breakpoint_works_in_software_mode)
4407 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4408 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4409 (base_breakpoint_print_recreate): New functions.
4410 (base_breakpoint_ops): New global.
4411 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4412 (bkpt_breakpoint_hit): Make static.
4413 (bkpt_check_status): Delete.
4414 (bkpt_resources_needed): Make static.
4415 (bkpt_works_in_software_mode): Delete.
4416 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4417 static.
4418 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4419 (momentary_breakpoint_ops): Don't statically initialize.
4420 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4421 Delete.
4422 (tracepoint_insert_location, tracepoint_remove_location)
4423 (tracepoint_check_status, tracepoint_works_in_software_mode)
4424 (tracepoint_print_it): Delete.
4425 (tracepoint_breakpoint_ops): Don't statically initialize.
4426 (initialize_breakpoint_ops): New.
4427 (_initialize_breakpoint): Call it.
4428 * breakpoint.h (null_re_set, null_works_in_software_mode)
4429 (null_resources_needed, null_check_status, null_print_one_detail):
4430 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4431 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4432 (bkpt_check_status, bkpt_resources_needed)
4433 (bkpt_works_in_software_mode, bkpt_print_it)
4434 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4435 Delete declarations.
4436 (initialize_breakpoint_ops): Declare.
4437
4438 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4439
4440 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4441 (momentary_bkpt_print_it): Simplify.
4442
4443 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4444
4445 Split internal, momentary and user breakpoints breakpoint_ops
4446 tables.
4447
4448 * breakpoint.c (internal_breakpoint_ops)
4449 (momentary_breakpoint_ops): Forward declare.
4450 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4451 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4452 (create_overlay_event_breakpoint)
4453 (create_std_terminate_master_breakpoint)
4454 (create_exception_master_breakpoint): Create breakpoints with
4455 internal_breakpoint_ops vtable.
4456 (set_longjmp_breakpoint): Create momentary breakpoints with
4457 momentary_breakpoint_ops vtable, using
4458 momentary_breakpoint_from_master.
4459 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4460 (create_solib_event_breakpoint): Create breakpoints with
4461 internal_breakpoint_ops vtable.
4462 (set_momentary_breakpoint): Create breakpoints with
4463 momentary_breakpoint_ops vtable.
4464 (momentary_breakpoint_from_master): New, factored out from
4465 clone_momentary_breakpoint.
4466 (clone_momentary_breakpoint): Adjust.
4467 (watch_command_1): Create scope breakpoints with
4468 momentary_breakpoint_ops vtable.
4469 (bkpt_re_set): Remove handling of internal and momentary
4470 breakpoints.
4471 (bkpt_print_mention, bkpt_print_recreate): New.
4472 (bkpt_breakpoint_ops): Adjust.
4473 (internal_bkpt_re_set, internal_bkpt_check_status)
4474 (internal_bkpt_print_it, internal_bkpt_print_mention)
4475 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4476 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4477 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4478 (momentary_bkpt_print_recreate): New.
4479 (momentary_breakpoint_ops): New.
4480
4481 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4482
4483 Implement most breakpoint_ops methods for all breakpoint types,
4484 and move the default handlings to the proper callbacks.
4485
4486 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4487 works_in_software_mode method.
4488 (insert_bp_location): Go through breakpoint_ops->insert_location
4489 for software and hardware watchpoints.
4490 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4491 breakpoint_ops.
4492 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4493 for software and hardware watchpoints.
4494 (print_it_typical): Delete.
4495 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4496 method.
4497 (watchpoint_check): Adjust comment.
4498 (bpstat_check_location): Simply always call the breakpoint's
4499 breakpoint_hit method.
4500 (bpstat_stop_status): Always call the breakpoint's check_status
4501 method. Remove special cases for watchpoints and internal event
4502 breakpoints from here (moved to the check_status implementations).
4503 (print_one_breakpoint_location): Assume b->ops is never NULL.
4504 Remove static tracepoint marker id printing from here (moved to
4505 the print_one_detail callback implementation of tracepoints).
4506 (init_bp_location): Assert OPS is never NULL.
4507 (allocate_bp_location): Always call the breakpoint's
4508 allocate_location method, and remove the default code from here.
4509 (free_bp_location): Always call the location's dtor method, and
4510 remove the default code from here.
4511 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4512 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4513 parameter. Pass it down.
4514 (set_raw_breakpoint): Ditto.
4515 (print_it_catch_fork): Adjust to take a bpstat as argument.
4516 (catch_fork_breakpoint_ops): Install methods.
4517 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4518 (catch_vfork_breakpoint_ops): Install methods.
4519 (dtor_catch_syscall): Call the base dtor.
4520 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4521 (catch_syscall_breakpoint_ops): Install methods.
4522 (dtor_catch_exec): Call the base dtor.
4523 (print_it_catch_exec): Adjust to take a bpstat as argument.
4524 (catch_exec_breakpoint_ops): Install methods.
4525 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4526 the breakpoint's resources_needed method, and remove the default
4527 code from here.
4528 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4529 breakpoint_ops.
4530 (clone_momentary_breakpoint): Clone the original's ops.
4531 (mention): Always call the breakpoint's print_mention method, and
4532 remove the default code from here.
4533 (create_breakpoint_sal): Adjust to pass the ops to
4534 set_raw_breakpoint rather than setting it manually.
4535 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4536 ops to set_raw_breakpoint_without_location rather than setting it
4537 manually.
4538 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4539 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4540 (ranged_breakpoint_ops): Install methods.
4541 (break_range_command): Adjust to pass the ops to
4542 set_raw_breakpoint rather than setting it manually.
4543 (re_set_watchpoint, breakpoint_hit_watchpoint)
4544 (check_status_watchpoint, resources_needed_watchpoint)
4545 (works_in_software_mode_watchpoint, print_it_watchpoint)
4546 (print_mention_watchpoint, print_recreate_watchpoint): New
4547 functions.
4548 (watchpoint_breakpoint_ops): Install new methods.
4549 (print_it_masked_watchpoint): New function.
4550 (masked_watchpoint_breakpoint_ops): Install new methods.
4551 (watch_command_1): Adjust to pass the right breakpoint_ops to
4552 set_raw_breakpoint_without_location rather than setting it
4553 manually later. Record the current pspace.
4554 (print_it_exception_catchpoint): Adjust to take a bpstat as
4555 argument.
4556 (gnu_v3_exception_catchpoint_ops): Install new methods.
4557 (say_where): New function.
4558 (null_re_set, null_check_status, null_works_in_software_mode)
4559 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4560 New functions.
4561 (bp_location_ops): New global.
4562 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4563 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4564 (bkpt_check_status, bkpt_resources_needed)
4565 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4566 (bkpt_print_recreate): New functions.
4567 (bkpt_breakpoint_ops): New global.
4568 (tracepoint_re_set, tracepoint_insert_location)
4569 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4570 (tracepoint_check_status, tracepoint_works_in_software_mode)
4571 (tracepoint_print_it, tracepoint_print_one_detail)
4572 (tracepoint_print_mention, tracepoint_print_recreate): New
4573 functions.
4574 (tracepoint_breakpoint_ops): New global.
4575 (delete_breakpoint): Always call the breakpoint's dtor method, and
4576 remove the default handling from here.
4577 (breakpoint_re_set_default): Make static.
4578 (breakpoint_re_set_one): Always call the breakpoints re_set
4579 method, and remove the default handling from here.
4580 (trace_command, ftrace_command, strace_command)
4581 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4582 to create_breakpoint.
4583 (save_breakpoints): Always call the breakpoint's print_recreate
4584 method, and remove the default handling from here.
4585
4586 * ada-lang.c (dtor_exception): Call the base dtor.
4587 (re_set_exception): Call the base method.
4588 (print_it_exception, print_it_catch_exception): Adjust to take a
4589 bpstat as argument.
4590 (catch_exception_breakpoint_ops): Install methods.
4591 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4592 argument.
4593 (catch_exception_unhandled_breakpoint_ops): Install methods.
4594 (print_it_catch_assert): Adjust to take a bpstat as argument.
4595 (catch_assert_breakpoint_ops): Install methods.
4596
4597 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4598 to take a bpstat as argument.
4599 (enum print_stop_action): Add describing comments to each enum
4600 value.
4601 (breakpoint_re_set_default): Delete declaration.
4602 (null_re_set, null_works_in_software_mode, null_resources_needed)
4603 (null_check_status, null_print_one_detail): Declare.
4604 (bkpt_breakpoint_ops): Declare.
4605 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4606 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4607 (bkpt_check_status, bkpt_resources_needed)
4608 (bkpt_works_in_software_mode, bkpt_print_it)
4609 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4610 Declare.
4611
4612 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4613 bkpt_breakpoint_ops.
4614 * python/py-breakpoint.c (bppy_init): Ditto.
4615
4616 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4617
4618 * MAINTAINERS (Write After Approval): Add myself to the list.
4619
4620 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4621
4622 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4623
4624 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4625
4626 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4627 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4628 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4629 adjust.
4630 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4631 (struct i386_debug_reg_state): New.
4632 (i386_init_dregs): New.
4633 (dr_mirror): New.
4634 (i386_cleanup_dregs): Use i386_init_dregs.
4635 (i386_show_dr): Add state parameter and adjust.
4636 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4637 the inferior here.
4638 (i386_remove_aligned_watchpoint): Likewise.
4639 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4640 (i386_update_inferior_debug_regs): New.
4641 (i386_insert_watchpoint): Work on a local mirror of the debug
4642 registers, and only update the inferior on success.
4643 (i386_remove_watchpoint): Ditto.
4644 (i386_region_ok_for_watchpoint): Adjust.
4645 (i386_stopped_data_address): Adjust.
4646 (i386_insert_hw_breakpoint): Adjust.
4647 (i386_remove_hw_breakpoint): Adjust.
4648
4649 2011-07-22 Tom Tromey <tromey@redhat.com>
4650
4651 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4652 from amd64_pseudo_register_read. Change arguments. Call
4653 mark_value_bytes_unavailable when needed.
4654 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4655 set_gdbarch_pseudo_register_read.
4656 * sentinel-frame.c (sentinel_frame_prev_register): Use
4657 regcache_cooked_read_value.
4658 * regcache.h (regcache_cooked_read_value): Declare.
4659 * regcache.c (regcache_cooked_read_value): New function.
4660 (regcache_cooked_read): Call
4661 gdbarch_pseudo_register_read_value if available.
4662 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4663 (i386_pseudo_register_read): Remove.
4664 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4665 i386_pseudo_register_read. Change arguments. Call
4666 mark_value_bytes_unavailable when needed.
4667 (i386_pseudo_register_read_value): New function.
4668 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4669 not set_gdbarch_pseudo_register_read.
4670 * gdbarch.sh (pseudo_register_read_value): New method.
4671 * gdbarch.c, gdbarch.h: Rebuild.
4672 * findvar.c (value_from_register): Call get_frame_register_value.
4673
4674 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4675
4676 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4677 get_prefix.
4678 (display_gdb_prompt): Likewise.
4679 (change_annotation_level): Likewise.
4680 (push_prompt): Likewise.
4681 (pop_prompt): Likewise.
4682 (handle_stop_sig): Use get_prompt with a level.
4683 * top.c (command_loop): Use get_prompt with a level.
4684 (set_async_annotation_level): Use set_prompt with a level.
4685 (get_prefix): New function.
4686 (set_prefix): Ditto.
4687 (set_suffix): Ditto.
4688 (get_suffix): Ditto.
4689 (get_prompt): Accept a level argument.
4690 (set_prompt): Accept a level argument. Free old prompts. Set
4691 new_async_prompt if level is 0.
4692 (init_main): Use set_prompt with a level. Do not set
4693 new_async_prompt.
4694 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4695 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4696 Modify set_prompt, get_prompt to account for levels.
4697 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4698 level.
4699 * python/python.c (before_prompt_hook): Use set_prompt.
4700
4701 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4702
4703 * defs.h: Add guard against inclusion in gdbserver.
4704 (struct ptid, ptid_t): Move to common/ptid.h.
4705 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4706 xsnprintf, internal_error): Move to common/common-utils.h.
4707 (nomem): Delete.
4708 * gdb_assert.h: Move into common/ sub-directory.
4709 * gdb_locale.h: Ditto.
4710 * gdb_dirent.h: Ditto.
4711 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4712 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4713 Move into common/ptid.h.
4714 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4715 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4716 Change nomem to malloc_failure.
4717 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4718 * utils.c (nomem): Rename to malloc_failure.
4719 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4720 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4721 (gdb_buildargv): Change nomem to malloc_failure.
4722 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4723 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4724 ptid_is_pid): Move into common/ptid.c.
4725 (initialize_infrun): Delete initialization of null_ptid and
4726 minus_one_ptid.
4727 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4728 linux_common_xfer_osdata.
4729 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4730 common/ptid.c and common/buffer.c.
4731 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4732 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4733 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4734 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4735 rules.
4736 * common/gdb_assert.h: New.
4737 * common/gdb_dirent.h: New.
4738 * common/gdb_locale.h: New.
4739 * common/buffer.c: New.
4740 * common/buffer.h: New.
4741 * common/ptid.c: New.
4742 * common/ptid.h: New.
4743 * common/xml-utils.c: New.
4744 * common/xml-utils.h: New.
4745 * common/common-utils.c: New.
4746 * common/common-utils.h: New.
4747 * common/linux-osdata.c: New.
4748 * common/linux-osdata.h: New.
4749 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4750 * config/arm/linux.mh (NATDEPFILES): Ditto.
4751 * config/i386/linux.mh (NATDEPFILES): Ditto.
4752 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4753 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4754 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4755 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4756 * config/mips/linux.mh (NATDEPFILES): Ditto.
4757 * config/pa/linux.mh (NATDEPFILES): Ditto.
4758 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4759 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4760 * config/s390/s390.mh (NATDEPFILES): Ditto.
4761 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4762 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4763 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4764
4765 2011-07-21 Matt Rice <ratmice@gmail.com>
4766
4767 * NEWS: Add info macros and info definitions commands.
4768
4769 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4770
4771 * NEWS: Document Python prompt substitution hook.
4772
4773 2011-07-18 Matt Rice <ratmice@gmail.com>
4774
4775 PR macros/12999
4776 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4777 * macrotab.c (foreach_macro): Ditto.
4778 (foreach_macro_in_scope): Ditto.
4779 * macrocmd.c (print_macro_callback): New function.
4780 (info_macro_command): Move some code to print_macro_definition.
4781 (print_macro_definition): New function.
4782 (print_one_macro): Add new arguments to callback.
4783 (info_definitions_command): New function.
4784 (info_macros_command): Ditto.
4785 (_initialize_macrocmd): Add info macros and info definitions commands.
4786 * symtab.c (add_macro_name): Add new arguments to callback.
4787
4788 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4789 Tom Tromey <tromey@redhat.com>
4790
4791 * top.c (set_prompt): Rewrite to free previous prompt, free
4792 asynch_new_prompt and set both on new prompts.
4793 * event-top.c (display_gdb_prompt): Add prompt substitution
4794 logic.
4795 * python/python.c (before_prompt_hook): New function.
4796
4797 2011-07-20 Matt Rice <ratmice@gmail.com>
4798
4799 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4800 arguments to store_unsigned_integer.
4801
4802 2011-07-20 Tom Tromey <tromey@redhat.com>
4803
4804 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4805 in some declaration-only cases.
4806
4807 2011-07-18 Tom Tromey <tromey@redhat.com>
4808
4809 PR symtab/12984:
4810 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4811 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4812 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4813 <debug_type_section>: New field.
4814 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4815 (load_cu): Use appropriate section.
4816 (create_signatured_type_table_from_index): Add 'section'
4817 argument.
4818 (dwarf2_read_index): Only allow a single .debug_types section.
4819 (dw2_get_file_names): Use appropriate section.
4820 (read_type_comp_unit_head): Add 'section' argument.
4821 (create_debug_types_hash_table): Loop over all .debug_types
4822 sections.
4823 (init_cu_die_reader): Use appropriate section.
4824 (process_psymtab_comp_unit, load_partial_comp_unit)
4825 (load_full_comp_unit, read_die_and_children, find_partial_die)
4826 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4827 (lookup_signatured_type_at_offset): Add 'section' argument.
4828 (read_signatured_type_at_offset): Add 'sect' argument.
4829 (read_signatured_type): Use appropriate section.
4830 (set_die_type, get_die_type_at_offset): Update.
4831 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4832 VEC.
4833 (write_psymtabs_to_index): Don't allow index with more than one
4834 .debug_types section.
4835
4836 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4837
4838 Fix crash if referenced CU is aged out.
4839 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4840 xfree of block.data.
4841 (indirect_pieced_value): New variable back_to, use to for xfree of
4842 baton.data.
4843 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4844 block.data.
4845 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4846 (load_cu): New function from ...
4847 (dw2_do_instantiate_symtab): ... the code here ...
4848 (process_full_comp_unit): ... and here.
4849 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4850 retval.data.
4851
4852 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4853
4854 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4855 type.
4856
4857 2011-07-19 Gary Benson <gbenson@redhat.com>
4858
4859 * infrun.c (struct execution_control_state): New member
4860 stop_func_filled_in.
4861 (clear_stop_func, fill_in_stop_func): New functions.
4862 (handle_inferior_event): Call clear_stop_func rather than
4863 manipulating the execution control state directly.
4864 Call fill_in_stop_func lazily as required rather than
4865 directly calling find_pc_partial_function in all cases.
4866
4867 2011-07-18 Tom Tromey <tromey@redhat.com>
4868
4869 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4870 checking for variable-sized array.
4871
4872 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4873
4874 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4875 of supported languages.
4876 * varobj.c: Add top definitions and basic implementation of the
4877 following callbacks: ada_number_of_children, ada_name_of_variable,
4878 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4879 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4880 (languages): Register Ada-specific callbacks.
4881 (variable_language): Add the Ada case in the language setter switch.
4882
4883 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4884
4885 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4886
4887 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4888
4889 Code cleanup.
4890 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4891 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4892 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4893 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4894 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4895 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4896 (struct dwarf_expr_context_funcs): New, move here methods from ...
4897 (struct dwarf_expr_context): ... here. New fields funcs.
4898 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4899 (dwarf_expr_ctx_funcs): New.
4900 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4901 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4902 (needs_frame_ctx_funcs): New.
4903 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4904
4905 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4906
4907 * MAINTAINERS (Write After Approval): Add myself to the list.
4908
4909 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4910
4911 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4912 that CIE pointer of an FDE really points to a CIE .
4913
4914 2011-07-15 Hui Zhu <teawater@gmail.com>
4915
4916 * remote.c (remote_get_trace_status): Add comments.
4917
4918 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4919
4920 Code cleanup - constify struct lval_funcs.
4921 * dwarf2loc.c (pieced_value_funcs): Make it const.
4922 * infrun.c (siginfo_value_funcs): Likewise.
4923 * opencl-lang.c (opencl_value_funcs): Likewise.
4924 * valops.c (value_assign, value_ind): Make the funcs variable const.
4925 * value.c (struct value): Make location.computed.funcs target const.
4926 Rearrange the comments.
4927 (allocate_computed_value): Make the funcs parameter target const.
4928 (value_computed_funcs): Return the funcs target const.
4929 (value_free, value_copy, set_value_component_location): Make the funcs
4930 variable const.
4931 * value.h (allocate_computed_value): Make the funcs parameter target
4932 const.
4933 (value_computed_funcs): Return the funcs target const.
4934 * windows-tdep.c (tlb_value_funcs): Make it const.
4935
4936 2011-07-14 Hui Zhu <teawater@gmail.com>
4937
4938 * remote.c (remote_get_trace_status): Initialize p.
4939
4940 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4941
4942 Work around kgdb.
4943 * remote.c (remote_get_trace_status): New variable ex. Put
4944 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4945
4946 2011-07-13 Tom Tromey <tromey@redhat.com>
4947
4948 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4949 value_from_contents for final conversion.
4950
4951 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4952
4953 Code cleanup.
4954 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4955 Indent prototypes so they do not get into tags.
4956
4957 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4958
4959 Code cleanup making also optimized out values lazy.
4960 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4961 allocate_optimized_out_value. Twice.
4962 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4963 * findvar.c (read_var_value): Likewise.
4964 * value.c (allocate_optimized_out_value): New function.
4965 * value.h (allocate_optimized_out_value): New declaration.
4966
4967 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4968
4969 Fix occasional crash of CTRL-C during DWARF read in.
4970 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4971
4972 2011-07-11 Tom Tromey <tromey@redhat.com>
4973
4974 * regcache.c (struct regcache_descr): Fix typo.
4975 * i387-tdep.c (i387_supply_xsave): Fix typo.
4976
4977 2011-07-11 Tom Tromey <tromey@redhat.com>
4978
4979 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4980 (read_file_scope, read_type_unit_scope): Use it.
4981
4982 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4983
4984 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4985 `int'.
4986
4987 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4988
4989 PR python/12438
4990 * python/python.c: Set gdbpy_should_print_stack default to off.
4991 (set_python): Deprecate maint set python print-stack to
4992 class_deprecate.
4993 (_initialize_python): Deprecate maint set/show python print-stack.
4994 Add new prefix command, python. Add new setting, print-backtrace.
4995 * NEWS: Document set python print-stack. Document default change.
4996
4997 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4998
4999 * python/py-inferior.c (infpy_dealloc): New function.
5000 (inferior_to_inferior_object): Return a new object, or a
5001 new reference to the existing object.
5002 (find_thread_object): Cleanup references to inferior.
5003 (delete_thread_object): Ditto.
5004 * python/py-infthread.c (create_thread_object): Do not increment
5005 inferior reference count.
5006
5007 2011-07-08 Tom Tromey <tromey@redhat.com>
5008
5009 * dwarf2loc.c (locexpr_regname): New function.
5010 (locexpr_describe_location_piece): Use it.
5011 (disassemble_dwarf_expression): Add per_cu argument. Use
5012 locexpr_regname.
5013 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5014 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5015 New cases.
5016 (locexpr_describe_location_1): Add per_cu argument.
5017 (locexpr_describe_location): Update.
5018 (loclist_describe_location): Update.
5019
5020 2011-07-08 Tom Tromey <tromey@redhat.com>
5021
5022 * dwarf2expr.c (execute_stack_op): Add QUIT.
5023
5024 2011-07-07 Hui Zhu <teawater@gmail.com>
5025
5026 Revert:
5027 2011-07-06 Hui Zhu <teawater@gmail.com>
5028 * remote.c (remote_start_remote): Add TRY_CATCH for
5029 remote_get_trace_status.
5030 * tracepoint.c (disconnect_tracing): Ditto.
5031
5032 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
5033
5034 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5035 variables as signed, not unsigned.
5036
5037 2011-07-06 Joel Brobecker <brobecker@adacore.com>
5038
5039 * jit.c (jit_inferior_init): Reformat forward declaration.
5040
5041 2011-07-06 Matt Rice <ratmice@gmail.com>
5042
5043 * MAINTAINERS (Write After Approval): Add myself to the list.
5044
5045 2011-07-06 Hui Zhu <teawater@gmail.com>
5046
5047 * remote.c (remote_start_remote): Add TRY_CATCH for
5048 remote_get_trace_status.
5049 * tracepoint.c (disconnect_tracing): Ditto.
5050
5051 2011-07-05 Tom Tromey <tromey@redhat.com>
5052
5053 * symtab.c (operator_chars): Now static.
5054 * linespec.c (operator_chars): Don't declare.
5055
5056 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5057
5058 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5059
5060 2011-07-05 Tom Tromey <tromey@redhat.com>
5061
5062 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5063 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5064 (TYPE_CPLUS_REALLY_JAVA): New macro.
5065 * dwarf2read.c (process_structure_scope): Set
5066 TYPE_CPLUS_REALLY_JAVA.
5067
5068 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5069
5070 * ada-lang.c: Fix typos.
5071 * amd64-tdep.c: Likewise.
5072 * breakpoint.c: Likewise.
5073 * cli/cli-decode.c: Likewise.
5074 * findcmd.c: Likewise.
5075 * inline-frame.c: Likewise.
5076 * mi/mi-main.c: Likewise.
5077 * minsyms.c: Likewise.
5078 * monitor.c: Likewise.
5079 * monitor.h: Likewise.
5080 * prologue-value.c: Likewise.
5081 * reverse.c: Likewise.
5082 * s390-tdep.c: Likewise.
5083
5084 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5085
5086 * jit.c (jit_inferior_init): Forward declare.
5087 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5088
5089 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5090
5091 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5092
5093 2011-07-04 Tristan Gingold <gingold@adacore.com>
5094
5095 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5096 (tcb_fieldno): Add activation_link field.
5097 (get_known_tasks_addr): Moved and rewritten.
5098 (get_tcb_types_info): Set activation_link field.
5099 (read_known_tasks_array): Add parameter. Rewritten.
5100 (read_known_tasks_list): New function.
5101 (read_known_tasks): New function.
5102 (ada_build_task_list): Call read_known_tasks instead of
5103 read_known_tasks_array.
5104 * ravenscar-thread.c: Add first_task_name constant.
5105 (has_ravenscar_runtime): Check for task list too.
5106
5107 2011-07-04 Tristan Gingold <gingold@adacore.com>
5108
5109 * ada-tasks.c: Renames fieldno to actb_fieldno.
5110 (ada_get_task_number): Indentation.
5111 (get_tcb_types_info): Remove all parameters. Write directly
5112 the globals.
5113 (ptid_from_atcb_common): Adjust.
5114 (read_atcb): Adjust.
5115
5116 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5117
5118 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5119
5120 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5121
5122 * ui-out.c (ui_out_field_core_addr): Mention that the function
5123 description is in the header file.
5124 * ui-out.h (ui_out_field_core_addr): Document function.
5125
5126 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5127
5128 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5129 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5130
5131 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5132
5133 * symtab.c (expand_line_sal): Remove empty line.
5134
5135 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
5136
5137 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5138 same way as ELFOSABI_NONE.
5139 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5140
5141 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5142
5143 * breakpoint.c: Fix typos in comments.
5144 * linespec.c: Likewise.
5145 * symtab.c: Likewise.
5146
5147 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5148
5149 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5150 section in separate object files.
5151
5152 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5153
5154 Fix false GCC warning.
5155 * linespec.c (decode_line_1): Initialize values.
5156
5157 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5158
5159 * linespec.c (find_method): Accept the function type automatically only
5160 if it was specified with parameter types.
5161
5162 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5163
5164 Stop on first linespec terminator instead of eating what we can.
5165 * linespec.c (is_linespec_boundary): New function.
5166 (name_end): Remove function.
5167 (keep_name_info): New parameter on_boundary, replace the body.
5168 (decode_line_1): Provide the parameter to keep_name_info.
5169 (decode_compound): Likewise. Drop the trailing java return type
5170 handling. Twice.
5171
5172 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5173
5174 Fall back linespec to minimal symbols.
5175 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5176 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5177 (find_method, symbol_found): Change error to cplusplus_error.
5178
5179 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5180
5181 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5182
5183 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5184 Tom Tromey <tromey@redhat.com>
5185
5186 * dwarf2read.c (check_physname): New variable.
5187 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5188 (show_check_physname): New function.
5189 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5190
5191 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5192
5193 * machoread.c (macho_symfile_read): Delete OBE comment.
5194
5195 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5196
5197 * machoread.c (struct macho_oso_data): Delete.
5198 (current_oso): Delete.
5199 (macho_relocate_common_syms): New function, mostly extracted
5200 out of
5201 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5202 Remove code that sets and unset current_oso.
5203 (macho_symfile_relocate): Delete handling of common symbols,
5204 now moved to macho_relocate_common_syms.
5205
5206 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5207
5208 * darwin-nat.c (darwin_ptrace): Add documentation.
5209 Set errno to zero before calling ptrace. If ptrace returns
5210 -1 and errno is zero, then change then return zero.
5211 (darwin_kill_inferior): Issue a warning instead of triggering
5212 a failed assertion when the PT_KILL ptrace operations returned
5213 nonzero.
5214
5215 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5216
5217 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5218 only when inf->private->no_ptrace.
5219
5220 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5221
5222 * ada-lang.c (print_it_exception): Print temporary catchpoints
5223 as "Temporary catchpoint".
5224 (print_mention_exception): Likewise.
5225
5226 2011-07-01 Tom Tromey <tromey@redhat.com>
5227
5228 * jv-lang.c (java_language_defn): Use java_printchar,
5229 java_printstr.
5230 (java_get_encoding): New function.
5231 (java_emit_char): Use generic_emit_char.
5232 (java_printchar): New function.
5233 (java_printstr): Likewise.
5234
5235 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5236
5237 * ada-typeprint.c (print_record_type): If unable to decode
5238 the name of the parent type, use the encoded name.
5239
5240 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5241
5242 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5243 pointer to constrained packed array type output.
5244 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5245 packed array output.
5246
5247 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5248
5249 * ada-typeprint.c (print_array_type): removed if condition on show
5250 being negative for bounds printing.
5251
5252 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5253
5254 * ada-lang.c (ada_identical_enum_types_p): New function.
5255 (symbols_are_identical_enums): New function.
5256 (remove_extra_symbols): Do nothing if NSYMS < 2.
5257 Use symbols_are_identical_enums.
5258
5259 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5260
5261 * ada-valprint.c (ada_value_print): Handle typedefs.
5262
5263 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5264
5265 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5266
5267 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5268
5269 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5270 (decode_constrained_packed_array): Likewise.
5271 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5272
5273 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5274
5275 * ada-exp.y (convert_char_literal): Handle typedef types.
5276
5277 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5278
5279 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5280
5281 2011-06-30 Tom Tromey <tromey@redhat.com>
5282
5283 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5284 * valops.c (find_overload_match): Call do_cleanups on early exit
5285 path.
5286 * solib.c (solib_find): Call do_cleanups on early exit path.
5287
5288 2011-06-30 Tom Tromey <tromey@redhat.com>
5289
5290 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5291 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5292 return paths. Defer final do_cleanups until last return.
5293 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5294 early return.
5295
5296 2011-06-30 Tom Tromey <tromey@redhat.com>
5297
5298 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5299
5300 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5301
5302 * MAINTAINERS (Write After Approval): Add myself to the list.
5303
5304 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5305
5306 Disable epilogue unwinders on recent GCCs.
5307 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5308 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5309 * dwarf2read.c (process_full_comp_unit): Initialize
5310 EPILOGUE_UNWIND_VALID.
5311 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5312 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5313 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5314
5315 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5316
5317 Code cleanup - reformatting.
5318 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5319 (producer_is_gcc_ge_4): ... here, change the return value.
5320 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5321 interpretation.
5322
5323 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5324
5325 Fix non-only rename list for Fortran modules import.
5326 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5327 cp_add_using_directive caller.
5328 (cp_add_using_directive): New parameter excludes, describe it. New
5329 variables ix and param. Compare if also excludes match. Allocate NEW
5330 with variable size, initialize EXCLUDES there.
5331 (cp_lookup_symbol_imports): New variable excludep, test
5332 current->EXCLUDES with it.
5333 * cp-support.h: Include vec.h.
5334 (struct using_direct): New field excludes, describe it.
5335 (DEF_VEC_P (const_char_ptr)): New.
5336 (cp_add_using_directive): New parameter excludes.
5337 * defs.h (const_char_ptr): New typedef.
5338 * dwarf2read.c (read_import_statement): New variables child_die,
5339 excludes and cleanups, read in excludes.
5340 (read_namespace): Adjust the cp_add_using_directive caller.
5341
5342 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5343
5344 Code cleanup.
5345 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5346 negative comparisons.
5347
5348 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5349
5350 * mi/mi-main.c (mi_cmd_list_features): Emit
5351 breakpoint-notifications.
5352
5353 2011-06-29 Tom Tromey <tromey@redhat.com>
5354
5355 PR fortran/10036:
5356 * valprint.h (generic_emit_char, generic_printstr): Declare.
5357 * valprint.c (wchar_printable, append_string_as_wide)
5358 (print_wchar): Move from c-lang.c.
5359 (generic_emit_char): New function; mostly taken from c_emit_char.
5360 (generic_printstr): New function; mostly taken from c_printstr.
5361 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5362 represented as arrays.
5363 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5364 type.
5365 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5366 identically to TYPE_CODE_INT.
5367 * f-lang.c (f_get_encoding): New function.
5368 (f_emit_char): Use generic_emit_char.
5369 (f_printchar): Replace comment.
5370 (f_printstr): Use generic_printstr.
5371 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5372 "character" types specially.
5373 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5374 for Fortran.
5375 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5376 Move to valprint.c
5377 (c_emit_char): Call generic_emit_char.
5378 (c_printstr): Call generic_printstr.
5379
5380 2011-06-29 Gary Benson <gbenson@redhat.com>
5381
5382 * breakpoint.c (bpstat_what): Removed duplicated case.
5383
5384 2011-06-28 Tom Tromey <tromey@redhat.com>
5385
5386 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5387
5388 2011-06-27 Tom Tromey <tromey@redhat.com>
5389
5390 * valops.c (find_overload_match): Call do_cleanups before early
5391 return.
5392 * top.c (execute_command): Call do_cleanups before early return.
5393 (command_loop): Likewise.
5394 * stack.c (backtrace_command): Make a null cleanup early. Don't
5395 conditionally call do_cleanups.
5396 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5397 TRY_CATCH.
5398 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5399 so cleanups are always run.
5400 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5401 * findcmd.c (parse_find_args): Call do_cleanups on early return
5402 path.
5403 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5404 Don't conditionally call do_cleanups.
5405 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5406 later.
5407
5408 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5409
5410 * MAINTAINERS (Write After Approval): Use default email address.
5411
5412 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5413
5414 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5415
5416 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5417
5418 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5419 saved_regs_mask and copied_regs_mask fields.
5420 (sparc_record_save_insn): New prototype.
5421 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5422 (sparc_record_save_insn): New function.
5423 (sparc_analyze_prologue): Add head comment. Recognize store insns
5424 of call-saved registers. Use OFFSET consistently. Recognize flat
5425 frames and cache their settings.
5426 (sparc32_skip_prologue): Handle flat frames.
5427 (sparc_frame_cache): Add frame_offset to the base address.
5428 (sparc32_frame_cache): Adjust to new frame description.
5429 (sparc32_frame_prev_register): Likewise.
5430 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5431 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5432 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5433 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5434 frame by calling sparc_record_save_insn.
5435 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5436 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5437 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5438
5439 2011-06-27 Tristan Gingold <gingold@adacore.com>
5440
5441 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5442 field by map_addr and map_len.
5443 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5444 (munmap_section_buffer): Likewise.
5445
5446 2011-06-24 Tom Tromey <tromey@redhat.com>
5447
5448 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5449 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5450 * python/python.c (gdbpy_parameter): Make 'arg' const.
5451 (execute_gdb_command): Likewise.
5452 (gdbpy_decode_line): Likewise. Copy it.
5453 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5454 (gdbpy_write): Make 'arg' const.
5455 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5456 const.
5457 (gdbpy_lookup_type): Likewise.
5458 * python/py-prettyprint.c (print_children): Make 'name' const.
5459 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5460 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5461 Py_ssize_t.
5462 * python/py-function.c (fnpy_init): Make 'name' const.
5463 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5464 (gdbpy_string_to_argv): Make 'input' const.
5465 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5466 it.
5467 * gdbtypes.h (lookup_typename): Update.
5468 * gdbtypes.c (lookup_typename): Make 'name' const.
5469 (lookup_struct): Likewise.
5470 (lookup_union): Likewise.
5471 (lookup_enum): Likewise.
5472
5473 2011-06-24 Tom Tromey <tromey@redhat.com>
5474
5475 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5476 gdb_thread_db.h. Move all common/ entries to be together.
5477 (TAGS): Don't depend on DEPFILES.
5478
5479 2011-06-23 Yao Qi <yao@codesourcery.com>
5480
5481 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5482 * remote.c (remote_start_remote): ... here.
5483 * monitor.c (monitor_open): ... here.
5484
5485 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5486
5487 * gdbtypes.c (append_composite_type_field_aligned): Fix
5488 calculation of bit position based on alignment.
5489
5490 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5491
5492 * breakpoint.c (bpstat_stop_status): Call the check_status
5493 breakpoint_ops method.
5494 (print_one_breakpoint_location): Also print the condition for Ada
5495 exception catchpoints.
5496 (allocate_bp_location): New, factored out from
5497 allocate_bp_location.
5498 (allocate_bp_location): Adjust. Call the owner breakpoint's
5499 allocate_location method, if there is one.
5500 (free_bp_location): Call the locations's dtor method, if there is
5501 one.
5502 (init_raw_breakpoint_without_location): New breakpoint_ops
5503 parameter. Use it.
5504 (set_raw_breakpoint_without_location): Adjust.
5505 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5506 (set_raw_breakpoint): Adjust.
5507 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5508 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5509 re_set and check_status methods.
5510 (init_catchpoint): Don't memset, initialize thread, addr_string
5511 and enable_state. Pass the ops down to init_raw_breakpoint.
5512 (install_catchpoint): Rename to ...
5513 (install_breakpoint): ... this, and make extern.
5514 (create_fork_vfork_event_catchpoint): Adjust.
5515 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5516 re_set and check_status methods.
5517 (create_syscall_event_catchpoint): Adjust.
5518 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5519 (masked_watchpoint_breakpoint_ops): Install NULL
5520 allocate_location, re_set and check_status methods.
5521 (catch_exec_command_1): Adjust.
5522 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5523 re_set and check_status methods.
5524 (create_ada_exception_breakpoint): Rename to ...
5525 (init_ada_exception_breakpoint): ... this. Add a struct
5526 breakpoint parameter, and delete the exp_string, cond_string and
5527 cond parameters. Use init_raw_breakpoint, and don't install or
5528 mention the breakpoint yet. Don't clear breakpoint fields that
5529 init_raw_breakpoint already clears.
5530 (re_set_breakpoint): Delete, split into ...
5531 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5532 functions.
5533 (breakpoint_re_set_one): Call the breakpoint's
5534 breakpoint_ops->re_set implementation, if there's one. Adjust.
5535 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5536 (struct bp_location_ops): New type.
5537 (struct bp_location): New field `ops'.
5538 (struct breakpoint_ops): New `allocate_location', `re_set' and
5539 `check_status' fields. Make `breakpoint_hit''s description match
5540 reality.
5541 (init_bp_location): Declare.
5542 (breakpoint_re_set_default): Declare.
5543 (create_ada_exception_breakpoint): Rename to ...
5544 (init_ada_exception_breakpoint): ... this. Add a struct
5545 breakpoint parameter, and delete the exp_string, cond_string and
5546 cond parameters.
5547 (install_breakpoint): Declare.
5548 * ada-lang.c: Include exceptions.h.
5549 <Ada exceptions description>: Update.
5550 (struct ada_catchpoint_location): New type.
5551 (ada_catchpoint_location_dtor): New function.
5552 (ada_catchpoint_location_ops): New global.
5553 (ada_catchpoint): New type.
5554 (create_excep_cond_exprs): New function.
5555 (dtor_exception, allocate_location_exception, re_set_exception)
5556 (should_stop_exception, check_status_exception): New functions.
5557 (print_one_exception, print_mention_exception)
5558 (print_recreate_exception): Adjust.
5559 (dtor_catch_exception, allocate_location_catch_exception)
5560 (re_set_catch_exception, check_status_catch_exception): New
5561 functions.
5562 (catch_exception_breakpoint_ops): Install them.
5563 (dtor_catch_exception_unhandled)
5564 (allocate_location_catch_exception_unhandled)
5565 (re_set_catch_exception_unhandled)
5566 (check_status_catch_exception_unhandled): New functions.
5567 (catch_exception_unhandled_breakpoint_ops): Install them.
5568 (dtor_catch_assert, allocate_location_catch_assert)
5569 (re_set_catch_assert, check_status_catch_assert): New functions.
5570 (catch_assert_breakpoint_ops): Install them.
5571 (ada_exception_catchpoint_p): Delete.
5572 (catch_ada_exception_command_split)
5573 (ada_exception_catchpoint_cond_string): Rename exp_string
5574 parameter to excep_string. Adjust.
5575 (ada_parse_catchpoint_condition): Delete.
5576 (ada_exception_sal): Rename the exp_string parameter to
5577 excep_string. Delete the cond_string and cond parameters.
5578 Adjust.
5579 (ada_decode_exception_location): Rename the exp_string parameter
5580 to excep_string. Delete the cond_string and cond parameters.
5581 Adjust.
5582 (create_ada_exception_catchpoint): New function.
5583 (catch_ada_exception_command, ada_decode_assert_location)
5584 (catch_assert_command): Adjust.
5585 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5586
5587 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5588
5589 * ada-lang.c: Include arch-utils.h.
5590 (ada_decode_exception_location): Make static.
5591 (catch_ada_exception_command): Moved here from breakpoint.c.
5592 (ada_decode_assert_location): Make static.
5593 (catch_assert_command): Moved here from breakpoint.c.
5594 (_initialize_ada_lang): Install the exception and assert
5595 catchpoint commands here.
5596 * ada-lang.h (ada_decode_exception_location)
5597 (ada_decode_assert_location): Delete declarations.
5598 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5599 breakpoint.h.
5600 (create_ada_exception_breakpoint): Make extern.
5601 (catch_ada_exception_command, catch_assert_command): Moved to
5602 ada-lang.c.
5603 (add_catch_command): Make extern.
5604 (_initilize_breakpoint): Don't install the exception and assert
5605 catchpoint commands here.
5606 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5607 breakpoint.c
5608 (add_catch_command, create_ada_exception_breakpoint): Declare.
5609
5610 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5611
5612 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5613 the breakpoint to the breakpoint chain here.
5614 (set_raw_breakpoint_without_location): Add the breakpoint to the
5615 breakpoint chain here.
5616 (init_raw_breakpoint): Adjust comments.
5617 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5618 here.
5619 (init_catchpoint): Don't set the catchpoint's breakpoint number
5620 here.
5621 (install_catchpoint): New function.
5622 (create_fork_vfork_event_catchpoint)
5623 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5624 use install_catchpoint.
5625
5626 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5627
5628 * breakpoint.c (create_catchpoint_without_mention)
5629 (create_catchpoint): Delete.
5630
5631 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5632
5633 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5634 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5635 reference to exec_pathname.
5636 (struct exec_catchpoint): New type.
5637 (dtor_catch_exec): New function.
5638 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5639 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5640 (catch_exec_command_1): Adjust to use init_catchpoint.
5641 (delete_breakpoint): Remove reference to exec_pathname.
5642
5643 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5644
5645 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5646 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5647 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5648 reference to syscalls_to_be_caught.
5649 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5650 NULL `dtor'.
5651 (struct syscall_catchpoint): New type.
5652 (dtor_catch_syscall): New function.
5653 (insert_catch_syscall, remove_catch_syscall)
5654 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5655 (print_recreate_catch_syscall): Adjust.
5656 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5657 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5658 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5659 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5660 (masked_watchpoint_breakpoint_ops)
5661 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5662 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5663 there is one. Remove references to syscalls_to_be_caught.
5664 (catching_syscall_number): Adjust.
5665 * ada-lang.c (catch_exception_breakpoint_ops)
5666 (catch_exception_unhandled_breakpoint_ops)
5667 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5668
5669 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5670
5671 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5672 field.
5673 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5674 reference to forked_inferior_pid.
5675 (struct fork_catchpoint): New type.
5676 (breakpoint_hit_catch_fork, print_it_catch_fork)
5677 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5678 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5679 (create_fork_vfork_event_catchpoint): Adjust to use
5680 init_catchpoint.
5681
5682 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5683
5684 * breakpoint.c (add_to_breakpoint_chain)
5685 (init_raw_breakpoint_without_location): New functions, factored
5686 out from ...
5687 (set_raw_breakpoint_without_location): ... this one.
5688 (init_raw_breakpoint): New function, factored out from
5689 set_raw_breakpoint and adjusted to use
5690 init_raw_breakpoint_without_location.
5691 (set_raw_breakpoint): Adjust.
5692 (init_catchpoint): New function, factored out from
5693 create_catchpoint_without_mention and adjusted to use
5694 init_raw_breakpoint.
5695 (create_catchpoint_without_mention): Adjust.
5696
5697 2011-06-22 Tom Tromey <tromey@redhat.com>
5698
5699 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5700 argument of 0 specially.
5701
5702 2011-06-22 Yao Qi <yao@codesourcery.com>
5703
5704 * infrun.c (handle_inferior_event): Remove write-only local variable
5705 `sw_single_step_trap_p'.
5706
5707 2011-06-20 Tom Tromey <tromey@redhat.com>
5708
5709 * symtab.c (lookup_language_this): End loop if block is NULL.
5710
5711 2011-06-17 Tom Tromey <tromey@redhat.com>
5712
5713 * valops.c (value_of_this): Use lookup_language_this.
5714 * symtab.h (lookup_language_this): Declare.
5715 * symtab.c (lookup_language_this): New function.
5716 (lookup_symbol_aux): Use lookup_language_this.
5717 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5718
5719 2011-06-17 Tom Tromey <tromey@redhat.com>
5720
5721 * value.h (value_of_this): Update.
5722 (value_of_local): Remove.
5723 * valops.c (value_of_this): Rename from value_of_local. Change
5724 parameters.
5725 * p-exp.y (exp): Update.
5726 (variable): Likewise.
5727 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5728
5729 2011-06-17 Tom Tromey <tromey@redhat.com>
5730
5731 * valops.c (value_of_local): Complain if NAME is NULL.
5732 * std-operator.def (OP_OBJC_SELF): Remove.
5733 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5734 * objc-exp.y (name_not_typename): Use OP_THIS.
5735 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5736 name for "this".
5737 <OP_OBJC_SELF>: Remove.
5738 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5739
5740 2011-06-16 Tristan Gingold <gingold@adacore.com>
5741
5742 * python/py-events.h (gdb_py_events): Make it extern.
5743 * python/py-evtregistry.c (gdb_py_events): Declare.
5744
5745 2011-06-16 Hui Zhu <teawater@gmail.com>
5746
5747 * remote.c (remote_trace_set_readonly_regions): Add check for
5748 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5749 output warning.
5750
5751 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5752
5753 * arm-linux-tdep.c: Include "auxv.h".
5754 (AT_HWCAP): Define.
5755 (ARM_LINUX_SIZEOF_VFP): Define.
5756 (arm_linux_supply_vfp): New function.
5757 (arm_linux_collect_vfp): Likewise.
5758 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5759 (arm_linux_fpa_regset_sections): New variable.
5760 (arm_linux_vfp_regset_sections): Likewise.
5761 (arm_linux_core_read_description): New function.
5762 (arm_linux_init_abi): Install arm_linux_core_read_description and
5763 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5764 appropriate for the architecture.
5765 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5766 (tdesc_arm_with_m): Declare.
5767 (tdesc_arm_with_iwmmxt): Likewise.
5768 (tdesc_arm_with_vfpv2): Likewise.
5769 (tdesc_arm_with_vfpv3): Likewise.
5770 (tdesc_arm_with_neon): Likewise.
5771 * arm-linux-nat.c: Move features/*.c includes ...
5772 * arm-tdep.c: ... here.
5773 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5774 target description data structures ...
5775 * arm-tdep.c (_initialize_arm_tdep): ... here.
5776 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5777 HWCAP_VFPv3D16): Move definitions ...
5778 * arm-linux-tdep.h: ... here.
5779
5780 2011-06-15 Hui Zhu <teawater@gmail.com>
5781
5782 * remote.c (remote_trace_set_readonly_regions): Add a check for
5783 target_buf_size.
5784
5785 2011-06-14 Tom Tromey <tromey@redhat.com>
5786
5787 * coffread.c (coffread_objfile): Rename from current_objfile.
5788 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5789 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5790
5791 2011-06-14 Tom Tromey <tromey@redhat.com>
5792
5793 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5794 (class_symtab): Remove.
5795 (jv_dynamics_progspace_key): New global.
5796 (jv_per_objfile_free): Reset program space data. Update assert.
5797 Don't clear globals.
5798 (get_dynamics_objfile): Use and set program space data.
5799 (get_java_class_symtab): Use get_dynamics_objfile.
5800 (add_class_symbol): Likewise.
5801 (java_link_class_type): Likewise.
5802 (java_object_type, jv_clear_object_type, set_java_object_type):
5803 Remove.
5804 (get_java_object_type): Update. Don't cache result.
5805 (is_object_type): Don't call set_java_object_type.
5806 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5807 initialize jv_dynamics_progspace_key.
5808
5809 2011-06-14 Tom Tromey <tromey@redhat.com>
5810
5811 * symtab.h (current_objfile): Don't declare.
5812 * objfiles.h (current_objfile): Don't declare.
5813 * objfiles.c (current_objfile): Remove.
5814 * mdebugread.c (current_objfile): New file-scope global.
5815 * dbxread.c (current_objfile): New file-scope global.
5816 * coffread.c (current_objfile): New file-scope global.
5817
5818 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5819
5820 * top.h (line): Rename to ...
5821 (saved_command_line): ... this.
5822 (linesize): Rename to ...
5823 (saved_command_line_size): ... this.
5824 * top.c (line): Rename to ...
5825 (saved_command_line): ... this.
5826 (linesize): Rename to ...
5827 (saved_command_line_size): ... this.
5828 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5829 * event-top.c (command_line_handler): Adjust.
5830 * main.c (captured_main): Adjust.
5831
5832 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5833
5834 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5835 get_frame_func instead of get_frame_pc to determine the code
5836 address used to construct the frame ID.
5837 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5838 (i386_epilogue_frame_this_id): Likewise.
5839 (i386_epilogue_frame_prev_register): New function.
5840 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5841 (i386_stack_tramp_frame_sniffer): Fix coding style.
5842 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5843 (i386_gdbarch_init): Fix comments.
5844
5845 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5846
5847 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5848 instruction when walking back through the instruction stream.
5849
5850 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5851
5852 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5853 fullname parameters order.
5854
5855 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5856
5857 Code cleanup.
5858 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5859 for fun.
5860 * psymtab.c (map_symbol_filenames_psymtab)
5861 (map_partial_symbol_filenames): Likewise.
5862 * psymtab.h: Include symfile.h.
5863 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5864 * symfile.h (symbol_filename_ftype): New.
5865 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5866 map_symbol_filenames, clarify more the naming in comment.
5867
5868 2011-06-07 Doug Evans <dje@google.com>
5869
5870 * cc-with-index.sh: Fix typos in comment.
5871 Look for ../../gdb, for fullname.exp.
5872
5873 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5874 Pedro Alves <pedro@codesourcery.com>
5875
5876 * cli/cli-cmds.c (shell_escape): Use waitpid.
5877 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5878
5879 2011-06-07 Tristan Gingold <gingold@adacore.com>
5880
5881 * xcoffread.c (dwarf2_xcoff_names): New variable.
5882 (aix_process_linenos): Add a guard.
5883 (xcoff_symfile_finish): Free dwarf2.
5884 (xcoff_initial_scan): Add dwarf2 support.
5885
5886 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5887
5888 * infcall.c (run_inferior_call): Don't mask async. Instead force
5889 a synchronous wait, if the target can async.
5890
5891 * target.h (struct target_ops): Delete to_async_mask.
5892 (target_async_mask): Delete.
5893 * target.c (update_current_target): Delete references to to_async_mask.
5894 * linux-nat.c (linux_nat_async_mask_value): Delete.
5895 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5896 to linux_nat_async_mask_value.
5897 (linux_nat_async_mask): Delete.
5898 (linux_nat_async, linux_nat_close): Remove references to
5899 linux_nat_async_mask_value.
5900 * record.c (record_async_mask_value): Delete.
5901 (record_async): Remove references to record_async_mask_value.
5902 (record_async_mask): Delete.
5903 (record_can_async_p, record_is_async_p): Remove references to
5904 record_async_mask_value.
5905 (init_record_ops, init_record_core_ops): Remove references to
5906 record_async_mask.
5907 * remote.c (remote_async_mask_value): Delete.
5908 (init_remote_ops): Remove reference to remote_async_mask.
5909 (remote_can_async_p, remote_is_async_p): Remove references to
5910 remote_async_mask_value.
5911 (remote_async): Remove references to remote_async_mask_value.
5912 (remote_async_mask): Delete.
5913
5914 * infrun.c (fetch_inferior_event): Don't claim registers changed
5915 if the current thread is already not executing.
5916
5917 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5918
5919 From Stephen Kitt <steve@sk2.org>
5920 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5921 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5922
5923 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5924
5925 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5926 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5927
5928 2011-06-03 Tom Tromey <tromey@redhat.com>
5929
5930 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5931 code fields.
5932 * python/py-exitedevent.c (create_exited_event_object): Change
5933 type of 'exit_code'. Optionally add exit_code attribute.
5934 (emit_exited_event): Change type of 'exit_code'.
5935 * python/py-event.h (emit_exited_event): Update.
5936 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5937 * infrun.c (handle_inferior_event): Set exit code fields on
5938 inferior.
5939 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5940 fields.
5941 * inferior.c (exit_inferior_1): Initialize new fields.
5942
5943 2011-06-03 Tom Tromey <tromey@redhat.com>
5944
5945 * dwarf2expr.c (get_signed_type): New function.
5946 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5947
5948 2011-06-02 Keith Seitz <keiths@redhat.com>
5949
5950 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5951
5952 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5953
5954 * top.h (simplified_command_loop): Delete declaration.
5955
5956 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5957
5958 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5959 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5960
5961 2011-06-01 Yao Qi <yao@codesourcery.com>
5962
5963 * objfiles.h (obj_section_addr): Update reference to objfile from
5964 `abfd' to `obfd'.
5965 (obj_section_endaddr): Likewise.
5966
5967 2011-06-01 Daniel Jacobowitz <drow@false.org>
5968
5969 * MAINTAINERS: Update my email address and affiliation. Also
5970 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5971
5972 2010-05-31 Keith Seitz <keiths@redhat.com>
5973
5974 PR c++/12750
5975 * linespec.c (get_search_block): New function.
5976 (find_methods): Add FILE_SYMTATB parameter and use it and
5977 get_search_block to pass an appropriate block to
5978 lookup_symbol_in_namespace.
5979 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5980 Check if *ARGPTR starts with a filename first.
5981 If it does, call locate_first_half again to locate the next
5982 "first half" of the linespec.
5983 Pass FILE_SYMTATB to decode_objc and decode_compound.
5984 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5985 (locate_first_half): Stop on the first colon seen.
5986 (decode_compound): Add FILE_SYMTAB parameter.
5987 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5988 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5989 get_search_block with lookup_symbol.
5990 (find_method): Add FILE_SYMTAB parameter and pass it to
5991 find_methods.
5992 (decode_objc): Use get_search_block.
5993
5994 2010-05-31 Keith Seitz <keiths@redhat.com>
5995
5996 PR symtab/12704
5997 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5998 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5999 and CP_ANONYMOUS_NAMESPACE_LEN.
6000 (cp_is_anonymous): Likewise.
6001 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
6002 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
6003 * dwarf2read.c (namespace_name): Likewise.
6004 (fixup_partial_die): Likewise.
6005 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
6006 seen in the input, keep it.
6007
6008 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6009
6010 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6011 * inf-loop.h (inferior_event_handler_wrapper): Delete.
6012 * inf-loop.c (inferior_event_handler_wrapper): Delete.
6013 (inferior_event_handler): Don't handle INF_QUIT_REQ.
6014 * remote.c (_initialize_remote): Register
6015 async_remote_interrupt_twice directly as
6016 sigint_remote_twice_token event.
6017
6018 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6019
6020 * target.h (enum inferior_event_type): Delete INF_ERROR.
6021 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6022
6023 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6024
6025 * interps.c (interp_set): Don't cancel continuations.
6026
6027 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6028
6029 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6030
6031 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6032
6033 * continuations.h (continuation_ftype): Add `err' parameter.
6034 Document parameters.
6035 (do_all_continuations, do_all_continuations_thread)
6036 (do_all_intermediate_continuations)
6037 (do_all_intermediate_continuations_thread)
6038 (do_all_inferior_continuations): Add `err' parameter.
6039 * continuations.c (do_my_continuations_1, do_my_continuations)
6040 (do_all_inferior_continuations, do_all_continuations_ptid)
6041 (do_all_continuations_thread_callback)
6042 (do_all_continuations_thread, do_all_continuations)
6043 (do_all_intermediate_continuations_thread_callback)
6044 (do_all_intermediate_continuations_thread)
6045 (do_all_intermediate_continuations): Add `err' parameter, and pass
6046 it down all the way to the continuations proper.
6047 * inf-loop.c (inferior_event_handler): If fetching an inferior
6048 event throws an error, don't pop the target, and still call the
6049 continuations, but with `err' set. Adjust all other continuation
6050 calls.
6051 * breakpoint.c (until_break_command_continuation): Add `err'
6052 parameter.
6053 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6054 issue another step if `err' is set.
6055 (struct until_next_continuation_args): New.
6056 (until_next_continuation): Add `err' parameter. Adjust.
6057 (until_next_command): Adjust.
6058 (struct finish_command_continuation_args): Add `thread' field.
6059 (finish_command_continuation): Add `err' parameter. Handle it.
6060 (finish_forward): Adjust.
6061 (attach_command_continuation): Add `err' parameter. Handle it.
6062 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6063 cancel the continuations.
6064 * interps.c (interp_set): Adjust to cancel the continuations.
6065 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6066 continuations rather than discarding.
6067 (free_thread): Don't clear thread inferior resources here.
6068 (delete_thread_1): Do it here instead. And do it before removing
6069 the thread from the threads list. Tag the thread as exited before
6070 clearing thread inferior resources.
6071
6072 2011-05-30 Joel Brobecker <brobecker@adacore.com>
6073
6074 * infcall.c (call_function_by_hand): Rephrase error message.
6075
6076 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6077
6078 * defs.h (struct thread_info, struct inferior): Delete forward
6079 declarations.
6080 * breakpoint.h (struct thread_info): New forward declaration.
6081 * observer.sh (struct inferior): New forward declaration.
6082 * python/python-internal.h (struct inferior): New forward
6083 declaration.
6084
6085 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6086
6087 * defs.h (struct continuation, continuation_ftype)
6088 (continuation_free_arg_ftype, add_continuation)
6089 (do_all_continuations, do_all_continuations_thread)
6090 (discard_all_continuations, discard_all_continuations_thread)
6091 (add_intermediate_continuation, do_all_intermediate_continuations)
6092 (do_all_intermediate_continuations_thread)
6093 (discard_all_intermediate_continuations)
6094 (discard_all_intermediate_continuations_thread)
6095 (add_inferior_continuation, do_all_inferior_continuations)
6096 (discard_all_inferior_continuations): Move to ...
6097 * continuations.h: ... this new file.
6098 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6099 infcmd.c, inferior.c, infrun.c, interps.c: Include
6100 continuations.h.
6101
6102 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6103 Doug Evans <dje@google.com>
6104
6105 Fix PR 10970, PR 12702.
6106 * linux-nat.c (linux_lwp_is_zombie): New function.
6107 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6108 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6109
6110 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6111
6112 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6113 typedefs.
6114 (add_continuation, add_intermediate_continuation)
6115 (add_inferior_continuation): Use them.
6116 * continuations.c (struct continuation): Use them.
6117 (make_continuation_ftype): Delete.
6118 (make_continuation, add_inferior_continuation, add_continuation)
6119 (add_intermediate_continuation): Use continuation_ftype and
6120 continuation_free_arg_ftype. Rename parameters to shorter names.
6121
6122 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6123
6124 * continuations.c (make_continuation): Make it return void.
6125 (do_my_continuations): Rename to ...
6126 (do_my_continuations_1): ... this. Remove old_chain parameter and
6127 adjust.
6128 (do_my_continuations): New.
6129 (discard_my_continuations): Rename to ...
6130 (discard_my_continuations_1): ... this. Remove old_chain
6131 parameter and adjust.
6132 (discard_my_continuations): New.
6133 (add_inferior_continuation): Simplify.
6134 (do_all_inferior_continuations): Reimplement on top
6135 do_my_continuations.
6136 (discard_all_inferior_continuations): Simplify.
6137 (add_continuation): Simplify.
6138 (do_all_continuations_ptid): Simplify.
6139 (discard_all_continuations_thread_callback): Simplify.
6140 (add_intermediate_continuation): Simplify.
6141 (discard_all_intermediate_continuations_thread_callback):
6142 Simplify.
6143
6144 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6145
6146 * utils.c (struct continuation, add_continuation)
6147 (add_inferior_continuation)
6148 (do_all_inferior_continuations, discard_all_inferior_continuations)
6149 (restore_thread_cleanup, do_all_continuations_ptid)
6150 (do_all_continuations_thread_callback)
6151 (do_all_continuations_thread, do_all_continuations)
6152 (discard_all_continuations_thread_callback)
6153 (discard_all_continuations_thread, discard_all_continuations)
6154 (add_intermediate_continuation)
6155 (do_all_intermediate_continuations_thread_callback)
6156 (do_all_intermediate_continuations_thread)
6157 (do_all_intermediate_continuations)
6158 (discard_all_intermediate_continuations_thread_callback)
6159 (discard_all_intermediate_continuations_thread)
6160 (discard_all_intermediate_continuations): Move to ...
6161 * continuations.c: ... this new file, and adjust to no longer
6162 implement continuations on top of cleanups.
6163 * Makefile.in (SFILES): Add continuations.c.
6164 (COMMON_OBS): Add continuations.o.
6165
6166 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6167
6168 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6169 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6170 Internal error on invalid values.
6171 * reverse.c: Don't handle EXEC_ERROR.
6172 * mi/mi-main.c: Don't handle EXEC_ERROR.
6173
6174 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6175
6176 * record.c: Include event-loop.h, inf-loop.h.
6177 (record_beneath_to_async): New global.
6178 (tmp_to_async): New global.
6179 (record_async_inferior_event_token): New global.
6180 (record_open_1): Don't error out if async is enabled.
6181 (record_open): Handle to_async. Create an async event source in
6182 the event loop.
6183 (record_close): Delete the async event source.
6184 (record_resumed): New global.
6185 (record_execution_dir): New global.
6186 (record_resume, record_core_resume): Set them. Register the
6187 target on the event loop.
6188 (record_wait): Rename to ...
6189 (record_wait_1): ... this. Add more debug output. Handle
6190 TARGET_WNOHANG, and the target beneath returning
6191 TARGET_WAITKIND_IGNORE.
6192 (record_wait): Reimplement on top of record_wait_1.
6193 (record_async_mask_value): New global.
6194 (record_async, record_async_mask, record_can_async_p)
6195 (record_is_async_p, record_execution_direction): New functions.
6196 (init_record_ops, init_record_core_ops): Install new methods.
6197 * infrun.c (fetch_inferior_event): Temporarily switch the global
6198 execution direction to the direction the target was going.
6199 (execution_direction): Change type to int.
6200 * target.c (default_execution_direction): New function.
6201 (update_current_target): Inherit and de_fault
6202 to_execution_direction.
6203 * target.h (struct target_ops) <to_execution_direction>: New
6204 field.
6205 (target_execution_direction): New macro.
6206 * inferior.h (execution_direction): Change type to int.
6207
6208 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6209
6210 * infcall.c (call_function_by_hand): Don't allow calling functions
6211 in reverse execution mode.
6212
6213 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6214
6215 * infcmd.c (finish_command): Allow async finish in reverse.
6216
6217 2011-05-26 Yao Qi <yao@codesourcery.com>
6218
6219 * gdb_thread_db.h: Delete. Move to ...
6220 * common/gdb_thread_db.h: ... here.
6221
6222 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6223
6224 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6225 function's entry point instead of a manually managed momentary
6226 breakpoint, and only ever issue one proceed call.
6227 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6228 doing a reverse-finish, switch to stepi mode, to do another step.
6229 (insert_step_resume_breakpoint_at_sal): Make public.
6230 (normal_stop): No need to save function value return registers if
6231 going reverse.
6232 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6233
6234 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6235
6236 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6237 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6238 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6239 at the end.
6240 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6241 step-resume breakpoints.
6242 (print_it_typical): Handle bp_hp_step_resume.
6243 (bpstat_what): Ditto.
6244 (bptype_string): Ditto.
6245 (print_one_breakpoint_location): Ditto.
6246 (allocate_bp_location): Ditto.
6247 (mention): Ditto.
6248 (breakpoint_re_set_one): Ditto.
6249 * infrun.c (handle_inferior_event): Adjust. Split
6250 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6251 BPSTAT_WHAT_HP_STEP_RESUME.
6252 (insert_step_resume_breakpoint_at_sal): Rename to ...
6253 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6254 parameter. Handle it.
6255 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6256 insert_step_resume_breakpoint_at_sal_1.
6257 (insert_step_resume_breakpoint_at_frame): Rename to ...
6258 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6259 set a high-priority step-resume breakpoint.
6260 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6261 (insert_step_resume_breakpoint_at_caller): Ditto.
6262
6263 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6264
6265 * breakpoint.c (iterate_over_related_breakpoints): New.
6266 (do_map_delete_breakpoint): New.
6267 (delete_command): Pass do_map_delete_breakpoint to
6268 map_breakpoint_numbers.
6269 (do_disable_breakpoint): New.
6270 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6271 breakpoints.
6272 (do_enable_breakpoint): Rename to ...
6273 (enable_breakpoint_disp): ... this.
6274 (enable_breakpoint): Adjust.
6275 (do_enable_breakpoint): New.
6276 (enable_once_breakpoint): Delete.
6277 (do_map_enable_breakpoint): New.
6278 (do_map_enable_once_breakpoint): New.
6279 (enable_once_command, enable_delete_command)
6280 (delete_trace_command): Iterate over the breakpoint's related
6281 breakpoints.
6282
6283 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6284
6285 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6286 for ALPHA_ZERO_REGNUM.
6287 (alpha_supply_int_regs): Explicitly supply zero as the value for
6288 ALPHA_ZERO_REGNUM in the register cache.
6289 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6290
6291 2011-05-26 Yao Qi <yao@codesourcery.com>
6292
6293 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6294
6295 2011-05-26 Tristan Gingold <gingold@adacore.com>
6296
6297 * symfile.h (struct dwarf2_section_names): New type.
6298 (struct dwarf2_debug_sections): New type.
6299 (dwarf2_has_info): Add parameter.
6300 * dwarf2read.c (dwarf2_elf_names): New variable.
6301 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6302 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6303 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6304 (dwarf2_has_info): Add names parameter. Pass names
6305 to dwarf2_locate_sections.
6306 (section_is_p): Rewrite using the names parameter.
6307 (dwarf2_locate_sections): Use section names from the names parameter.
6308 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6309 * elfread.c (read_psyms): Ditto.
6310 * machoread.c (macho_symfile_read): Ditto.
6311
6312 2011-05-25 Andreas Schwab <schwab@redhat.com>
6313
6314 PR gdb/8677
6315 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6316
6317 2011-05-24 Keith Seitz <keiths@redhat.com>
6318
6319 PR breakpoint/12803
6320 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6321 (decode_compound): Unconditionally call keep_name_info.
6322
6323 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6324
6325 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6326 scope, clear its command list.
6327 (map_breakpoint_numbers): Don't walk the related breakpoints list
6328 of each breakpoint.
6329
6330 2011-05-24 Tom Tromey <tromey@redhat.com>
6331
6332 * MAINTAINERS: Move Jim Blandy to past maintainers.
6333
6334 2011-05-24 Tristan Gingold <gingold@adacore.com>
6335
6336 * symfile.h (enum dwarf2_section_enum): New type.
6337 (dwarf2_get_section_info): New prototype.
6338 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6339 section_name by sect. Use a switch to select the info.
6340 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6341 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6342
6343 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6344
6345 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6346 shared library event breakpoint if there's no execution.
6347
6348 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6349
6350 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6351 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6352
6353 2011-05-23 Tom Tromey <tromey@redhat.com>
6354
6355 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6356 NULL.
6357
6358 2011-05-23 Doug Evans <dje@google.com>
6359
6360 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6361 entry for RuntimeError to doc string.
6362
6363 2011-05-23 Jerome Guitton <guitton@adacore.com>
6364
6365 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6366 sequence for probing loops.
6367
6368 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6369
6370 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6371 comment.
6372
6373 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6374
6375 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6376 zero as the value for %g0 in the register cache.
6377 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6378 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6379
6380 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6381
6382 * infrun.c (proceed): Set previous_inferior_ptid here.
6383 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6384 inferior_ptid, not null_ptid.
6385 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6386 (fetch_inferior_event): Nor here.
6387
6388 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6389
6390 * inf-loop.c (inferior_event_handler): Only output a message if
6391 verbose.
6392
6393 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6394
6395 * MAINTAINERS: Update my e-mail address.
6396
6397 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6398
6399 * infrun.c (proceed): Switch the inferior event loop to
6400 INF_EXEC_COMPLETE if the target refused to resume from a
6401 vfork/fork.
6402
6403 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6404
6405 * infcmd.c: Include "inf-loop.h".
6406 (step_once): When stepping into an inline subroutine, pretend the
6407 target has run. If the target can async, switch the inferior
6408 event loop to INF_EXEC_COMPLETE.
6409 * inferior.h (user_visible_resume_ptid): Declare.
6410 * infrun.c (user_visible_resume_ptid): New function, factored out
6411 from `resume'.
6412 (resume): Use it.
6413 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6414 that the current thread is running. Merge async and sync
6415 branches.
6416
6417 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6418
6419 * infcmd.c (step_1): Simplify synchronous case.
6420
6421 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6422
6423 * tracepoint.c: Include exceptions.h.
6424 (TFILE_PID): Move higher in file.
6425 (tfile_open): Delay pushing the tfile target until we're assured
6426 the tfile header is present in the file. Wrap reading the initial
6427 newline-terminated lines in TRY_CATCH. Pop the target if the
6428 initial setup failed. Add the tfile's thread immediately
6429 aftwards, before any non-essential setup. Don't skip
6430 post_create_inferior if there are no traceframes present in the
6431 file.
6432 (tfile_close): Remove redundant check for null before xfree call.
6433 (tfile_thread_alive): New function.
6434 (init_tfile_ops): Register it as to_thread_alive callback.
6435
6436 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6437
6438 * tracepoint.c (tfile_open): Delete #if 0'd code.
6439
6440 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6441
6442 Fix -readnow for -gdwarf-4 unused type units.
6443 * dwarf2read.c (struct signatured_type): Remove the field offset.
6444 (create_signatured_type_table_from_index): Remove its initialization.
6445 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6446 instead. Add a complaint call.
6447 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6448 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6449 (lookup_signatured_type_at_offset, read_signatured_type)
6450 (write_one_signatured_type): Update the field for per_cu.
6451
6452 2011-05-19 Tom Tromey <tromey@redhat.com>
6453
6454 * python/py-inferior.c (python_inferior_exit): Use
6455 target_gdbarch.
6456 (python_on_resume): Likewise.
6457
6458 2011-05-19 Matt Rice <ratmice@gmail.com>
6459
6460 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6461
6462 2011-05-19 Hui Zhu <teawater@gmail.com>
6463
6464 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6465
6466 2011-05-19 Hui Zhu <teawater@gmail.com>
6467
6468 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6469
6470 2011-05-18 Tom Tromey <tromey@redhat.com>
6471
6472 * dwarf2read.c (dwarf2_add_field): Constify.
6473 * value.c (value_static_field): Constify.
6474 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6475 Now const.
6476 * ax-gdb.c (gen_static_field): Constify
6477
6478 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6479
6480 * linux-nat.c (kill_callback): Use SIGKILL first.
6481
6482 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6483
6484 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6485
6486 2011-05-18 Tom Tromey <tromey@redhat.com>
6487
6488 * value.c (value_fn_field): Constify.
6489 * symtab.c (gdb_mangle_name): Constify.
6490 * stabsread.c (update_method_name_from_physname): Make 'physname'
6491 argument const.
6492 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6493 const. Use explicit fputc_filtered loop.
6494 (pascal_type_print_base): Constify.
6495 * p-lang.h (pascal_type_print_method_args): Update.
6496 * linespec.c (add_matching_methods): Constify.
6497 (add_constructors): Likewise.
6498 * jv-typeprint.c (java_type_print_base): Constify.
6499 * gdbtypes.h (struct cplus_struct_type)
6500 <fn_fieldlist.fn_field.physname>: Now const.
6501 * dwarf2read.c (compute_delayed_physnames): Constify.
6502 (dwarf2_add_member_fn): Likewise.
6503 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6504
6505 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6506
6507 * infrun.c (resume): Mention which is the current thread, and its
6508 current PC in debug output.
6509 (prepare_to_proceed): Mention the thread switching in debug
6510 output.
6511
6512 2011-05-18 Tom Tromey <tromey@redhat.com>
6513
6514 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6515 path check. Use xmalloc and cleanups.
6516 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6517
6518 2011-05-17 Tom Tromey <tromey@redhat.com>
6519
6520 * cp-valprint.c (cp_print_value_fields): Catch errors from
6521 value_static_field.
6522
6523 2011-05-17 Tom Tromey <tromey@redhat.com>
6524
6525 * dwarf2read.c (dwarf2_get_die_type): Call
6526 get_die_type_at_offset.
6527 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6528 get_base_type function.
6529
6530 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6531
6532 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6533 trap_expected.
6534
6535 2011-05-16 Doug Evans <dje@google.com>
6536
6537 * python/py-auto-load.c (source_section_scripts): Mention objfile
6538 name in warning.
6539
6540 2011-05-15 Doug Evans <dje@google.com>
6541
6542 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6543 (try_thread_db_load_from_pdir): Call it. If unable to find
6544 libthread_db in directory of libpthread, see if we're looking at
6545 the separate-debug-info copy.
6546
6547 * python/py-autoload.c (print_script): Print "Missing" instead of
6548 "No" for missing scripts.
6549 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6550
6551 2011-05-13 Doug Evans <dje@google.com>
6552
6553 * ui-file.c (stdio_file_write_async_safe): Add comment.
6554
6555 2011-05-14 Hui Zhu <teawater@gmail.com>
6556
6557 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6558
6559 2011-05-13 Doug Evans <dje@google.com>
6560
6561 Support $pdir and $sdir in libthread-db-search-path.
6562 * NEWS: Mention $sdir,$pdir.
6563 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6564 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6565 (try_thread_db_load_from_sdir): New function.
6566 (try_thread_db_load_from_dir): New function.
6567 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6568 system directories if search of libthread-db-search-path fails,
6569 that is now done via $sdir.
6570 (has_libpthread): New function.
6571 (thread_db_load): Remove search for libthread_db in directory of
6572 libpthread, that is now done via $pdir.
6573
6574 * NEWS: Mention "info auto-load-scripts".
6575 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6576 script_not_found_warning_printed.
6577 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6578 all callers updated. Initialize script_not_found_warning_printed.
6579 (get_auto_load_pspace_data_for_loading): New function.
6580 (maybe_add_script): New function.
6581 (source_section_scripts): Simplify. Only print one warning regardless
6582 of the number of auto-load scripts not found.
6583 (clear_section_scripts): Clear script_not_found_warning_printed.
6584 (auto_load_objfile_script): Record script in hash table.
6585 (count_matching_scripts): New function.
6586 (maybe_print_script): Renamed from maybe_print_section_script, all
6587 callers updated. Rewrite to use ui_out_*.
6588 (info_auto_load_scripts): Renamed from
6589 maintenance_print_section_scripts, all callers updated.
6590 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6591 renamed as "info auto-load-scripts".
6592
6593 2011-05-13 Tom Tromey <tromey@redhat.com>
6594
6595 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6596 (read_sleb128): Likewise.
6597
6598 2011-05-13 Tom Tromey <tromey@redhat.com>
6599
6600 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6601 offset display.
6602
6603 2011-05-13 Doug Evans <dje@google.com>
6604
6605 * linux-nat.c (debug_linux_nat_async): Delete.
6606 Replace all references to use debug_linux_nat instead.
6607 (show_debug_linux_nat_async): Delete.
6608 (sigchld_handler): Call ui_file_write_async_safe instead of
6609 fprintf_unfiltered.
6610 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6611 * ui-file.c (struct ui_file): New member to_write_async_safe.
6612 (null_file_write_async_safe): New function.
6613 (ui_file_write_async_safe): New function.
6614 (set_ui_file_write_async_safe): New function.
6615 (ui_file_new): Initialize to_write_async_safe.
6616 (stdio_file_write_async_safe): New function.
6617 (struct stdio_file): New member fd.
6618 (stdio_file_new): Initialize to_write_async_safe, fd.
6619 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6620 fileno.
6621 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6622 (set_ui_file_write_async_safe): Declare.
6623 (ui_file_write_async_safe): Declare.
6624
6625 2011-05-13 Tom Tromey <tromey@redhat.com>
6626
6627 * utils.c (do_value_free): New function.
6628 (make_cleanup_value_free): Likewise.
6629 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6630 freeing correctly.
6631 (dwarf2_loc_desc_needs_frame): Call
6632 make_cleanup_value_free_to_mark.
6633 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6634 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6635 value_free_to_mark.
6636 (new_dwarf_expr_context): Don't call value_mark.
6637 * dwarf2-frame.c (execute_stack_op): Call
6638 make_cleanup_value_free_to_mark.
6639 * defs.h (make_cleanup_value_free): Declare.
6640
6641 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6642
6643 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6644 prepare_execute_command.
6645 * top.c (prepare_execute_command): Return cleanup.
6646 (execute_command): Use cleanup from prepare_execute_command.
6647 * top.h (prepare_execute_command): Change prototype to return
6648 cleanup.
6649 * defs.h (struct value): Add opaque declaration.
6650 (make_cleanup_value_free_to_mark): Add prototype.
6651 * utils.c (do_value_free_to_mark): New function.
6652 (make_cleanup_value_free_to_mark): Likewise.
6653
6654 2011-05-12 Tom Tromey <tromey@redhat.com>
6655
6656 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6657 cast left-hand-side to unsigned.
6658
6659 2011-05-12 Tom Tromey <tromey@redhat.com>
6660
6661 PR gdb/12617:
6662 * value.h (value_from_contents): Declare.
6663 * value.c (value_from_contents): New function.
6664 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6665 (dwarf2_get_die_type): New function.
6666 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6667 (allocate_piece_closure): Acquire reference to values.
6668 (read_pieced_value): Update for value-based expressions.
6669 (write_pieced_value): Likewise.
6670 (free_pieced_value_closure): Call value_free as needed.
6671 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6672 Update for value-based expressions.
6673 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6674 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6675 <get_base_type>: New field.
6676 (struct dwarf_expr_piece) <v.value>: Change type.
6677 <v.regno>: New field.
6678 (struct dwarf_expr_context) <mark>: New field.
6679 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6680 (dwarf_expr_pop, dwarf_expr_push): Remove.
6681 (dwarf_expr_push_address): Declare.
6682 * dwarf2expr.c (dwarf_arch_cookie): New global.
6683 (struct dwarf_gdbarch_types): New.
6684 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6685 functions.
6686 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6687 static.
6688 (dwarf_expr_push_address): New function.
6689 (dwarf_expr_pop): Now static.
6690 (dwarf_expr_fetch): Change return type.
6691 (dwarf_require_integral): New function.
6692 (dwarf_expr_fetch): Simplify.
6693 (add_piece): Update.
6694 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6695 functions.
6696 (execute_stack_op) <sign_ext>: Remove.
6697 Use values for DWARF stack.
6698 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6699 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6700 New cases.
6701 (_initialize_dwarf2expr): New function.
6702 (add_piece): Update.
6703 (new_dwarf_expr_context): Set new field.
6704 (free_dwarf_expr_context): Call value_free_to_mark.
6705 * dwarf2-frame.c (no_base_type): New function.
6706 (execute_stack_op): Set get_base_type field. Update.
6707
6708 2011-05-12 Tom Tromey <tromey@redhat.com>
6709
6710 * dwarf2read.c (read_common_block): Fix formatting.
6711
6712 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6713
6714 * breakpoint.c (disable_breakpoint): Disable all locations
6715 associated with a tracepoint on target if a trace experiment is
6716 running.
6717 (disable_command): Disable a specific tracepoint location on target if
6718 a trace experiment is running.
6719 (do_enable_breakpoint): Enable all locations associated with a
6720 tracepoint on target if a trace experiment is running.
6721 (enable_command) Enable a specific tracepoint location on target if a
6722 trace experiment is running.
6723 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6724 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6725 to_disable_tracepoint.
6726 * target.h: Add declaration of struct bp_location.
6727 (struct target_ops): Add new functions
6728 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6729 to_disable_tracepoint to target operations.
6730 (target_supports_enable_disable_tracepoint): New macro.
6731 (target_enable_tracepoint): New macro.
6732 (target_disable_tracepoint): New macro.
6733 * remote.c (struct remote_state): Add new field.
6734 (remote_enable_disable_tracepoint_feature): New.
6735 (remote_protocol_features): Add new entry.
6736 (remote_supports_enable_disable_tracepoint): New.
6737 (remote_enable_tracepoint): New.
6738 (remote_disable_tracepoint): New.
6739 (init_remote_ops): Add remote_enable_tracepoint,
6740 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6741 to remote operations.
6742 * tracepoint.c (start_tracing): Allow tracing to start without any
6743 tracepoints enabled with just a warning if they can be re-enabled
6744 later.
6745 * NEWS: Add news item for the new behaviour of the enable and disable
6746 GDB commands when applied to tracepoints.
6747 Add news items for the new remote packets QTEnable and QTDisable.
6748
6749 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6750
6751 * config.in: Regenerate.
6752 * configure: Regenerate.
6753 * configure.ac <--with-system-readline> (for readline_echoing_p):
6754 Remove the test.
6755 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6756 (tui_old_rl_echoing_p): ... here.
6757 (tui_setup_io): Rename extern declaration readline_echoing_p to
6758 _rl_echoing_p. Adjust assignments for the both renames.
6759
6760 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6761
6762 * symtab.c (lookup_symtab): Run cleanup before returning.
6763
6764 2011-05-11 Tom Tromey <tromey@redhat.com>
6765
6766 * dwarf2read.c (handle_data_member_location): New function.
6767 (dwarf2_add_field): Use it.
6768 (read_common_block): Likewise.
6769
6770 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6771
6772 Make addrs->SECTINDEX always defined.
6773 * symfile.c (relative_addr_info_to_section_offsets): Check for
6774 SECTINDEX -1, not for zero ADDR.
6775 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6776 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6777 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6778 on its validity.
6779
6780 2011-05-10 Doug Evans <dje@google.com>
6781
6782 * linux-thread-db.c: Whitespace cleanup.
6783 (try_thread_db_load_1): Fix comment.
6784
6785 * linux-thread-db.c (set_libthread_db_search_path): New function.
6786 (_initialize_thread_db): Add setter for libthread-db-search-path.
6787
6788 2011-05-09 Doug Evans <dje@google.com>
6789
6790 * NEWS: Mention --with-iconv-bin.
6791 * configure.ac: New option --with-iconv-bin.
6792 * configure: Regenerate.
6793 * config.in: Regenerate.
6794 * defs.h (relocate_gdb_directory): Declare.
6795 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6796 removed progname parameter, and exported. All callers updated.
6797 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6798
6799 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6800 adding missing call to restore_child_signals_mask.
6801
6802 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6803
6804 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6805 parameter.
6806 * infrun.c (proceed, start_remote): Adjust.
6807 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6808 and adjust to not handle it.
6809 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6810 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6811 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6812 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6813 * windows-nat.c (do_initial_windows_stuff): Adjust.
6814 * infcmd.c (attach_command): Adjust.
6815 (notice_new_inferior): Adjust.
6816
6817 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6818
6819 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6820 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6821 * spu-tdep.c (op_selb): Use correct value.
6822
6823 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6824
6825 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6826 "parent" parameter to symbol_file_add_from_bfd call.
6827
6828 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6829 Thiago Jung Bauermann <bauerman@br.ibm.com>
6830
6831 Implement support for PowerPC BookE masked watchpoints.
6832 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6833 section.
6834 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6835 method. Initialize to NULL in all existing breakpoint_ops instances.
6836 (struct breakpoint) <hw_wp_mask>: New field.
6837 * breakpoint.c (is_masked_watchpoint): Add prototype.
6838 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6839 breakpoint's breakpoint_ops.works_in_software_mode if available.
6840 (watchpoints_triggered): Handle the case of a hardware masked
6841 watchpoint trigger.
6842 (watchpoint_check): Likewise.
6843 (works_in_software_mode_watchpoint): New function.
6844 (insert_masked_watchpoint, remove_masked_watchpoint)
6845 (resources_needed_masked_watchpoint)
6846 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6847 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6848 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6849 functions.
6850 (masked_watchpoint_breakpoint_ops): New structure.
6851 (watch_command_1): Check for the existence of the `mask' parameter.
6852 Set b->ops according to the type of hardware watchpoint being created.
6853 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6854 (ppc_linux_remove_mask_watchpoint)
6855 (ppc_linux_masked_watch_num_registers): New functions.
6856 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6857 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6858 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6859 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6860 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6861 (target_masked_watch_num_registers): New functions.
6862 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6863 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6864 methods.
6865 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6866 (target_masked_watch_num_registers): Add prototypes.
6867
6868 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6869
6870 PR 12573
6871 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6872 (producer_is_gcc_ge_4_0): New function.
6873 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6874 symtab->language code.
6875 (var_decode_location): Set cu->has_loclist.
6876 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6877 skip. Intialize force_skip from locations_valid. Move the prologue
6878 skipping code into two passes.
6879 * symtab.h (struct symtab): Make the primary field a bitfield. New
6880 field locations_valid.
6881
6882 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6883
6884 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6885 (classify_inner_name): Call cp_lookup_nested_type with
6886 yylval.tsym.type.
6887 * cp-namespace.c (cp_lookup_nested_type): New variable
6888 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6889 type_name_no_tag_or_error with saved_parent_type.
6890 * dwarf2read.c (load_partial_dies): Read in any children of
6891 DW_TAG_typedef with complaint in such case.
6892 * gdbtypes.c (type_name_no_tag_or_error): New function.
6893 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6894 * valops.c (destructor_name_p): New comment for parameter type. Remove
6895 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6896 * value.h (destructor_name_p): Remove type const.
6897
6898 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6899
6900 * symtab.c (compare_symbol_name): New function.
6901 (completion_list_add_name, expand_partial_symbol_name): Call it,
6902 remove the variable ncmp.
6903 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6904 gdb_assert it.
6905
6906 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6907
6908 Demote to sw watchpoint only in update_watchpoint.
6909 * breakpoint.c (update_watchpoint): Change between software and
6910 hardware watchpoint for all kinds of watchpoints, not just
6911 read/write ones. Determine b->exact value here instead of
6912 in watch_command_1. Error out if there are not enough resources
6913 for a read or access hardware watchpoint.
6914 (watch_command_1): Remove logic of checking whether there are
6915 enough resources available, since update_watchpoint will do that
6916 work now. Don't set b->exact here. Catch exceptions thrown by
6917 update_watchpoint and delete the watchpoint.
6918 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6919 Use target_exact_watchpoints instead.
6920 (delete_breakpoint): Notify observers only if deleted watchpoint
6921 has a breakpoint number assigned to it.
6922
6923 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6924
6925 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6926
6927 2011-05-05 Jerome Guitton <guitton@adacore.com>
6928
6929 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6930 New functions.
6931 (i386_stack_tramp_frame_unwind): New static global.
6932 (i386_match_pattern): New function, extracted from i386_match_insn.
6933 (i386_match_insn): Use i386_match_pattern.
6934 (i386_match_insn_block): New function.
6935 (i386_tramp_chain_in_reg_insns)
6936 (i386_tramp_chain_on_stack_insns): New static variables.
6937 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6938 of unwinders.
6939
6940 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6941
6942 * configure.host (xscale*): Don't handle target.
6943 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6944 handle targets.
6945
6946 2011-05-04 Yao Qi <yao@codesourcery.com>
6947
6948 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6949
6950 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6951
6952 Revert:
6953 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6954 | * elfread.c (elf_symtab_read): Stop memory leak.
6955
6956 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6957
6958 * nto-tdep.c (nto_target): Replace deprecated call to
6959 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6960
6961 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6962
6963 Fix false GCC warning.
6964 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6965
6966 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6967
6968 * breakpoint.c (update_watchpoint): Move code to change
6969 the enable state of breakpoint from here ...
6970 (do_enable_breakpoint): ... to here.
6971
6972 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6973
6974 * valprint.c (val_print_array_elements): Fixed poor performance
6975 of printing very large arrays with repeat_count_threshold set
6976 to unlimited. New comment.
6977
6978 2011-04-29 Tom Tromey <tromey@redhat.com>
6979
6980 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6981 (mi_parse): Likewise.
6982 * breakpoint.c (break_range_command): Use sizeof char*, not
6983 char**.
6984 (create_breakpoint): Likewise.
6985 (parse_breakpoint_sals): Likewise.
6986
6987 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6988
6989 * linux-nat.c (linux_child_remove_fork_catchpoint)
6990 (linux_child_remove_vfork_catchpoint)
6991 (linux_child_remove_exec_catchpoint): New functions.
6992 (linux_target_install_ops): Install them.
6993
6994 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6995
6996 PR mi/12531
6997
6998 * varobj.c (install_default_visualizer): Do not install a
6999 visualizer if the varobj is CPLUS_FAKE_CHILD.
7000 (construct_visualizer): Likewise.
7001
7002 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7003
7004 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
7005 case insensitive comparison.
7006
7007 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
7008
7009 * infrun.c (proceed): Revert previous change.
7010 (resume): Instead, handle the case of signal delivery while stepping
7011 off a breakpoint location here, and only if software single-stepping
7012 is used. Handle nested signals.
7013
7014 2011-04-28 Yao Qi <yao@codesourcery.com>
7015
7016 * arm-tdep.c (copy_unmodified): Rename to ...
7017 (arm_copy_unmodified): .. this. New.
7018 (copy_preload): Move common part to ...
7019 (install_preload): .. this. New.
7020 (arm_copy_preload): New.
7021 (copy_preload_reg): Move common part to ...
7022 (install_preload_reg): ... this. New.
7023 (arm_copy_preload_reg): New.
7024 (copy_b_bl_blx): Move common part to ...
7025 (install_b_bl_blx): .. this. New.
7026 (arm_copy_b_bl_blx): New.
7027 (copy_bx_blx_reg): Move common part to ...
7028 (install_bx_blx_reg): ... this. New.
7029 (arm_copy_bx_blx_reg): New.
7030 (copy_alu_reg): Move common part to ...
7031 (install_alu_reg): ... this. New.
7032 (arm_copy_alu_reg): New.
7033 (copy_alu_shifted_reg): Move common part to ...
7034 (install_alu_shifted_reg): ... this. New.
7035 (copy_ldr_str_ldrb_strb): Move common part to ...
7036 (install_ldr_str_ldrb_strb): ... this. New.
7037 (arm_copy_ldr_str_ldrb_strb): New.
7038 (copy_copro_load_store): Move some common part to ...
7039 (install_copy_copro_load_store): ... this. New.
7040 (arm_copy_copro_load_store): New.
7041 (copy_svc): Delete.
7042 (arm_copy_svc): Renamed from copy_svc.
7043 (copy_undef): Delete.
7044 (arm_copy_undef): Renamed from copy_undef.
7045 (decode_ext_reg_ld_st): Delete.
7046 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7047 (decode_svc_copro): Delete.
7048 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7049 (copy_copro_load_store, copy_alu_imm): update callers.
7050 (copy_extra_ld_st, copy_block_xfer): Likewise.
7051 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7052 (decode_miscellaneous, decode_dp_misc): Likewise.
7053 (decode_ld_st_word_ubyte, decode_media): Likewise.
7054 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7055 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7056 (decode_unconditional, decode_miscellaneous): Likewise.
7057 (decode_media, decode_b_bl_ldmstm): Likewise.
7058 (arm_process_displaced_insn): Likewise..
7059 (decode_misc_memhint_neon): Delete.
7060 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7061 (decode_miscellaneous): Delete.
7062 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7063 (decode_dp_misc): Delete.
7064 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7065 (decode_ld_st_word_ubyte): Delete.
7066 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7067 (decode_media): Delete.
7068 (arm_decode_media): Renamed from decode_media.
7069 (decode_b_bl_ldmstm): Delete.
7070 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7071 (decode_ext_reg_ld_st): Delete.
7072 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7073 (decode_unconditional): Delete.
7074 (arm_decode_unconditional): Renamed from decode_unconditional.
7075
7076 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7077
7078 Case insensitive lookups implementation.
7079 * dwarf2read.c: Include ctype.h.
7080 (struct mapped_index): New field version.
7081 (mapped_index_string_hash): New parameter index_version. New comment
7082 for it. Call tolower appropriately.
7083 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7084 Choose the right index version for mapped_index_string_hash.
7085 (dwarf2_read_index): Support also the index version 5. Initialize the
7086 new struct mapped_index field version.
7087 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7088 (find_slot): Explain the version needs. Pass INT_MAX for the new
7089 parameter.
7090 (write_psymtabs_to_index): Produce version 5.
7091 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7092 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7093 * psymtab.c (lookup_partial_symbol): Find the
7094 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7095 entries.
7096 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7097 NAME lowercasing.
7098 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7099 (completion_list_add_name): New variable ncmp, initialize it, use it.
7100 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7101 * utils.c (strcmp_iw): Support case_sensitive_off.
7102 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7103 New function comment part. New variables saved_string1,
7104 saved_string2 and case_pass. Add a proper second pass.
7105
7106 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7107
7108 Replace re_comp/re_exec by regcomp/regexec.
7109 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7110 (search_symbols_name_matches): Use them, use regexec.
7111 (search_symbols): New variable retval_chain, adjust the use of
7112 old_chain against it. Replace re_comp by regcomp. Use the new struct
7113 search_symbols_data fields, use regexec instead of re_exec.
7114
7115 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7116
7117 Format the code for the next patch.
7118 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7119 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7120 New variables c1 and c2.
7121
7122 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7123
7124 * infrun.c (proceed): Do not single-step into signal delivery
7125 when stepping off a breakpoint location.
7126 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7127 (insert_step_resume_breakpoint_at_caller): Likewise.
7128 (insert_step_resume_breakpoint_at_sal): Likewise.
7129 (insert_longjmp_resume_breakpoint): Likewise.
7130
7131 2011-04-27 Yao Qi <yao@codesourcery.com>
7132
7133 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7134
7135 2011-04-27 Joel Brobecker <brobecker@adacore.com>
7136
7137 * procfs.c (procfs_pass_signals): Fix advance declaration.
7138
7139 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7140
7141 * target.h (struct target_ops): Remove to_notice_signals;
7142 add to_pass_signals.
7143 (target_notice_signals): Remove.
7144 (target_pass_signals): Add prototype.
7145 * target.c (update_current_target): Remove to_notice_signals;
7146 mention to_pass_signals.
7147 (target_pass_signals): New function.
7148 (debug_to_notice_signals): Remove.
7149 (setup_target_debug): Do not install debug_to_notice_signals.
7150
7151 * infrun.c (signal_pass): New global.
7152 (resume): Call target_pass_signals.
7153 (handle_inferior_event): Report all signals while stepping over
7154 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7155 are re-inserted when stepping over a signal handler.
7156 (signal_cache_update): New function.
7157 (signal_stop_update): Call it.
7158 (signal_print_update): Likewise.
7159 (signal_pass_update): Likewise.
7160 (handle_command): Call signal_cache_update and target_pass_signals
7161 instead of target_notice_signals.
7162 (_initialize_infrun): Initialize signal_pass.
7163
7164 * linux-nat.c (pass_mask): New global.
7165 (linux_nat_pass_signals): New function.
7166 (linux_nat_create_inferior): Report all signals initially.
7167 (linux_nat_attach): Likewise.
7168 (linux_nat_resume): Use pass_mask to decide whether to directly
7169 handle an inferior signal.
7170 (linux_nat_wait_1): Likewise.
7171 (linux_nat_add_target): Install to_pass_signals callback.
7172
7173 * nto-procfs.c (notice_signals): Remove.
7174 (procfs_resume): Do not call notice_signals.
7175 (procfs_notice_signals): Remove.
7176 (procfs_pass_signals): New function.
7177 (init_procfs_ops): Install to_pass_signals callback instead of
7178 to_notice_signals callback.
7179 (_initialize_procfs): Report all signals initially.
7180
7181 * procfs.c (procfs_notice_signals): Remove.
7182 (procfs_pass_signals): New function.
7183 (procfs_target): Install to_pass_signals callback instead of
7184 to_notice_signals callback.
7185 (register_gdb_signals): Remove.
7186 (procfs_debug_inferior): Report all signals initially.
7187 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7188
7189 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7190 parameters; use them instead of calling signal_..._state routines.
7191 (remote_notice_signals): Remove.
7192 (remote_start_remote): Report all signals initially.
7193 (remote_resume): Do not call remote_pass_signals.
7194 (_initialize_remote): Install to_pass_signals callback instead of
7195 to_notice_signals callback.
7196
7197 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7198
7199 * breakpoint.c (user_settable_breakpoint): Delete.
7200 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7201 (delete_command): Check user_breakpoint_p instead of looking at
7202 the breakpoint's type.
7203 (disable_command): Ditto.
7204 (enable_command): Ditto.
7205 (delete_trace_command): Use user_breakpoint_p instead of looking
7206 at the breakpoint number directly. When checking if there are
7207 user visible tracepoints, in order to know whether to ask the user
7208 for confirmation, check whether the breakpoint is actually a
7209 tracepoint.
7210
7211 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7212
7213 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7214 compilation.
7215
7216 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7217
7218 MI breakpoint notifications.
7219
7220 * annotate.c (breakpoint_changed): Adjust parameter type.
7221 * breakpoint.c (set_breakpoint_condition): Adjust to change
7222 in breakpoint_modified type.
7223 (breakpoint_set_commands): Likewise.
7224 (do_map_commands_command): Likewise.
7225 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7226 changed after bumping hit count.
7227 (bpstat_stop_status): Likewise.
7228 (print_one_breakpoint_location): Don't wrap in tuple here.
7229 (print_one_breakpoint): Always print individual locations.
7230 For locations, use unnamed tuple.
7231 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7232 has changed.
7233 (create_catchpoint, create_syscall_event_catchpoint): Call
7234 breakpoint_created obsever.
7235 (mention): Don't call breakpoint_created observer.
7236 (create_breakpoint_sal): Call breakpoint_created observer.
7237 (create_breakpoint, watch_command_1): Likewise.
7238 (create_ada_exception_breakpoint): Likewise.
7239 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7240 (locations_are_equal): New.
7241 (update_breakpoint_locations): If locations were changed, notify.
7242 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7243 Call breakpoint_modified observer.
7244
7245 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7246 (mi_cmd_break_insert): Don't set observers for modify and delete.
7247 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7248 (mi_breakpoint_created, mi_breakpoint_deleted)
7249 (mi_breakpoint_modified): New.
7250 (mi_interpreter_init): Hook the above.
7251 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7252 while -break-* commands are executing.
7253 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7254 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7255 (mi_redirect): New.
7256 (mi_ui_out_impl): Hook in mi_redirect.
7257 (mi_field_skip): True to the name, skip the field, don't output
7258 a field with an empty value.
7259
7260 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7261 (gdbpy_breakpoint_deleted): Adjust.
7262 * tui/tui-hooks.c (tui_event_create_breakpoint)
7263 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7264
7265 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7266
7267 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7268 (procfs_remove_hw_watchpoint): Likewise.
7269
7270 2011-04-26 Michael Walle <michael@walle.cc>
7271
7272 * remote.c (remote_start_remote): Ack packet after sending the
7273 interrupt sequence.
7274
7275 2011-04-26 Yao Qi <yao@codesourcery.com>
7276
7277 * linux-nat.c: Move common macros to ...
7278 Include linux-ptrace.h.
7279 * common/linux-ptrace.h: ... here. New.
7280
7281 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7282
7283 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7284 !objfile_has_partial_symbols. New comment.
7285 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7286 SYM_READ_PSYMBOLS is not present. Extend the comment.
7287 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7288
7289 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7290
7291 * defs.h (ENUM_BITFIELD): Remove.
7292
7293 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7294 Eli Zaretskii <eliz@gnu.org>
7295
7296 * NEWS: Document the new gdbserver --once option.
7297
7298 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7299
7300 * MAINTAINERS: Update my email address.
7301
7302 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7303
7304 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7305 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7306 function call if __STDC_ISO_10646__ macro is defined.
7307 (intermediate_encoding): New prototype.
7308 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7309 to generate compile time error for unsupported gdb_wchar_t size.
7310 (ENDIAN_SUFFIX): New macro.
7311 (intermediate_encoding): New function.
7312
7313 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7314
7315 * ada-lang.c (struct add_partial_datum): Update the comment for
7316 expand_partial_symbol_name.
7317 (ada_add_partial_symbol_completions): Rename to ...
7318 (ada_expand_partial_symbol_name): ... here, change return type, update
7319 function comment, call symbol_completion_match instead of
7320 symbol_completion_add.
7321 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7322 and ada_expand_partial_symbol_name.
7323 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7324 FILE_MATCHER.
7325 (dw2_map_symbol_names): Remove.
7326 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7327 * psymtab.c (map_symbol_names_psymtab): Remove.
7328 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7329 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7330 order.
7331 (psym_functions): Unlist map_symbol_names_psymtab.
7332 (map_partial_symbol_names): Rename to ...
7333 (expand_partial_symbol_names): ... here, change the FUN type, call
7334 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7335 * psymtab.h (map_partial_symbol_names): Rename to ...
7336 (expand_partial_symbol_names): ... here, change the FUN type.
7337 * symfile.h (struct quick_symbol_functions): Update the description of
7338 expand_symtabs_matching. Remove map_symbol_names.
7339 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7340 (struct add_name_data): Update the comment for
7341 expand_partial_symbol_name.
7342 (add_partial_symbol_name): Rename to ...
7343 (expand_partial_symbol_name): ... here. Replace
7344 completion_list_add_name call by strncmp.
7345 (default_make_symbol_completion_list_break_on): Use now
7346 expand_partial_symbol_names and expand_partial_symbol_name.
7347 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7348
7349 2011-04-20 Tom Tromey <tromey@redhat.com>
7350
7351 * dwarf2read.c (save_gdb_index_command): Replace format
7352 documentation with a pointer to the manual.
7353
7354 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7355
7356 * regcache.c: Include remote.h.
7357 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7358 (regcache_dump): Handle regcache_dump_remote.
7359 (maintenance_print_remote_registers): New function.
7360 (_initialize_regcache): Install "maint print remote-registers"
7361 command.
7362 * remote.c (map_regcache_remote_table): New function, factored out
7363 from ...
7364 (init_remote_state): ... here.
7365 (remote_register_number_and_offset): New.
7366 * remote.h (remote_register_number_and_offset): Declare.
7367
7368 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7369
7370 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7371 null_ptid, assume and allow a NULL address space, instead of
7372 asking the target for the ptid's address space.
7373 * infrun.c (ptid_is_pid): Remove assertion.
7374
7375 2011-04-19 Tom Tromey <tromey@redhat.com>
7376
7377 * windows-tdep.c (windows_xfer_shared_library):
7378 * windows-nat.c (get_module_name, windows_make_so):
7379 * v850-tdep.c (v850_handle_pushm):
7380 * utils.c (null_cleanup, gdb_realpath):
7381 * ui-out.c (get_next_header):
7382 * tracepoint.c (clear_traceframe_info):
7383 * symtab.c (lookup_symtab):
7384 * serial.h (struct serial_ops):
7385 * mipsread.c (read_alphacoff_dynamic_symtab):
7386 * infcmd.c (print_return_value):
7387 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7388 * f-exp.y (parse_number):
7389 * exceptions.c (catch_exceptions):
7390 * dummy-frame.c (dummy_frame_this_id):
7391 * defs.h (struct cleanup):
7392 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7393 * arm-tdep.c (arm_push_dummy_call):
7394 * amd64-tdep.h (amd64_collect_xsave):
7395 * amd64-tdep.c (amd64_collect_xsave):
7396 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7397 * README (typing): Remove duplicate words.
7398 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7399 * infrun.c (siginfo_value_read): Fix typo.
7400 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7401 * top.c (source_line_number): Add comma.
7402
7403 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7404
7405 * thread.c (any_live_thread_of_process): Prioritize threads
7406 that are not executing.
7407 * gdbthread.h (any_live_thread_of_process): Update comment
7408 as per above change.
7409
7410 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7411
7412 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7413 (scan_xcoff_symtab): Likewise.
7414
7415 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7416
7417 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7418 inside if clause.
7419
7420 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7421 Pedro Alves <pedro@codesourcery.com>
7422
7423 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7424 variables to simplify code and avoid == operator at end of
7425 line as this is against GNU coding standards.
7426
7427 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7428
7429 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7430 lm_name to name_lm to avoid conflict with lm_name function.
7431
7432 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7433
7434 ARI fixes: Use only lowercase function name for static functions.
7435 * nto-tdep.c (LM_ADDR): Rename to...
7436 (lm_addr): New function name.
7437 (nto_relocate_section_addresses): Adapt to change above.
7438 * solib-sunos.c (LM_ADDR): Rename to...
7439 (lm_addr): New function name.
7440 (LM_NEXT): Rename to...
7441 (lm_next): New function name.
7442 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7443 function name changes above.
7444 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7445 (lm_addr_from_link_map): New function name.
7446 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7447 (has_lm_dynamic_from_link_map): New function name.
7448 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7449 (lm_dynamic_from_link_map): New function name.
7450 (LM_ADDR_CHECK): Rename to...
7451 (lm_addr_check): New function name.
7452 (LM_NEXT): Rename to...
7453 (lm_next): New function name.
7454 (LM_PREV): Rename to...
7455 (lm_prev): New function name.
7456 (LM_NAME): Rename to...
7457 (lm_name): New function name.
7458 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7459 (ignore_first_link_map_entry): New function name.
7460 (svr4_keep_data_in_core): Adapt to function name changes above.
7461 (svr4_current_sos): Likewise.
7462 (enable_break): Likewise.
7463 (svr4_relocate_section_addresses): Likewise.
7464
7465 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7466
7467 ARI cleanup.
7468 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7469 sprintf. Simplify code and avoid loosing memory.
7470 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7471 (call0_frame_cache): Remove && operator from end of line.
7472
7473 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7474
7475 Fix libraries displacement if they change whether they were prelinked.
7476 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7477 does not match. Comment why.
7478
7479 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7480
7481 * corelow.c: Include wrapper.h.
7482 (core_open): Call now gdb_target_find_new_threads.
7483 * wrapper.c: Include target.h.
7484 (gdb_target_find_new_threads): New.
7485 * wrapper.h (gdb_target_find_new_threads): New declaration.
7486
7487 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7488
7489 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7490 even if !TARGET_HAS_EXECUTION.
7491
7492 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7493
7494 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7495 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7496 bfd_get_synthetic_symtab.
7497 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7498 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7499 parameter parent, remove the call to add_separate_debug_objfile.
7500 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7501 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7502 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7503 parent, new comment for it, call add_separate_debug_objfile for it.
7504 (symbol_file_add_separate): Pass objfile as the parameter parent,
7505 remove the call to add_separate_debug_objfile.
7506 (symbol_file_add_from_bfd): New parameter parent, pass it.
7507 (symbol_file_add): Pass NULL to the new parameter parent.
7508 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7509
7510 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7511
7512 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7513 BSF_SYNTHETIC.
7514
7515 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7516
7517 Fix Python access to inlined frames.
7518 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7519 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7520
7521 2011-04-15 Tom Tromey <tromey@redhat.com>
7522
7523 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7524
7525 2011-04-15 Gary Benson <gbenson@redhat.com>
7526
7527 * MAINTAINERS: Add myself to write-after-approval section.
7528
7529 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7530
7531 * remote-sim.c (sim_command_completer): New function.
7532 (_initialize_remote_sim): Set completer to sim_command_completer.
7533
7534 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7535
7536 * breakpoint.c (print_exception_catchpoint): Rename to ...
7537 (print_it_exception_catchpoint): ... this.
7538 (gnu_v3_exception_catchpoint_ops): Update with new name
7539 for print_it_exception_catchpoint.
7540
7541 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7542
7543 * MAINTAINERS: Add myself for write after approval privileges.
7544
7545 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7546
7547 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7548
7549 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7550
7551 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7552
7553 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7554
7555 * breakpoint.c (save_breakpoints): Verify whether
7556 breakpoint_ops.print_recreate is defined before calling it.
7557
7558 2011-04-11 Gary Benson <gbenson@redhat.com>
7559
7560 Fix failure with --enable-maintainer-mode.
7561 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7562
7563 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7564
7565 Code cleanup.
7566 * symtab.c (search_symbols): Reorder the KIND description in the
7567 function comment. Remove the unused 4th element of types, types2,
7568 types3 and types4. New gdb_assert on KIND.
7569 (symtab_symbol_info): Remove the unused 4th element of classnames.
7570 New gdb_assert on KIND.
7571 * symtab.h (enum search_domain): New warning in the enum comment.
7572 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7573 TYPES_DOMAIN.
7574
7575 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7576
7577 Fix crash of gdb save-index on a STABS file.
7578 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7579 PSYMTABS_ADDRMAP.
7580
7581 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7582
7583 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7584 * dwarf2read.c: Include ctype.h.
7585 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7586 functions.
7587 (dwarf2_add_field): Fix new_field->accessibility by calling
7588 dwarf2_default_access_attribute. Restructure setting accessibility
7589 vs. virtuality.
7590 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7591 is_private and is_protected by calling
7592 dwarf2_default_access_attribute.
7593
7594 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7595
7596 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7597 to the initialization.
7598
7599 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7600
7601 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7602 initalization.
7603
7604 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7605
7606 Remove support for old Cygwin 1.5 versions.
7607 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7608 function on old Cygwin version.
7609 * windows-nat.c: Remove cygwin version check and always define
7610 __USEWIDE for Cygwin compilation.
7611
7612 2011-04-07 Yao Qi <yao@codesourcery.com>
7613
7614 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7615 and TO.
7616 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7617 (arm_copy_svc): Remove parameters INSN and TO.
7618 (decode_svc_copro): Update caller.
7619 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7620 from function pointer `copy_svc_os'.
7621
7622 2011-04-07 Yao Qi <yao@codesourcery.com>
7623
7624 * arm-tdep.c (cleanup_branch): Set a correct return address in
7625 LR for ARM and Thumb.
7626
7627 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7628
7629 Code cleanup.
7630 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7631 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7632 in the function comment, a new note on values compatibility.
7633 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7634 * symtab.h (SYMBOL_HASH_NEXT): New.
7635
7636 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7637
7638 * ppc-linux-nat.c (check_condition): Add len output parameter.
7639 Set it based on the memory region referenced in the condition
7640 expression. Update all callers.
7641
7642 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7643
7644 Fix crash regression on systems featuring .gdb_index.
7645 * objfiles.c (free_objfile): Move the
7646 forget_cached_source_info_for_objfile call earlier. Comment it.
7647 Extend the comment for objfile_free_data.
7648
7649 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7650
7651 Fix regression of displaying the debug format.
7652 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7653 subfile.
7654
7655 2011-04-04 Tom Tromey <tromey@redhat.com>
7656
7657 * cli/cli-interp.c (struct captured_execute_command_args):
7658 Remove.
7659 (do_captured_execute_command): Remove.
7660 (safe_execute_command): Use TRY_CATCH.
7661 * cli/cli-script.c (struct wrapped_read_command_file_args):
7662 Remove.
7663 (wrapped_read_command_file): Remove.
7664 (script_from_file): Use TRY_CATCH.
7665 * exceptions.c (catch_exception): Remove.
7666 * exceptions.h (catch_exception): Remove.
7667 (deprecated_throw_reason): Update comment.
7668 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7669 argument to 'context'.
7670 (mi_execute_command): Use TRY_CATCH.
7671 * remote.c (struct start_remote_args): Remove.
7672 (remote_start_remote): Update; change arguments.
7673 (remote_open_1): Use TRY_CATCH.
7674
7675 2011-04-04 Tom Tromey <tromey@redhat.com>
7676
7677 * tracepoint.c (scope_info): Update.
7678 * symtab.c (decode_line_spec): Update.
7679 * python/python.c (gdbpy_decode_line): Update.
7680 * linespec.h (decode_line_1): Update.
7681 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7682 (decode_compound, find_method, symtab_from_filename)
7683 (decode_variable): Likewise.
7684 * cli/cli-cmds.c (edit_command): Update.
7685 (list_command): Update.
7686 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7687 argument.
7688 (create_breakpoint): Update.
7689 (until_break_command): Update.
7690 (addr_string_to_sals): Update.
7691 (decode_line_spec_1): Update.
7692
7693 2011-04-04 Tom Tromey <tromey@redhat.com>
7694
7695 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7696 (do_captured_parse_breakpoint): Remove.
7697 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7698 Use TRY_CATCH directly.
7699
7700 2011-04-04 Tom Tromey <tromey@redhat.com>
7701
7702 * symtab.h (free_symtab): Remove.
7703 (forget_cached_source_info_for_objfile): Declare.
7704 * symmisc.c (free_symtab): Remove.
7705 * source.c (forget_cached_source_info_for_objfile): New function.
7706 (forget_cached_source_info): Use it.
7707 * objfiles.c (free_objfile): Simplify check before calling
7708 clear_current_source_symtab_and_line. Call
7709 forget_cached_source_info_for_objfile.
7710
7711 2011-04-04 Tom Tromey <tromey@redhat.com>
7712
7713 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7714 (new_symtab): Don't set `free_code' on symtab.
7715 (new_linetable): Properly handle size==0.
7716 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7717 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7718 free_func.
7719 * jv-lang.c (struct jv_per_objfile_data): New.
7720 (jv_per_objfile_free): Free the data.
7721 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7722 (get_java_class_symtab): Set the `dict' field on the
7723 jv_per_objfile_data.
7724 (free_class_block): Remove.
7725 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7726 the symtab.
7727
7728 2011-04-04 Tom Tromey <tromey@redhat.com>
7729
7730 * symfile.c (reread_symbols): Update.
7731 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7732 field.
7733 * objfiles.c (allocate_objfile): Update.
7734 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7735 declare.
7736 * cp-namespace.c (lookup_symbol_file): Don't call
7737 lookup_possible_namespace_symbol.
7738 (initialize_namespace_symtab, get_possible_namespace_block)
7739 (free_namespace_block, cp_check_possible_namespace_symbols)
7740 (check_possible_namespace_symbols_loop)
7741 (check_one_possible_namespace_symbol)
7742 (lookup_possible_namespace_symbol): Remove.
7743 (maintenance_cplus_namespace): Replace with notice.
7744 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7745
7746 2011-04-04 Tom Tromey <tromey@redhat.com>
7747
7748 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7749 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7750 * symmisc.c (free_symtab): Don't free debugformat.
7751 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7752 (record_debugformat, record_producer): Document.
7753 * buildsym.c (end_symtab): Don't save debugformat and producer
7754 names on obstack.
7755 (end_symtab): Don't free debugformat and producer fields.
7756 (record_debugformat): Don't call xstrdup.
7757 (record_producer): Likewise.
7758
7759 2011-04-04 Tom Tromey <tromey@redhat.com>
7760
7761 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7762 (source_line_charpos, source_charpos_line): Remove.
7763
7764 2011-04-04 Tom Tromey <tromey@redhat.com>
7765
7766 * symtab.h (domain_enum): Split in two...
7767 (enum search_domain): New.
7768 (search_symbols): Update.
7769 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7770 redundant declarations.
7771 (search_symbols): Change 'kind' argument to search_domain.
7772 Update.
7773 (print_symbol_info): Likewise.
7774 (symtab_symbol_info): Likewise.
7775 * symfile.h (struct quick_symbol_functions)
7776 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7777 <expand_symtabs_matching>: Likewise.
7778 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7779 (expand_symtabs_matching_via_partial): Update.
7780 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7781 (dw2_expand_symtabs_for_function): Update.
7782 * block.h: Moved anonymous enum...
7783 * defs.h (enum block_enum): ... here. Now named.
7784
7785 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7786
7787 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7788 * version.in: Bump version to 7.3.50.20110403-cvs.
7789
7790 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7791
7792 * NEWS: Create a new section for the next release branch.
7793 Rename the section of the current branch, now that it has
7794 been cut.
7795
7796 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7797
7798 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7799 for "fpscr" in target description.
7800
7801 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7802
7803 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7804 initialize it. Delay HASH initialization. Strip the part after open
7805 parenthesis for languages with qualifiers. Call do_cleanups.
7806
7807 2011-04-01 Tom Tromey <tromey@redhat.com>
7808
7809 * utils.c (report_command_stats): Don't print `-' for negative
7810 number.
7811
7812 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7813
7814 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7815 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7816 typedefs.
7817
7818 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7819
7820 * breakpoint.h (bpdisp_text): Add declaration.
7821 * breakpoint.c (bpdisp_text): Make non-static.
7822 * ada-lang.c: #include "mi/mi-common.h".
7823 (print_it_exception): Rewrite to improve GDB/MI output.
7824
7825 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7826
7827 * arm-tdep.h (struct address_space): Add forward declaration.
7828
7829 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7830
7831 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7832 * arm-tdep.c (arm_override_mode): New global.
7833 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7834 execution mode heuristics.
7835 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7836 second single-step breakpoint if needed, using
7837 arm_insert_single_step_breakpoint.
7838 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7839 ARM execution mode, do not call thumb_get_next_pc_raw.
7840 (arm_get_next_pc): Encode execution mode in return value. Call
7841 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7842 (arm_insert_single_step_breakpoint): New function.
7843 (arm_software_single_step): Call it.
7844 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7845 argument to return execution mode of sigreturn target.
7846 (arm_linux_syscall_next_pc): Use it.
7847 (arm_linux_copy_svc): Update call.
7848 (arm_linux_software_single_step): Call
7849 arm_insert_single_step_breakpoint.
7850
7851 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7852
7853 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7854 the comment.
7855
7856 2011-03-31 Tom Tromey <tromey@redhat.com>
7857
7858 * varobj.c (update_dynamic_varobj_children): Properly handle
7859 errors from iterator.
7860
7861 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7862
7863 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7864 struct linkage name twice.
7865
7866 2011-03-31 Tom Tromey <tromey@redhat.com>
7867
7868 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7869 missing ">" to message.
7870
7871 2011-03-31 Tom Tromey <tromey@redhat.com>
7872
7873 * varobj.c (instantiate_pretty_printer): Remove duplicate
7874 'return'.
7875
7876 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7877
7878 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7879 if neither saved value nor register available (e.g. signal frame).
7880
7881 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7882
7883 * macroexp.c (expand): Avoid uninitialized variable
7884 compiler warning.
7885
7886 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7887
7888 * breakpoint.c (break_range_command): Fix typo in comment.
7889
7890 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7891 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7892
7893 Implement support for PowerPC BookE ranged breakpoints.
7894 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7895 * breakpoint.h (struct bp_target_info) <length>: New member
7896 variable.
7897 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7898 instead of struct breakpoint as argument, and also add ASPACE
7899 and BP_ADDR arguments. Update all callers.
7900 (struct breakpoint_ops) <print_one_detail>: New method.
7901 (struct breakpoint) <addr_string_range_end>: New member variable.
7902 * breakpoint.c (breakpoint_location_address_match): Add function
7903 prototype.
7904 (insert_bp_location): Set bl->target_info.length.
7905 (breakpoint_here_p): Call breakpoint_location_address_match.
7906 (moribund_breakpoint_here_p): Likewise.
7907 (regular_breakpoint_inserted_here_p): Likewise.
7908 (breakpoint_thread_match): Likewise.
7909 (bpstat_stop_status): Likewise.
7910 (bpstat_check_location): Move call to
7911 breakpoint_ops.breakpoint_hit to the top.
7912 (print_one_breakpoint_location): Call
7913 breakpoint_ops.print_one_detail if available.
7914 (breakpoint_address_match_range): New function.
7915 (breakpoint_location_address_match): Likewise.
7916 (breakpoint_locations_match): Compare the length field of the
7917 locations too.
7918 (hw_breakpoint_used_count): Count resources used by all locations
7919 in a breakpoint, and use breakpoint_ops.resources_needed if
7920 available.
7921 (breakpoint_hit_ranged_breakpoint): New function.
7922 (resources_needed_ranged_breakpoint): Likewise.
7923 (print_it_ranged_breakpoint): Likewise.
7924 (print_one_ranged_breakpoint): Likewise.
7925 (print_one_detail_ranged_breakpoint): Likewise.
7926 (print_mention_ranged_breakpoint): Likewise.
7927 (print_recreate_ranged_breakpoint): Likewise.
7928 (ranged_breakpoint_ops): New structure.
7929 (find_breakpoint_range_end): New function.
7930 (break_range_command): Likewise.
7931 (delete_breakpoint): Free addr_string_range_end.
7932 (update_breakpoint_locations): Add SALS_END argument. Update
7933 all callers. Calculate breakpoint length if a non-zero SALS_END
7934 is given. Call breakpoint_locations_match instead of
7935 breakpoint_address_match.
7936 (reset_breakpoint): Find SaL of the end of the range if B is a
7937 ranged breakpoint.
7938 (_initialize_breakpoint): Register break-range command.
7939 * defs.h (print_core_address): Add function prototype.
7940 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7941 function.
7942 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7943 (ppc_linux_remove_hw_breakpoint): Likewise.
7944 (_initialize_ppc_linux_nat): Initialize
7945 to_ranged_break_num_registers.
7946 * target.c (update_current_target): Add comment about
7947 to_ranged_break_num_registers.
7948 (target_ranged_break_num_registers): New function.
7949 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7950 New method.
7951 (target_ranged_break_num_registers): Add function prototype.
7952 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7953 * utils.c (print_core_address): ... here.
7954
7955 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7956
7957 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7958 variable compiler warning.
7959
7960 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7961
7962 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7963 code from here ...
7964 (re_set_breakpoint): ... to here ...
7965 (addr_string_to_sals): ... and here.
7966
7967 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7968
7969 * Makefile.in (SFILES): Add missing C sources.
7970 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7971 Add missing headers.
7972
7973 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7974
7975 * .gitignore: New file.
7976
7977 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7978
7979 * NEWS: Mention new cfi device simulation.
7980
7981 2011-03-29 Tom Tromey <tromey@redhat.com>
7982
7983 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7984 otherwise anonymous types.
7985 (dwarf2_name): Likewise.
7986 * valops.c (value_struct_elt_for_reference): Refine artificial
7987 type logic. Call error if j==-1.
7988
7989 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7990
7991 Fix false GCC warning.
7992 * infcall.c (find_function_addr): Initialize funaddr.
7993
7994 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7995
7996 Fix mingw compilation with --enable-targets=all.
7997 * remote-mips.c (gdb_usleep.h): Include header.
7998 (mips_enter_debug): Use gdb_usleep instead of sleep.
7999
8000 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8001
8002 Support resolution of STT_GNU_IFUNC via breakpoints.
8003 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
8004 bp_gnu_ifunc_resolver_return.
8005 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
8006 the loop. Support bp_gnu_ifunc_resolver and
8007 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
8008 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8009 breakpoints.
8010 (bptype_string, print_one_breakpoint_location): Support
8011 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8012 (user_settable_breakpoint): Return true also for
8013 bp_gnu_ifunc_resolver.
8014 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8015 bp_gnu_ifunc_resolver_return.
8016 (set_breakpoint_location_function): New parameter explicit_loc,
8017 describe it. Call find_pc_partial_function_gnu_ifunc with new
8018 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8019 EXPLICIT_LOC is not set.
8020 (set_raw_breakpoint): Set EXPLICIT_LOC for
8021 set_breakpoint_location_function.
8022 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8023 set_breakpoint_location_function.
8024 (mention): Support bp_gnu_ifunc_resolver and
8025 bp_gnu_ifunc_resolver_return.
8026 (add_location_to_breakpoint): Set EXPLICIT_LOC for
8027 set_breakpoint_location_function.
8028 (update_breakpoint_locations): Remove static.
8029 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8030 bp_gnu_ifunc_resolver_return.
8031 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8032 bp_gnu_ifunc_resolver_return.
8033 (update_breakpoint_locations): New declaration.
8034 * elfread.c: Include gdbthread.h and regcache.h.
8035 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8036 functions.
8037 (elf_gnu_ifunc_fns): Install them.
8038 * minsyms.c (stub_gnu_ifunc_resolver_stop)
8039 (stub_gnu_ifunc_resolver_return_stop): New functions.
8040 (stub_gnu_ifunc_fns): Install them.
8041 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8042 and gnu_ifunc_resolver_return_stop.
8043 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8044
8045 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8046
8047 STT_GNU_IFUNC reader implementation.
8048 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8049 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8050 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8051 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8052 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8053 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8054 (elf_gnu_ifunc_resolve_addr): New.
8055 (elf_symfile_read): Call elf_rel_plt_read.
8056 (elf_gnu_ifunc_fns): New.
8057 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8058 Install elf_gnu_ifunc_fns.
8059 * infcall.c (find_function_return_type): New function.
8060 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8061 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8062 (stub_gnu_ifunc_resolve_name): New functions.
8063 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8064 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8065 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8066
8067 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8068
8069 Code cleanup for later STT_GNU_IFUNC support.
8070 * infcall.c (find_function_addr): Remove variable code, use explicit
8071 dereferences for it. Move VALUE_TYPE initialization later.
8072
8073 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8074
8075 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8076 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8077 (clear_pc_function_cache): Clear it.
8078 (find_pc_partial_function): Rename to ...
8079 (find_pc_partial_function_gnu_ifunc): ... this function. New
8080 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8081 (find_pc_partial_function): New wrapper for this function.
8082 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8083
8084 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8085
8086 GDB internal type support for STT_GNU_IFUNC.
8087 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8088 (elf_symtab_read): Set mst_text_gnu_ifunc for
8089 BSF_GNU_INDIRECT_FUNCTION.
8090 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8091 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8092 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8093 nodebug_got_plt_symbol.
8094 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8095 (TYPE_GNU_IFUNC): New.
8096 (struct main_type): New field flag_gnu_ifunc.
8097 (struct builtin_type): New field builtin_func_func.
8098 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8099 nodebug_got_plt_symbol.
8100 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8101 (in_gnu_ifunc_stub): New.
8102 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8103 mst_text_gnu_ifunc.
8104 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8105 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8106 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8107 in_gnu_ifunc_stub.
8108 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8109 * symtab.c (search_symbols): Likewise.
8110 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8111 and mst_slot_got_plt.
8112 (in_gnu_ifunc_stub): New declaration.
8113
8114 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8115
8116 Support a ring of related breakpoints.
8117 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8118 other functions, add gdb_assert.
8119 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8120 watchpoint_del_at_next_stop.
8121 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8122 (bpstat_stop_status): Handle ring in related_breakpoint.
8123 (set_raw_breakpoint_without_location): Initialize ring in
8124 related_breakpoint.
8125 (delete_breakpoint): Handle ring in related_breakpoint, use
8126 watchpoint_del_at_next_stop.
8127 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8128
8129 2011-03-28 Tom Tromey <tromey@redhat.com>
8130
8131 PR symtab/12441:
8132 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8133 with `language_minimal'.
8134
8135 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8136
8137 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8138 instead of checking for STT_ARM_TFUNC symbol type.
8139
8140 2011-03-25 Tom Tromey <tromey@redhat.com>
8141
8142 * linespec.c (symbol_found): Restore line-based result for
8143 non-LOC_LABEL symbols.
8144
8145 2011-03-25 Kai Tietz <ktietz@redhat.com>
8146
8147 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8148 instead of strcmp for comparison.
8149 (tui_source_is_displayed): Likewise.
8150 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8151
8152 2011-03-24 Mark Wielaard <mjw@redhat.com>
8153
8154 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8155 complaint.
8156 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8157 (find_partial_die_in_comp_unit): Likewise in comment.
8158 (read_attribute_value): Likewise.
8159 (lookup_die_type): Likewise.
8160 (dwarf_form_name): Likewise.
8161 (dump_die_shallow): Likewise.
8162 (follow_die_ref_or_sig): Likewise.
8163
8164 2011-03-24 Tom Tromey <tromey@redhat.com>
8165
8166 PR breakpoints/11816:
8167 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8168 (decode_compound): Update.
8169 (find_function_symbol): New function.
8170 (decode_dollar): Update.
8171 (decode_label): Add 'function_symbol' parameter. Handle
8172 function-relative labels.
8173 (decode_variable): Update.
8174 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8175 not its line. Set `special_display' and canonical name for
8176 labels.
8177
8178 2011-03-24 Tom Tromey <tromey@redhat.com>
8179
8180 * linespec.h (struct linespec_result) <special_display>: New
8181 field.
8182 * breakpoint.h (struct breakpoint) <display_canonical>: New
8183 field.
8184 * breakpoint.c (print_breakpoint_location): Respect
8185 display_canonical.
8186 (create_breakpoint_sal): Add 'display_canonical' parameter.
8187 (create_breakpoints_sal): Update.
8188 (create_breakpoint): Update.
8189
8190 2011-03-24 Tom Tromey <tromey@redhat.com>
8191
8192 * symtab.c (decode_line_spec): Update.
8193 * linespec.c (build_canonical_line_spec): Change type of
8194 'canonical'.
8195 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8196 (find_method, decode_all_digits, decode_dollar, decode_label)
8197 (symbol_found): Likewise.
8198 (init_linespec_result): New function.
8199 * breakpoint.c (struct captured_parse_breakpoint_args)
8200 <canonical_p>: New field, replaces addr_string_p.
8201 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8202 'addr_string'.
8203 (parse_breakpoint_sals): Likewise.
8204 (do_captured_parse_breakpoint): Update.
8205 (create_breakpoint): Use struct linespec_result.
8206 (until_break_command): Update.
8207 (breakpoint_re_set_one): Update.
8208 (decode_line_spec_1): Update.
8209 * linespec.h (struct linespec_result): New.
8210 (init_linespec_result): Declare.
8211
8212 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8213
8214 * regcache.c (regcache_raw_read): If the target didn't supply a
8215 given raw register, mark it as unavailable.
8216
8217 2011-03-23 Kai Tietz <ktietz@redhat.com>
8218
8219 * breakpoint.c (clear_command): Use filename_cmp
8220 instead of strcmp for comparison.
8221 * buildsym.c (watch_main_source_file_lossage): Likewise.
8222 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8223 checking just for slash.
8224 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8225 strrchr and filename_cmp instead of strcmp for filenames.
8226 (add_old_header_file): Use filename_cmp
8227 instead of strcmp for comparison.
8228 * exec.c (exec_set_section_address): Likewise.
8229 * macrotab.c (macro_lookup_inclusion): Likewise.
8230 (macro_lookup_inclusion): Likewise.
8231 * elfread.c (_initialize_elfread): Likewise.
8232 (elfstab_offset_sections): Likewise.
8233 (elfstab_offset_sections): Use lbasename instead of
8234 strrchr.
8235 * mdebugread.c (parse_partial_symbols): Likewise.
8236 (arse_partial_symbols): Use filename_(n)cmp instead of
8237 str(n)cmp for comparison.
8238 * minsyms.c (lookup_minimal_symbol): Likewise.
8239 * psymtab.c (read_psymtabs_with_filename): Likewise.
8240 * solib.c (solib_read_symbols): Likewise.
8241 (reload_shared_libraries_1): Likewise.
8242 * symmisc.c (maintenance_print_symbols): Likewise.
8243 * symfile.c (separate_debug_file_exists): Likewise.
8244 (reread_symbols): Likewise.
8245 (find_separate_debug_file_by_debuglink): Likewise.
8246 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8247 * source.c (add_path): Likewise.
8248 * symtab.c (filename_seen): Likewise.
8249 (file_matches): Likewise.
8250 (print_symbol_info): Likewise.
8251 (maybe_add_partial_symtab_filename): Likewise.
8252 (make_source_files_completion_list): Likewise.
8253 * xml-syscall.c (init_sysinfo): Likewise.
8254 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8255 IS_DIR_SEPARATOR for checking for trailing path separator.
8256
8257 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8258
8259 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8260 label abort_expression.
8261 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8262 DWARF_VALUE_OPTIMIZED_OUT.
8263
8264 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8265
8266 Code cleanup.
8267 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8268 to linkage_name. Invert its value. Update the function comment.
8269 (c_type_print_varspec_suffix): Invert it at the caller.
8270 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8271
8272 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8273
8274 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8275 errors when reading the `stop_pc'.
8276 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8277 get_frame_pc.
8278
8279 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8280
8281 * NEWS: Document gdb.Write stream keyword.
8282
8283 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8284
8285 Revert:
8286 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8287 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8288 (dwarf2_add_field): Fix new_field->accessibility for
8289 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8290
8291 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8292
8293 PR python/12183
8294
8295 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8296 other error classes. Do not print stack trace.
8297
8298 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8299
8300 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8301 (dwarf2_add_field): Fix new_field->accessibility for
8302 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8303
8304 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8305
8306 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8307 encountering a load via a non-SP register.
8308
8309 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8310
8311 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8312 field in returned unwinder.
8313
8314 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8315
8316 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8317
8318 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8319
8320 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8321 of xmalloc.
8322
8323 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8324
8325 * frame.c (frame_unwind_register): Throw an error if unwinding the
8326 register failed.
8327 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8328 an unwind stop reason.
8329 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8330 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8331 UNWIND_UNAVAILABLE>: New.
8332 * inline-frame.c (inline_frame_unwind): Install
8333 default_frame_unwind_stop_reason.
8334 * frame-unwind.c: Include "exceptions.h".
8335 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8336 (default_frame_unwind_stop_reason): New.
8337 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8338 (default_frame_unwind_stop_reason): Declare.
8339 (struct frame_unwind) <stop_reason>: New function pointer.
8340
8341 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8342 * dwarf2-frame.c: Include exceptions.h.
8343 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8344 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8345 computing the CFA. If such an error was thrown, set
8346 unavailable_retaddr.
8347 (dwarf2_frame_unwind_stop_reason): New.
8348 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8349 unavailable.
8350 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8351 (dwarf2_signal_frame_unwind): Ditto.
8352
8353 * amd64-tdep.c: Include "exceptions.h".
8354 (struct amd64_frame_cache): New field "base_p".
8355 (amd64_init_frame_cache): Clear it.
8356 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8357 Avoid reading registers with functions that throw if the register
8358 is not necessary to compute the frame base.
8359 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8360 swallowing NOT_AVAILABLE_ERROR.
8361 (amd64_frame_unwind_stop_reason): New.
8362 (amd64_frame_this_id): Don't build a frame id if the frame base
8363 was unavailable.
8364 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8365 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8366 base_p if the frame base was computable.
8367 (amd64_sigtramp_frame_unwind_stop_reason): New.
8368 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8369 frame base was unavailable.
8370 (amd64_sigtramp_frame_unwind): Install
8371 amd64_sigtramp_frame_unwind_stop_reason.
8372 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8373 base_p if the frame base was computable.
8374 (amd64_epilogue_frame_unwind_stop_reason): New.
8375 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8376 frame base was unavailable.
8377 (amd64_epilogue_frame_unwind): Install
8378 amd64_epilogue_frame_unwind_stop_reason.
8379 * i386-tdep.c: Include "exceptions.h".
8380 (struct i386_frame_cache): New field "base_p".
8381 (i386_init_frame_cache): Clear it.
8382 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8383 Avoid reading registers with functions that throw if the register
8384 is not necessary to compute the frame base.
8385 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8386 swallowing NOT_AVAILABLE_ERROR.
8387 (i386_frame_unwind_stop_reason): New.
8388 (i386_frame_this_id): Don't build a frame id if the frame base was
8389 unavailable.
8390 (i386_frame_prev_register): Handle unavailable SP.
8391 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8392 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8393 base_p if the frame base was computable.
8394 (i386_epilogue_frame_unwind_stop_reason): New.
8395 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8396 base was unavailable.
8397 (i386_epilogue_frame_unwind): Install
8398 i386_epilogue_frame_unwind_stop_reason.
8399 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8400 base_p if the frame base was computable.
8401 (i386_sigtramp_frame_unwind_stop_reason): New.
8402 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8403 base was unavailable.
8404 (i386_sigtramp_frame_unwind): Install
8405 i386_sigtramp_frame_unwind_stop_reason.
8406 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8407 type's size, not the register's.
8408 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8409
8410 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8411 default_frame_unwind_stop_reason.
8412 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8413 (alpha_heuristic_frame_unwind): Ditto.
8414 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8415 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8416 * avr-tdep.c (avr_frame_unwind): Ditto.
8417 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8418 Ditto.
8419 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8420 * frv-tdep.c (frv_frame_unwind): Ditto.
8421 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8422 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8423 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8424 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8425 (hppa_stub_frame_unwind): Ditto.
8426 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8427 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8428 (ia64_libunwind_frame_unwind)
8429 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8430 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8431 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8432 * m32c-tdep.c (m32c_unwind): Ditto.
8433 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8434 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8435 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8436 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8437 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8438 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8439 * mep-tdep.c (mep_frame_unwind): Ditto.
8440 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8441 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8442 (mips_stub_frame_unwind): Ditto.
8443 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8444 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8445 * mt-tdep.c (mt_frame_unwind): Ditto.
8446 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8447 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8448 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8449 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8450 (s390_sigtramp_frame_unwind): Ditto.
8451 * score-tdep.c (score_prologue_unwind): Ditto.
8452 * sh-tdep.c (sh_frame_unwind): Ditto.
8453 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8454 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8455 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8456 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8457 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8458 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8459 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8460 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8461 (sparc64obsd_trapframe_unwind): Ditto.
8462 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8463 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8464 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8465 * v850-tdep.c (v850_frame_unwind): Ditto.
8466 * vax-tdep.c (vax_frame_unwind): Ditto.
8467 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8468 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8469 * xtensa-tdep.c (xtensa_unwind): Ditto.
8470
8471 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8472
8473 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8474 there's always a frame. Use get_frame_pc_if_available instead of
8475 get_frame_pc, and if there's no PC available, don't look up a
8476 symtab.
8477
8478 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8479
8480 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8481 unavailable PC.
8482
8483 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8484
8485 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8486 gracefully.
8487
8488 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8489
8490 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8491 * frame.c (frame_unwind_caller_pc_if_available): New.
8492 * stack.c (frame_info): Handle unavailable PC.
8493
8494 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8495
8496 * frame.c (frame_unwind_pc): Rename to ...
8497 (frame_unwind_pc_if_available): ... this. New `pc' output
8498 parameter. Change return type to int. Gracefully handle
8499 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8500 happened, or 1 otherwise.
8501 (frame_unwind_pc): Reimplement on top of
8502 frame_unwind_pc_if_available.
8503 (get_frame_func): Rename to ...
8504 (get_frame_func_if_available): New `pc' output parameter. Change
8505 return type to int. Gracefully handle the PC not being available.
8506 (get_frame_func): Reimplement on top of
8507 get_frame_func_if_available.
8508 (select_frame): Handle the PC being unavailable.
8509 (get_prev_frame): Handle the PC being unavailable.
8510 (get_frame_pc_if_available): New.
8511 (get_frame_address_in_block_if_available): New.
8512 (find_frame_sal): Handle the frame PC not being available.
8513 * frame.h (get_frame_pc_if_available): Declare.
8514 (get_frame_address_in_block_if_available): Declare.
8515 (get_frame_func_if_available): Declare.
8516 * stack.c (print_frame_info): Handle the PC being unavailable.
8517 (find_frame_funname): Ditto.
8518 (print_frame): Handle the PC being unavailable.
8519 (get_frame_language): Ditto.
8520 * blockframe.c (get_frame_block): Ditto.
8521 * macroscope.c (default_macro_scope): Ditto.
8522 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8523
8524 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8525
8526 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8527 NOT_AVAILABLE_ERROR when evaluating the location expression.
8528
8529 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8530
8531 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8532 returning that the register piece is unavailable/optimized out.
8533 (write_pieced_value): Handle get_frame_register_bytes returning
8534 that the register piece is unavailable/optimized out when doing a
8535 read-modify write of a bitfield.
8536 * findvar.c (value_from_register): Handle get_frame_register_bytes
8537 returning that the register piece is unavailable/optimized out.
8538 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8539 and `unavailablep'. Throw error on bad debug info. Use
8540 frame_register instead of frame_register_read, to fill in the new
8541 arguments.
8542 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8543 and `unavailablep'.
8544 * valops.c: (value_assign): Adjust, and handle
8545 get_frame_register_bytes failing.
8546 * spu-tdep.c: Include exceptions.h.
8547 (spu_software_single_step): Adjust, and handle
8548 get_frame_register_bytes failing.
8549 (spu_get_longjmp_target): Ditto.
8550 * gdbarch.sh (register_to_value): Change to return int. New
8551 parameters `optimizedp' and `unavailablep'.
8552 * gdbarch.h, gdbarch.c: Regenerate.
8553 * i386-tdep.c (i386_register_to_value): Adjust to new
8554 gdbarch_register_to_value interface.
8555 * i387-tdep.c (i387_register_to_value): Ditto.
8556 * i387-tdep.h (i387_register_to_value): Ditto.
8557 * alpha-tdep.c (alpha_register_to_value): Ditto.
8558 * ia64-tdep.c (ia64_register_to_value): Ditto.
8559 * m68k-tdep.c (m68k_register_to_value): Ditto.
8560 * mips-tdep.c (mips_register_to_value): Ditto.
8561 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8562
8563 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8564
8565 * findvar.c (value_of_register): Mark the value as unavailable, if
8566 the register is unavailable.
8567 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8568 (frame_register): New `unavailablep' parameter.
8569 (frame_register_read): Update comment.
8570 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8571 Set it if the register is unavailable. If the register is
8572 unavailable, clear the output buffer.
8573 (frame_register): New `unavailablep' parameter. Pass it down.
8574 (frame_unwind_register): Adjust.
8575 (put_frame_register): Adjust.
8576 (frame_register_read): Adjust. Also return false if the register
8577 is not available.
8578 (frame_register_unwind_location): Adjust.
8579 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8580 is unavailable, mark the value accordingly.
8581 * stack.c (frame_info): Handle unavailable registers.
8582
8583 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8584
8585 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8586 simplify, using regcache_cooked_read.
8587
8588 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8589
8590 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8591 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8592 (regcache_raw_read_unsigned, regcache_raw_read_part)
8593 (regcache_cooked_read, regcache_cooked_read_signed)
8594 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8595 (regcache_cooked_read_ftype): Change return to enum
8596 register_status.
8597 * regcache.c: Include exceptions.h
8598 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8599 (do_cooked_read): Change return to enum register_status. Always
8600 forward to regcache_cooked_read.
8601 (regcache_raw_read): Change return to enum register_status. If
8602 the register is not REG_VALID, memset the buffer. Return the
8603 register's status.
8604 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8605 return the register's status.
8606 (regcache_raw_read_unsigned): Ditto.
8607 (regcache_cooked_read): Change return to enum register_status.
8608 Assert that with read-only regcaches, the register's status must
8609 be known. If the regcache is read-only, and the register is not
8610 REG_VALID, memset the buffer. Return the register's status.
8611 (regcache_cooked_read_signed): Change return to enum
8612 register_status. Handle non-REG_VALID registers and return the
8613 register's status.
8614 (regcache_cooked_read_unsigned): Change return to enum
8615 register_status. Handle non-REG_VALID registers and return the
8616 register's status.
8617 (regcache_xfer_part, regcache_raw_read_part)
8618 (regcache_cooked_read_part): Change return to enum
8619 register_status. Return the register's status.
8620 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8621 unavailable.
8622 (regcache_dump): Handle unavailable cooked registers.
8623 * frame.c (do_frame_register_read): Adjust interface to match
8624 regcache_cooked_read_ftype.
8625 * gdbarch.sh (pseudo_register_read): Change return to enum
8626 register_status.
8627 * gdbarch.h, gdbarch.c: Regenerate.
8628
8629 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8630 register_status.
8631 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8632 register_status. If reading a raw register indicates the raw
8633 register is not valid, return the raw register's status,
8634 otherwise, return REG_VALID.
8635 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8636 register_status. Handle non-REG_VALID raw registers and return
8637 the register's status.
8638 * arm-tdep.c (arm_neon_quad_read)
8639 (arm_pseudo_read): Change return to enum register_status. Handle
8640 non-REG_VALID raw registers and return the register's status.
8641 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8642 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8643 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8644 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8645 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8646 register_status.
8647 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8648 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8649 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8650 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8651 (m32c_pseudo_register_read): Change return to enum
8652 register_status. Adjust.
8653 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8654 enum register_status. Return the register's status.
8655 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8656 register_status. Return the register's status.
8657 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8658 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8659 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8660 * rs6000-tdep.c (move_ev_register_func): New typedef.
8661 (e500_move_ev_register): Use it. Change return to enum
8662 register_status. Return the register's status.
8663 (do_regcache_raw_read): New function.
8664 (do_regcache_raw_write): New function.
8665 (e500_pseudo_register_read): Change return to enum
8666 register_status. Return the register's status. Use
8667 do_regcache_raw_read.
8668 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8669 (dfp_pseudo_register_read): Change return to enum register_status.
8670 Return the register's status.
8671 (vsx_pseudo_register_read): Ditto.
8672 (efpr_pseudo_register_read): Ditto.
8673 (rs6000_pseudo_register_read): Ditto.
8674 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8675 register_status. Return the register's status.
8676 * sh64-tdep.c (pseudo_register_read_portions): New function.
8677 (sh64_pseudo_register_read): Change return to enum
8678 register_status. Use pseudo_register_read_portions. Return the
8679 register's status.
8680 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8681 register_status. Return the register's status.
8682 * sh-tdep.c (pseudo_register_read_portions): New function.
8683 (sh_pseudo_register_read): Change return to enum register_status.
8684 Use pseudo_register_read_portions. Return the register's status.
8685 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8686 enum register_status. Return the register's status.
8687 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8688 * spu-tdep.c (spu_pseudo_register_read_spu)
8689 (spu_pseudo_register_read): Ditto.
8690 * xtensa-tdep.c (xtensa_register_read_masked)
8691 (xtensa_pseudo_register_read): Ditto.
8692 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8693
8694 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8695
8696 * python/py-value.c (valpy_getitem): Fix formatting of error function
8697 call.
8698
8699 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8700
8701 ARI fixes: Add missing internationalization markups throughout
8702 C source files.
8703 * darwin-nat-info.c: Ditto.
8704 * record.c: Ditto.
8705 * remote.c: Ditto.
8706 * mi/mi-main.c: Ditto.
8707
8708 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8709
8710 ARI fixes: Add missing internationalization markups throughout
8711 yacc files.
8712 * c-exp.y: Ditto.
8713 * cp-name-parser.y: Ditto.
8714 * f-exp.y: Ditto.
8715 * m2-exp.y: Ditto.
8716 * objc-exp.y: Ditto.
8717 * p-exp.y: Ditto.
8718
8719 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8720
8721 ARI fixes: Messages should have no trailing new lines.
8722 * darwin-nat.c (mach_check_error): Remove trailing new line from
8723 warning function call message.
8724 * record.c (bfdcore_read): Idem for error call.
8725
8726 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8727
8728 * common/signals.c (target_signal_from_host): Add _ markup to error
8729 function call message.
8730 (target_signal_to_host): Add _ markup and remove trailing new line
8731 from warning call message.
8732 (target_signal_from_command): Add _ markup to error function call
8733 message.
8734
8735 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8736
8737 PR python/12149
8738
8739 * python/python.c (gdbpy_write): Accept a stream argument and
8740 operate to the appropriate stream.
8741 (gdbpy_flush): Likewise.
8742 (_initialize_python): Add stream constants.
8743 (finish_python_initialization): Add GdbOutputErrorFile class.
8744
8745 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8746
8747 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8748
8749 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8750
8751 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8752 to store_signed_integer. Add debug message when relocating CALL
8753 instructions. Fix formatting of debug message.
8754 * i386-tdep.c (i386_relocate_instruction): Ditto.
8755
8756 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8757
8758 * target.h (struct target_ops): Remove to_lookup_symbol field.
8759 (target_lookup_symbol): Delete macro.
8760 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8761 (update_current_target, setup_target_debug): Remove handling
8762 of to_lookup_symbol target_ops field.
8763 * ada-tasks.c (get_known_tasks_addr): Remove use of
8764 target_lookup_symbol.
8765 * coffread.c (coff_symtab_read): Likewise.
8766 * dbxread.c (read_dbx_symtab): Ditto.
8767
8768 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8769
8770 PR gdb/12116:
8771 * configure.ac: Add getthrds declaration check.
8772 * configure, config.in: Regenerate.
8773 * aix-thread.c (getthrds): Declare only if not already declared
8774 in procinfo.h. More declaration out of get_signaled_thread to
8775 global scope.
8776
8777 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8778
8779 * python/py-symtab.c: Populate symtab_object_methods,
8780 sal_object_methods.
8781 (stpy_is_valid): New function.
8782 (salpy_is_valid): Ditto.
8783 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8784 (sympy_is_valid): New function.
8785 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8786 (objfpy_is_valid): New function.
8787 * python/py-inferior.c: Populate inferior_object_methods.
8788 (infpy_is_valid): New function.
8789 * python/py-infthread.c: Populate thread_object_methods.
8790 (thpy_is_valid): New function.
8791 * python/py-block.c: Declare block_object_methods. Populate. Declare
8792 block_iterator_object_methods. Populate.
8793 (blpy_is_valid): New function.
8794 (blpy_iter_is_valid): Ditto.
8795
8796 2011-03-16 Keith Seitz <keiths@redhat.com>
8797
8798 * linespec.c (find_methods): Canonicalize NAME before looking
8799 up the symbol.
8800 (name_end): New function.
8801 (keep_name_info): New function.
8802 (decode_line_1): Use keep_name_info.
8803 (decode_compound): Likewise.
8804 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8805 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8806
8807 PR c++/12273
8808 * linespec.c (locate_first_half): Keep overload information, too.
8809 (decode_compound): Use a string to represent break characters
8810 to escape the loop.
8811 If P points to a break character, do not increment it.
8812 For C++ and Java, keep overload information and relevant keywords.
8813 If we cannot find a symbol, search the minimal symbols.
8814
8815 PR c++/11734
8816 * linespec.c (decode_compound): Rename SAVED_ARG to
8817 THE_REAL_SAVED_ARG.
8818 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8819 single-quotes.
8820 Pass a valid block to lookup_symbol.
8821 (lookup_prefix_sym): Likewise.
8822 (find_method): Construct search name based on SYM_CLASS instead
8823 of SAVED_ARG.
8824 * psymtab.c (lookup_partial_symbol): Add language parameter.
8825 (lookup_symbol_aux_psymtabs): Likewise.
8826 Don't assume that the psymtab we found was the right one. Search
8827 for the desired symbol in the symtab to be certain.
8828 (psymtab_search_name): New function.
8829 (lookup_partial_symbol): Use psymtab_search_name.
8830 Add language parameter.
8831 (read_symtabs_for_function): Add language parameter and pass to
8832 lookup_partial_symbol.
8833 (find_symbol_file_from_partial): Likewise.
8834
8835 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8836
8837 PR gdb/12528
8838 * dwarf2read.c (noop_record_line): New function.
8839 (dwarf_decode_lines): Ignore line tables for GCd functions.
8840
8841 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8842
8843 Fix ARI warnings about new lines at the end of messages, which
8844 are unneeded as there is a new line added at the end of the message
8845 automatically.
8846 * darwin-nat.c (darwin_stop_inferior): Ditto.
8847 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8848 * dfp.c (decimal_to_number): Ditto.
8849 * exec.c (print_section_info): Ditto.
8850 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8851 * osdata.c (get_osdata): Ditto.
8852 * record.c (bfdcore_write): Ditto.
8853 * remote-mips.c (mips_readchar): Ditto.
8854 * remote.c (read_ptid): Ditto.
8855 * ser-mingw.c (ser_windows_raw): Ditto.
8856 * tracepoint.c (add_local_symbols): Ditto.
8857 * windows-nat.c (fake_create_process): Ditto.
8858
8859 2011-03-16 Tom Tromey <tromey@redhat.com>
8860
8861 * tracepoint.c (stop_tracing): Don't declare.
8862 * event-top.c (after_char_processing_hook): Add `(void)'.
8863
8864 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8865
8866 * NEWS: Add Parameter sub-classing description.
8867
8868 2011-03-16 Kai Tietz <ktietz@redhat.com>
8869
8870 * MAINTAINERS: Update my e-mail address.
8871
8872 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8873
8874 * MAINTAINERS: Add myself for write after approval privileges.
8875
8876 2011-03-15 Michael Snyder <msnyder@vmware.com>
8877
8878 * frame.c (find_frame_sal): Assert sym is not null.
8879
8880 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8881
8882 * objc-lang.c (selectors_info): Check strchr for null result.
8883
8884 * stabsread.c (define_symbol): Guard against bad stabstring input.
8885
8886 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8887
8888 Remove trailing spaces and tabulations from pascal language
8889 support sources.
8890 p-exp.y: Ditto.
8891 p-lang.c: Ditto.
8892 p-lang.h: Ditto.
8893 p-valprint.c: Ditto.
8894
8895 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8896
8897 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8898 than LOW. Comment it.
8899 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8900 HIGHPC not strictly higher than LOWPC.
8901
8902 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8903
8904 Fix formatting of function declarations returning a pointer in
8905 previous commit.
8906 * varobj.c (varobj_add_child): Ditto.
8907 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8908 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8909
8910 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8911
8912 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8913 for the "generic" vector ABI used with GCC 4.3 and later.
8914 (ppc64_sysv_abi_return_value): Likewise.
8915
8916 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8917
8918 * infcall.c (call_function_by_hand): Function return value is
8919 always a non_lval, even when using struct_return.
8920
8921 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8922
8923 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8924 (map_display_numbers): New.
8925 (do_delete_display): New.
8926 (undisplay_command): Use map_display_numbers.
8927 (do_enable_disable_display): New.
8928 (enable_disable_display_command): New function.
8929 (enable_display): Delete.
8930 (enable_display_command): New.
8931 (disable_display_command): Reimplement.
8932 (_initialize_printcmd): Adjust "enable display" command to use
8933 `enable_display_command' as callback.
8934
8935 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8936
8937 * NEWS: Add Python breakpoint 'stop' operation.
8938
8939 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8940
8941 * NEWS: Delete duplicate entry. Fix typo.
8942
8943 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8944
8945 Fix ARI warning about function names in first column.
8946 Put prototype declaration on same line as return type.
8947 * objc-exp.y: Ditto.
8948 * p-exp.y: Ditto.
8949 * python/py-stopevent.h: Ditto.
8950 For long function names, split parameters to
8951 allow function name on same line as return type.
8952 * solib-pa64.c: Ditto.
8953 * varobj.c: Ditto.
8954 * varobj.h: Ditto.
8955 For long function declaration, use single line.
8956 * hppa-tdep.h: Ditto.
8957 * inferior.h: Ditto.
8958
8959 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8960
8961 * python/python.h: Declare gdbpy_should_stop and
8962 gdbpy_breakpoint_has_py_cond.
8963 * python/python.c: Add python.h to includes. Remove python.h from
8964 HAVE_PYTHON definition
8965 (gdbpy_should_stop): New dummy function.
8966 (gdbpy_breakpoint_has_py_cond): New dummy function.
8967 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8968 sub-classing capabilities.
8969 (gdbpy_should_stop): New function.
8970 (gdbpy_breakpoint_has_py_cond): New function.
8971 (local_setattro): New function.
8972 * breakpoint.c (condition_command): Add check for Python 'stop'
8973 operation.
8974 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8975 operation function as part of stop/continue tests.
8976
8977 2011-03-14 Tom Tromey <tromey@redhat.com>
8978
8979 PR gdb/12576:
8980 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8981 (needs_frame_dwarf_call): Likewise.
8982
8983 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8984
8985 Fix ARI warning about functions without parameters that do not
8986 use (void).
8987 * breakpoint.c (all_tracepoints): Replace () by (void).
8988 * f-exp.y (match_string_literal): Ditto.
8989 (yylex): Ditto.
8990 * m2-exp.y (yylex): Ditto.
8991 * mep-tdep.c (current_me_module): Ditto.
8992 (current_options): Ditto.
8993 (current_cop_data_bus_width): Ditto.
8994 (current_cr_names): Ditto.
8995 (current_cr_is_float): Ditto.
8996 (current_ccr_names): Ditto.
8997 * objc-exp.y (yylex): Ditto.
8998 * p-exp.y (yylex): Ditto.
8999 * remote.c (send_interrupt_sequence): Ditto.
9000 * tracepoint.c (current_trace_status): Ditto.
9001 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
9002 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
9003
9004 2011-03-11 Michael Snyder <msnyder@vmware.com>
9005
9006 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
9007 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9008 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9009 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9010 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9011
9012 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9013 (delete_async_event_handler): Ditto.
9014
9015 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9016
9017 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9018
9019 * top.c (set_verbose): Assert showcmd was found.
9020
9021 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
9022
9023 * xtensa-tdep.c (warning_once): Correct style issues.
9024
9025 2011-03-11 Yao Qi <yao@codesourcery.com>
9026
9027 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9028
9029 2011-03-11 Andreas Schwab <schwab@redhat.com>
9030
9031 * common/aclocal.m4: Remove.
9032
9033 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9034
9035 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9036 (xtensa_write_register, xtensa_read_register): Likewise.
9037 (xtensa_hextochar): Removed.
9038 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9039
9040 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9041
9042 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
9043 (xtensa_call0_frame_cache_t): Update comments. New fields added.
9044 (xtensa_alloc_frame_cache): Add initialization for new fields.
9045 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9046 (warning_once): New function.
9047 (xtensa_insn_kind): New item c0opc_and.
9048 (call0_classify_opcode): Add the case for AND instruction.
9049 (call0_track_op): Change arguments. New local variable litbase.
9050 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9051 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9052 in the prologue.
9053 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
9054 (call0_analyze_prologue): Update the comments. Change arguments.
9055 Add the variety of updates to handle extended prologues, which now can
9056 conduct dynamic stack adjustments.
9057 (call0_frame_cache): Likewise.
9058 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9059 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9060
9061 2011-03-10 Michael Snyder <msnyder@vmware.com>
9062
9063 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9064 (cmd_qtframe): Ditto.
9065 (cmd_qtbuffer): Ditto.
9066 (cmd_bigqtbuffer): Ditto.
9067
9068 2011-03-10 Tom Tromey <tromey@redhat.com>
9069
9070 * tracepoint.c (trace_actions_command): Update.
9071 * thread.c (thread_apply_command): Update.
9072 * reverse.c (delete_bookmark_command): Update.
9073 (bookmarks_info): Update.
9074 * printcmd.c (undisplay_command): Update.
9075 * memattr.c (mem_enable_command): Update.
9076 (mem_disable_command): Update.
9077 (mem_delete_command): Update.
9078 * inferior.c (detach_inferior_command): Update.
9079 (kill_inferior_command): Update.
9080 (remove_inferior_command): Update.
9081 * cli/cli-utils.h (struct get_number_or_range_state): New.
9082 (init_number_or_range): Declare.
9083 (get_number_or_range): Update.
9084 * cli/cli-utils.c (init_number_or_range): New function.
9085 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9086 static variables.
9087 (number_is_in_list): Update.
9088 * breakpoint.h (get_tracepoint_by_number): Update.
9089 * breakpoint.c (map_breakpoint_numbers): Update for change to
9090 get_number_or_range.
9091 (find_location_by_number): Use get_number, not
9092 get_number_or_range.
9093 (trace_pass_set_count): New function.
9094 (trace_pass_command): Update for change to get_number_or_range.
9095 Rework loop logic.
9096 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9097 'state' parameter.
9098
9099 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9100
9101 * python/py-param.c (add_setshow_generic): Add set/show callback
9102 parameters. Register Python object context.
9103 (get_show_value): New function.
9104 (get_set_value): New function.
9105 (call_doc_function): New function.
9106 (get_doc_string): Move behind get_show_value/get_set_value.
9107
9108 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9109
9110 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9111
9112 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9113
9114 * xtensa-tdep.c (xtensa_read_register): Add comment.
9115 (xtensa_write_register): Likewise.
9116 (xtensa_hextochar): Add comment and update to match coding conventions.
9117 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9118 (execute_l32e, execute_s32e, execute_code): Update comments.
9119 (xtensa_exception_handler_t): Update to match coding conventions.
9120 (xtensa_insn_kind): Likewise.
9121
9122 2011-03-09 Michael Snyder <msnyder@vmware.com>
9123
9124 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9125
9126 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9127
9128 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9129
9130 2011-03-09 Tom Tromey <tromey@redhat.com>
9131
9132 * thread.c (restore_selected_frame): Handle frame_level == -1.
9133 (make_cleanup_restore_current_thread): Use
9134 get_selected_frame_if_set.
9135 * frame.h (get_selected_frame_if_set): Declare.
9136 * frame.c (get_selected_frame_if_set): New function.
9137
9138 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9139
9140 * cli/cli-cmds.c (shell_escape): Use lbasename.
9141 * coffread.c (coff_start_symtab): Constify parameter.
9142 (complete_symtab): Constify `name' parameter.
9143 (coff_symtab_read): Constify `filestring' local.
9144 (coff_getfilename): Constify return and `result' local.
9145 Use lbasename.
9146 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9147 * linux-fork.c (info_checkpoints_command): Use lbasename.
9148 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9149 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9150 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9151 * procfs.c (procfs_make_note_section): Use lbasename.
9152 * tui/tui-io.c (printable_part): Constity return and parameter.
9153 Use lbasename.
9154 (print_filename): Constify parameters, and local `s'.
9155 (tui_rl_display_match_list): Constify local `temp'.
9156
9157 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9158
9159 Revert:
9160 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9161 Fix DWARF-3+ DW_AT_accessibility default assumption.
9162 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9163 cu->header.version >= 3.
9164
9165 2011-03-09 Yao Qi <yao@codesourcery.com>
9166
9167 * common/Makefile.in: Remove.
9168 * common/configure: Remove.
9169 * common/configure.ac: Remove.
9170
9171 2011-03-09 Yao Qi <yao@codesourcery.com>
9172
9173 Revert:
9174 2011-02-11 Yao Qi <yao@codesourcery.com>
9175
9176 * common/Makefile.in: Add copyright header.
9177
9178 2011-02-11 Yao Qi <yao@codesourcery.com>
9179
9180 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9181 libcommon.a.
9182 * configure.ac: Add common to sub dir.
9183 * configure: Regenerate.
9184
9185 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9186
9187 * xtensa-tdep.c (call0_ret): New function.
9188 (xtensa_skip_prologue): Speed up analysis.
9189
9190 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9191
9192 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9193 while executing MI command -data-list-changed-registers.
9194
9195 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9196
9197 * xtensa-tdep.c (xtensa_read_register): New function.
9198 (xtensa_write_register): New function.
9199 (xtensa_find_register_by_name): New function.
9200 (xtensa_windowed_frame_cache): Update comments in type description.
9201 (xtensa_frame_cache): Likewise.
9202 (xtensa_window_interrupt_insn): New function.
9203 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9204 (xtensa_insn_kind): Add new instructions.
9205 (rwx_special_register): New function.
9206 (call0_classify_opcode): Add new instructions to the analysis.
9207 (a0_saved, a7_saved, a11_saved): New variables.
9208 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9209 (execute_l32e): New function.
9210 (execute_s32e): New function.
9211 (xtensa_exception_handler_t): New type.
9212 (execute_code): New function.
9213 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9214 analysis for Xtensa Window Exception handlers.
9215
9216 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9217
9218 * xtensa-tdep.c (TX_PS): New.
9219 (windowing_enabled): Update to count for Call0 ABI.
9220 (xtensa_hextochar): New.
9221 (xtensa_init_reggroups): Make algorithm generic.
9222 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9223
9224 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9225
9226 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9227
9228 2011-03-08 Michael Snyder <msnyder@vmware.com>
9229
9230 * i386-tdep.c (i386_follow_jump): Check return value of
9231 target_read_memory.
9232 (i386_analyze_struct_return): Ditto.
9233 (i386_skip_probe): Ditto.
9234 (i386_match_insn): Ditto.
9235 (i386_skip_noop): Ditto.
9236 (i386_analyze_frame_setup): Ditto.
9237 (i386_analyze_register_saves): Ditto.
9238 (i386_skip_prologue): Ditto.
9239 (i386_skip_main_prologue): Ditto.
9240
9241 * target.c (read_whatever_is_readable): Fix memory leak.
9242
9243 * i386-tdep.c (i386_process_record): Document fall through.
9244
9245 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9246
9247 Fix DWARF-3+ DW_AT_accessibility default assumption.
9248 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9249 cu->header.version >= 3.
9250
9251 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9252
9253 * remote.c (remote_check_symbols): Skip if the target has no
9254 execution.
9255
9256 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9257
9258 * target.c (read_whatever_is_readable): Reformat comment,
9259 with a minor typo fix. Minor reformatting of the code.
9260
9261 2011-03-08 Yao Qi <yao@codesourcery.com>
9262
9263 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9264 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9265 Use cached result instead of calling displaced_in_arm_mode again.
9266 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9267 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9268 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9269 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9270 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9271 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9272 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9273 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9274 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9275 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9276 (arm_catch_kernel_helper_return): Likewise.
9277 * gdb/arm-tdep.h : Update function declarations.
9278
9279 2011-03-07 Michael Snyder <msnyder@vmware.com>
9280
9281 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9282
9283 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9284
9285 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9286
9287 * elfread.c (elf_symtab_read): Stop memory leak.
9288
9289 * main.c (captured_main): Fix memory leak.
9290
9291 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9292
9293 * ada-lang.c (compare_names): Call is_name_suffix with string1
9294 instead of string2.
9295
9296 2011-03-07 Tom Tromey <tromey@redhat.com>
9297
9298 * xcoffread.c (xcoff_sym_fns): Update.
9299 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9300 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9301 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9302 (symbol_file_add_with_addrs_or_offsets): Likewise.
9303 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9304 * somread.c (som_sym_fns): Update.
9305 * psymtab.h (require_partial_symbols): Declare.
9306 * psymtab.c (require_partial_symbols): New function.
9307 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9308 (ALL_OBJFILE_PSYMTABS): Undef.
9309 (ALL_PSYMTABS): Move from psympriv.h.
9310 (lookup_partial_symtab, find_pc_sect_psymtab)
9311 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9312 (find_last_source_symtab_from_partial)
9313 (forget_cached_source_info_partial)
9314 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9315 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9316 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9317 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9318 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9319 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9320 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9321 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9322 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9323 psymtabs.
9324 * mipsread.c (ecoff_sym_fns): Update.
9325 * machoread.c (macho_sym_fns): Update.
9326 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9327 (read_psyms): New function.
9328 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9329 (elf_sym_fns_lazy_psyms): New global.
9330 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9331 dwarf2_build_psymtabs.
9332 * dbxread.c (aout_sym_fns): Update.
9333 * coffread.c (coff_sym_fns): Update.
9334
9335 2011-03-07 Tom Tromey <tromey@redhat.com>
9336
9337 * infrun.c (print_exited_reason): Include inferior id and pid in
9338 message.
9339
9340 2011-03-07 Tom Tromey <tromey@redhat.com>
9341
9342 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9343 parameter.
9344 (target_has_execution_1): Update.
9345 (target_has_execution_current): Declare.
9346 (target_has_execution): Call target_has_execution_current.
9347 (default_child_has_execution): Update.
9348 * target.c (default_child_has_execution): Add 'the_ptid'
9349 parameter.
9350 (target_has_execution_1): Likewise.
9351 (target_has_execution_current): New function.
9352 (add_target): Update.
9353 (init_dummy_target): Update.
9354 * remote-m32r-sdi.c (m32r_has_execution): New function.
9355 (init_m32r_ops): Use it.
9356 * record.c (record_core_has_execution): Now static. Add
9357 'the_ptid' parameter.
9358 * inferior.c (have_live_inferiors): Don't save current thread.
9359 Use target_has_execution_1.
9360
9361 2011-03-07 Yao Qi <yao@codesourcery.com>
9362
9363 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9364
9365 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9366
9367 * elfread.c (elf_symtab_read): Minor reformatting.
9368
9369 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9370
9371 * objc-lang.c (selectors_info): Minor reformatting.
9372
9373 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9374
9375 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9376
9377 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9378 Michael Snyder <msnyder@vmware.com>
9379
9380 * ada-valprint.c (ada_val_print_array): Move the declaration of
9381 "byte_order" and "elttype" inside the block where these variables
9382 are actually used. Remove some special handling for the case
9383 where "elttype" and "eltlen" are null. Replace by a comment
9384 and a couple of assertion checks.
9385
9386 2011-03-05 Michael Snyder <msnyder@vmware.com>
9387
9388 * source.c (add_path): Replace semicolon at end of block.
9389 * dwarf2expr.c (execute_stack_op): Ditto.
9390
9391 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9392
9393 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9394 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9395 (bfin-*-*): Likewise.
9396
9397 2011-03-05 Michael Snyder <msnyder@vmware.com>
9398
9399 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9400 * mdebugread.c (parse_symbol): Ditto.
9401 * parse.c (parse_exp_in_context): Ditto.
9402 * source.c (add_path): Ditto.
9403 * utils.c (gnu_debuglink_crc32): Ditto.
9404 * varobj.c (variable_language): Ditto.
9405
9406 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9407
9408 2011-03-04 Michael Snyder <msnyder@vmware.com>
9409
9410 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9411
9412 * symfile.c (simple_overlay_update): Check for null return value
9413 from lookup_minimal_symbol.
9414
9415 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9416
9417 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9418
9419 * eval.c (parse_and_eval_address_1): Remove function.
9420 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9421 instead of parse_and_eval_address_1.
9422 * value.h (parse_and_eval_address_1): Remove prototype.
9423
9424 2011-03-04 Michael Snyder <msnyder@vmware.com>
9425
9426 * remote.c (putpkt_binary): Document that case stmt falls through.
9427
9428 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9429
9430 * breakpointc (print_it_typical): Move NULL check from here...
9431 (print_bp_stop_message): ... to here.
9432
9433 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9434
9435 * breakpoint.c (enable_command): Use break instead of continue,
9436 and fill in a missing break.
9437 (disable_command): Ditto.
9438
9439 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9440
9441 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9442 (terminal_save_ours): Remove misleading comment.
9443 (inflow_inferior_data_cleanup): Free ttystate.
9444 (inflow_inferior_exit): Likewise.
9445 (copy_terminal_info): Copy ttystate.
9446
9447 * serial.c (serial_copy_tty_state): New function.
9448 * serial.h (serial_copy_tty_state): Add prototype.
9449 (struct serial_ops): Add copy_tty_state callback.
9450 * ser-base.c (ser_base_copy_tty_state): New function.
9451 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9452 * ser-go32.c (dos_copy_tty_state): New function.
9453 (dos_ops): Install copy_tty_state callback.
9454 * ser-mingw.c (_initialize_ser_windows): Likewise.
9455 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9456 * ser-unix.c (hardwire_copy_tty_state): New function.
9457 (_initialize_ser_hardwire): Install it.
9458
9459 2011-03-04 Michael Snyder <msnyder@vmware.com>
9460
9461 * breakpoint.c (create_breakpoint): Add missing break statement.
9462
9463 Reverting this patch:
9464 * infcall.c (call_function_by_hand): Add break statements for lint.
9465
9466 Reverting this patch:
9467 * cli/cli-script.c (script_from_file): Add break for lint.
9468
9469 2011-03-04 Michael Snyder <msnyder@vmware.com>
9470
9471 * solib.c (reload_shared_libraries_1): Close memory leak.
9472
9473 2011-03-03 Tom Tromey <tromey@redhat.com>
9474
9475 PR gdb/12538:
9476 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9477 DW_STRING is NULL.
9478
9479 2011-03-03 Michael Snyder <msnyder@vmware.com>
9480
9481 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9482 fields of struct 'st' to zero.
9483
9484 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9485 sal.pspace before calling set_current_source_symtab_and_line.
9486
9487 2011-03-03 Yao Qi <yao@codesourcery.com>
9488
9489 * Makefile.in (configure-common): Remove. Let Makefile
9490 in dir common to rebuild itself.
9491 (common/Makefile): Likewise.
9492
9493 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9494
9495 * utils.c (parse_escape): Add i18n markup in error message.
9496
9497 2011-03-03 Yao Qi <yao@codesourcery.com>
9498
9499 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9500 ARM_PC_REGNUM.
9501 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9502 (displaced_write_reg, displaced_read_reg): Likewise.
9503 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9504 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9505 (cleanup_branch): Replace magic number 14 and 15 with
9506 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9507
9508 2011-03-02 Michael Snyder <msnyder@vmware.com>
9509
9510 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9511
9512 * cli/cli-script.c (script_from_file): Add break for lint.
9513
9514 * mdebugread.c (parse_partial_symbols): Fix indent.
9515
9516 * target-descriptions.c (tdesc_gdb_type): No need to call
9517 xstrdup, callee saves a copy.
9518
9519 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9520
9521 * infcall.c (call_function_by_hand): Add break statements for lint.
9522
9523 * utils.c (parse_escape): Escape the escape char.
9524
9525 * python/py-inferior.c (build_inferior_list): Error out if
9526 PyList_Append fails.
9527 (gdbpy_inferiors): Error out if build_inferior_list fails.
9528
9529 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9530 a function call.
9531
9532 * record.c (record_restore): Move printf to before error return.
9533
9534 2011-03-02 Yao Qi <yao@codesourcery.com>
9535
9536 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9537 is_thumb and insn_size.
9538 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9539 on both ARM and Thumb mode.
9540 (arm_process_displaced_insn): Set is_thumb and insn_size.
9541 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9542 (arm_displaced_step_fixup): Likewise.
9543
9544 2011-03-01 Michael Snyder <msnyder@vmware.com>
9545
9546 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9547
9548 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9549
9550 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9551
9552 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9553
9554 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9555 with xmalloc.
9556
9557 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9558 which shadows function parameter.
9559
9560 * tracepoint.c (create_tsv_from_upload): Superfluous call
9561 to xstrdup. Callee already calls xstrdup.
9562
9563 * linespec.c (decode_line_1): Remove unnecessary null check.
9564
9565 * tracepoint.c (scope_info): Fix mem leak, remove underused
9566 variable.
9567
9568 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9569 superfluous null check.
9570
9571 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9572 (value_of_builtin_frame_fp_reg): Ditto.
9573
9574 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9575
9576 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9577 be null.
9578
9579 * linespec.c (decode_line_1): Check for null before dereference.
9580
9581 * reverse.c (record_restore): Move null-check to before pointer
9582 dereference.
9583
9584 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9585
9586 * objc-lang.c (selectors_info): Add explanitory comment.
9587 (classes_info): Ditto.
9588
9589 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9590
9591 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9592 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9593 versions of the trampoline. Handle Thumb vs. ARM addresses.
9594 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9595 (arm_linux_init_abi): Install it.
9596 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9597 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9598
9599 2011-02-28 Michael Snyder <msnyder@vmware.com>
9600
9601 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9602 a little bigger, to avoid possibility of an overflow.
9603
9604 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9605 buffers a little bigger, to avoid possibility of an overflow.
9606
9607 * coffread.c (coff_getfilename): Add check to avoid overflow.
9608
9609 * objc-lang.c (selectors_info): Add a small safety margin to
9610 avoid overflow.
9611 (classes_info): Error out on too long REGEXP.
9612
9613 * infrun.c (handle_inferior_event): Remove unused function call.
9614
9615 * fork-child.c (fork_inferior): Remove ifdef'd code and
9616 unused variable.
9617
9618 * linux-thread-db.c (attach_thread): Discard unused value.
9619
9620 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9621
9622 * remote.c (remote_get_noisy_reply): Discard unused value.
9623 (remote_vcont_resume): Ditto.
9624 (remote_stop_ns): Ditto.
9625
9626 * linespec.c (decode_objc): Delete unused variable.
9627
9628 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9629
9630 * dwarf2read.c (add_partial_symbol): Discard unused values.
9631 (read_base_type): Delete unused variable.
9632
9633 * dbxread.c (read_dbx_symtab): Discard unused value.
9634
9635 * eval.c (evaluate_subexp_standard): Delete unused variable,
9636 and discard unused values.
9637
9638 * infcmd.c (_initialize_infcmd): Discard unused values.
9639
9640 * stabsread.c (rs6000_builtin_type): Missing break statement.
9641
9642 * dbxread.c (process_one_symbol): Discard unused value.
9643
9644 * coffread.c (coff_end_symtab): Delete unused variable.
9645
9646 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9647 (dwarf2_add_typedef): Delete unused variable.
9648 (read_namespace): Ditto.
9649 (dwarf_decode_macros): Ditto.
9650
9651 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9652
9653 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9654
9655 * p-valprint.c (pascal_val_print): Discard unused value.
9656
9657 * utils.c (nquery): Call va_end before return;
9658 (yquery): Ditto.
9659 (query): Ditto.
9660
9661 * proc-service.c (ps_plog): Call va_end before return.
9662
9663 2011-02-28 Tom Tromey <tromey@redhat.com>
9664
9665 * python/python.c (gdbpy_value_cst): New global.
9666 (_initialize_python): Initialize it.
9667 * python/python-internal.h (gdbpy_value_cst): Declare.
9668 * python/py-value.c (convert_value_from_python): Use
9669 gdbpy_value_cst.
9670
9671 2011-02-28 Michael Snyder <msnyder@vmware.com>
9672
9673 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9674
9675 * breakpoint.c (catch_syscall_completer): Free malloced list.
9676
9677 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9678
9679 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9680 (lval_func_check_synthetic_pointer): Ditto.
9681 (lval_func_free_closure): Fix use-after-free.
9682
9683 2011-02-28 Tom Tromey <tromey@redhat.com>
9684
9685 * psymtab.c (expand_partial_symbol_tables): Use
9686 ALL_OBJFILE_PSYMTABS.
9687
9688 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9689
9690 * objc-lang.c (selectors_info): Error on too long REGEXP.
9691
9692 2011-02-28 Michael Snyder <msnyder@vmware.com>
9693
9694 * python/py-param.c (set_parameter_value): Add missing
9695 break statement.
9696
9697 * linux-record.c (record_linux_system_call): Add missing
9698 break statement.
9699
9700 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9701
9702 * breakpoint.c (print_one_breakpoint_location): Remove unused
9703 argument PRINT_ADDRESS_BITS. Update callers.
9704 (print_one_breakpoint): Likewise.
9705
9706 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9707
9708 * breakpoint.c (wrap_indent_at_field): New function.
9709 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9710 Allocate ui_stream locally instead of using STB argument.
9711 (print_one_breakpoint_location): Update call.
9712 * ui-out.c (ui_out_query_field): New function.
9713 * ui-out.h (ui_out_query_field): Add prototype.
9714
9715 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9716
9717 From Michael Snyder <msnyder@vmware.com>
9718 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9719
9720 2011-02-27 Michael Snyder <msnyder@vmware.com>
9721
9722 * objc-lang.c (selectors_info): Prevent string overrun.
9723
9724 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9725 error in strncpy.
9726
9727 * symtab.c (rbreak_command): Move variable 'file_name' to
9728 outer scope.
9729
9730 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9731 param with a local variable of the same name.
9732
9733 2011-02-27 Michael Snyder <msnyder@vmware.com>
9734
9735 * value.c (value_from_history_ref): New function.
9736 * value.h (value_from_history_ref): Export.
9737 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9738 to parse value history references.
9739 * cli/cli-utils.h (get_number_trailer): Update comment.
9740
9741 2011-02-27 Michael Snyder <msnyder@vmware.com>
9742
9743 * inferior.c (detach_inferior_command): Use get_number_or_range.
9744 (kill_inferior_command): Ditto.
9745 (remove_inferior_command): Ditto.
9746 (initialize_inferiors): Make command names plural.
9747 Update help strings.
9748
9749 2011-02-27 Michael Snyder <msnyder@vmware.com>
9750
9751 * darwin-nat-info.c: Fix comment typo.
9752 * dwarf2expr.h: Ditto.
9753 * fbsd-nat.c: Ditto.
9754 * fbsd-nat.h: Ditto.
9755 * frame-unwind.h: Ditto.
9756 * frame.h: Ditto.
9757 * hppa-hpux-tdep.c: Ditto.
9758 * i386-linux-nat.c: Ditto.
9759 * linux-nat.c: Ditto.
9760 * nbsd-nat.c: Ditto.
9761 * nbsd-nat.h: Ditto.
9762 * ppc-linux-tdep.c: Ditto.
9763 * serial.c: Ditto.
9764 * ui-file.h: Ditto.
9765 * tui/tui-winsource.c: Ditto.
9766
9767 2011-02-26 Michael Snyder <msnyder@vmware.com>
9768
9769 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9770
9771 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9772
9773 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9774 with a local variable of the same name.
9775
9776 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9777 param with a local variable of the same name.
9778 (i387_supply_xsave): Ditto.
9779
9780 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9781 that it does not shadow a function parameter.
9782
9783 * i386-nat.c (i386_length_and_rw_bits): Document that case
9784 statement is meant to fall through.
9785
9786 * expprint.c (dump_subexp_body_standard): Document that case
9787 statement is meant to fall through.
9788
9789 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9790 dead if statement. Condition can't be false.
9791
9792 2011-02-25 Michael Snyder <msnyder@vmware.com>
9793
9794 * arm-tdep.c: Fix typos in comments.
9795 * bsd-uthread.c: Ditto.
9796 * completer.c: Ditto.
9797 * corelow.c: Ditto.
9798 * cp-namespace.c: Ditto.
9799 * cp-support.c: Ditto.
9800 * cris-tdep.c: Ditto.
9801 * dbxread.c: Ditto.
9802 * dwarf2read.c: Ditto.
9803 * frame.h: Ditto.
9804 * gdbtypes.h: Ditto.
9805 * inferior.h: Ditto.
9806 * mdebugread.c: Ditto.
9807 * mips-tdep.c: Ditto.
9808 * ppc-linux-nat.c: Ditto.
9809 * ppc-linux-tdep.c: Ditto.
9810 * printcmd.c: Ditto.
9811 * sol-thread.c: Ditto.
9812 * solib-frv.c: Ditto.
9813 * solist.h: Ditto.
9814 * sparc64-tdep.c: Ditto.
9815 * spu-tdep.c: Ditto.
9816 * stabsread.c: Ditto.
9817 * symfile.c: Ditto.
9818 * valops.c: Ditto.
9819 * varobj.c: Ditto.
9820 * vax-nat.c: Ditto.
9821 * python/py-block.c: Ditto.
9822 * python/py-symbol.c: Ditto.
9823 * python/py-symtab.c: Ditto.
9824 * python/py-value.c: Ditto.
9825 * tui/tui-win.c: Ditto.
9826
9827 2011-02-25 Michael Snyder <msnyder@vmware.com>
9828
9829 * inferior.c (print_inferior): Accept a string instead of an int
9830 for requested_inferiors, and use get_number_or_range to parse it.
9831 (info_inferiors_command): Pass args string to print_inferior.
9832 (initialize_inferiors): Change help string for info inferiors.
9833 * inferior.h (print_inferior): Export prototype change.
9834
9835 2011-02-25 Tom Tromey <tromey@redhat.com>
9836
9837 * common/ax.def (invalid2): Set to 0x31.
9838
9839 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9840
9841 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9842 L and plongest.
9843 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9844 use L and plongest.
9845 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9846
9847 2011-02-24 Michael Snyder <msnyder@vmware.com>
9848
9849 * Makefile.in (clean): Make clean should remove generated files
9850 observer.h and observer.inc.
9851
9852 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9853
9854 Revert the following patch (not approved yet):
9855 2011-02-21 Hui Zhu <teawater@gmail.com>
9856 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9857 * ax-gdb.c (gen_printf_expr_callback): New function.
9858 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9859 * ax-general.c (ax_memcpy): New function.
9860 (ax_print): Handle "printf".
9861 (ax_reqs): Ditto.
9862 * ax.h (ax_memcpy): Forward declare.
9863 * common/ax.def (invalid2): Removed.
9864 (printf): New entry.
9865 * printcmd.c (printcmd.h): New include.
9866 (string_printf): New function.
9867 (ui_printf): Removed.
9868 (printf_command): Remove static. Call string_printf.
9869 (eval_command): Call string_printf.
9870 * printcmd.h: New file.
9871 * tracepoint.c (validate_actionline,
9872 encode_actions_1): handle printf_command.
9873
9874 2011-02-23 Tom Tromey <tromey@redhat.com>
9875
9876 * ax-general.c (ax_pick): Add missing newline.
9877
9878 2011-02-23 Michael Snyder <msnyder@vmware.com>
9879
9880 * breakpoint.c (breakpoint_1): Change first argument from an int
9881 to a char pointer, so that the function now accepts a list of
9882 breakpoints rather than just one. Use new function
9883 'number_is_in_list' to implement.
9884 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9885 (watchpoints_info): Ditto.
9886 (tracepoints_info): Ditto.
9887 (maintenance_info_breakpoints): Ditto.
9888 (_initialize_breakpoint): Update help strings to reflect the fact
9889 that these functions can now take more than one argument.
9890 * cli/cli-utils.c (number_is_in_list): New function.
9891 * cli/cli-utils.h (number_is_in_list): Export.
9892
9893 2011-02-23 Michael Snyder <msnyder@vmware.com>
9894
9895 * memattr.c (mem_enable_command): Use get_number_or_range.
9896 (mem_disable_command): Ditto.
9897 (mem_delete_command): Ditto.
9898 (_initialize_mem): Tweak usage message to reflect multiple
9899 arguments.
9900
9901 2011-02-22 Doug Evans <dje@google.com>
9902
9903 Add gdb.lookup_global_symbol python function.
9904 * NEWS: Add entry.
9905 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9906 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9907 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9908
9909 2011-02-22 Tom Tromey <tromey@redhat.com>
9910
9911 * language.c (language_class_name_from_physname): Rename
9912 'curr_language' argument to 'lang'; use in body.
9913
9914 2011-02-22 Michael Snyder <msnyder@vmware.com>
9915
9916 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9917
9918 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9919
9920 * frame-unwind.h: Fix comment to mention the this frame, not the
9921 next.
9922
9923 2011-02-22 Tom Tromey <tromey@redhat.com>
9924
9925 * symfile.c (auto_solib_limit): Remove.
9926 * symfile.h (auto_solib_limit): Remove.
9927
9928 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9929
9930 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9931
9932 2011-02-21 Michael Snyder <msnyder@vmware.com>
9933
9934 * gdbthread.h (print_thread_info): Change prototype.
9935 * thread.c (print_thread_info): Accept char* instead of int for
9936 requested_threads argument. Use new function number_is_in_list
9937 to determine which threads to list.
9938 (info_threads_command): Pass char* to print_thread_info.
9939 * cli/cli-utils.c (number_is_in_list): New function.
9940 * cli/cli-utils.h (number_is_in_list): Export.
9941 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9942 print_thread_info.
9943 (print_one_inferior): Ditto.
9944 (mi_cmd_list_thread_groups): Ditto.
9945
9946 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9947
9948 * common/Makefile.in (CFLAGS): New.
9949 (COMPILE): Add $(CFLAGS).
9950
9951 2011-02-21 Tom Tromey <tromey@redhat.com>
9952
9953 * breakpoint.c (catch_syscall_command_1): Fix typo.
9954
9955 2011-02-21 Tom Tromey <tromey@redhat.com>
9956
9957 * reverse.c: Include cli-utils.h.
9958 * printcmd.c: Include cli-utils.h.
9959 (string_printf): Use skip_spaces.
9960 * cli/cli-utils.h: New file.
9961 * cli/cli-utils.c: New file.
9962 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9963 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9964 * breakpoint.h (get_number, get_number_or_range): Move to
9965 cli-utils.h.
9966 * breakpoint.c: Include cli-utils.h.
9967 (get_number_trailer, get_number, get_number_or_range)
9968 (ep_skip_leading_whitespace): Move to cli-utils.c.
9969 (create_breakpoint_sal, find_condition_and_thread)
9970 (decode_static_tracepoint_spec, watch_command_1)
9971 (watch_maybe_just_location, ep_parse_optional_if_clause)
9972 (catch_fork_command_1, catch_exec_command_1)
9973 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9974 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9975 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9976 (HFILES_NO_SRCDIR): Add cli-utils.h.
9977 (cli-utils.o): New target.
9978
9979 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9980
9981 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9982 before calling discard_all_inferiors.
9983
9984 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9985
9986 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9987 (struct builtin_opencl_type): Remove.
9988 (builtin_opencl_type): Change return type to "struct type **".
9989 (lookup_opencl_vector_type): Update caller.
9990 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9991 (build_opencl_types): Install plain array of "struct type *"
9992 instead of "struct builtin_opencl_type".
9993
9994 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9995 Ulrich Weigand <uweigand@de.ibm.com>
9996
9997 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9998 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9999 (struct arm_linux_hwbp_cap): New type.
10000 (arm_linux_get_hwbp_cap): New function.
10001 (arm_linux_get_hw_breakpoint_count): Likewise.
10002 (arm_linux_get_hw_watchpoint_count): Likewise.
10003 (arm_linux_can_use_hw_breakpoint): Likewise.
10004 (arm_hwbp_type): New type.
10005 (arm_hwbp_control_t): Likewise.
10006 (struct arm_linux_hw_breakpoint): Likewise.
10007 (struct arm_linux_thread_points): Likewise.
10008 (arm_threads): New global variable.
10009 (arm_linux_find_breakpoints_by_tid): New function.
10010 (arm_hwbp_control_initialize): Likewise.
10011 (arm_hwbp_control_is_enabled): Likewise.
10012 (arm_hwbp_control_disable): Likewise.
10013 (arm_linux_hw_breakpoint_initialize): Likewise.
10014 (arm_linux_get_hwbp_type): Likewise.
10015 (arm_linux_hw_watchpoint_initialize): Likewise.
10016 (arm_linux_hw_breakpoint_equal): Likewise.
10017 (arm_linux_insert_hw_breakpoint1): Likewise.
10018 (arm_linux_remove_hw_breakpoint1): Likewise.
10019 (arm_linux_insert_hw_breakpoint): Likewise.
10020 (arm_linux_remove_hw_breakpoint): Likewise.
10021 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10022 (arm_linux_insert_watchpoint): Likewise.
10023 (arm_linux_remove_watchpoint): Likewise.
10024 (arm_linux_stopped_data_address): Likewise.
10025 (arm_linux_stopped_by_watchpoint): Likewise.
10026 (arm_linux_watchpoint_addr_within_range): Likewise.
10027 (arm_linux_new_thread): Likewise.
10028 (arm_linux_thread_exit): Likewise.
10029 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10030 related target callbacks. Register arm_linux_new_thread and
10031 arm_linux_thread_exit.
10032 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10033 * arm-tdep.c (arm_pc_is_thumb): Make global.
10034 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10035
10036 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10037
10038 * breakpoint.c (update_watchpoint): Do not attempt to recreate
10039 per-frame locations while within a function epilogue.
10040
10041 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10042
10043 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10044 to GNU coding standards.
10045
10046 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10047
10048 Allow use of mingw native on Windows 95 OS.
10049 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
10050 (ser_windows_close): Only call CancelIo if function exists.
10051 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10052 to check for existence of CancelIo function in kernel32 DLL.
10053
10054 2011-02-21 Hui Zhu <teawater@gmail.com>
10055
10056 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10057 * ax-gdb.c (gen_printf_expr_callback): New function.
10058 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10059 * ax-general.c (ax_memcpy): New function.
10060 (ax_print): Handle "printf".
10061 (ax_reqs): Ditto.
10062 * ax.h (ax_memcpy): Forward declare.
10063 * common/ax.def (invalid2): Removed.
10064 (printf): New entry.
10065 * printcmd.c (printcmd.h): New include.
10066 (string_printf): New function.
10067 (ui_printf): Removed.
10068 (printf_command): Remove static. Call string_printf.
10069 (eval_command): Call string_printf.
10070 * printcmd.h: New file.
10071 * tracepoint.c (validate_actionline,
10072 encode_actions_1): handle printf_command.
10073
10074 2011-02-19 Michael Snyder <msnyder@vmware.com>
10075
10076 * reverse.c (delete_one_bookmark): Argument is now bookmark
10077 id rather than pointer to bookmark struct.
10078 (delete_bookmark_command): Use get_number_or_range.
10079 (goto_bookmark_command): Parse with get_number instead of strtoul.
10080 (bookmark_1): New function. Print info for one bookmark.
10081 (bookmarks_info): Use get_number_or_range and bookmark_1.
10082
10083 2011-02-18 Michael Snyder <msnyder@vmware.com>
10084
10085 * thread.c (info_threads_command): Re-implement using
10086 get_number_or_range.
10087 (thread_apply_command): Ditto.
10088
10089 2011-02-18 Tom Tromey <tromey@redhat.com>
10090
10091 * common/ax.def: New file.
10092 * ax.h (enum agent_op): Use ax.def.
10093 * ax-general.c (aop_map): Use ax.def.
10094
10095 2011-02-18 Tom Tromey <tromey@redhat.com>
10096
10097 * ax-general.c (aop_map): Add pick and rot.
10098 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10099 <DW_OP_rot>: Implement.
10100 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10101 (ax_pick): Declare.
10102 * ax-general.c (ax_pick): New function.
10103
10104 2011-02-18 Tom Tromey <tromey@redhat.com>
10105
10106 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10107
10108 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10109 Tom Tromey <tromey@redhat.com>
10110
10111 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10112 make_symbol_overload_list_block with NULL BLOCK.
10113 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10114
10115 2011-02-18 Pedro Alves <pedro@codesourcery.com>
10116
10117 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10118 * breakpoint.h (get_number_or_range): Declare.
10119 * printcmd.c (ALL_DISPLAYS): Declare.
10120 (delete_display): Reimplement taking a display pointer.
10121 (undisplay_command): Accept a range of displays to delete, using
10122 get_number_or_range.
10123
10124 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10125
10126 * c-valprint.c (c_val_print): Add embedded_offset to address
10127 for arrays of unspecified length.
10128 * p-valprint.c (pascal_val_print): Likewise.
10129
10130 2011-02-18 Yao Qi <yao@codesourcery.com>
10131
10132 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10133 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10134 (thumb_process_displaced_insn): New.
10135 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10136 call to arm_process_displaced_insn.
10137 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10138
10139 2011-02-17 Tom Tromey <tromey@redhat.com>
10140
10141 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10142 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10143 compile_dwarf_to_ax. No longer static. Call
10144 dwarf2_compile_cfa_to_ax.
10145 (locexpr_tracepoint_var_ref): Update.
10146 (loclist_tracepoint_var_ref): Update.
10147 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10148 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10149 argument; add 'gdbarch' and 'pc'.
10150 (dwarf2_compile_cfa_to_ax): New function.
10151 (dwarf2_frame_cache): Update.
10152
10153 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10154
10155 * ada-lang.c (ada_type_of_array): Fix the size of the array
10156 in the case of an unconstrained packed array.
10157
10158 2011-02-17 Yao Qi <yao@codesourcery.com>
10159
10160 * common/Makefile.in: Add more targets for make.
10161
10162 2011-02-16 Tom Tromey <tromey@redhat.com>
10163
10164 * dwarf2loc.c (unimplemented): Fix typo.
10165
10166 2011-02-16 Tom Tromey <tromey@redhat.com>
10167
10168 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10169 (compile_dwarf_to_ax) <default>: Use unimplemented.
10170 <DW_OP_deref>: Update.
10171 (disassemble_dwarf_expression): Update.
10172 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10173 (decode_locdesc): Update.
10174 * dwarf2expr.h (dwarf_stack_op_name): Update.
10175
10176 2011-02-16 Tom Tromey <tromey@redhat.com>
10177
10178 * ax.h (struct aop_map) <name>: Now const.
10179
10180 2011-02-16 Tom Tromey <tromey@redhat.com>
10181
10182 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10183 than axs_rvalue.
10184
10185 2011-02-16 Yao Qi <yao@codesourcery.com>
10186
10187 * infrun.c (get_displaced_step_closure_by_addr): New.
10188 * inferior.h: Declare it.
10189 * arm-tdep.c: (arm_pc_is_thumb): Call
10190 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10191 returns non-NULL.
10192
10193 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10194 Jan Kratochvil <jan.kratochvil@redhat.com>
10195
10196 gdb/
10197 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10198
10199 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10200 Jan Kratochvil <jan.kratochvil@redhat.com>
10201
10202 * value.c (value_contents_copy_raw): Extend describing comment.
10203 Assert that the destination contents we're overwriting are wholly
10204 available.
10205 (value_contents_copy): Extend describing comment.
10206
10207 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10208 Jan Kratochvil <jan.kratochvil@redhat.com>
10209
10210 * value.c (value_available_contents_eq): Remove redundant local
10211 variables. Fix available contents comparision.
10212 * value.h (value_available_contents_eq): Extend describing
10213 comment.
10214
10215 2011-02-16 Yao Qi <yao@codesourcery.com>
10216
10217 * thread.c (info_threads_command): Add missing i18n markup and remove
10218 trailing newline.
10219
10220 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10221
10222 * breakpoint.c (longjmp_names): New variable.
10223 (struct breakpoint_objfile_data): New type.
10224 (breakpoint_objfile_key): New variable.
10225 (msym_not_found): New variable.
10226 (msym_not_found_p): New predicate.
10227 (get_breakpoint_objfile_data): New function.
10228 (create_overlay_event_breakpoint): Check per-objfile cache for
10229 symbols first.
10230 (create_longjmp_master_breakpoint): Likewise.
10231 (create_std_terminate_master_breakpoint): Likewise.
10232 (create_exception_master_breakpoint): Likewise.
10233 (_initialize_breakpoint): Register per-objfile data key.
10234
10235 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10236
10237 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10238 parameter value.
10239 (create_longjmp_master_breakpoint): Loop over longjmp names.
10240 (create_std_terminate_master_breakpoint): Const-propagate parameter
10241 value.
10242 (update_breakpoints_after_exec): Adjust.
10243 (breakpoint_re_set): Adjust.
10244
10245 2011-02-15 Michael Snyder <msnyder@vmware.com>
10246
10247 * thread.c (info_threads_command): Process arg as thread id,
10248 or list of thread ids.
10249 (thread_find_command): New command.
10250 (_initialize_thread): Document argument for info threads.
10251 Document 'thread find' command.
10252 * NEWS: Document new command "thread find".
10253
10254 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10255
10256 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10257 * aclocal.m4: Regenerated with aclocal-1.11.1.
10258 * common/configure: Regenerate with autoconf-2.64.
10259
10260 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10261
10262 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10263 bool data type to a size of one byte.
10264
10265 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10266 Jan Kratochvil <jan.kratochvil@redhat.com>
10267
10268 * target.c (memory_xfer_live_readonly_partial): Document where to
10269 look for interface description.
10270
10271 2011-02-15 Yao Qi <yao@codesourcery.com>
10272
10273 PR tdep/12352
10274 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10275 order to store PC value on stack instead of text section.
10276
10277 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10278
10279 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10280 the EFP register set size.
10281 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10282 data from the VMX register.
10283 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10284 and write data from/to the VMX register.
10285
10286 2011-02-14 Michael Snyder <msnyder@vmware.com>
10287
10288 * command.h (enum command_class): New class 'no_set_class', for
10289 "show" commands without a corresponding "set" command.
10290 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10291 * copying.c (_initialize_copying): Ditto for "show copying" and
10292 "show warranty".
10293 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10294 "show version".
10295 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10296 which there is no corresponding "set" command (eg. "show copying").
10297
10298 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10299 Jan Kratochvil <jan.kratochvil@redhat.com>
10300
10301 * exec.c (section_table_available_memory): Change `len' parameter
10302 type to ULONGEST.
10303 * exec.h (section_table_available_memory): Ditto.
10304 * value.h (read_value_memory): Rename the `offset' parameter to
10305 `embedded_offset'.
10306
10307 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10308 Jan Kratochvil <jan.kratochvil@redhat.com>
10309
10310 * memrange.c (compare_mem_ranges): Mention sort order in
10311 describing comment.
10312 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10313 * tracepoint.c (traceframe_available_memory): Extend comment to
10314 mention what happens to RESULT when the target does not support
10315 the query.
10316
10317 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10318 Jan Kratochvil <jan.kratochvil@redhat.com>
10319
10320 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10321 range.
10322
10323 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10324
10325 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10326 No longer handle NULL values.
10327
10328 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10329
10330 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10331 * value.c: Include "exceptions.h".
10332 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10333 generic error.
10334 * cp-abi.c: Include gdb_assert.h.
10335 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10336 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10337 errors.
10338 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10339 parameters. No longer returns -1 on error.
10340 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10341 `val' parameters.
10342 * cp-valprint.c: Include exceptions.h.
10343 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10344 the baseclass_offset. Handle unavailable base classes. Use
10345 val_print_invalid_address.
10346 * p-valprint.c: Include exceptions.h.
10347 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10348 when fetching the baseclass_offset. No longer expect
10349 baseclass_offset returning -1. Handle unavailable base classes.
10350 Use val_print_invalid_address.
10351 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10352 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10353 `embedded_offset' and `val' parameters. Adjust.
10354 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10355 parameter, and change its type to gdb_byte pointer. Add
10356 `embedded_offset' and `val' parameters. Adjust. No longer expect
10357 baseclass_offset returning -1.
10358 (value_dynamic_cast): Use value_contents_for_printing rather than
10359 value_contents. Adjust.
10360 (search_struct_field): No longer expect baseclass_offset returning
10361 -1.
10362 (search_struct_method): If reading memory from the target is
10363 necessary, wrap it in a new value to pass to baseclass_offset. No
10364 longer expect baseclass_offset returning -1.
10365 (find_method_list): No longer expect baseclass_offset returning
10366 -1. Use value_contents_for_printing rather than value_contents.
10367 * valprint.c (val_print_invalid_address): New function.
10368 * valprint.h (val_print_invalid_address): Declare.
10369 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10370 and `val' parameters. No longer expect baseclass_offset returning
10371 -1. Adjust.
10372 * gnu-v2-abi.c: Include "exceptions.h".
10373 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10374 parameters. Handle unavailable memory. Recurse through
10375 gnuv2_baseclass_offset directly, rather than through
10376 baseclass_offset. No longer returns -1 on not found, instead
10377 throw an error.
10378 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10379 `val' parameters. Adjust.
10380
10381 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10382
10383 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10384 almost but not quite adjacent.
10385
10386 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10387
10388 * value.h (value_entirely_available): Declare.
10389 * value.c (value_entirely_available): New function.
10390 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10391 real type if the pointer is unavailable.
10392
10393 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10394
10395 * valops.c (value_repeat): Use read_value_memory instead of
10396 read_memory.
10397
10398 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10399
10400 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10401 * value.c (value_contents_copy_raw, value_contents_copy): New
10402 functions.
10403 (value_primitive_field): Use value_contents_copy_raw instead of
10404 memcpy.
10405 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10406 memcpy.
10407 (value_array, value_slice): Ditto.
10408 * valarith.c (value_subscripted_rvalue): Use
10409 value_contents_copy_raw instead of memcpy.
10410
10411 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10412
10413 <unavailable> references.
10414
10415 * valops.c (get_value_at): Use value_from_contents_and_address,
10416 avoiding read_memory.
10417
10418 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10419
10420 * c-valprint.c (c_val_print): Print a string with unavailable
10421 contents as an array.
10422
10423 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10424
10425 * value.h (unpack_bits_as_long): Delete declaration.
10426 (unpack_value_bits_as_long): Declare.
10427 (unpack_value_field_as_long): Declare.
10428 (value_field_bitfield): Declare.
10429 * value.c (unpack_bits_as_long): Rename to...
10430 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10431 value parameters. Return the extracted result in a new output
10432 parameter. If the value contents are unavailable, return false,
10433 otherwise return true.
10434 (unpack_value_bits_as_long): New.
10435 (unpack_field_as_long): Rename to...
10436 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10437 Add embedded_offset and value parameters. Return the extracted
10438 result in a new output parameter. If the value contents are
10439 unavailable, return false, otherwise return true.
10440 (unpack_value_field_as_long): New.
10441 (unpack_field_as_long_1): New.
10442 (unpack_field_as_long): Reimplement as wrapper around
10443 unpack_value_field_as_long_1.
10444 (value_field_bitfield): New function.
10445 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10446 unpack_value_bits_as_long. Mark the value as unavailable, if it
10447 is unavailable.
10448 * jv-valprint.c (java_print_value_fields): Use
10449 value_field_bitfield.
10450 * p-valprint.c (pascal_object_print_value_fields): Use
10451 value_field_bitfield.
10452 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10453
10454 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10455
10456 * value.c (get_internalvar_integer): Also return the int value of
10457 TYPE_CODE_INT INTERNALVAR_VALUE values.
10458 (set_internalvar): Don't special case TYPE_CODE_INT.
10459
10460 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10461
10462 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10463 INTERNALVAR_POINTER.
10464 <pointer>: Delete.
10465 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10466 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10467 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10468
10469 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10470
10471 * value.h (value_available_contents_eq): Declare.
10472 * value.c (find_first_range_overlap): New function.
10473 (value_available_contents_eq): New function.
10474 * valprint.c (val_print_array_elements): Use
10475 value_available_contents_eq.
10476 * ada-valprint.c (val_print_packed_array_elements): Use
10477 value_available_contents_eq.
10478 * jv-valprint.c (java_value_print): Use
10479 value_available_contents_eq.
10480
10481 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10482
10483 * target.c (target_read_live_memory): New function.
10484 (memory_xfer_live_readonly_partial): New.
10485 (memory_xfer_partial): If reading from a traceframe, fallback to
10486 reading unavailable read-only memory from read-only regions of
10487 live target memory.
10488 * tracepoint.c (disconnect_tracing): Adjust.
10489 (set_current_traceframe): New, factored out from
10490 set_traceframe_number.
10491 (set_traceframe_number): Reimplement to only change the traceframe
10492 number on the GDB side.
10493 (do_restore_current_traceframe_cleanup): Adjust.
10494 (make_cleanup_restore_traceframe_number): New.
10495 (cur_traceframe_number): New global.
10496 (tfile_open): Set cur_traceframe_number to no traceframe.
10497 (set_tfile_traceframe): New function.
10498 (tfile_trace_find): If looking up a traceframe using any method
10499 other than by number, make sure the current tfile traceframe
10500 matches gdb's current traceframe. Update the current tfile
10501 traceframe if the lookup succeeded.
10502 (tfile_fetch_registers, tfile_xfer_partial)
10503 (tfile_get_trace_state_variable_value): Make sure the remote
10504 traceframe matches gdb's current traceframe.
10505 * remote.c (remote_traceframe_number): New global.
10506 (remote_open_1): Set it to -1.
10507 (set_remote_traceframe): New function.
10508 (remote_fetch_registers, remote_store_registers)
10509 (remote_xfer_memory, remote_xfer_partial)
10510 (remote_get_trace_state_variable_value): Make sure the remote
10511 traceframe matches gdb's current traceframe.
10512 (remote_trace_find): If looking up a traceframe using any method
10513 other than by number, make sure the current remote traceframe
10514 matches gdb's current traceframe. Update the current remote
10515 traceframe if the lookup succeeded.
10516 * infrun.c (fetch_inferior_event): Adjust.
10517 * tracepoint.h (set_current_traceframe): Declare.
10518 (get_traceframe_number, set_traceframe_number): Add describing
10519 comments.
10520
10521 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10522
10523 Mark pieces of values as unavailable if the corresponding memory
10524 is unavailable.
10525
10526 * valops.c: Include tracepoint.h.
10527 (value_fetch_lazy): Use read_value_memory.
10528 (read_value_memory): New.
10529 * value.h (read_value_memory): Declare.
10530 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10531 * exec.c (section_table_available_memory): New function.
10532 * exec.h (section_table_available_memory): Declare.
10533
10534 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10535
10536 * Makefile.in (SFILES): Add memrange.c.
10537 (HFILES_NO_SRCDIR): Add memrange.h.
10538 (COMMON_OBS): Add memrange.o.
10539 * memrange.c: New file.
10540 * memrange.h: New file.
10541 * tracepoint.c: Include memrange.h.
10542 (struct mem_range): Delete.
10543 (mem_range_s): Delete.
10544 (traceframe_available_memory): New function.
10545 * tracepoint.h (traceframe_available_memory): Declare.
10546
10547 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10548
10549 * target.h (struct traceframe_info): Forward declare.
10550 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10551 (struct target_ops) <to_traceframe_info>: New field.
10552 (target_traceframe_info): New.
10553 * target.c (update_current_target): Inherit and default
10554 to_traceframe_info.
10555 * remote.c (PACKET_qXfer_traceframe_info): New.
10556 (remote_protocol_features): Register qXfer:traceframe-info:read.
10557 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10558 (remote_traceframe_info): New.
10559 (init_remote_ops): Install it.
10560 (_initialize_remote): Install "set/show remote traceframe-info"
10561 commands.
10562 * tracepoint.h (parse_traceframe_info): Declare.
10563 * tracepoint.c (struct mem_range): New.
10564 (mem_range_s): New typedef.
10565 (struct traceframe_info): New.
10566 (traceframe_info): New global.
10567 (free_traceframe_info): New function.
10568 (clear_traceframe_info): New function.
10569 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10570 info.
10571 (build_traceframe_info): New function.
10572 (tfile_traceframe_info): New function.
10573 (init_tfile_ops): Install tfile_traceframe_info.
10574 (traceframe_info_start_memory, free_result): New functions.
10575 (memory_attributes, traceframe_info_elements): New globals.
10576 (parse_traceframe_info, get_traceframe_info): New functions.
10577 * features/traceframe-info.dtd: New file.
10578 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10579
10580 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10581
10582 Base support for <unavailable> value contents.
10583
10584 * value.h (value_bytes_available): Declare.
10585 (mark_value_bytes_unavailable): Declare.
10586 * value.c (struct range): New struct.
10587 (range_s): New typedef.
10588 (ranges_overlap): New function.
10589 (range_lessthan): New function.
10590 (ranges_contain_p): New function.
10591 (struct value) <unavailable>: New field.
10592 (value_bytes_available): New function.
10593 (mark_value_bytes_unavailable): New function.
10594 (require_not_optimized_out): Constify parameter.
10595 (require_available): New function.
10596 (value_contents_all, value_contents): Require all bytes be
10597 available.
10598 (value_free): Free `unavailable'.
10599 (value_copy): Copy `unavailable'.
10600 * valprint.h (val_print_unavailable): Declare.
10601 * valprint.c (valprint_check_validity): Rename `offset' parameter
10602 to `embedded_offset'. If printing a scalar, check whether the
10603 value chunk is available.
10604 (val_print_unavailable): New.
10605 (val_print_scalar_formatted): Check whether the value is
10606 available.
10607 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10608 pretty-printing unavailable values.
10609
10610 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10611
10612 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10613 * c-typeprint.c (c_type_print_args): Update the function comment. New
10614 variable param_type, initialize it. Remove const/volatile qualifiers
10615 for language_cplus and !show_artificial. Use param_type.
10616
10617 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10618
10619 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10620 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10621 * symtab.h (struct symtab) <next>: Comment extension.
10622
10623 2011-02-12 Yao Qi <yao@codesourcery.com>
10624
10625 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10626
10627 2011-02-11 Yao Qi <yao@codesourcery.com>
10628
10629 * common/Makefile.in: Add copyright header.
10630
10631 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10632
10633 * infrun.c (proceed): Move switching out and in of tfind mode from
10634 here ...
10635 (fetch_inferior_event): ... to here.
10636
10637 2011-02-11 Yao Qi <yao@codesourcery.com>
10638
10639 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10640 libcommon.a.
10641 * configure.ac: Add common to sub dir.
10642 * configure: Regenerate.
10643
10644 2011-02-11 Yao Qi <yao@codesourcery.com>
10645
10646 Build libcommon.a.
10647
10648 * common/Makefile.in: New.
10649 * common/configure.ac: New.
10650 * common/aclocal.m4: New.
10651 * common/configure: Generate.
10652
10653 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10654
10655 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10656 side of the parenthesis.
10657
10658 Merge from GCC:
10659 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10660 * vec.h (VEC_block_remove): Fix comment.
10661
10662 2011-02-08 Michael Snyder <msnyder@vmware.com>
10663
10664 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10665
10666 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10667
10668 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10669 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10670 psubd and paddd.
10671
10672 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10673
10674 PR 12361.
10675 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10676 phsubsw.
10677 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10678 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10679
10680 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10681
10682 * dwarf2read.c (read_subroutine_type): Set special calling
10683 convention flag for functions compiled by IBM XL C for OpenCL.
10684 * ppc-sysv-tdep.c: Include "dwarf2.h"
10685 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10686 calling convention.
10687 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10688 IBM OpenCL vector types calling convention.
10689 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10690 (ppc_sysv_abi_broken_return_value): Likewise.
10691 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10692 types calling convention.
10693 (ppc64_sysv_abi_return_value): Likewise.
10694 * spu-tdep.c: Include "dwarf2.h"
10695 (spu_return_value): Implement IBM OpenCL vector types calling
10696 convention.
10697
10698 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10699
10700 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10701 correct ABI for AltiVec vector arguments.
10702
10703 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10704
10705 * valprint.c (val_print): Extend comment.
10706 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10707 interface explanation to val_print.
10708 (ada_val_print_array): Adjust comment to current interface.
10709 (print_field_values): Adjust comment to current interface.
10710 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10711 explanation to val_print.
10712 * f-valprint.c (f_val_print): Ditto.
10713 * jv-valprint.c (java_val_print): Ditto.
10714 * m2-valprint.c (m2_val_print): Ditto.
10715 * p-valprint.c (pascal_val_print): Ditto.
10716
10717 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10718
10719 * breakpoint.c (parse_breakpoint_sals): Fix description.
10720
10721 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10722 Oguz Kayral <oguzkayral@gmail.com>
10723
10724 * python/py-inferior.c (python_on_normal_stop): New function.
10725 (python_on_resume): New function.
10726 (python_inferior_exit): New function.
10727 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10728 inferior_exit observers.
10729 * python/py-evtregistry.c: New file.
10730 * python/py-threadevent.c : New file.
10731 * python/py-event.c: New file.
10732 * python/py-evts.c: New file.
10733 * python/py-continueevent.c: New file.
10734 * python/py-bpevent.c: New file.
10735 * python/py-signalevent.c: New file.
10736 * python/py-exetiedevent.c: New file.
10737 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10738 Move struct breakpoint_object from here...
10739 * python/python-internal.h: ... to here.
10740 * python/py-event.h: New file.
10741 * python/py-events.h: New file.
10742 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10743 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10744 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10745 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10746 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10747 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10748 Add build rules for all the above.
10749
10750 2011-02-04 Tom Tromey <tromey@redhat.com>
10751
10752 * dwarf2read.c (dwarf2_section_empty_p): New function.
10753 (dwarf2_read_section): Use dwarf2_section_empty_p.
10754 (dwarf2_section_size): New function.
10755 (dwarf2_get_section_info): Unconditionally read section.
10756 (dwarf2_read_index): Use dwarf2_section_empty_p.
10757 (partial_read_comp_unit_head): Use dwarf2_section_size.
10758 (dwarf2_symbol_mark_computed): Likewise.
10759
10760 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10761
10762 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10763
10764 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10765
10766 * mips-linux-tdep.c: Include xml-syscall.h.
10767 (mips_linux_get_syscall_number): New function.
10768 (mips_linux_init_abi): Add calls to
10769 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10770 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10771 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10772 * syscalls/mips-n32-linux.xml: New file.
10773 * syscalls/mips-n64-linux.xml: New file.
10774 * syscalls/mips-o32-linux.xml: New file.
10775
10776 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10777
10778 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10779 Complain about inverted range entries.
10780 (dwarf2_record_block_ranges): Likewise.
10781
10782 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10783
10784 Fix some typos.
10785 * breakpoint.c (update_watchpoint): Fix name of the
10786 update_global_location_list function.
10787 (print_one_breakpoint): Fix typo.
10788 (_initialize_breakpoint): Remove extra space in hbreak help
10789 string.
10790 * breakpoint.h (struct bp_location) <length>: Fix field
10791 description.
10792
10793 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10794
10795 * regcache.c (registers_changed_ptid): Don't explictly always
10796 clear `current_regcache'. Only clear current_thread_ptid and
10797 current_thread_arch when PTID matches. Only reinit the frame
10798 cache if PTID matches the current inferior_ptid. Move alloca(0)
10799 call to ...
10800 (registers_changed): ... here.
10801
10802 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10803
10804 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10805 starts with __stack_chk_guard as stack guard symbol.
10806
10807 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10808
10809 * disasm.c (compare_lines): Handle the end of sequence markers
10810 within the line table to better support disassembling over
10811 compilation unit boundaries.
10812
10813 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10814
10815 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10816 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10817 implementation even if no symbols are available.
10818 (thumb_analyze_prologue): Update call to skip_prologue_function.
10819 (arm_analyze_prologue): Likewise.
10820
10821 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10822
10823 * arm-tdep.c: Include "observer.h".
10824 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10825 (arm_exidx_data_key): New static variable.
10826 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10827 (struct arm_exidx_data): Likewise.
10828 (arm_exidx_data_free): New function.
10829 (arm_compare_exidx_entries): Likewise.
10830 (arm_obj_section_from_vma): Likewise.
10831 (arm_exidx_new_objfile): Likewise.
10832 (arm_find_exidx_entry): Likewise.
10833 (arm_exidx_fill_cache): Likewise.
10834 (arm_exidx_unwind_sniffer): Likewise.
10835 (arm_exidx_unwind): New global variable.
10836 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10837 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10838 observer. Register arm_exidx_data_key as objfile data.
10839
10840 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10841
10842 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10843 due to accessing uninitialized variable. Fix indentation.
10844
10845 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10846
10847 * c-valprint.c (c_value_print): When doing virtual base pointer
10848 adjustment, create a new value with adjusted contents rather than
10849 changing the contents of the value being printed (and getting it
10850 wrong).
10851
10852 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10853
10854 * xml-support.c (xml_find_attribute): New.
10855 (xinclude_start_include): Use it.
10856 * xml-support.h (xml_find_attribute): Declare.
10857 * memory-map.c (memory_map_start_memory)
10858 (memory_map_start_property): Use xml_find_attribute.
10859 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10860 xml_find_attribute.
10861 * remote.c (start_thread): Use xml_find_attribute.
10862 * solib-target.c (library_list_start_segment)
10863 (library_list_start_section, library_list_start_library)
10864 (library_list_start_list): Use xml_find_attribute.
10865 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10866 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10867 (tdesc_start_field): Use xml_find_attribute.
10868
10869 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10870
10871 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10872 (BUILD_OCL_VTYPES): Update.
10873
10874 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10875
10876 * configure.ac: Work around non-GNU sed limitation when computing
10877 python version number.
10878 * configure: Regenerate.
10879
10880 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10881
10882 Fix debug printing of TYPE_INSTANCE.
10883 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10884 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10885
10886 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10887
10888 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10889 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10890 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10891 * ada-operator.inc: Rename the file to ...
10892 * ada-operator.def: ... here, wrap all the entries by macro OP.
10893 * expprint.c (op_name_standard): Remove all the entries. Include
10894 "std-operator.def" instead.
10895 * expression.h (enum exp_opcode): Include "std-operator.def" and
10896 "ada-operator.def". Move all the entries ...
10897 * std-operator.def: ... here, wrap all the entries by macro OP.
10898
10899 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10900
10901 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10902 * breakpoint.c (remove_jit_event_breakpoints): New function.
10903 * jit.c (jit_descriptor_addr): Delete.
10904 (registering_code): Delete.
10905 (clear_int): Delete.
10906 (jit_inferior_data): New variable.
10907 (struct jit_inferior_data): New type.
10908 (get_jit_inferior_data): New function.
10909 (jit_inferior_data_cleanup): New function.
10910 (jit_read_descriptor): Adjust.
10911 (jit_register_code): Adjust.
10912 (jit_breakpoint_re_set_internal): New function; move code here ...
10913 (jit_inferior_init): ... from here.
10914 (jit_breakpoint_re_set): Adjust.
10915 (jit_reset_inferior_data_and_breakpoints): New function.
10916 (jit_inferior_created_observer): Adjust.
10917 (jit_inferior_exit_hook): Adjust.
10918 (jit_executable_changed_observer): New function.
10919 (jit_event_handler): Adjust.
10920 (_initialize_jit): Adjust.
10921
10922 2011-01-31 Michael Snyder <msnyder@vmware.com>
10923
10924 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10925 line.
10926
10927 2011-01-31 Tom Tromey <tromey@redhat.com>
10928
10929 PR python/12216:
10930 * python/python.c (execute_gdb_command): Call
10931 prevent_dont_repeat.
10932 * top.c (suppress_dont_repeat): New global.
10933 (dont_repeat): Use it.
10934 (prevent_dont_repeat): New function.
10935 * command.h (prevent_dont_repeat): Declare.
10936
10937 2011-01-31 Tom Tromey <tromey@redhat.com>
10938
10939 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10940 * python/py-breakpoint.c (bppy_set_silent): Use
10941 breakpoint_set_silent.
10942 (bppy_set_thread): Use breakpoint_set_thread.
10943 (bppy_set_task): Use breakpoint_set_task.
10944 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10945 (breakpoint_set_task): Declare.
10946 (make_breakpoint_silent): Remove.
10947 * breakpoint.c (breakpoint_set_silent): New function.
10948 (breakpoint_set_thread): Likewise.
10949 (breakpoint_set_task): Likewise.
10950 (make_breakpoint_silent): Remove.
10951
10952 2011-01-31 Tom Tromey <tromey@redhat.com>
10953
10954 * breakpoint.h (user_breakpoint_p): Declare.
10955 * breakpoint.c (user_breakpoint_p): New function.
10956 (breakpoint_1): Use it.
10957 (save_breakpoints): Likewise.
10958
10959 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10960
10961 * configure.ac: Add handling of Python distribution on Windows.
10962 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10963 sysconfig variables are not defined, then do not use them.
10964 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10965 instead. On Windows, return all paths using forward-slashes
10966 rather than backslashes.
10967
10968 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10969
10970 * configure.ac: Remove fallback behavior for building
10971 against Python. Remove tweaking of Python include path.
10972 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10973 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10974 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10975 Always restore CPPFLAGS and LIBS after linking test.
10976 * configure: Regenerated.
10977 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10978 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10979 * python/python-internal.h: Adjust includes of Python .h files.
10980
10981 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10982
10983 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10984 in error message.
10985
10986 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10987
10988 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10989 value test.
10990
10991 2011-01-31 Yao Qi <yao@codesourcery.com>
10992
10993 * arm-linux-nat.c: Update calls to regcache_register_status
10994 instead of regcache_valid_p.
10995 * aix-thread.c: Likewise.
10996 * i386gnu-nat.c: Likewise.
10997
10998 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10999
11000 Fix crash.
11001 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
11002 touching TYPE_FIELD_ARTIFICIAL.
11003
11004 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
11005
11006 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
11007 Committers.
11008
11009 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11010
11011 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11012 selected, don't try iterating over the traceframe's blocks.
11013 (tfile_has_stack): If there's no traceframe selected, then there's
11014 no stack.
11015 (tfile_has_registers): If there's no traceframe selected, then
11016 there's no registers.
11017
11018 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11019
11020 * target.c (memory_xfer_partial): No need to restore shadows if we
11021 haven't read anything.
11022
11023 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11024
11025 * mips-tdep.c (mips_print_register): Use get_frame_register_value
11026 and val_print_scalar_formatted.
11027
11028 2011-01-27 Pedro Alves <pedro@codesourcery.com>
11029
11030 * tracepoint.c (tfile_read): New.
11031 (tfile_open): Use it.
11032 (tfile_get_traceframe_address): Use it.
11033 (tfile_trace_find): Use it.
11034 (walk_blocks_callback_func): New typedef.
11035 (match_blocktype): New function.
11036 (traceframe_walk_blocks): New function.
11037 (traceframe_find_block_type): New function.
11038 (tfile_fetch_registers, tfile_xfer_partial)
11039 (tfile_get_trace_state_variable_value): Use
11040 traceframe_find_block_type and tfile_read.
11041
11042 2011-01-26 Kevin Buettner <kevinb@redhat.com>
11043
11044 * remote-mips.c: Add internationalization mark ups. Remove
11045 trailing \n from already marked up strings.
11046
11047 2011-01-26 Tom Tromey <tromey@redhat.com>
11048
11049 * python/py-prettyprint.c (print_string_repr): Clear
11050 'addressprint' option when calling val_print_string.
11051 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11052 option when calling val_print_string.
11053
11054 2011-01-26 Tom Tromey <tromey@redhat.com>
11055
11056 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11057 GDB_PY_LL_ARG.
11058 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11059 macros.
11060 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11061 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11062 (gdb_py_long_as_ulongest): New defines.
11063 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11064 (gdb_py_int_as_long): Declare.
11065 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11066 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11067 (valpy_long): Add comment.
11068 * python/py-utils.c (get_addr_from_python): Use
11069 gdb_py_long_as_ulongest. Handle overflow properly.
11070 (gdb_py_object_from_longest): New function.
11071 (gdb_py_object_from_ulongest): Likewise.
11072 (gdb_py_int_as_long): Likewise.
11073 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11074 * python/py-symtab.c (salpy_get_pc): Use
11075 gdb_py_long_from_ulongest.
11076 (salpy_get_line): Use PyInt_FromLong.
11077 * python/py-param.c (set_parameter_value): Use
11078 gdb_py_int_as_long.
11079 * python/py-lazy-string.c (stpy_get_address): Use
11080 gdb_py_long_from_ulongest.
11081 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11082 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11083 * python/py-breakpoint.c (bppy_set_thread): Use
11084 gdb_py_int_as_long.
11085 (bppy_set_task): Likewise.
11086 (bppy_set_ignore_count): Likewise.
11087 (bppy_set_hit_count): Likewise.
11088 * python/py-block.c (blpy_get_start): Use
11089 gdb_py_object_from_ulongest.
11090 (blpy_get_end): Likewise.
11091 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11092
11093 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11094
11095 PR/symtab 11766:
11096 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11097 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11098 equality test for objfile, initialize addr_low if needed.
11099
11100 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11101
11102 * tui/tui-regs.c (tui_register_format): Remove dead code.
11103
11104 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11105
11106 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11107 instead of print_scalar_formatted.
11108 (print_scalar_formatted): Don't handle 's' format strings here,
11109 and add an assertion that we never see such format here.
11110 * valprint.h (val_print_scalar_formatted): Declare.
11111 * valprint.c (val_print_scalar_formatted): New.
11112 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11113 instead of print_scalar_formatted.
11114 * jv-valprint.c (java_val_print): Ditto.
11115 * p-valprint.c (pascal_val_print): Ditto.
11116 * ada-valprint.c (ada_val_print_1): Ditto.
11117 * f-valprint.c (f_val_print): Ditto.
11118 * infcmd.c (registers_info): Ditto.
11119 * m2-valprint.c (m2_val_print): Ditto.
11120
11121 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11122
11123 * m2-valprint.c (print_unbounded_array): Pass
11124 value_contents_for_printing rather than value_contents, to
11125 m2_print_array_contents. Also pass in the value.
11126
11127 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11128
11129 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11130 (save_gdb_index_command): Switch to .gdb_index version 4.
11131
11132 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11133
11134 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11135 than frame_register, and always pass a valid value to val_print.
11136
11137 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11138
11139 Centralize printing "<optimized out>".
11140
11141 * valprint.h (val_print_optimized_out): Declare.
11142 * cp-valprint.c (cp_print_value_fields): Use
11143 val_print_optimized_out.
11144 * jv-valprint.c (java_print_value_fields): Ditto.
11145 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11146 * printcmd.c (print_formatted): Ditto.
11147 * valprint.c (valprint_check_validity): Ditto.
11148 (value_check_printable): Ditto.
11149 (val_print_optimized_out): New.
11150
11151 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11152
11153 * infcmd.c (default_print_registers_info): Allocate values so to
11154 never pass a NULL value to val_print.
11155
11156 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11157
11158 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11159 boolean. Make sure to always pass a value that matches the
11160 contents buffer to callees. Preserve `address' for following
11161 iterations.
11162 * value.c (value_contents_for_printing_const): New.
11163 (value_address): Constify value argument.
11164 * value.h (value_contents_for_printing_const): Declare.
11165 (value_address): Constify value argument.
11166
11167 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11168
11169 * regcache.c (struct regcache_descr): Rename
11170 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11171 and sizeof_cooked_register_valid_p to
11172 sizeof_cooked_register_status.
11173 (init_regcache_descr): Adjust.
11174 (struct regcache): Rename register_valid_p field to
11175 register_status.
11176 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11177 (do_cooked_read): Adjust.
11178 (regcache_valid_p): Rename to ...
11179 (regcache_register_status): ... this. Adjust.
11180 (regcache_invalidate): Adjust.
11181 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11182 Adjust.
11183 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11184 as unavailable, not valid.
11185 (regcache_dump): Adjust.
11186 * regcache.h (enum register_status): New.
11187 (regcache_register_status): Declare.
11188 (regcache_invalidate): Delete declaration.
11189 * corelow.c (get_core_registers): Adjust.
11190 * tracepoint.c (tfile_fetch_registers): Adjust.
11191 * trad-frame.c (REG_VALUE): Rename to ...
11192 (TF_REG_VALUE): ... this.
11193 (REG_UNKNOWN): Rename to ...
11194 (TF_REG_UNKNOWN): ... this.
11195 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11196 * mi/mi-main.c (register_changed_p): Adjust.
11197
11198 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11199
11200 * regcache.c (struct regcache_descr): Remove outdated comment.
11201 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11202 overallocate hack.
11203 (regcache_xmalloc): Rename to ...
11204 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11205 Allocate the regcache type accordingly.
11206 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11207 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11208 cooked registers, not raw.
11209 (regcache_dup_no_passthrough): Delete.
11210 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11211 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11212 mention obsolete write_register_bytes.
11213 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11214
11215 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11216
11217 Stop remote_read_bytes from handling partial reads itself.
11218
11219 * remote-fileio.c: Include target.h.
11220 (remote_fileio_write_bytes): Delete.
11221 (remote_fileio_func_open, remote_fileio_func_write)
11222 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11223 target_read_memory.
11224 (remote_fileio_func_stat): Use target_read_memory and
11225 target_write_memory.
11226 (remote_fileio_func_gettimeofday): Use target_write_memory.
11227 (remote_fileio_func_system): Use target_read_memory.
11228 * remote.c (remote_write_bytes): Make it static.
11229 (remote_read_bytes): Don't handle partial reads here.
11230 * remote.h (remote_read_bytes): Delete declaration.
11231
11232 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11233
11234 Simplify XML parsing a bit.
11235
11236 * xml-support.h (gdb_xml_parse_quick): Declare.
11237 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11238 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11239 parameter.
11240 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11241 gdb_xml_create_parser_and_cleanup_1.
11242 (gdb_xml_parse_quick): New.
11243 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11244 * osdata.c (osdata_parse): Ditto.
11245 * remote.c (remote_threads_info): Ditto.
11246 * solib-target.c (solib_target_parse_libraries): Ditto.
11247 * xml-syscall.c (syscall_parse_xml): Ditto.
11248 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11249
11250 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11251
11252 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11253 with remote-mips.o added to gdb_target_obs.
11254 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11255
11256 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11257
11258 * ada-valprint.c (val_print_packed_array_elements): Pass the
11259 correct struct value to val_print.
11260 (ada_val_print_1): Ditto.
11261
11262 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11263
11264 Don't lose embedded_offset in printing routines throughout.
11265
11266 * valprint.h (val_print_array_elements): Change prototype.
11267 * valprint.c (val_print_array_elements): Add `embedded_offset'
11268 parameter, and adjust to pass it down to val_print, while passing
11269 `valaddr' or `address' unmodified. Take embedded_offset into
11270 account when checking repetitions.
11271 * c-valprint.c (c_val_print): Pass embedded_offset to
11272 val_print_array_elements instead of adjusting `valaddr' and
11273 `address'.
11274 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11275 embedded_offset to val_print_array_elements instead of adjusting
11276 `valaddr'.
11277 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11278 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11279 val_print_array_elements and pascal_object_print_value_fields
11280 instead of adjusting `valaddr'.
11281 (pascal_object_print_value_fields): Add `offset' parameter, and
11282 adjust to use it.
11283 (pascal_object_print_value): Add `offset' parameter, and adjust to
11284 use it.
11285 (pascal_object_print_static_field): Use
11286 value_contents_for_printing/value_embedded_offset, rather than
11287 value_contents.
11288 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11289 parameter, and adjust to use it. Use
11290 value_contents_for_printing/value_embedded_offset, rather than
11291 value_contents.
11292 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11293 (ada_val_print_array): Add `offset' parameter, and adjust to use
11294 it.
11295 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11296 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11297 Instead work with offsets. Use
11298 value_contents_for_printing/value_embedded_offset, rather than
11299 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11300 and use value_from_pointer to extract a target pointer, rather
11301 than value_from_longest.
11302 (print_variant_part): 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 (ada_value_print): Use
11306 value_contents_for_printing/value_embedded_offset, rather than
11307 value_contents.
11308 (print_record): Add `offset' parameter, and adjust to pass it
11309 down.
11310 (print_field_values): Add `offset' parameter. Replace
11311 `outer_valaddr' parameter by a new `outer_offset' parameter.
11312 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11313 Use value_contents_for_printing/value_embedded_offset, rather than
11314 value_contents.
11315 * d-valprint.c (dynamic_array_type): Use
11316 value_contents_for_printing/value_embedded_offset, rather than
11317 value_contents.
11318 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11319 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11320 (java_print_value_fields): Take `offset' into account. Don't
11321 re-adjust `valaddr'. Instead pass down adjusted offsets.
11322 (java_val_print): Take `embedded_offset' into account. Pass it to
11323 java_print_value_fields.
11324 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11325 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11326 down adjusted offsets.
11327 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11328 (f_val_print): Take `embedded_offset' into account.
11329
11330 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11331
11332 * inflow.c: Include "gdbcmd.h".
11333 (interactive_mode): New static global, moved here from top.c.
11334 (show_interactive_mode): New function, moved here from top.c.
11335 use gdb_has_a_terminal instead of input_from_terminal_p to
11336 determine the current mode.
11337 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11338 setting.
11339 (_initialize_inflow): Add the "set/show interactive-mode"
11340 commands. Moved here from top.c, after having adjusted slightly
11341 the help text.
11342 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11343 to inflow.c.
11344 (input_from_terminal_p): Remove handling of "interactive-mode"
11345 setting, moved to infow.c.
11346 (init_main): Remove creation of the "set/show interactive-mode"
11347 commands, moved to inflow.c.
11348
11349 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11350
11351 * NEWS: Add entry for native ia64-hpux support.
11352
11353 2011-01-19 Tom Tromey <tromey@redhat.com>
11354
11355 PR mi/8618:
11356 * thread.c (free_thread): Free 'name'.
11357 (print_thread_info): Emit thread name. Change CLI output.
11358 (thread_name_command): New function.
11359 (do_captured_thread_select): Emit newline.
11360 (_initialize_thread): Register 'thread name' command.
11361 * target.h (struct target_ops) <to_thread_name>: New field.
11362 (target_thread_name): New macro.
11363 * target.c (update_current_target): Handle to_thread_name.
11364 * python/py-infthread.c (thpy_get_name): New function.
11365 (thpy_set_name): Likewise.
11366 (thread_object_getset): Add "name".
11367 * linux-nat.c (linux_nat_thread_name): New function.
11368 (linux_nat_add_target): Set to_thread_name.
11369 * gdbthread.h (struct thread_info) <name>: New field.
11370
11371 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11372
11373 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11374 (ada_val_print_1): Likewise.
11375
11376 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11377
11378 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11379 upper limit address is not greater than the function end address
11380 when the upper limit could not be computed using the debugging
11381 info.
11382
11383 2011-01-17 Tom Tromey <tromey@redhat.com>
11384
11385 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11386 get_regcomp_error.
11387 * utils.c: Include gdb_regex.h.
11388 (do_regfree_cleanup): New function.
11389 (make_regfree_cleanup): Likewise.
11390 (get_regcomp_error): Likewise.
11391 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11392
11393 2011-01-17 Tom Tromey <tromey@redhat.com>
11394
11395 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11396 re_compile_fastmap.
11397
11398 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11399
11400 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11401 for internal variables.
11402 (last_was_structop): New static variable.
11403 (COMPLETE): New token.
11404 (field_exp): New rule to group all '.' suffix handling.
11405 Add mark_struct_expression calls when approriate to be able
11406 to correctly find fields for completion.
11407 (yylex): Adapt to handle field completion and set INTVAR when
11408 required.
11409
11410 2011-01-14 Yao Qi <yao@codesourcery.com>
11411
11412 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11413 save_reggroup, restore_reggroup and all_reggroup.
11414
11415 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11416
11417 * ada-valprint. (ada_printchar): Use the correct type length
11418 in call to ada_emit_char.
11419 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11420
11421 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11422
11423 * solib-som.h (hpux_major_release): Declare variable here.
11424 * solib-som.c: Remove <sys/utsname.h> header.
11425 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11426 (hpux_major_release): Make global, change default value to
11427 DEFAULT_HPUX_MAJOR_RELEASE.
11428 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11429 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11430 Add "solib-som.h" header.
11431 (set_hpux_major_release): New function.
11432 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11433
11434 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11435
11436 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11437
11438 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11439
11440 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11441 new-line at end of warning message.
11442 (ia64_hpux_store_register): Remove trailing new-line at end of
11443 error message.
11444 * ia64-hpux-tdep.c: Rephrase comment.
11445 * solib-ia64-hpux.c (struct dld_info): Change type of field
11446 dld_flags from "long long" to ULONGEST.
11447
11448 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11449
11450 * target.h (deprecated_child_ops): Delete declaration.
11451 * target.c (deprecated_child_ops): Delete definition.
11452
11453 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11454
11455 * Makefile.in (hpux-thread.o): Delete rule.
11456 * configure.ac: Don't check for HPUX DCE threads support.
11457 * configure, config.in: Regenerate.
11458 * hppa-hpux-nat.c (child_suppress_run): Delete.
11459 (hppa_hpux_child_can_run): Delete.
11460 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11461 * hpux-thread.c: Delete.
11462
11463 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11464
11465 * hpux-thread.c (hpux_pid_to_str): Delete.
11466
11467 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11468
11469 * ada-valprint.c (ada_emit_char): Remove strange code.
11470 Check that c is <= UCHAR_MAX before passing it to isascii.
11471 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11472
11473 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11474
11475 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11476 to the case where instream is stdin.
11477
11478 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11479
11480 * ia64-tdep.h (struct regcache): Forward declare.
11481 (struct ia64_infcall_ops): New struct type.
11482 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11483 and "infcall_ops".
11484 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11485 Renames ia64_find_global_pointer.
11486 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11487 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11488 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11489 methods.
11490 (ia64_infcall_ops): New static global constant.
11491 (ia64_gdbarch_init): Set tdep->infcall_ops.
11492 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11493 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11494 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11495 (ia64_hpux_dummy_code): New static global constant.
11496 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11497 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11498 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11499 New function.
11500 (ia64_hpux_infcall_ops): New static global constant.
11501 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11502 for inferior function calls to work properly on ia64-hpux.
11503
11504 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11505
11506 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11507 * ia64-tdep.h (struct frame_info): forward declaration.
11508 (struct gdbarch_tdep): Add field size_of_register_frame.
11509 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11510 to determine the size of the register frame.
11511 (ia64_size_of_register_frame): New function.
11512 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11513 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11514 (IA64_HPUX_UREG_REASON): New macro.
11515 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11516 New functions.
11517 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11518 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11519 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11520 objects.
11521
11522 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11523
11524 Add support for ia64-hpux.
11525 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11526 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11527
11528 * configure.host: Add handling for ia64-hpux hosts. Add associated
11529 floatformats.
11530 * configure.tgt: Add handling for ia64-hpux targets.
11531 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11532 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11533 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11534
11535 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11536
11537 [ttrace] Compute thread list immediately after attach.
11538 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11539 New subprogram.
11540 (inf_ttrace_attach): Use it.
11541
11542 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11543
11544 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11545 if we could not determine the frame's function address. Instead,
11546 use the frame's PC, and then continue.
11547
11548 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11549
11550 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11551 not already defined.
11552
11553 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11554
11555 * ia64-tdep.c (ia64_struct_type_p): New function.
11556 (ia64_extract_return_value): Handle integral values that are
11557 less than 8 bytes long.
11558 (ia64_push_dummy_call): Likewise.
11559
11560 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11561
11562 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11563 floatformat_ia64_ext.
11564 (floatformat_ia64_ext_big): New static const.
11565 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11566
11567 2011-01-12 Tom Tromey <tromey@redhat.com>
11568
11569 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11570 messages.
11571 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11572 (mi_cmd_thread_list_ids): Likewise.
11573 (mi_cmd_data_list_changed_registers): Likewise.
11574 (mi_cmd_data_list_register_values): Likewise.
11575 (mi_cmd_data_write_register_values): Likewise.
11576 (mi_cmd_data_evaluate_expression): Likewise.
11577 (mi_cmd_data_read_memory): Likewise.
11578 (mi_cmd_data_read_memory_bytes): Likewise.
11579 (mi_cmd_data_write_memory): Likewise.
11580 (mi_cmd_enable_timings): Likewise.
11581 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11582 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11583 (mi_cmd_var_delete): Likewise.
11584 (mi_cmd_var_set_format): Likewise.
11585 (mi_cmd_var_show_format): Likewise.
11586 (mi_cmd_var_info_num_children): Likewise.
11587 (mi_cmd_var_list_children): Likewise.
11588 (mi_cmd_var_info_type): Likewise.
11589 (mi_cmd_var_info_expression): Likewise.
11590 (mi_cmd_var_show_attributes): Likewise.
11591 (mi_cmd_var_assign): Likewise.
11592 (mi_cmd_var_update): Likewise.
11593 (mi_cmd_enable_pretty_printing): Likewise.
11594 (mi_cmd_var_set_update_range): Likewise.
11595 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11596 messages.
11597 (mi_cmd_target_file_put): Likewise.
11598 (mi_cmd_target_file_delete): Likewise.
11599 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11600 messages.
11601 (mi_cmd_stack_info_depth): Likewise.
11602 (mi_cmd_stack_list_locals): Likewise.
11603 (mi_cmd_stack_list_args): Likewise.
11604 (mi_cmd_stack_select_frame): Likewise.
11605 (mi_cmd_stack_select_frame): Likewise.
11606 (mi_cmd_stack_info_frame): Likewise.
11607 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11608 messages.
11609 (mi_cmd_file_list_exec_source_files): Likewise.
11610 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11611 (mi_cmd_env_cd): Likewise.
11612 (mi_cmd_env_path): Likewise.
11613 (mi_cmd_env_dir): Likewise.
11614 (mi_cmd_inferior_tty_show): Likewise.
11615 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11616 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11617 (mi_cmd_break_watch): Likewise.
11618
11619 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11620
11621 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11622 (ppc_linux_insert_hw_breakpoint): Likewise.
11623 (ppc_linux_remove_hw_breakpoint): Likewise.
11624 (ppc_linux_insert_watchpoint): Likewise.
11625
11626 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11627 Jan Kratochvil <jan.kratochvil@redhat.com>
11628
11629 PR fortran/11104 and DWARF unbound arrays detection.
11630 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11631 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11632 unspecified upper bound.
11633 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11634 variables array_size_array, tmp_type and offset_item. New variable
11635 array. Remove call to f77_get_upperbound. New variables array_type
11636 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11637 the final call to deprecated_set_value_type.
11638
11639 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11640
11641 Make value allocations more lazy.
11642 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11643 instead of allocate_value and set_value_lazy when possible.
11644 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11645 instead of allocate_value and set_value_lazy.
11646 * findvar.c (value_of_register_lazy): Likewise.
11647 (read_var_value): Remove V preallocation, call just check_typedef in
11648 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11649 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11650 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11651 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11652 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11653 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11654 the end, remove set_value_lazy there.
11655 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11656 instead of allocate_value and set_value_lazy when possible.
11657 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11658 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11659 of allocate_value and set_value_lazy.
11660 (value_from_contents_and_address): Use allocate_value_lazy instead of
11661 allocate_value and set_value_lazy when possible.
11662
11663 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11664
11665 * disasm.c (dump_insns): Support dumping opcodes for MI.
11666 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11667 dumping of instruction opcodes.
11668
11669 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11670
11671 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11672 appropiately.
11673
11674 2011-01-11 Tom Tromey <tromey@redhat.com>
11675
11676 * thread.c (do_captured_thread_select): Emit newline before
11677 printing frame.
11678
11679 2011-01-11 Michael Snyder <msnyder@vmware.com>
11680
11681 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11682 * score-tdep.c: Ditto.
11683 * score-tdep.h: Ditto.
11684 * ser-base.c: Ditto.
11685 * ser-go32.c: Ditto.
11686 * serial.c: Ditto.
11687 * serial.h: Ditto.
11688 * ser-mingw.c: Ditto.
11689 * ser-pipe.c: Ditto.
11690 * ser-tcp.c: Ditto.
11691 * ser-unix.c: Ditto.
11692 * sh64-tdep.c: Ditto.
11693 * shnbsd-nat.c: Ditto.
11694 * sh-tdep.c: Ditto.
11695 * sh-tdep.h: Ditto.
11696 * solib.c: Ditto.
11697 * solib-darwin.c: Ditto.
11698 * solib-frv.c: Ditto.
11699 * solib.h: Ditto.
11700 * solib-irix.c: Ditto.
11701 * solib-osf.c: Ditto.
11702 * solib-pa64.c: Ditto.
11703 * solib-som.c: Ditto.
11704 * solib-spu.c: Ditto.
11705 * solib-sunos.c: Ditto.
11706 * solib-svr4.c: Ditto.
11707 * solist.h: Ditto.
11708 * sol-thread.c: Ditto.
11709 * somread.c: Ditto.
11710 * source.c: Ditto.
11711 * source.h: Ditto.
11712 * sparc64-linux-tdep.c: Ditto.
11713 * sparc64-tdep.c: Ditto.
11714 * sparc-linux-nat.c: Ditto.
11715 * sparc-linux-tdep.c: Ditto.
11716 * sparc-sol2-nat.c: Ditto.
11717 * sparc-sol2-tdep.c: Ditto.
11718 * sparc-tdep.c: Ditto.
11719 * sparc-tdep.h: Ditto.
11720 * spu-tdep.c: Ditto.
11721 * stabsread.c: Ditto.
11722 * stabsread.h: Ditto.
11723 * stack.c: Ditto.
11724 * symfile.c: Ditto.
11725 * symfile.h: Ditto.
11726 * symmisc.c: Ditto.
11727 * symtab.c: Ditto.
11728 * symtab.h: Ditto.
11729 * target.c: Ditto.
11730 * target-descriptions.c: Ditto.
11731 * target-descriptions.h: Ditto.
11732 * target.h: Ditto.
11733 * target-memory.c: Ditto.
11734 * terminal.h: Ditto.
11735 * thread.c: Ditto.
11736 * top.c: Ditto.
11737 * tracepoint.c: Ditto.
11738 * tracepoint.h: Ditto.
11739 * trad-frame.h: Ditto.
11740 * typeprint.c: Ditto.
11741
11742 2011-01-11 Michael Snyder <msnyder@vmware.com>
11743
11744 * ui-file.c: Comment cleanup, mostly periods and spaces.
11745 * ui-file.h: Ditto.
11746 * ui-out.c: Ditto.
11747 * ui-out.h: Ditto.
11748 * utils.c: Ditto.
11749 * v850-tdep.c: Ditto.
11750 * valarith.c: Ditto.
11751 * valops.c: Ditto.
11752 * valprint.c: Ditto.
11753 * valprint.h: Ditto.
11754 * value.c: Ditto.
11755 * value.h: Ditto.
11756 * varobj.c: Ditto.
11757 * varobj.h: Ditto.
11758 * vax-tdep.c: Ditto.
11759 * vec.c: Ditto.
11760 * vec.h: Ditto.
11761 * version.h: Ditto.
11762 * windows-nat.c: Ditto.
11763 * windows-tdep.c: Ditto.
11764 * xcoffread.c: Ditto.
11765 * xcoffsolib.c: Ditto.
11766 * xml-support.c: Ditto.
11767 * xstormy16-tdep.c: Ditto.
11768 * xtensa-tdep.c: Ditto.
11769 * xtensa-tdep.h: Ditto.
11770
11771 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11772
11773 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11774 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11775
11776 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11777 Thiago Jung Bauermann <bauerman@br.ibm.com>
11778
11779 Implement support for PowerPC BookE ranged watchpoints.
11780 * breakpoint.h
11781 (struct breakpoint_ops) <resources_needed>: New method.
11782 Initialize to NULL in all existing breakpoint_ops instances.
11783 (struct breakpoint) <exact>: New field.
11784 (target_exact_watchpoints): Declare external global.
11785 * breakpoint.c (target_exact_watchpoints): New global flag.
11786 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11787 b->enable_state to bp_enabled before calling
11788 hw_watchpoint_used_count.
11789 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11790 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11791 if available.
11792 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11793 if the watchpoint is exact.
11794 (resources_needed_watchpoint): New function.
11795 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11796 (watch_command_1): Set b->exact if the user asked for an exact
11797 watchpoint and one can be set.
11798 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11799 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11800 the user asks for an exact watchpoint and one can be set. Return
11801 number of needed debug registers to watch the expression.
11802 * gdbtypes.c (is_scalar_type): New function, based on
11803 valprint.c:scalar_type_p.
11804 (is_scalar_type_recursive): New function.
11805 * gdbtypes.h (is_scalar_type_recursive): Declare.
11806 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11807 handle regions when ranged watchpoints are available.
11808 (create_watchpoint_request): New function.
11809 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11810 create_watchpoint_request.
11811 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11812 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11813 `set powerpc' and `show powerpc' commands.
11814 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11815 Mention documentation comment in the target macro.
11816 (target_region_ok_for_hw_watchpoint): Document return value.
11817
11818 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11819
11820 * breakpoint.c (update_watchpoint): Decide on using a software or
11821 hardware watchpoint after the bp_locations are created.
11822
11823 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11824
11825 Convert hardware watchpoints to use breakpoint_ops.
11826 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11827 <insert_location>: ... this. Return int instead of void.
11828 Accept pointer to struct bp_location instead of pointer to
11829 struct breakpoint. Adapt all implementations.
11830 (breakpoint_ops) <remove>: Rename to...
11831 <remove_location>: ... this. Accept pointer to struct bp_location
11832 instead of pointer to struct breakpoint. Adapt all implementations.
11833 * breakpoint.c (insert_catchpoint): Delete function.
11834 (insert_bp_location): Call the watchpoint or catchpoint's
11835 breakpoint_ops.insert method.
11836 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11837 breakpoint_ops.remove method.
11838 (insert_watchpoint, remove_watchpoint): New functions.
11839 (watchpoint_breakpoint_ops): New structure.
11840 (watch_command_1): Initialize the OPS field.
11841 * inf-child.c (inf_child_insert_fork_catchpoint)
11842 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11843 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11844 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11845 Delete functions.
11846 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11847 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11848 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11849 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11850 * target.c (update_current_target): Change default implementation of
11851 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11852 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11853 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11854 to_set_syscall_catchpoint to return_one.
11855 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11856 (debug_to_insert_exec_catchpoint): Report return value.
11857 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11858 (to_insert_exec_catchpoint): Change declaration to return int instead
11859 of void.
11860
11861 2011-01-11 Michael Snyder <msnyder@vmware.com>
11862
11863 * arm-tdep.c: Internationalization.
11864 * c-lang.c: Ditto.
11865 * charset.c: Ditto.
11866 * fork-child.c: Ditto.
11867 * nto-procfs.c: Ditto.
11868 * ppc-sysv-tdep.c: Ditto.
11869 * procfs.c: Ditto.
11870 * remote-mips.c: Ditto.
11871 * remote.c: Ditto.
11872 * rs6000-nat.c: Ditto.
11873 * rs6000-tdep.c: Ditto.
11874 * target.c: Ditto.
11875 * valops.c: Ditto.
11876 * value.c: Ditto.
11877 * xml-support.c: Ditto.
11878 * mi/mi-cmd-break.c: Ditto.
11879 * mi/mi-cmd-var.c: Ditto.
11880 * mi/mi-interp.c: Ditto.
11881 * mi/mi-main.c: Ditto.
11882
11883 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11884
11885 * remote-sim.c (gdbsim_store_register): Update API to
11886 sim_store_register to check more error conditions.
11887
11888 2011-01-10 Michael Snyder <msnyder@vmware.com>
11889
11890 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11891 * nto-tdep.c: Ditto.
11892 * nto-tdep.h: Ditto.
11893 * objc-exp.y: Ditto.
11894 * objc-lang.c: Ditto.
11895 * objfiles.c: Ditto.
11896 * objfiles.h: Ditto.
11897 * observer.c: Ditto.
11898 * opencl-lang.c: Ditto.
11899 * osabi.c: Ditto.
11900 * parse.c: Ditto.
11901 * parser-defs.h: Ditto.
11902 * p-exp.y: Ditto.
11903 * p-lang.c: Ditto.
11904 * posix-hdep.c: Ditto.
11905 * ppcbug-rom.c: Ditto.
11906 * ppc-linux-nat.c: Ditto.
11907 * ppc-linux-tdep.c: Ditto.
11908 * ppc-linux-tdep.h: Ditto.
11909 * ppcnbsd-tdep.c: Ditto.
11910 * ppcobsd-tdep.c: Ditto.
11911 * ppcobsd-tdep.h: Ditto.
11912 * ppc-sysv-tdep.c: Ditto.
11913 * ppc-tdep.h: Ditto.
11914 * printcmd.c: Ditto.
11915 * proc-abi.c: Ditto.
11916 * proc-flags.c: Ditto.
11917 * procfs.c: Ditto.
11918 * proc-utils.h: Ditto.
11919 * progspace.h: Ditto.
11920 * prologue-value.c: Ditto.
11921 * prologue-value.h: Ditto.
11922 * psympriv.h: Ditto.
11923 * psymtab.c: Ditto.
11924 * p-typeprint.c: Ditto.
11925 * p-valprint.c: Ditto.
11926 * ravenscar-sparc-thread.c: Ditto.
11927 * ravenscar-thread.c: Ditto.
11928 * ravenscar-thread.h: Ditto.
11929 * record.c: Ditto.
11930 * regcache.c: Ditto.
11931 * regcache.h: Ditto.
11932 * remote.c: Ditto.
11933 * remote-fileio.c: Ditto.
11934 * remote-fileio.h: Ditto.
11935 * remote.h: Ditto.
11936 * remote-m32r-sdi.c: Ditto.
11937 * remote-mips.c: Ditto.
11938 * remote-sim.c: Ditto.
11939 * rs6000-aix-tdep.c: Ditto.
11940 * rs6000-nat.c: Ditto.
11941 * rs6000-tdep.c: Ditto.
11942
11943 2011-01-10 Michael Snyder <msnyder@vmware.com>
11944
11945 * charset.c (validate): Internationalization.
11946 * coffread.c (read_one_sym): Ditto.
11947 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11948 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11949 * inflow.c (new_tty): Ditto.
11950 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11951 * m32c-tdep.c (m32c_return_value): Ditto.
11952 * mep-tdep.c (mep_store_return_value): Ditto.
11953 * score-tdep.c (score7_fetch_insn): Ditto.
11954 * ser-mingw.c (pipe_windows_open): Ditto.
11955 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11956 * spu-tdep.c (spu_register_type): Ditto.
11957 * tracepoint.c (trace_find_command): Ditto.
11958 * valarith.c (value_pos): Ditto.
11959
11960 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11961
11962 * ada-valprint.c (printstr): Minor comment reformatting.
11963
11964 2011-01-08 Michael Snyder <msnyder@vmware.com>
11965
11966 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11967 markup.
11968
11969 2011-01-08 Michael Snyder <msnyder@vmware.com>
11970
11971 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11972 * hppa-hpux-tdep.c: Ditto.
11973 * hppa-linux-nat.c: Ditto.
11974 * hppa-linux-tdep.c: Ditto.
11975 * hppanbsd-tdep.c: Ditto.
11976 * hppa-tdep.c: Ditto.
11977 * hppa-tdep.h: Ditto.
11978 * hpux-thread.c: Ditto.
11979 * i386-cygwin-tdep.c: Ditto.
11980 * i386-darwin-nat.c: Ditto.
11981 * i386gnu-nat.c: Ditto.
11982 * i386-linux-nat.c: Ditto.
11983 * i386-linux-tdep.c: Ditto.
11984 * i386-nat.c: Ditto.
11985 * i386-nat.h: Ditto.
11986 * i386nbsd-tdep.c: Ditto.
11987 * i386-sol2-nat.c: Ditto.
11988 * i386-stub.c: Ditto.
11989 * i386-tdep.c: Ditto.
11990 * i386-tdep.h: Ditto.
11991 * i387-tdep.c: Ditto.
11992 * ia64-linux-nat.c: Ditto.
11993 * ia64-linux-tdep.c: Ditto.
11994 * ia64-tdep.c: Ditto.
11995 * infcall.c: Ditto.
11996 * infcall.h: Ditto.
11997 * infcmd.c: Ditto.
11998 * inferior.c: Ditto.
11999 * inferior.h: Ditto.
12000 * infloop.c: Ditto.
12001 * inflow.c: Ditto.
12002 * infrun.c: Ditto.
12003 * interps.c: Ditto.
12004 * interps.h: Ditto.
12005 * iq2000-tdep.c: Ditto.
12006 * irix5-nat.c: Ditto.
12007 * jit.c: Ditto.
12008 * jit.h: Ditto.
12009 * jv-exp.y: Ditto.
12010 * jv-lang.c: Ditto.
12011 * jv-lang.h: Ditto.
12012 * jv-typeprint.c: Ditto.
12013 * jv-valprint.c: Ditto.
12014 * language.c: Ditto.
12015 * language.h: Ditto.
12016 * linespec.c: Ditto.
12017 * linux-fork.c: Ditto.
12018 * linux-nat.c: Ditto.
12019 * linux-thread-db.c: Ditto.
12020 * lm32-tdep.c: Ditto.
12021
12022 2011-01-08 Michael Snyder <msnyder@vmware.com>
12023
12024 * m2-exp.y: Comment cleanup, mostly periods and spaces.
12025 * m2-lang.c: Ditto.
12026 * m2-typeprint.c: Ditto.
12027 * m2-valprint.c: Ditto.
12028 * m32c-tdep.c: Ditto.
12029 * m32r-linux-nat.c: Ditto.
12030 * m32r-rom.c: Ditto.
12031 * m32r-tdep.c: Ditto.
12032 * m32r-tdep.h: Ditto.
12033 * m68hc11-tdep.c: Ditto.
12034 * m58klinux-nat.c: Ditto.
12035 * m68k-tdep.c: Ditto.
12036 * m88k-tdep.c: Ditto.
12037 * m88k-tdep.h: Ditto.
12038 * machoread.c: Ditto.
12039 * macrocmd.c: Ditto.
12040 * macroexp.c: Ditto.
12041 * macrotab.c: Ditto.
12042 * main.c: Ditto.
12043 * maint.c: Ditto.
12044 * mdebugread.c: Ditto.
12045 * mdebugread.h: Ditto.
12046 * memattr.c: Ditto.
12047 * memattr.h: Ditto.
12048 * memory-map.h: Ditto.
12049 * mep-tdep.c: Ditto.
12050 * microblaze-rom.c: Ditto.
12051 * microblaze-tdep.c: Ditto.
12052 * minsyms.c: Ditto.
12053 * mips-irix-tdep.c: Ditto.
12054 * mips-linux-nat.c: Ditto.
12055 * mips-linux-tdep.c: Ditto.
12056 * mips-linux-tdep.h: Ditto.
12057 * mipsnbsd-nat.c: Ditto.
12058 * mipsnbsd-tdep.c: Ditto.
12059 * mipsread.c: Ditto.
12060 * mips-tdep.c: Ditto.
12061 * mips-tdep.h: Ditto.
12062 * mn10300-linux-tdep.c: Ditto.
12063 * mn10300-tdep.c: Ditto.
12064 * mn10300-tdep.h: Ditto.
12065 * monitor.c: Ditto.
12066 * monitor.h: Ditto.
12067 * moxie-tdep.c: Ditto.
12068 * moxie-tdep.h: Ditto.
12069 * mt-tdep.c: Ditto.
12070
12071 2011-01-08 Mike Frysinger <vapier@gentoo.org>
12072
12073 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12074
12075 2011-01-08 Robert Millan <rmh@gnu.org>
12076
12077 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12078
12079 2011-01-07 Michael Snyder <msnyder@vmware.com>
12080
12081 * charset.c (_initialize_charset): Fix typo in string.
12082
12083 2011-01-07 Michael Snyder <msnyder@vmware.com>
12084
12085 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12086 for i18n.
12087 * tui/tui-layout.c (tui_set_layout_for_display_command):
12088 Split line so that operator goes to beginning of line.
12089 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12090 assignment out of if statement.
12091
12092 2011-01-07 Michael Snyder <msnyder@vmware.com>
12093
12094 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12095 * ada-lang.h: Ditto.
12096 * ada-tasks.c: Ditto.
12097 * ada-valprint.c: Ditto.
12098 * aix-threads.c: Ditto.
12099 * alpha-linux-nat.c: Ditto.
12100 * alpha-linux-tdep.c: Ditto.
12101 * alpha-mdebug-tdep.c: Ditto.
12102 * alpha-nat.c: Ditto.
12103 * alpha-osf1-tdep.c: Ditto.
12104 * alpha-tdep.c: Ditto.
12105 * alphabsd-nat.c: Ditto.
12106 * alphabsd-tdep.c: Ditto.
12107 * amd64-darwin-tdep.c: Ditto.
12108 * amd64-linux-nat.c: Ditto.
12109 * amd64-linux-tdep.c: Ditto.
12110 * amd64-sol2-tdep.c: Ditto.
12111 * amd64-tdep.c: Ditto.
12112 * amd64-fbsd-tdep.c: Ditto.
12113 * amd64-nbsd-tdep.c: Ditto.
12114 * amd64-obsd-tdep.c: Ditto.
12115 * amd64-linux-nat.c: Ditto.
12116 * amd64-linux-tdep.c: Ditto.
12117 * arm-tdep.c: Ditto.
12118 * arm-tdep.h: Ditto.
12119 * armnbsd-nat.c: Ditto.
12120 * avr-tdep.c: Ditto.
12121 * bfin-tdep.c: Ditto.
12122 * bsd-kvm.c: Ditto.
12123 * c-typeprintc: Ditto.
12124 * c-valprint.c: Ditto.
12125 * coff-pe-read.h: Ditto.
12126 * coffreead.c: Ditto.
12127 * cris-tdep.c: Ditto.
12128 * d-lang.c: Ditto.
12129 * darwin-nat-info.c: Ditto.
12130 * darwin-nat.c: Ditto.
12131 * dbug-rom.c: Ditto.
12132 * dbxread.c: Ditto.
12133 * dcache.c: Ditto.
12134 * dcache.h: Ditto.
12135 * dec-thread.c: Ditto.
12136 * defs.h: Ditto.
12137 * demangle.c: Ditto.
12138 * dicos-tdep.c: Ditto.
12139 * dictionary.c: Ditto.
12140 * dictionary.h: Ditto.
12141 * dink32-rom.c: Ditto.
12142 * disasm.c: Ditto.
12143 * doublest.c: Ditto.
12144 * dsrec.c: Ditto.
12145 * dummy-frame.c: Ditto.
12146 * dwarf2-frame.c: Ditto.
12147 * dwarf2expr.c: Ditto.
12148 * dwarf2loc.c: Ditto.
12149 * dwarf2read.c: Ditto.
12150 * elfread.c: Ditto.
12151 * environ.c: Ditto.
12152 * eval.c: Ditto.
12153 * event-top.h: Ditto.
12154 * exceptions.c: Ditto.
12155 * exceptions.h: Ditto.
12156 * exec.c: Ditto.
12157 * expprint.c: Ditto.
12158 * expression.h: Ditto.
12159 * f-exp.y: Ditto.
12160 * f-lang.c: Ditto.
12161 * f-lang.h: Ditto.
12162 * f-typeprint.c: Ditto.
12163 * f-valprint.c: Ditto.
12164 * fbsd-nat.c: Ditto.
12165 * findvar.c: Ditto.
12166 * fork-child.c: Ditto.
12167 * frame.c: Ditto.
12168 * frame.h: Ditto.
12169 * frv-linux-tdep.c: Ditto.
12170 * frv-tdep.c: Ditto.
12171 * gcore.c: Ditto.
12172 * gdb-stabs.h: Ditto.
12173 * gdb_assert.h: Ditto.
12174 * gdb_string.h: Ditto.
12175 * gdb_thread_db.h: Ditto.
12176 * gdb_wait.h: Ditto.
12177 * gdbarch.sh: Ditto.
12178 * gdbcore.h: Ditto.
12179 * gdbthread.h: Ditto.
12180 * gdbtypes.c: Ditto.
12181 * gdbtypes.h: Ditto.
12182 * gnu-nat.c: Ditto.
12183 * gnu-nat.h: Ditto.
12184 * gnu-v2-abi.c: Ditto.
12185 * gnu-v3-abi.c: Ditto.
12186 * go32-nat.c: Ditto.
12187 * gdbarch.c: Regenerate.
12188 * gdbarch.h: Regenerate.
12189
12190 2011-01-07 Michael Snyder <msnyder@vmware.com>
12191
12192 * ax-gdb.c: Adjust some long output strings.
12193 * breakpoint.c: Ditto.
12194 * charset.c: Ditto.
12195 * cp-abi.c: Ditto.
12196 * infcall.c: Ditto.
12197 * infrun.c: Ditto.
12198 * linux-nat.c: Ditto.
12199 * solib-pa64.c: Ditto.
12200 * solib-som.c: Ditto.
12201
12202 2011-01-06 Tom Tromey <tromey@redhat.com>
12203
12204 PR python/12367:
12205 * NEWS: Add item.
12206 * python/python.c (GdbMethods): Add "newest_frame" method.
12207 * python/python-internal.h (gdbpy_newest_frame): Declare.
12208 * python/py-frame.c (gdbpy_newest_frame): New function.
12209
12210 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12211
12212 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12213 * jit.c (jit_debug): New variable.
12214 (show_jit_debug): New function.
12215 (struct target_buffer): Use ULONGEST.
12216 (bfd_open_from_target_memory): Likewise.
12217 (jit_register_code, jit_inferior_init): Add debug output.
12218 (_initialize_jit): Register "debug jit" command.
12219
12220 2011-01-06 Tom Tromey <tromey@redhat.com>
12221
12222 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12223 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12224 and ARCH_FRAME.
12225
12226 2011-01-06 Tom Tromey <tromey@redhat.com>
12227
12228 * python/py-frame.c (frapy_block): Use get_frame_block.
12229
12230 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12231
12232 Do not stop on SIGPRIO signals by default
12233 * infrun.c (_initialize_infrun): Unset signal_stop and
12234 signal_print for TARGET_SIGNAL_PRIO.
12235
12236 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12237
12238 * ada-tasks.c: Fix style violation in comment.
12239
12240 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12241
12242 * linespec.c (decode_compound, find_method): Remove trailing \n
12243 at end of error string.
12244 * solib-irix.c (irix_current_sos): Likewise.
12245 * varobj.c (uninstall_variable): Likewise.
12246
12247 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12248
12249 * copyright.py: New script.
12250 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12251 Launch emacs without exec'ing. Call copyright.py afterwards.
12252
12253 2011-01-05 Michael Snyder <msnyder@vmware.com>
12254
12255 * addrmap.c: Shorten lines of >= 80 columns.
12256 * arch-utils.c: Ditto.
12257 * arch-utils.h: Ditto.
12258 * ax-gdb.c: Ditto.
12259 * ax-general.c: Ditto.
12260 * bcache.c: Ditto.
12261 * blockframe.c: Ditto.
12262 * breakpoint.c: Ditto.
12263 * buildsym.c: Ditto.
12264 * c-lang.c: Ditto.
12265 * c-typeprint.c: Ditto.
12266 * charset.c: Ditto.
12267 * coffread.c: Ditto.
12268 * command.h: Ditto.
12269 * corelow.c: Ditto.
12270 * cp-abi.c: Ditto.
12271 * cp-namespace.c: Ditto.
12272 * cp-support.c: Ditto.
12273 * dbug-rom.c: Ditto.
12274 * dbxread.c: Ditto.
12275 * defs.h: Ditto.
12276 * dfp.c: Ditto.
12277 * dfp.h: Ditto.
12278 * dictionary.c: Ditto.
12279 * disasm.c: Ditto.
12280 * doublest.c: Ditto.
12281 * dwarf2-frame.c: Ditto.
12282 * dwarf2expr.c: Ditto.
12283 * dwarf2loc.c: Ditto.
12284 * dwarf2read.c: Ditto.
12285 * elfread.c: Ditto.
12286 * eval.c: Ditto.
12287 * event-loop.c: Ditto.
12288 * event-loop.h: Ditto.
12289 * exceptions.h: Ditto.
12290 * exec.c: Ditto.
12291 * expprint.c: Ditto.
12292 * expression.h: Ditto.
12293 * f-lang.c: Ditto.
12294 * f-valprint.c: Ditto.
12295 * findcmd.c: Ditto.
12296 * frame-base.c: Ditto.
12297 * frame-unwind.c: Ditto.
12298 * frame-unwind.h: Ditto.
12299 * frame.c: Ditto.
12300 * frame.h: Ditto.
12301 * gcore.c: Ditto.
12302 * gdb-stabs.h: Ditto.
12303 * gdb_assert.h: Ditto.
12304 * gdb_dirent.h: Ditto.
12305 * gdb_obstack.h: Ditto.
12306 * gdbcore.h: Ditto.
12307 * gdbtypes.c: Ditto.
12308 * gdbtypes.h: Ditto.
12309 * inf-ttrace.c: Ditto.
12310 * infcall.c: Ditto.
12311 * infcmd.c: Ditto.
12312 * inflow.c: Ditto.
12313 * infrun.c: Ditto.
12314 * inline-frame.h: Ditto.
12315 * language.c: Ditto.
12316 * language.h: Ditto.
12317 * libunwind-frame.c: Ditto.
12318 * libunwind-frame.h: Ditto.
12319 * linespec.c: Ditto.
12320 * linux-nat.c: Ditto.
12321 * linux-nat.h: Ditto.
12322 * linux-thread-db.c: Ditto.
12323 * machoread.c: Ditto.
12324 * macroexp.c: Ditto.
12325 * macrotab.c: Ditto.
12326 * main.c: Ditto.
12327 * maint.c: Ditto.
12328 * mdebugread.c: Ditto.
12329 * memattr.c: Ditto.
12330 * minsyms.c: Ditto.
12331 * monitor.c: Ditto.
12332 * monitor.h: Ditto.
12333 * objfiles.c: Ditto.
12334 * objfiles.h: Ditto.
12335 * osabi.c: Ditto.
12336 * p-typeprint.c: Ditto.
12337 * p-valprint.c: Ditto.
12338 * parse.c: Ditto.
12339 * printcmd.c: Ditto.
12340 * proc-events.c: Ditto.
12341 * procfs.c: Ditto.
12342 * progspace.c: Ditto.
12343 * progspace.h: Ditto.
12344 * psympriv.h: Ditto.
12345 * psymtab.c: Ditto.
12346 * record.c: Ditto.
12347 * regcache.c: Ditto.
12348 * regcache.h: Ditto.
12349 * remote-fileio.c: Ditto.
12350 * remote.c: Ditto.
12351 * ser-mingw.c: Ditto.
12352 * ser-tcp.c: Ditto.
12353 * ser-unix.c: Ditto.
12354 * serial.c: Ditto.
12355 * serial.h: Ditto.
12356 * solib-frv.c: Ditto.
12357 * solib-irix.c: Ditto.
12358 * solib-osf.c: Ditto.
12359 * solib-pa64.c: Ditto.
12360 * solib-som.c: Ditto.
12361 * solib-sunos.c: Ditto.
12362 * solib-svr4.c: Ditto.
12363 * solib-target.c: Ditto.
12364 * solib.c: Ditto.
12365 * somread.c: Ditto.
12366 * source.c: Ditto.
12367 * stabsread.c: Ditto.
12368 * stabsread.c: Ditto.
12369 * stack.c: Ditto.
12370 * stack.h: Ditto.
12371 * symfile-mem.c: Ditto.
12372 * symfile.c: Ditto.
12373 * symfile.h: Ditto.
12374 * symmisc.c: Ditto.
12375 * symtab.c: Ditto.
12376 * symtab.h: Ditto.
12377 * target-descriptions.c: Ditto.
12378 * target-memory.c: Ditto.
12379 * target.c: Ditto.
12380 * target.h: Ditto.
12381 * terminal.h: Ditto.
12382 * thread.c: Ditto.
12383 * top.c: Ditto.
12384 * tracepoint.c: Ditto.
12385 * tracepoint.h: Ditto.
12386 * ui-file.c: Ditto.
12387 * ui-file.h: Ditto.
12388 * ui-out.h: Ditto.
12389 * user-regs.c: Ditto.
12390 * user-regs.h: Ditto.
12391 * utils.c: Ditto.
12392 * valarith.c: Ditto.
12393 * valops.c: Ditto.
12394 * valprint.c: Ditto.
12395 * valprint.h: Ditto.
12396 * value.c: Ditto.
12397 * varobj.c: Ditto.
12398 * varobj.h: Ditto.
12399 * vec.h: Ditto.
12400 * xcoffread.c: Ditto.
12401 * xcoffsolib.c: Ditto.
12402 * xcoffsolib.h: Ditto.
12403 * xml-syscall.c: Ditto.
12404 * xml-tdesc.c: Ditto.
12405
12406 2011-01-05 Michael Snyder <msnyder@vmware.com>
12407
12408 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12409 * cli/cli-decode.c: Ditto.
12410 * cli/cli-dump.c: Ditto.
12411 * cli/cli-logging.c: Ditto.
12412 * cli/cli-script.c: Ditto.
12413 * cli/cli-setshow.c: Ditto.
12414 * common/signals.c: Ditto.
12415 * mi/mi-cmd-break.c: Ditto.
12416 * mi/mi-cmd-disas.c: Ditto.
12417 * mi/mi-cmd-stack.c: Ditto.
12418 * mi/mi-cmd-var.c: Ditto.
12419 * mi/mi-cmds.c: Ditto.
12420 * mi/mi-common.h: Ditto.
12421 * mi/mi-console.c: Ditto.
12422 * mi/mi-interp.c: Ditto.
12423 * mi/mi-main.c: Ditto.
12424 * osf-share/cma_attr.c: Ditto.
12425 * osf-share/cma_deb_core.h: Ditto.
12426 * osf-share/cma_debug_client.h: Ditto.
12427 * osf-share/cma_handle.h: Ditto.
12428 * osf-share/cma_mutex.h: Ditto.
12429 * osf-share/cma_stack_int.h: Ditto.
12430 * osf-share/cma_tcb_defs.h: Ditto.
12431 * python/py-auto-load.c: Ditto.
12432 * python/py-breakpoint.c: Ditto.
12433 * python/py-cmd.c: Ditto.
12434 * python/py-frame.c: Ditto.
12435 * python/py-objfile.c: Ditto.
12436 * python/py-param.c: Ditto.
12437 * python/py-progspace.c: Ditto.
12438 * python/py-symbol.c: Ditto.
12439 * python/py-value.c: Ditto.
12440 * python/python-internal.h: Ditto.
12441 * python/python.c: Ditto.
12442 * tui/tui-data.c: Ditto.
12443 * tui/tui-disasm.c: Ditto.
12444 * tui/tui-hooks.c: Ditto.
12445 * tui/tui-io.c: Ditto.
12446 * tui/tui-layout.c: Ditto.
12447 * tui/tui-regs.c: Ditto.
12448 * tui/tui-source.c: Ditto.
12449 * tui/tui-stack.c: Ditto.
12450 * tui/tui-win.c: Ditto.
12451 * tui/tui-windata.c: Ditto.
12452 * tui/tui-winsource.c: Ditto.
12453
12454 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12455
12456 * configure.ac, gdb.1: Copyright year update.
12457
12458 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12459
12460 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12461 this_pc_in_block, morestack_msym and morestack_name. Check for
12462 "__morestack" minimal symbol there.
12463
12464 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12465
12466 * symfile.c (find_sym_fns): Add call to dont_repeat.
12467
12468 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12469
12470 Copyright year update in most files (performed by copyright.sh).
12471
12472 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12473
12474 * top.c (print_gdb_version): Update copyright year in version output.
12475
12476 For older changes see ChangeLog-2010.
12477 \f
12478 Local Variables:
12479 mode: change-log
12480 left-margin: 8
12481 fill-column: 74
12482 version-control: never
12483 coding: utf-8
12484 End: