* s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
4 in return PSWA.
5
6 2011-12-19 Tom Tromey <tromey@redhat.com>
7
8 * symtab.h (add_minsym_to_hash_table): Don't declare.
9 * minsyms.c (add_minsym_to_hash_table): Now static.
10
11 2011-12-19 Joel Brobecker <brobecker@adacore.com>
12
13 * elfread.c (elf_symtab_read): Ignore undefined symbols with
14 nonzero addresses if they do not correspond to a .plt section
15 when one is available in the objfile.
16
17 2011-12-17 Andreas Schwab <schwab@linux-m68k.org>
18
19 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
20 obstack_empty_p.
21
22 2011-12-17 Mark Kettenis <kettenis@gnu.org>
23
24 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
25 regset_from_core_section.
26 (amd64obsd_core_init_abi): New function that sets
27 regset_from_core_section.
28 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
29 traditional core dumps.
30
31 2011-12-17 Mark Kettenis <kettenis@gnu.org>
32
33 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
34 trampoline to be introduced in OpenBSD 5.0.
35
36 2011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
37
38 Fix build regression from the PR threads/10729 fix.
39 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
40 not LP->PTID.
41
42 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
43
44 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
45 `optarg' to `oind' and `oarg', respectively(-Wshadow).
46 (mi_cmd_data_read_memory): Ditto.
47 (mi_cmd_data_read_memory_bytes): Ditto.
48 (mi_cmd_data_write_memory): Ditto.
49
50 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
51
52 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
53 `oind' and `oarg', respectively(-Wshadow).
54 (mi_valid_noargs): Ditto.
55
56 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
57
58 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
59 `oind' and `oarg', respectively(-Wshadow).
60
61 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
62
63 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
64 `optarg' to `oind' and `oarg', respectively(-Wshadow).
65 (mi_cmd_target_file_put): Ditto.
66 (mi_cmd_target_file_delete): Ditto.
67
68 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
69
70 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
71 `optarg' to `oind' and `oarg', respectively(-Wshadow).
72 (mi_cmd_env_dir): Ditto.
73
74 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
75
76 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
77 `optarg' to `oind' and `oarg', respectively(-Wshadow).
78
79 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
80
81 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
82 `optparg' to `oind' and `oarg', respectively(-Wshadow).
83 (mi_cmd_break_watch): Ditto.
84
85 2011-12-16 Tom Tromey <tromey@redhat.com>
86
87 * linespec.c (collect_symbols): Call maybe_add_address after
88 calling symbol_to_sal.
89 (minsym_found): Call maybe_add_address here.
90 (search_minsyms_for_name): Don't call maybe_add_address.
91
92 2011-12-16 Tom Tromey <tromey@redhat.com>
93
94 * linespec.c (struct collect_info) <objfile>: Remove field.
95 (decode_objc): Update.
96 (find_method): Update.
97 (decode_variable): Update.
98 (struct minsym_and_objfile): New.
99 (struct collect_minsyms): New.
100 (classify_mtype): New function.
101 (compare_msyms): Likewise.
102 (add_minsym): Likewise.
103 (check_minsym): Remove.
104 (search_minsyms_for_name): Sort minsyms and apply only those with
105 top priority.
106
107 2011-12-16 Tom Tromey <tromey@redhat.com>
108
109 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
110
111 2011-12-16 Pedro Alves <pedro@codesourcery.com>
112
113 * inf-loop.c: Include top.h.
114 (inferior_event_handler): Call check_frame_language.
115 * top.c (check_frame_language_change): New, factored out from ...
116 (execute_command): ... this. Use check_frame_language_change.
117 * top.h (check_frame_language_change): Declare.
118
119 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
120
121 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
122 prototypes.
123
124 2011-12-16 Doug Evans <dje@google.com>
125
126 * NEWS: Add entry for stdio gdbserver.
127
128 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
129
130 * python/python.c: Define python_excp_enums.
131 (eval_python_from_control_command): Do not call gdbpy_print_stack.
132 (python_command): Ditto.
133 (gdbpy_print_stack): Rewrite to use new enum constants.
134 (maint_set_python): Remove function.
135 (maint_show_python): Ditto.
136 (_initialize_python): Do not add "maint" commands. Add "set/show
137 python print-stack commands".
138 * NEWS: Update to reflect removal for "maint set/show
139 print-stack"
140
141 2011-12-15 Doug Evans <dje@google.com>
142
143 * exceptions.c (catcher_list_size): New function.
144 (last_message): Delete.
145 (exception_messages, exception_messages_size): New static globals.
146 (throw_it): Use exception_messages array to handle nested calls.
147
148 2011-12-15 Tom Tromey <tromey@redhat.com>
149
150 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
151 do_cleanups call.
152
153 2011-12-14 Doug Evans <dje@google.com>
154
155 * defs.h (wait_to_die_with_timeout): Declare.
156 * utils.c: #include "gdb_wait.h".
157 (sigalrm_handler, wait_to_die_with_timeout): New functions.
158 * ser-pipe.c: Don't #include "gdb_wait.h".
159 (pipe_close): Give child a chance to die on its own after closing
160 its stdin before SIGTERM'ing it.
161
162 2011-12-14 Joel Brobecker <brobecker@adacore.com>
163 Tom Tromey <tromey@redhat.com>
164
165 * ada-lang.c (add_nonlocal_symbols): Initialize data to
166 all zeros. Remove setting of data.arg_sym to NULL.
167
168 2011-12-14 Pedro Alves <pedro@codesourcery.com>
169
170 PR threads/10729
171
172 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
173 pointer.
174 (linux_nat_prepare_to_resume): New global.
175 (lwp_free): New.
176 (purge_lwp_list): Use it.
177 (add_lwp): Call linux_nat_new_thread even on the first LWP.
178 Adjust to interface change.
179 (delete_lwp): Call lwp_free instead of xfree.
180 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
181 (linux_handle_syscall_trap, linux_handle_extended_wait)
182 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
183 linux_nat_prepare_to_resume before resuming.
184 (linux_stop_lwp): New.
185 (linux_nat_set_new_thread): Adjust.
186 (linux_nat_set_prepare_to_resume): New.
187 * linux-nat.h (struct arch_lwp_info): Forward declare.
188 (struct lwp_info) <arch_private>: New field.
189 (linux_stop_lwp): Declare.
190 (linux_nat_set_new_thread): Adjust.
191 (linux_nat_set_prepare_to_resume): New.
192
193 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
194 (struct i386_debug_reg_state): Move to i386-nat.h.
195 (dr_mirror): Comment.
196 (i386_debug_reg_state): New.
197 (i386_update_inferior_debug_regs): Simplify.
198 (i386_stopped_data_address): Use the debug register state from the
199 inferior, not from the local cache.
200 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
201 unset_status fields. New get_addr and get_control fields.
202 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
203 (DR_NADDR, DR_STATUS): New.
204 (struct i386_debug_reg_state): Moved from i386-nat.c.
205
206 * amd64-linux-nat.c (struct arch_lwp_info): New.
207 (amd64_linux_dr): Delete global.
208 (amd64_linux_dr_get_addr): New.
209 (amd64_linux_dr_get_control): New.
210 (amd64_linux_dr_unset_status): Delete.
211 (amd64_linux_dr_set_addr): Reimplement.
212 (amd64_linux_dr_reset_addr): Delete.
213 (update_debug_registers_callback): New.
214 (amd64_linux_dr_set_control): Reimplement.
215 (amd64_linux_dr_set_addr): Reimplement.
216 (amd64_linux_prepare_to_resume): New.
217 (amd64_linux_new_thread): Change parameter to an lwp pointer.
218 Reimplement.
219 (_initialize_amd64_linux_nat): No longer install
220 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
221 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
222 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
223 amd64_linux_prepare_to_resume.
224 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
225 (DR_CONTROL): Delete.
226 (struct arch_lwp_info): New.
227 (i386_linux_dr): Delete global.
228 (i386_linux_dr_set_control): Reimplement.
229 (i386_linux_dr_get_addr): New.
230 (i386_linux_dr_set_addr): Reimplement.
231 (i386_linux_dr_get_control): New.
232 (update_debug_registers_callback): New.
233 (i386_linux_dr_unset_status): Delete.
234 (i386_linux_dr_set_addr): Reimplement.
235 (i386_linux_prepare_to_resume): New.
236 (i386_linux_new_thread): Change parameter to an lwp pointer.
237 Reimplement.
238 (_initialize_i386_linux_nat): No longer install
239 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
240 i386_linux_dr_get_control as i386_dr_low.get_control. Install
241 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
242 i386_linux_prepare_to_resume.
243
244 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
245 lwp pointer. Adjust.
246 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
247 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
248 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
249 * s390-nat.c (s390_fix_watch_points): Likewise.
250
251 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
252 (DR_CONTROL): Delete.
253 (i386_darwin_dr_reset_addr): Delete.
254 (i386_darwin_dr_get_addr): New.
255 (i386_darwin_dr_get_control): New.
256 * go32-nat.c
257 (go32_get_dr7, go32_get_dr): New.
258 (init_go32_ops): No longer install i386_dr_low.reset_addr.
259 Install go32_get_dr7 as i386_dr_low.get_control. Install
260 go32_get_dr as i386_dr_low.get_addr.
261 * i386bsd-nat.c (i386bsd_dr_get): New.
262 (i386bsd_dr_reset_addr): Delete.
263 (i386bsd_dr_get_addr): New.
264 (i386bsd_dr_get_status): Use i386bsd_dr_get.
265 (i386bsd_dr_get_control): New.
266 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
267 (i386bsd_dr_get_addr): New.
268 (i386bsd_dr_get_control): New.
269 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
270 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
271 i386bsd_dr_get_control as i386_dr_low.get_control. Install
272 i386bsd_dr_get_addr as i386_dr_low.get_addr.
273 * windows-nat.c (init_windows_ops): No longer install
274 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
275 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
276 as i386_dr_low.get_addr.
277 (cygwin_get_dr): New.
278 (cygwin_get_dr7): New.
279
280 2011-12-14 Pedro Alves <pedro@codesourcery.com>
281
282 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
283 target_write_raw_memory.
284 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
285 target_write_raw_memory.
286 * microblaze-linux-tdep.c
287 (microblaze_linux_memory_remove_breakpoint): Use
288 target_write_raw_memory.
289 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
290 target_write_raw_memory.
291
292 2011-12-14 Joel Brobecker <brobecker@adacore.com>
293
294 * linespec.c (decode_line_internal): Make static.
295
296 2011-12-14 Yao Qi <yao@codesourcery.com>
297
298 * breakpoint.c (create_breakpoint): Set canonical.addr_string
299 for static tracepoint.
300
301 2011-12-13 Joel Brobecker <brobecker@adacore.com>
302
303 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
304 * version.in: Bump version to 7.4.50.20111213-cvs.
305
306 2011-12-13 Joel Brobecker <brobecker@adacore.com>
307
308 * NEWS: Create a new section for the next release branch.
309 Rename the section of the current branch, now that it has
310 been cut.
311
312 2011-12-11 Joel Brobecker <brobecker@adacore.com>
313
314 * ada-lang.c (ada_exception_support_info_sniffer): Improve
315 error message.
316
317 2011-12-11 Joel Brobecker <brobecker@adacore.com>
318
319 * ada-lang.c (struct ada_inferior_data) [exception_info]:
320 New field.
321 (exception_info): Delete.
322 (ada_exception_support_info_sniffer): Get exception_support_info
323 data from our per-inferior data. Adjust code accordingly.
324 (ada_unhandled_exception_name_addr_from_raise): Likewise.
325 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
326 (ada_executable_changed_observer): Delete.
327 (_initialize_ada_language): Remove call to
328 observer_attach_executable_changed.
329
330 2011-12-11 Joel Brobecker <brobecker@adacore.com>
331
332 * ada-lang.c (ada_has_this_exception_support): Raise an error
333 if we could find the Ada exception hook in the Ada runtime,
334 but no debugging info for that hook.
335
336 2011-12-11 Joel Brobecker <brobecker@adacore.com>
337
338 * ada-lang.c (ada_has_this_exception_support): New function,
339 extracted out of ada_exception_sal and ada_exception_sal.
340 (ada_exception_support_info_sniffer): Simplify by using
341 ada_has_this_exception_support.
342 (ada_exception_sal): Replace unnecessary checks by assertions.
343 Minor simplifications.
344
345 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
346
347 * breakpoint.c (update_global_location_list): Remove nested
348 definition of `b'(-Wshadow).
349
350 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
351
352 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
353 `error_flag'(-Wshadow).
354
355 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
356
357 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
358 `abfd'(-Wshadow).
359
360 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
361
362 * annotate.c (annotate_array_section_begin): Rename `index' to
363 `idx'(-Wshadow).
364
365 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
366
367 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
368 `idx'(-Wshadow).
369
370 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
371
372 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
373 `syscall' to `syscall_number'(-Wshadow).
374
375 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
376
377 * ada-lang.c (remove_extra_symbols): Rename `remove' to
378 `remove_p'(-Wshadow).
379
380 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
381
382 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
383 `ren_sym'(-Wshadow).
384
385 2011-12-10 Doug Evans <dje@google.com>
386
387 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
388 debug_types_section. All uses updated.
389 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
390 to is_debug_types_section.
391
392 * python/py-auto-load.c (source_section_scripts): Call xfree
393 instead of free.
394
395 2011-12-10 Hui Zhu <teawater@gmail.com>
396 Yao Qi <yao@codesourcery.com>
397
398 * tracepoint.c (start_tracing): Clear `inserted' flag.
399
400 2011-12-10 Hui Zhu <teawater@gmail.com>
401
402 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
403
404 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
405
406 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
407 `bpoint'(-Wshadow).
408
409 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
410
411 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
412 `marker' variables to `sal2' and `tpmarker' respectively
413 (-Wshadow).
414
415 2011-12-09 Andrew Pinski <apinski@cavium.com>
416
417 * linespec.c (hash_address_entry): Use iterative_hash_object on each
418 field rather than the struct itself.
419
420 2011-12-09 Tom Tromey <tromey@redhat.com>
421
422 * breakpoint.c (compare_breakpoints): New function.
423 (clear_command): Remove duplicate breakpoints. Properly clean
424 up.
425
426 2011-12-08 Maciej W. Rozycki <macro@mips.com>
427 Maciej W. Rozycki <macro@codesourcery.com>
428
429 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
430 address chunks retrieved from decoded lui/addiu pairs.
431
432 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
433
434 * mips-tdep.c (extended_offset): Correct calculation.
435 (unpack_mips16): Correct bitfield positions used for extraction
436 of the immediate argument; fix sign-extension of same.
437 (extended_mips16_next_pc): Correct B instruction's offset
438 calculation. Correct register decoding of the BEQZ and BNEZ
439 as well as jump-register instructions. Handle compact jumps.
440
441 2011-12-08 Tom Tromey <tromey@redhat.com>
442
443 * objfiles.h (struct objfile): Remove obsolete comment.
444 * objfiles.c (build_objfile_section_table): Remove obsolete
445 comment.
446
447 2011-12-07 Stan Shebs <stan@codesourcery.com>
448
449 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
450 maintainer of the tic6x target.
451
452 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
453
454 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
455 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
456 (arm_deal_with_atomic_sequence_raw): Likewise.
457 (arm_deal_with_atomic_sequence): Likewise.
458 (arm_software_single_step): Call it.
459 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
460
461 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
462
463 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
464 where appropriate.
465 * s390-tdep.h: Likewise.
466
467 2011-12-07 Tristan Gingold <gingold@adacore.com>
468
469 * machoread.c (macho_symtab_read): Do not consider N_OPT as
470 a debugging stab. Improve complaint message.
471
472 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
473
474 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
475 load adjustment if still within the prologue.
476
477 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
478
479 * mips-tdep.c (mips32_next_pc): Fix floating point condition
480 code mask.
481
482 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
483
484 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
485 of BLTZ* and BGEZ* instructions.
486
487 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
488
489 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
490 performed to determine whether an address refers to standard
491 MIPS or MIPS16 code.
492 (mips16_next_pc): Use mips_pc_is_mips16 instead of
493 is_mips16_addr.
494
495 2011-12-06 Pedro Alves <pedro@codesourcery.com>
496
497 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
498 (breakpoint_xfer_memory): ... this. Change prototype. Handle
499 memory writes too.
500 * breakpoint.h (breakpoint_restore_shadows): Delete.
501 (breakpoint_xfer_memory): Declare.
502 * mem-break.c (default_memory_insert_breakpoint)
503 (default_memory_remove_breakpoint): Use target_write_raw_memory.
504 (memory_xfer_partial): Rename to ...
505 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
506 here.
507 (memory_xfer_partial): New.
508 (target_write_raw_memory): New.
509 * target.h (target_write_raw_memory): New.
510
511 2011-12-06 Doug Evans <dje@google.com>
512
513 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
514
515 2011-12-06 Joel Brobecker <brobecker@acacore.com>
516
517 * language.h (struct language_defn): Add new component
518 la_symbol_name_compare.
519 * symfile.h (struct quick_symbol_functions): Update the profile
520 of parameter "name_matcher" for the expand_symtabs_matching
521 method. Update the documentation accordingly.
522 * ada-lang.h (ada_name_for_lookup): Add declaration.
523 * ada-lang.c (ada_name_for_lookup): New function, extracted out
524 from ada_iterate_over_symbols.
525 (ada_iterate_over_symbols): Do not encode symbol name anymore.
526 (ada_expand_partial_symbol_name): Adjust profile.
527 (ada_language_defn): Add value for la_symbol_name_compare field.
528 * linespec.c: #include "ada-lang.h".
529 (iterate_name_matcher): Add language parameter. Replace call
530 to strcmp_iw by call to language->la_symbol_name_compare.
531 (decode_variable): Encode COPY if current language is Ada.
532 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
533 of name_matcher parameter. Adjust call to name_matcher.
534 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
535 (expand_partial_symbol_names): Update profile of parameter "fun".
536 * psymtab.h (expand_partial_symbol_names): Update profile of
537 parameter "fun".
538 * symtab.c (demangle_for_lookup): Update function documentation.
539 (search_symbols_name_matches): Add language parameter.
540 (expand_partial_symbol_name): Likewise.
541 * c-lang.c (c_language_defn, cplus_language_defn)
542 (asm_language_defn, minimal_language_defn): Add value for
543 la_symbol_name_compare field.
544 * d-lang.c (d_language_defn): Likewise.
545 * f-lang.c (f_language_defn): Ditto.
546 * jv-lang.c (java_language_defn): Ditto.
547 * m2-lang.c (m2_language_defn): Ditto.
548 * objc-lang.c (objc_language_defn): Ditto.
549 * opencl-lang.c (opencl_language_defn): Ditto.
550 * p-lang.c (pascal_language_defn): Ditto.
551 * language.c (unknown_language_defn, auto_language_defn)
552 (local_language_defn): Ditto.
553
554 2011-12-06 Tom Tromey <tromey@redhat.com>
555
556 * linespec.c (iterate_over_all_matching_symtabs): Use
557 LA_ITERATE_OVER_SYMBOLS.
558 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
559 (find_function_symbols, decode_variable): Remove Ada special
560 case.
561 * language.h (struct language_defn) <la_iterate_over_symbols>: New
562 field.
563 (LA_ITERATE_OVER_SYMBOLS): New macro.
564 * language.c (unknown_language_defn, auto_language_defn)
565 (local_language_defn): Update.
566 * c-lang.c (c_language_defn, cplus_language_defn)
567 (asm_language_defn, minimal_language_defn): Update.
568 * d-lang.c (d_language_defn): Update.
569 * f-lang.c (f_language_defn): Update.
570 * jv-lang.c (java_language_defn): Update.
571 * m2-lang.c (m2_language_defn): Update.
572 * objc-lang.c (objc_language_defn): Update.
573 * opencl-lang.c (opencl_language_defn): Update.
574 * p-lang.c (pascal_language_defn): Update.
575 * ada-lang.c (ada_iterate_over_symbols): New function.
576 (ada_language_defn): Update.
577
578 2011-12-06 Tom Tromey <tromey@redhat.com>
579 Joel Brobecker <brobecker@acacore.com>
580
581 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
582 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
583 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
584 PR shlibs/8929, PR shlibs/7393:
585 * python/py-type.c (compare_maybe_null_strings): Rename from
586 compare_strings.
587 (check_types_equal): Update.
588 * utils.c (compare_strings): New function.
589 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
590 location changes.
591 * tracepoint.c (scope_info): Update.
592 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
593 * symtab.h (iterate_over_minimal_symbols)
594 (iterate_over_some_symtabs, iterate_over_symtabs)
595 (find_pcs_for_symtab_line, iterate_over_symbols)
596 (demangle_for_lookup): Declare.
597 (expand_line_sal): Remove.
598 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
599 (lookup_symtab_callback): New functions.
600 (lookup_symtab): Rewrite.
601 (demangle_for_lookup): New function, extract from
602 lookup_symbol_in_language.
603 (lookup_symbol_in_language): Use it.
604 (iterate_over_symbols): New function.
605 (find_line_symtab): Update.
606 (find_pcs_for_symtab_line): New functions.
607 (find_line_common): Add 'start' argument.
608 (decode_line_spec): Update. Change argument to 'flags', change
609 interpretation.
610 (append_expanded_sal): Remove.
611 (append_exact_match_to_sals): Remove.
612 (expand_line_sal): Remove.
613 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
614 Remove.
615 <map_symtabs_matching_filename>: New field.
616 * stack.c (func_command): Only look in the current program space.
617 Use DECODE_LINE_FUNFIRSTLINE.
618 * source.c (line_info): Set pspace on sal. Check program space in
619 the loop. Use DECODE_LINE_LIST_MODE.
620 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
621 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
622 * python/python.c (gdbpy_decode_line): Update.
623 * psymtab.c (partial_map_expand_apply): New function.
624 (partial_map_symtabs_matching_filename): Rename from
625 lookup_partial_symbol. Update arguments.
626 (lookup_symtab_via_partial_symtab): Remove.
627 (psym_functions): Update.
628 * objc-lang.h (parse_selector, parse_method): Don't declare.
629 (find_imps): Update.
630 * objc-lang.c (parse_selector, parse_method): Now static.
631 (find_methods): Change arguments. Fill in a vector of symbol
632 names.
633 (uniquify_strings): New function.
634 (find_imps): Change arguments.
635 * minsyms.c (iterate_over_minimal_symbols): New function.
636 * linespec.h (enum decode_line_flags): New.
637 (struct linespec_sals): New.
638 (struct linespec_result) <canonical>: Remove.
639 <pre_expanded, addr_string, sals>: New fields.
640 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
641 (decode_line_full): Declare.
642 (decode_line_1): Update.
643 * linespec.c (struct address_entry, struct linespec_state, struct
644 collect_info): New types.
645 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
646 (eq_address_entry, maybe_add_address): New functions.
647 (total_number_of_methods): Remove.
648 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
649 functions.
650 (find_methods): Change arguments. Don't canonicalize input.
651 Simplify logic.
652 (add_matching_methods, add_constructors)
653 (build_canonical_line_spec): Remove.
654 (filter_results, convert_results_to_lsals): New functions.
655 (decode_line_2): Change arguments. Rewrite for new data
656 structures.
657 (decode_line_internal): Rename from decode_line_1. Change
658 arguments. Add cleanups. Update for new data structures.
659 (linespec_state_constructor, linespec_state_destructor)
660 (decode_line_full, decode_line_1): New functions.
661 (decode_indirect): Change arguments. Update.
662 (locate_first_half): Use skip_spaces.
663 (decode_objc): Change arguments. Update for new data structures.
664 Simplify logic.
665 (decode_compound): Change arguments. Add cleanups. Remove
666 fallback code, replace with error.
667 (struct decode_compound_collector): New type.
668 (collect_one_symbol): New function.
669 (lookup_prefix_sym): Change arguments. Update.
670 (compare_symbol_name, add_all_symbol_names_from_pspace)
671 (find_superclass_methods ): New functions.
672 (find_method): Rewrite.
673 (struct symtab_collector): New type.
674 (add_symtabs_to_list, collect_symtabs_from_filename): New
675 functions.
676 (symtabs_from_filename): Change API. Rename from
677 symtab_from_filename.
678 (collect_function_symbols): New function.
679 (find_function_symbols): Change API. Rename from
680 find_function_symbol. Rewrite.
681 (decode_all_digits): Change arguments. Rewrite.
682 (decode_dollar): Change arguments. Use decode_variable.
683 (decode_label): Change arguments. Rewrite.
684 (collect_symbols): New function.
685 (minsym_found): Change arguments. Rewrite.
686 (check_minsym, search_minsyms_for_name)
687 (add_matching_symbols_to_info): New function.
688 (decode_variable): Change arguments. Iterate over all symbols.
689 (symbol_found): Remove.
690 (symbol_to_sal): New function.
691 (init_linespec_result, destroy_linespec_result)
692 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
693 New functions.
694 (decode_digits_list_mode, decode_digits_ordinary): New functions.
695 * dwarf2read.c (dw2_map_expand_apply): New function.
696 (dw2_map_symtabs_matching_filename): Rename from
697 dw2_lookup_symtab. Change arguments.
698 (dwarf2_gdb_index_functions): Update.
699 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
700 * defs.h (compare_strings): Declare.
701 * cli/cli-cmds.c (compare_strings): Move to utils.c.
702 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
703 filter_sals.
704 (compare_symtabs, filter_sals): New functions.
705 * breakpoint.h (struct bp_location) <line_number, source_file>:
706 New fields.
707 (struct breakpoint) <line_number, source_file>: Remove.
708 <filter>: New field.
709 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
710 (momentary_breakpoint_from_master, add_location_to_breakpoint):
711 Update for changes to locations.
712 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
713 breakpoint.
714 (create_breakpoint_sal): Add 'filter' argument.
715 (remove_sal, expand_line_sal_maybe): Remove.
716 (create_breakpoints_sal): Remove 'sals' argument. Handle
717 pre-expanded sals and the filter.
718 (parse_breakpoint_sals): Use decode_line_full.
719 (check_fast_tracepoint_sals): Use get_sal_arch.
720 (create_breakpoint): Create a linespec_sals. Update.
721 (break_range_command): Use decode_line_full. Update.
722 (until_break_command): Update.
723 (clear_command): Update match conditions for linespec.c changes.
724 Use DECODE_LINE_LIST_MODE.
725 (say_where): Update for changes to locations.
726 (bp_location_dtor): Free 'source_file'.
727 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
728 (update_static_tracepoint): Update for changes to locations.
729 (update_breakpoint_locations): Disable ranged breakpoint if too
730 many locations match. Update.
731 (addr_string_to_sals): Use decode_line_full. Resolve all sal
732 PCs.
733 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
734 (decode_line_spec_1): Update. Change argument name to 'flags',
735 change interpretation.
736 * block.h (block_containing_function): Declare.
737 * block.c (block_containing_function): New function.
738 * skip.c (skip_function_command): Update.
739 (skip_re_set): Update.
740 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
741 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
742 * NEWS: Add entry.
743
744 2011-12-06 Tom Tromey <tromey@redhat.com>
745
746 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
747 breakpoint's pspace to be NULL.
748 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
749 * breakpoint.c (init_raw_breakpoint): Conditionally set
750 breakpoint's pspace.
751 (init_breakpoint_sal): Don't set breakpoint's pspace.
752 (prepare_re_set_context): Conditionally switch program space.
753 (addr_string_to_sals): Check executing_startup on location's
754 program space.
755
756 2011-12-06 Tom Tromey <tromey@redhat.com>
757
758 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
759 * breakpoint.c (should_be_inserted): Explicitly check if program
760 space is executing startup.
761 (describe_other_breakpoints): Update.
762 (disable_breakpoints_before_startup): Change executing_startup
763 earlier. Remove loop.
764 (enable_breakpoints_after_startup): Likewise.
765 (init_breakpoint_sal): Don't use bp_startup_disabled.
766 (create_breakpoint): Don't use bp_startup_disabled.
767 (update_global_location_list): Use should_be_inserted.
768 (bkpt_re_set): Update.
769
770 2011-12-06 Tom Tromey <tromey@redhat.com>
771
772 * python/lib/gdb/command/pretty_printers.py
773 (InfoPrettyPrinter.invoke1): Remove extra double quote.
774
775 2011-12-06 Tom Tromey <tromey@redhat.com>
776
777 * NEWS: Add MI news.
778
779 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
780
781 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
782 (S390_LAST_BREAK_REGNUM): Likewise.
783 (S390_SYSTEM_CALL_REGNUM): Likewise.
784 (S390_NUM_REGS): Update.
785
786 (s390_regmap_last_break): Add declaration.
787 (s390x_regmap_last_break): Likewise.
788 (s390_regmap_system_call): Likewise.
789
790 (tdesc_s390_linux32v1): Add declaration.
791 (tdesc_s390_linux32v2): Likewise.
792 (tdesc_s390_linux64v1): Likewise.
793 (tdesc_s390_linux64v2): Likewise.
794 (tdesc_s390x_linux64v1): Likewise.
795 (tdesc_s390x_linux64v2): Likewise.
796
797 * s390-tdep.c: Include new target description files
798 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
799 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
800 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
801 (s390_cannot_store_register): New function.
802 (s390_write_pc): Likewise.
803 (s390_dwarf_regmap): Add fields for new registers.
804 (s390_regmap_gregset): Likewise.
805 (s390x_regmap_gregset): Likewise.
806 (s390_regmap_fpregset): Likewise.
807 (s390_regmap_upper): Likewise.
808 (s390_regmap_last_break): New variable.
809 (s390x_regmap_last_break): Likewise.
810 (s390_regmap_system_call): Likewise.
811 (s390_last_break_regset): Likewise.
812 (s390x_last_break_regset): Likewise.
813 (s390_system_call_regset): Likewise.
814 (s390_upper_regset_sections): Rename to ...
815 (s390_linux64_regset_sections): ... this.
816 (s390_linux32_regset_sections): New variable.
817 (s390x_linux64_regset_sections): Likewise.
818 (s390_linux32v1_regset_sections): Likewise.
819 (s390_linux32v2_regset_sections): Likewise.
820 (s390_linux64v1_regset_sections): Likewise.
821 (s390_linux64v2_regset_sections): Likewise.
822 (s390x_linux64v1_regset_sections): Likewise.
823 (s390x_linux64v2_regset_sections): Likewise.
824 (s390_regset_from_core_section): Handle .reg-s390-last-break and
825 .reg-s390-system-call core file sections.
826 (s390_core_read_description): Check for presence of
827 .reg-s390-last-break and .reg-s390-system-call core file
828 sections and return appropriate target description.
829 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
830 "last_break" and "system_call" in target description. Install
831 appropriate gdbarch_core_regset_sections array.
832 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
833 (_initialize_s390_tdep): Initialize additional target descriptions.
834
835 * s390-nat.c: Include "elf/common.h".
836 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
837 (have_regset_last_break): New static variable.
838 (have_regset_system_call): Likewise.
839 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
840 (s390_native_collect): Likewise.
841 (fetch_regset, store_regset, check_regset): New functions.
842 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
843 and S390_SYSTEM_CALL_REGNUM.
844 (s390_linux_store_inferior_registers): Likewise.
845 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
846 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
847
848 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
849 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
850 (s390-linux32v1-expedite): Define.
851 (s390-linux32v2-expedite): Likewise.
852 (s390-linux64v1-expedite): Likewise.
853 (s390-linux64v2-expedite): Likewise.
854 (s390x-linux64v1-expedite): Likewise.
855 (s390x-linux64v2-expedite): Likewise.
856
857 * features/s390-linux32.xml: Add orig_r2 register.
858 * features/s390-linux64.xml: Likewise.
859 * features/s390x-linux64.xml: Likewise.
860 * features/s390-linux32v1.xml: New file.
861 * features/s390-linux32v2.xml: Likewise.
862 * features/s390-linux64v1.xml: Likewise.
863 * features/s390-linux64v2.xml: Likewise.
864 * features/s390x-linux64v1.xml: Likewise.
865 * features/s390x-linux64v2.xml: Likewise.
866
867 * features/s390-linux32.c: Regenerate.
868 * features/s390-linux64.c: Likewise.
869 * features/s390x-linux64.c: Likewise.
870 * features/s390-linux32v1.c: New generated file.
871 * features/s390-linux32v2.c: Likewise.
872 * features/s390-linux64v1.c: Likewise.
873 * features/s390-linux64v2.c: Likewise.
874 * features/s390x-linux64v1.c: Likewise.
875 * features/s390x-linux64v2.c: Likewise.
876
877 * regformats/s390-linux32.dat: Regenerate.
878 * regformats/s390-linux64.dat: Regenerate.
879 * regformats/s390x-linux64.dat: Regenerate.
880 * regformats/s390-linux32v1.dat: New generated file.
881 * regformats/s390-linux32v2.dat: Likewise.
882 * regformats/s390-linux64v1.dat: Likewise.
883 * regformats/s390-linux64v2.dat: Likewise.
884 * regformats/s390x-linux64v1.dat: Likewise.
885 * regformats/s390x-linux64v2.dat: Likewise.
886
887 2011-12-05 Pedro Alves <pedro@codesourcery.com>
888
889 * linux-nat.c (resume_stopped_resumed_lwps): Call
890 registers_changed.
891
892 2011-12-05 Pedro Alves <pedro@codesourcery.com>
893
894 * breakpoint.c: Include record.h.
895 (breakpoints_always_inserted_mode): Return false when the record
896 target is in use.
897
898 2011-12-05 Pedro Alves <pedro@codesourcery.com>
899
900 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
901 Reinstate perror_with_name call on ptrace error. Remove #if 0.
902 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
903 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
904
905 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
906
907 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
908 `i'(-Wshadow).
909
910 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
911
912 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
913
914 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
915
916 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
917 of `tdep'(-Wshadow).
918
919 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
920
921 Fix compilation --without-expat.
922 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
923 from ...
924 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
925
926 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
927 Jan Kratochvil <jan.kratochvil@redhat.com>
928
929 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
930 * features/library-list-svr4.dtd: New file.
931 * remote.c (PACKET_qXfer_libraries_svr4): New.
932 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
933 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
934 * solib-svr4.c (struct svr4_library_list): New.
935 [HAVE_LIBEXPAT]: Include xml-support.h.
936 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
937 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
938 [HAVE_LIBEXPAT] (svr4_library_list_children)
939 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
940 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
941 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
942 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
943 (svr4_read_so_list): Extend the corruption message by addresses.
944 (svr4_current_sos): New variable library_list, call
945 svr4_current_sos_via_xfer_libraries.
946 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
947
948 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
949
950 PR threads/13448
951 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
952 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
953
954 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
955
956 PR breakpoints/13346
957 * dwarf2read.c (process_psymtab_comp_unit): Set
958 PSYMTABS_ADDRMAP_SUPPORTED.
959 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
960 validity. New field psymtabs_addrmap_supported.
961 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
962 psymtabs_addrmap_supported.
963 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
964 !PSYMTABS_ADDRMAP_SUPPORTED.
965 (dump_psymtab, maintenance_info_psymtabs): Print also
966 psymtabs_addrmap_supported.
967
968 2011-12-01 Doug Evans <dje@google.com>
969
970 * python/py-type.c (type_object_methods): Fix "array" doc string.
971
972 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
973
974 * source.c (print_source_lines_base): Fix missing braces on else
975 clause leading to additional output.
976
977 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
978
979 * s390-nat.c (SUBOFF): Remove.
980 (s390_native_supply, s390_native_collect): New functions.
981 (supply_gregset, supply_fpregset): Use s390_native_supply.
982 (fill_gregset, fill_fpregset): Use s390_native_collect.
983
984 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
985 (s390_unwind_pseudo_register): New function.
986 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
987 registers instead of PC and CC.
988 (s390_backchain_frame_unwind_cache): Likewise.
989 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
990 full GPR pseudos.
991 (s390_trad_frame_prev_register): New function.
992 (s390_frame_prev_register): Use it.
993 (s390_sigtramp_frame_prev_register): Likewise.
994 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
995 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
996 special callback to unwind any pseudo.
997
998 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
999 * features/s390-core64.xml: Likewise.
1000 * features/s390x-core64.xml: Likewise.
1001 * features/s390-linux32.c: Regenerate.
1002 * features/s390-linux64.c: Likewise.
1003 * features/s390x-linux64.c: Likewise.
1004
1005 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1006
1007 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1008
1009 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1010
1011 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1012 instruction. Add more diagnostic output.
1013
1014 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1015
1016 * MAINTAINERS (Write After Approval): Add myself to the list.
1017
1018 2011-11-29 Sanjoy Das <sdas@igalia.com>
1019
1020 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1021 (jit_bfd_try_read_symtab): Fix comments.
1022
1023 2011-11-28 DJ Delorie <dj@redhat.com>
1024
1025 * NEWS: Mention RL78 simulator.
1026
1027 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1028
1029 * symfile.h (struct quick_symbol_functions): Fix the documentation
1030 of field map_matching_symbols, as symbols are sorted using
1031 strcmp_iw_ordered, not strcmp_iw.
1032
1033 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1034
1035 * symfile.h (struct quick_symbol_functions): Update the
1036 documentation for field map_matching_symbols.
1037
1038 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1039
1040 * ada-lang.c (compare_names): Fix wrong return value in case
1041 string1 starts with the same contents as string2, followed
1042 by an underscore that do not start a symbol name suffix.
1043
1044 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1045
1046 PR python/13369
1047 PR python/13374
1048
1049 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1050 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1051 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1052 exceptions.
1053 * python/py-type.c (typy_strip_typedefs): Ditto.
1054 (typy_legacy_template_argument): Ditto.
1055 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1056 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1057
1058 2011-11-27 Joel Brobecker <brobecker@acacore.com>
1059
1060 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1061 local variable. Avoid use of sprintf_vma.
1062
1063 2011-11-27 Sanjoy Das <sdas@igalia.com>
1064
1065 Fix regression in jit.exp.
1066 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1067 (jit_register_code): Set the jit_objfile_data field to the correct
1068 value.
1069
1070 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1071
1072 * alpha-tdep.c (br_opcode): New.
1073 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1074 (alpha_deal_with_atomic_sequence): New function.
1075 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1076 with alpha_deal_with_atomic_sequence.
1077
1078 2011-11-24 Tristan Gingold <gingold@adacore.com>
1079
1080 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1081 fields. Add oso_sym, end_sym and nbr_syms.
1082 (macho_register_oso): Change interface.
1083 (macho_symtab_add_minsym): New function.
1084 (macho_symtab_read): Rewritten.
1085 (get_archive_prefix_len): Remove trailing blanks.
1086 (oso_el_compare_name): Add comment.
1087 (struct macho_sym_hash_entry): New structure.
1088 (macho_relocate_common_syms): Remove.
1089 (macho_sym_hash_newfunc): New function.
1090 (macho_resolve_oso_sym_with_minsym): Likewise.
1091 (macho_add_oso_symfile): Rewritten.
1092 (macho_symfile_read_all_oso): Remove trailing blanks.
1093 Adjust code to free oso vector.
1094 (macho_symfile_read): Likewise.
1095 Move code to initialize minimal symbol
1096
1097 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1098
1099 * mips-tdep.c (extended_offset): Fix formatting.
1100
1101 2011-11-23 Doug Evans <dje@google.com>
1102
1103 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1104 (dw2_expand_symtabs_with_filename): Ditto.
1105 (dw2_expand_symtabs_matching): Ditto.
1106 (dw2_map_symbol_filenames): Ditto.
1107
1108 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1109
1110 * ada-lang.c (assign_aggregate): Minor reformatting.
1111
1112 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1113
1114 * ada-lang.c (assign_aggregate): Remove declaration of local
1115 variable `i' which is shadowing another variable with the same
1116 name declared in the outer scope.
1117
1118 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1119
1120 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1121 calls throughout this file.
1122
1123 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1124
1125 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1126 FormatMessage.
1127
1128 2011-11-22 Tom Tromey <tromey@redhat.com>
1129
1130 PR mi/8444:
1131 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1132 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1133 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1134 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1135 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1136 (print_it_catch_syscall, print_it_catch_exec)
1137 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1138 (bpstat_print): Add 'kind' argument. Handle
1139 TARGET_WAITKIND_LOADED.
1140 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1141 handle TARGET_WAITKIND_LOADED here.
1142 * breakpoint.h (bpstat_print): Update.
1143
1144 2011-11-22 Tom Tromey <tromey@redhat.com>
1145
1146 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1147
1148 2011-11-22 Tom Tromey <tromey@redhat.com>
1149
1150 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1151 Use static_assert to check the size of
1152 async_reason_string_lookup.
1153 * common/gdb_assert.h (static_assert): New macro.
1154
1155 2011-11-22 Alan Modra <amodra@gmail.com>
1156
1157 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1158 destination calculation. Don't expect >> to sign extend. Don't
1159 add a break if branch lands inside the sequence anywhere.
1160
1161 2011-11-21 Keith Seitz <keiths@redhat.com>
1162
1163 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1164 -var-evaluate-expression of an enumeration and fix expected result.
1165 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1166
1167 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1168
1169 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1170 the case where osdata->items is empty. Rename column names to a
1171 canonical form to avoid problems with unusual column names.
1172
1173 2011-11-21 Yao Qi <yao@codesourcery.com>
1174
1175 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1176
1177 2011-11-20 Stan Shebs <stan@codesourcery.com>
1178
1179 * NEWS: Mention tracepoint additions.
1180 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1181 * breakpoint.c (print_one_breakpoint_location): Identify
1182 tracepoints as such when reporting hit counts, report
1183 trace buffer usage.
1184 (create_tracepoint_from_upload): Copy status info.
1185 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1186 add fields user_name, notes, start_time, stop_time.
1187 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1188 * tracepoint.c (trace_user): New global.
1189 (trace_notes): New global.
1190 (trace_stop_notes): New global.
1191 (start_tracing): Add argument and trace note handling.
1192 (stop_tracing): Ditto.
1193 (trace_start_command): Add notes argument.
1194 (trace_stop_command): Ditto.
1195 (trace_status_command): Report additional status info.
1196 (trace_status_mi): Similarly.
1197 (trace_save): Update, record tracepoint status.
1198 (set_disconnected_tracing): Call target method directly.
1199 (send_disconnected_tracing_value): Remove.
1200 (set_trace_user): New function.
1201 (set_trace_notes): New function.
1202 (set_trace_stop_notes): New function.
1203 (parse_trace_status): Handle additional status.
1204 (parse_tracepoint_status): New function.
1205 (parse_tracepoint_definition): Call it.
1206 (tfile_get_tracepoint_status): New function.
1207 (init_tfile_ops): Use it.
1208 (_initialize_tracepoint): Add new setshows.
1209 * target.h (struct target_ops): New methods to_get_tracepoint_status
1210 and to_set_trace_notes.
1211 (target_get_tracepoint_status): New macro.
1212 (target_set_trace_notes): New macro.
1213 * target.c (update_current_target): Add new methods.
1214 * remote.c (remote_get_tracepoint_status): New function.
1215 (remote_set_trace_notes): New function.
1216 (init_remote_ops): Add them.
1217 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1218 (mi_cmd_trace_stop): Ditto.
1219
1220 2011-11-20 Sanjoy Das <sdas@igalia.com>
1221
1222 * jit.c: Include regcache.h.
1223 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1224 (jit_unwind_reg_set_impl, free_reg_value_impl)
1225 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1226 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1227 (jit_frame_prev_register, jit_dealloc_cache)
1228 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1229 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1230 jit_prepend_unwinder.
1231 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1232
1233 2011-11-20 Sanjoy Das <sdas@igalia.com>
1234
1235 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1236 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1237 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1238 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1239 (finalize_symtab, jit_object_close_impl)
1240 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1241 (free_objfile_data): New functions.
1242 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1243 function.
1244
1245 2011-11-20 Sanjoy Das <sdas@igalia.com>
1246
1247 * jit.c: Include gdb-dlfcn.h.
1248 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1249 (jit_reader_load, jit_reader_load_command)
1250 (jit_reader_unload_command): New functions.
1251 (_initialize_jit): Add commands "jit-reader-load" and
1252 "jit-reader-unload".
1253
1254 2011-11-20 Sanjoy Das <sdas@igalia.com>
1255
1256 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1257 * config.in: Add new #define HAVE_LIBDL.
1258 * configure.ac: Add check for -ldl.
1259 * configure: Re-generated by autoconf.
1260 * gdb-dlfcn.c: New file.
1261 * gdb-dlfcn.h: New file.
1262
1263 2011-11-20 Sanjoy Das <sdas@igalia.com>
1264
1265 * config.in: Add new #defines: JIT_READER_DIR and
1266 JIT_READER_DIR_RELOCATABLE.
1267 * configure.ac: New GDB directory entry for jit-reader-dir.
1268 * configure: Re-generated by autoconf.
1269 * jit.c: New static variable: const char *jit_reader_dir.
1270 (_initialize_jit): Relocate jit_reader_dir.
1271
1272 2011-11-20 Sanjoy Das <sdas@igalia.com>
1273
1274 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1275 $(includedir)/gdb.
1276 * configure.ac: Generate a correct value for TARGET_PTR for
1277 jit-reader.h. Tell configure to generate jit-reader.h from
1278 jit-reader.in.
1279 * configure: Re-generated by autoconf.
1280 * jit-reader.in: New file.
1281 * jit.c: Include jit-reader.h.
1282
1283 2011-11-20 Sanjoy Das <sdas@igalia.com>
1284
1285 * MAINTAINERS (Write After Approval): Add myself to the list.
1286
1287 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1288
1289 * findvar.c (read_frame_register_value): Respect value_offset
1290 of the register value. Remove big-endian special case.
1291
1292 2011-11-18 Tom Tromey <tromey@redhat.com>
1293
1294 PR build/7196:
1295 * remote.c (putpkt_for_catch_errors): New function.
1296 (remote_kill): Use it.
1297
1298 2011-11-18 Yao Qi <yao@codesourcery.com>
1299
1300 * breakpoint.c (create_breakpoint): Produce query message according to
1301 breakpoint's type.
1302 Allocate tracepoint per correct type.
1303 Don't check SALs for pending fast tracepoints.
1304 * tracepoint.c (process_tracepoint_on_disconnect): New.
1305 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1306
1307 2011-11-18 Yao Qi <yao@codesourcery.com>
1308
1309 * breakpoint.c (install_breakpoint): Add one more parameter so that
1310 update_global_location_list is called conditionally.
1311 (create_fork_vfork_event_catchpoint): Update.
1312 (create_syscall_event_catchpoint): Update.
1313 (create_breakpoint_sal): Update.
1314 (create_breakpoint_sal): Update. Call do_cleanups before
1315 install_breakpoint.
1316 * ada-lang.c (create_ada_exception_catchpoint): Update.
1317 * breakpoint.h (install_breakpoint): Update declaration.
1318
1319 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1320
1321 * spu-tdep.c (spu_return_value): Fix handling of
1322 TYPE_CALLING_CONVENTION annotation.
1323
1324 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1325
1326 * skip.c (skip_function_command): Work around uninitialized
1327 variable warning.
1328
1329 2011-11-16 David S. Miller <davem@davemloft.net>
1330
1331 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1332 'tv_usec' to long for printf since these fields have a type which
1333 varies.
1334
1335 2011-11-15 Doug Evans <dje@google.com>
1336
1337 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1338
1339 2011-11-15 Paul Koning <paul_koning@dell.com>
1340
1341 * python/py-type.c (typy_get_composite): New function.
1342 (typy_nonzero): New function.
1343 (typy_values): Rename from typy_fields.
1344 (typy_fields): New function.
1345 (typy_length): Raise exception if not struct, union, or enum type.
1346 (typy_getitem): Ditto.
1347 (typy_has_key): Ditto.
1348 (typy_make_iter): Ditto.
1349
1350 2011-11-15 Doug Evans <dje@google.com>
1351
1352 PR gdb/8367
1353 * NEWS: Mention new parameter basenames-may-differ.
1354 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1355 ! basenames_may_differ.
1356 * psymtab.c (lookup_partial_symtab): Ditto.
1357 * symtab.c (lookup_symtab): Ditto.
1358 (basenames_may_differ): New global.
1359 (_initialize_symtab): New parameter basenames-may-differ.
1360 * symtab.h (basenames_may_differ): Declare.
1361
1362 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1363 Luis Machado <lgustavo@codesourcery.com>
1364
1365 * auxv.c: Include observer.h.
1366 (auxv_inferior_data_cleanup): New.
1367 (invalidate_auxv_cache_inf): New.
1368 (invalidate_auxv_cache): New.
1369 (get_auxv_inferior_data): New.
1370 (auxv_inferior_data): New static global.
1371 (auxv_info): New structure.
1372 (target_auxv_search): Use get_auxv_inferior_data instead of
1373 target_read_alloc and don't free cached buffers.
1374 (fprint_target_auxv): Likewise
1375 (_initialize_auxv): Register per-inferior auxv cache and register
1376 observers to invalidate auxv cache when needed.
1377
1378 2011-11-14 Doug Evans <dje@google.com>
1379
1380 PR gdb/7200 Make "!" an alias for "shell".
1381 * NEWS: Add mention.
1382 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1383 adding "!" command, always add it.
1384 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1385 command of length one.
1386
1387 2011-11-14 Stan Shebs <stan@codesourcery.com>
1388 Kwok Cheung Yeung <kcy@codesourcery.com>
1389
1390 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1391 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1392 the minimum instruction size for fast tracepoints.
1393 * target.h (struct target_ops): Add new method
1394 to_get_min_fast_tracepoint_insn_len.
1395 (target_get_min_fast_tracepoint_insn_len): New.
1396 * target.c (update_current_target): Set up new target operation.
1397 * remote.c (remote_write_bytes_aux): Fix typo.
1398 (remote_get_min_fast_tracepoint_insn_len): New.
1399 (init_remote_ops): Initialize new field.
1400
1401 2011-11-14 Tom Tromey <tromey@redhat.com>
1402
1403 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1404 (encode_actions): Likewise.
1405
1406 2011-11-14 Yao Qi <yao@codesourcery.com>
1407
1408 * remote.c (struct remote_state): <install_in_trace> new field.
1409 (PACKET_InstallInTrace): New enum value.
1410 (remote_install_in_trace_feature): Support InstallInTrace.
1411 (remote_supports_install_in_trace): Likewise.
1412 (remote_protocol_features): Likewise.
1413 (_initialize_remote): Likewise.
1414 (remote_can_download_tracepoint): New.
1415 * target.h (struct target): New field
1416 `to_can_download_tracepoint'.
1417 (target_can_download_tracepoint): New macro.
1418 * target.c (update_current_target): Update.
1419 * breakpoint.h (struct bp_location): Add comment on field
1420 `duplicate'.
1421 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1422 and tracepoint.
1423 (remove_breakpoints): Don't remove tracepoints.
1424 (tracepoint_locations_match ): New.
1425 (breakpoint_locations_match): Call it.
1426 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1427 (download_tracepoint_locations): New.
1428 (update_global_location_list): Call it.
1429 * tracepoint.c (find_matching_tracepoint): Delete.
1430 (find_matching_tracepoint_location): Renamed from
1431 find_matching_tracepoint. Return bp_location rather than
1432 tracepoint.
1433 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1434 tracepoint is found.
1435
1436 2011-11-14 Yao Qi <yao@codesourcery.com>
1437
1438 * target.h (struct target): <to_download_tracepoint> Change type
1439 of parameter from tracepoint to bp_location.
1440 * target.c (update_current_target): Update.
1441 * tracepoint.c (start_tracing): Update.
1442 * remote.c (remote_download_tracepoint): Remove loop for each location
1443 of a tracepoint.
1444
1445 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1446
1447 * i386-nat.c (i386_insert_hw_breakpoint): Call
1448 i386_update_inferior_debug_regs.
1449 (i386_remove_hw_breakpoint): Likewise.
1450
1451 2011-11-14 Yao Qi <yao@codesourcery.com>
1452
1453 * breakpoint.c (init_raw_breakpoint): Call
1454 add_location_to_breakpoint to replace duplicated code.
1455 (add_location_to_breakpoint): Adjust the breakpoint's
1456 address prior to allocating a location.
1457
1458 2011-11-12 Matt Rice <ratmice@gmail.com>
1459
1460 * macrocmd.c (macro_no_macro_info): New function.
1461 (macro_expand_command): Use macro_no_macro_info.
1462 (macro_expand_once_command): Ditto.
1463 (info_macro_command): Add argument processing,
1464 move info_definitions_command here.
1465 (_initialize_macrocmd): Remove info definitions command.
1466 Add arguments to info macro help text.
1467 * NEWS: Replace info definitions command with new info macro options.
1468
1469 2011-11-11 Keith Seitz <keiths@redhat.com>
1470
1471 PR gdb/12843
1472 * linespec.c (locate_first_half): Keep ':' if it looks
1473 like it could be part of a Windows path starting with
1474 a drive letter.
1475
1476 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1477
1478 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1479 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1480
1481 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1482
1483 * target.c (target_waitstatus_to_string): Handle
1484 TARGET_WAITKIND_NO_RESUMED.
1485
1486 2011-11-10 Doug Evans <dje@google.com>
1487
1488 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1489 `need_fullname'.
1490 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1491 (map_partial_symbol_filenames): Ditto. All callers updated.
1492 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1493 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1494 parameter need_fullname.
1495
1496 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1497 * source.c (symtab_to_fullname): Ditto.
1498
1499 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1500 * gdb-demangle.h: ... here. New file.
1501 * demangle.c: #include "gdb-demangle.h".
1502 (_initialize_demangler): Use initialize_file_ftype for prototype.
1503 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1504 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1505 from utils.c
1506 * utils.c: Update. #include "gdb-demangle.h".
1507 * symtab.h (asm_demangle): Delete.
1508 (demangle): Move declaration next to use.
1509 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1510 * dwarf2read.c: #include "gdb-demangle.h".
1511 * gnu-v2-abi.c: Ditto.
1512 * jv-typeprint.c: Ditto.
1513 * mdebugread.c: Ditto.
1514 * p-typeprint.c: Ditto.
1515 * stabsread.c: Ditto.
1516 * printcmd.c: Ditto.
1517 (asm_demangle): Delete declaration.
1518 * tui/tui-stack.c: #include "gdb-demangle.h".
1519
1520 * python/py-type.c (typy_fields_items): Call check_typedef.
1521
1522 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1523
1524 * findvar.c (read_frame_register_value): Read the correct bytes
1525 from registers on big-endian architectures.
1526
1527 2011-11-10 Tom Tromey <tromey@redhat.com>
1528
1529 * procfs.c (load_syscalls): Make a cleanup.
1530 (open_procinfo_files): fd==0 is ok.
1531
1532 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1533
1534 * procfs.c (iterate_over_mappings): Call do_cleanups before
1535 returning.
1536
1537 2011-11-09 Doug Evans <dje@google.com>
1538
1539 * gdbtypes.c (check_typedef): Document that this function can
1540 throw an exception.
1541
1542 2011-11-09 Tom Tromey <tromey@redhat.com>
1543
1544 PR c++/13342:
1545 * valops.c (value_full_object): Return early if real type is
1546 smaller than the enclosing type.
1547
1548 2011-11-08 Yao Qi <yao@codesourcery.com>
1549
1550 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1551
1552 2011-11-08 Meador Inge <meadori@codesourcery.com>
1553
1554 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1555 register when the frame can't be determined.
1556 * arm-tdep.c (arm_analyze_prologue): Ditto.
1557
1558 2011-11-07 Stan Shebs <stan@codesourcery.com>
1559
1560 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1561
1562 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1563
1564 * infrun.c (handle_inferior_event): Minor reformatting.
1565
1566 2011-11-05 Doug Evans <dje@google.com>
1567
1568 * source.c (forget_cached_source_info_for_objfile): Move call to
1569 objfile->sf->qf->forget_cached_source_info outside of
1570 ALL_OBJFILE_SYMTABS loop.
1571 (forget_cached_source_info): Delete unused variable `s'.
1572
1573 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1574
1575 * i386-nat.c (dr_ref_count): Remove unused variable.
1576
1577 2011-11-05 Doug Evans <dje@google.com>
1578
1579 * main.c (captured_main): Set lim_at_start before calling
1580 make_command_stats_cleanup.
1581
1582 2011-11-04 Doug Evans <dje@google.com>
1583
1584 * utils.c: #include "timeval-utils.h".
1585 (cmd_stats): Rename start_time to start_cpu_time.
1586 New member start_wall_time.
1587 (report_command_stats): Report wall time.
1588 (make_command_stats_cleanup): Record start wall time.
1589
1590 2011-11-04 Tom Tromey <tromey@redhat.com>
1591
1592 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1593
1594 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1595
1596 * coff-pe-read.c: Include defs.h before bfd.h.
1597
1598 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1599
1600 PR Python/13345
1601
1602 * python/python.c (python_run_simple_file): Expand tilde in path.
1603
1604 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1605
1606 PR Python/13363
1607
1608 * python/py-type.c (typy_lookup_type): Do not return a type in
1609 an exception handler.
1610
1611 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1612 Eli Zaretskii <eliz@gnu.org>
1613
1614 * linux-nat.c (_initialize_linux_nat): Improve help
1615 for `info proc stat', `info proc status', `info proc cwd',
1616 `info proc cmdline' and `info proc exe'.
1617
1618 2011-11-02 Stan Shebs <stan@codesourcery.com>
1619
1620 String collection for tracepoints.
1621 * NEWS: Mention string collection.
1622 * common/ax.def (tracenz): New bytecode.
1623 * ax-gdb.h (trace_string_kludge): Declare.
1624 * ax-gdb.c: Include valprint.h and c-lang.h.
1625 (trace_string_kludge): New global.
1626 (gen_traced_pop): Add string case.
1627 (agent_command): Add string case.
1628 * tracepoint.h (decode_agent_options): Declare.
1629 * tracepoint.c: Include cli-utils.h.
1630 (decode_agent_options): New function.
1631 (validate_actionline): Call it.
1632 (encode_actions_1): Ditto.
1633 * target.h (struct target_ops): New method to_supports_string_tracing.
1634 (target_supports_string_tracing): New macro.
1635 * target.c (update_current_target): Add to_supports_string_tracing.
1636 * remote.c (struct remote_state): New field string_tracing.
1637 (remote_string_tracing_feature): New function.
1638 (remote_protocol_features): New feature tracenz.
1639 (remote_supports_string_tracing): New function.
1640 (init_remote_ops): Set to_supports_string_tracing.
1641
1642 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1643 Jan Kratochvil <jan.kratochvil@redhat.com>
1644
1645 * linux-nat.c: Include cli/cli-utils.h.
1646 (enum info_proc_what): New.
1647 (linux_nat_info_proc_cmd): Rename to ...
1648 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1649 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1650 status_f and stat_f from WHAT. Throw error on extra parameters.
1651 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1652 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1653 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1654 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1655 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1656 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1657 `info proc cmdline', `info proc exe' and `info proc all' as real
1658 subcommands of `info proc'.
1659
1660 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1661
1662 * Makefile.in: (SFILES): Add skip.c.
1663 (HFILES_NO_SRCDIR): Add skip.h.
1664 (COMMON_OBS): Add skip.o.
1665 * skip.h, skip.c: New.
1666 * breakpoint.h (set_default_breakpoint): Remove.
1667 (get_sal_arch): Declare.
1668 * breakpoint.c: Remove default_breakpoint_valid,
1669 default_breakpoint_address, default_breakpoint_symtab,
1670 default_breakpoint_line, default_breakpoint_pspace variables.
1671 (get_sal_arch): Make public.
1672 (set_default_breakpoint): Remove.
1673 (parse_breakpoint_sals, create_breakpoint, clear_command,
1674 decode_line_spec_1): Remove uses of default_breakpoint variables;
1675 replaced with function calls into stack.c.
1676 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1677 * cli/cli-cmds.c: Add skiplist.
1678 (init_cmd_lists): Initialize skiplist.
1679 (init_cli_cmds): Fix comment (classes of commands appear in
1680 alphabetical order).
1681 * infrun.c (handle_inferior_event): Add check that we don't step into
1682 a function whose pc is marked for skip.
1683 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1684 last_displayed_addr, last_displayed_symtab, last_displayed_line
1685 variables.
1686 (set_last_displayed_sal): New static function.
1687 (print_frame_info): Switch call to set_default_breakpoint to call to
1688 set_last_displayed_sal.
1689 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1690 get_last_displayed_pspace, get_last_displayed_addr,
1691 get_last_displayed_symtab, get_last_displayed_line,
1692 get_last_displayed_sal): New public functions.
1693 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1694 get_last_displayed_pspace, get_last_displayed_addr,
1695 get_last_displayed_symtab, get_last_displayed_line,
1696 get_last_displayed_sal): Declare.
1697
1698 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1699
1700 * MAINTAINERS (Write After Approval): Add myself to the list.
1701
1702 2011-10-29 Yao Qi <yao@codesourcery.com>
1703
1704 * infcmd.c (disconnect_command): Call disconnect_tracing.
1705
1706 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1707
1708 Code cleanup.
1709 * symtab.c (skip_prologue_sal): Code reformatting.
1710
1711 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1712
1713 PR symtab/13208
1714 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1715 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1716 SAI.
1717
1718 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1719
1720 * linux-nat.c (linux_nat_filter_event): Remove `options'
1721 parameter, and dead code that used it. If we're handling a
1722 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1723 in our lwp list, re-add it.
1724 (check_zombie_leaders): New.
1725 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1726 wait for children with WNOHANG, and always wait for all children.
1727 Don't check for no resumed children upfront. Simplify wait loop.
1728 Check for zombie thread group leaders after handling all wait
1729 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1730 unwaited-for children left.
1731 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1732 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1733 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1734 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1735
1736 2011-10-28 Sterling Augustine <saugustine@google.com>
1737
1738 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1739 * symtab.c (free_completion_list): New function.
1740 (do_free_completion_list): Likewise.
1741 (default_make_symbol_completion_list_break_on): New variable
1742 back_to. Call make_cleanup and discard_cleanups.
1743 (make_source_files_completion_list): Likewise.
1744
1745 2011-10-28 Paul Koning <paul_koning@dell.com>
1746
1747 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1748 * NEWS: Mention deep_items.
1749
1750 2011-10-28 Alen Skondro <askondro@gmail.com>
1751
1752 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1753 defined.
1754
1755 2011-10-27 Meador Inge <meadori@codesourcery.com>
1756
1757 * MAINTAINERS (Write After Approval): Add myself to the list.
1758
1759 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1760
1761 * value.h (read_frame_register_value): Add declaration.
1762 * findvar.c (read_frame_register_value): New function.
1763 (value_from_register): Use read_frame_register_value
1764 instead of get_frame_register_value + value_contents_copy
1765 to get value contents.
1766
1767 2011-10-27 Doug Evans <dje@google.com>
1768
1769 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1770 source_script_from_stream if it may have been found on the search path.
1771 * python/py-auto-load.c (source_section_scripts): Pass full path to
1772 source_python_script_for_objfile.
1773 * python/python.c (source_python_script): Delete stream parameter.
1774 All callers updated.
1775 (source_python_script_for_objfile): Ditto.
1776 * python/python-internal.h (source_python_script_for_objfile): Update.
1777 * python/python.h (source_python_script): Update.
1778
1779 2011-10-27 Tom Tromey <tromey@redhat.com>
1780
1781 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1782 (ada_sals_for_line): Remove declarations.
1783
1784 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1785
1786 Move unwind reasons to an external .def file
1787 * frame.c (frame_stop_reason_string): Rewrite using
1788 unwind_stop_reasons.def.
1789 * frame.h (enum unwind_stop_reason): Likewise.
1790 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1791 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1792 constants for bound-checking.
1793 * unwind_stop_reasons.def: New file.
1794 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1795 instead of a distinct value.
1796
1797 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1798
1799 PR python/13331
1800
1801 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1802 (convert_values_to_python): Return on Python tuple allocation
1803 failure. Return NULL on value conversion error.
1804
1805 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1806
1807 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1808 (bppy_set_task): Ditto.
1809 (bppy_delete_breakpoint): Ditto.
1810 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1811 (gdbpy_lookup_global_symbol): Ditto.
1812 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1813 * python/py-frame.c (frapy_is_valid): Ditto.
1814 (frame_info_to_frame_object): Ditto.
1815 * python/py-type.c (typy_lookup_type): Ditto.
1816 (typy_getitem): Ditto.
1817 (typy_has_key): Ditto.
1818 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1819
1820 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1821
1822 * gdbarch.h: Regenerate.
1823
1824 2011-10-26 Meador Inge <meadori@codesourcery.com>
1825
1826 * gdbarch.sh (function_list): Use 'pstring' when printing
1827 'gcore_bfd_target'.
1828 * gdbarch.c: Regenerate.
1829
1830 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1831
1832 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1833 and frame caches if PTID refers to all threads of a process.
1834
1835 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1836
1837 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1838 to create_breakpoint.
1839
1840 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1841
1842 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1843 (ppc_sysv_abi_push_dummy_call): Use it.
1844 (do_ppc_sysv_return_value): Likewise.
1845 (ppc64_sysv_abi_push_dummy_call): Likewise.
1846 (ppc64_sysv_abi_return_value): Likewise.
1847
1848 2011-10-26 Paul Koning <paul_koning@dell.com>
1849
1850 * python/lib/gdb/types.py (deepitems): New function.
1851
1852 2011-10-25 Paul Koning <paul_koning@dell.com>
1853
1854 PR python/13327
1855
1856 * python/py-value.c (value_to_value_object): Remove fetching of
1857 the value if it was lazy.
1858 (valpy_get_is_lazy): New function.
1859 (valpy_fetch_lazy): New function.
1860
1861 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1862
1863 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1864 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1865
1866 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1867
1868 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1869 event, in non-stop, if not stopping, make sure the new lwp has
1870 last_resume_kind set to resume_continue. Assert that when we're
1871 resuming the new lwp, its last_resume_kind is resume_continue.
1872
1873 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1874
1875 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1876 already set when marking the event thread as not executing in
1877 non-stop mode.
1878
1879 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1880
1881 * infrun.c (handle_inferior_event): Add debug output for
1882 TARGET_WAITKIND_NO_HISTORY.
1883
1884 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1885
1886 * NEWS: Move set/show extended-prompt to "New Options". Expand
1887 description. Fix typos.
1888
1889 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1890
1891 PR python/13310
1892
1893 * python/py-param.c (call_doc_function): Correctly deference on
1894 function exit.
1895
1896 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1897
1898 * ada-tasks.c (print_ada_task_info): Fix computation of
1899 number of tasks displayed in command output.
1900
1901 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1902 Ulrich Weigand <uweigand@de.ibm.com>
1903
1904 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1905 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1906 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1907 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1908 gdbarch_unwind_pc.
1909
1910 2011-10-20 Cary Coutant <ccoutant@google.com>
1911
1912 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1913 section to...
1914 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1915 flag. Adjust all callers.
1916 (process_psymtab_comp_unit): Remove adjustment for type section.
1917
1918 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1919
1920 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1921 arguments by adding OBJFILE. Instead of getting objfile from
1922 symbol's symtab, use new argument OBJFILE.
1923 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1924 arguments by adding OBJFILE.
1925 * gdb/dwarf2read.c (new_symbol_full): Change call to
1926 cp_scan_for_anonymous_namespaces to match new signature.
1927 * gdb/stabsread.c (define_symbol): Change call to
1928 cp_scan_for_anonymous_namespaces to match new signature.
1929
1930 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1931
1932 PR python/13308
1933 PR python/13309
1934
1935 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1936 leak.
1937 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1938 leak. Delete unused variables.
1939
1940 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1941
1942 PR python/12656
1943
1944 * python/py-frame.c (frapy_read_var): Use const struct *block.
1945 * python/py-type.c (typy_lookup_typename): Likewise.
1946 (typy_lookup_type): Likewise.
1947 (typy_legacy_template_argument): Likewise.
1948 (typy_template_argument): Likewise.
1949 (gdbpy_lookup_type): Likewise.
1950 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1951 * python/py-block.c (blpy_block_object): Likewise.
1952 (blpy_iter): Likewise.
1953 (blpy_get_start): Likewise.
1954 (blpy_get_end): Likewise.
1955 (blpy_get_function): Likewise.
1956 (blpy_get_superblock): Likewise.
1957 (set_block): Likewise.
1958 (block_to_block_object): Likewise.
1959 (block_object_to_block): Likewise.
1960 (blpy_is_valid): Likewise.
1961 (blpy_get_global_block): New function.
1962 (blpy_get_static_block): New function.
1963 (blpy_is_global): New function.
1964 (blpy_is_static): New function.
1965 * blockframe.c (block_innermost_frame): Likewise.
1966 * valops.c (value_of_variable): Likewise.
1967 * frame.h: Update prototypes.
1968 * python/python-internal.h: Likewise.
1969 * value.h: Likewise.
1970
1971 2011-10-19 Cary Coutant <ccoutant@google.com>
1972
1973 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1974 type_offset field.
1975
1976 2011-10-19 Cary Coutant <ccoutant@google.com>
1977
1978 * dwarf2read.c (peek_abbrev_code): New function.
1979 (dw2_get_file_names): Check for dummy compilation units.
1980 (create_debug_types_hash_table): Likewise.
1981 (process_psymtab_comp_unit): Likewise.
1982 (load_partial_comp_unit): Likewise.
1983 (load_full_comp_unit): Likewise.
1984
1985 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1986
1987 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1988 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1989 pt_phdr if PT_PHDR was found.
1990
1991 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1992
1993 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1994 type or "<unnamed type"> when there is no name assigned.
1995 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1996 avoid a sigint when no name is assigned.
1997
1998 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1999
2000 Revert:
2001 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2002 * dwarf2expr.c (ctx_no_read_reg): New function.
2003 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2004 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2005 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2006 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2007
2008 2011-10-16 Doug Evans <dje@google.com>
2009
2010 * NEWS: Document python gdb.printing.register_pretty_printer's new
2011 `replace' parameter.
2012
2013 2011-10-14 Keith Seitz <keiths@redhat.com>
2014
2015 PR c++/13225
2016 * eval.c (evaluate_subexp_standard): Do not construct
2017 an array of types; pass the value array directly to
2018 find_overload_match.
2019 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2020 (rank_function): Take an array of values instead of types.
2021 (rank_one_type): Add struct value * parameter.
2022 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2023 (rank_function): For each argument, pass the argument's
2024 value to rank_one_type.
2025 (rank_one_type): Add VALUE parameter.
2026 If the parameter type is a pointer and the argument type
2027 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2028 VALUE is zero.
2029 Update all calls to rank_one_type, passing NULL for new
2030 VALUE parameter.
2031 * valarith.c (value_user_defined_cpp_op): Do not construct
2032 an array of types; pass the value array directly to
2033 find_overload_match.
2034 * valops.c (find_overload_method_list): Take an array of
2035 values instead of types.
2036 Save the type of OBJP for later use.
2037 Update calls to find_oload_champ, and find_oload_champ_namespace.
2038 (find_oload_champ_namespace): Take an array of values instead
2039 of types.
2040 (find_oload_champ_namespace_loop): Likewise.
2041 (find_oload_champ): Likewise.
2042 (classify_oload_match): Inspect all arguments
2043 until INCOMPATIBLE is found. Return the worst badness found
2044 otherwise.
2045 (compare_parameters): Update call to rank_one_type.
2046 * value.h (find_overload_match): Take an array of values instead
2047 of types.
2048
2049 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2050
2051 Drop lazy lm_info reading.
2052 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2053 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2054 (lm_info_read): New function.
2055 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2056 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2057 lm_dynamic_from_link_map.
2058 (lm_next, lm_prev, lm_name): Remove.
2059 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2060 initialization incl. read_memory. No longer use lm_name.
2061 (svr4_free_so): Drop lm_info->lm freeing.
2062 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2063 explicit lm_addr and lm initialization.
2064 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2065 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2066 lm_name.
2067
2068 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2069 Paul Pluzhnikov <ppluzhnikov@google.com>
2070
2071 * defs.h (struct so_list): New forward declaration.
2072 (make_cleanup_free_so): New declaration.
2073 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2074 (svr4_free_so): Move the function here from downwards. Handle NULL
2075 so->lm_info.
2076 (svr4_free_library_list): New.
2077 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2078 Use more cleanups. Use new parameter ignore_first instead of
2079 ignore_first_link_map_entry.
2080 (svr4_current_sos): New variable ignore_first, initialize it. New
2081 variable back_to, use it for svr4_free_library_list protection.
2082 (svr4_free_so): Remove - move upwards.
2083 * utils.c: Include solist.h.
2084 (do_free_so, make_cleanup_free_so): New functions.
2085
2086 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2087
2088 Fix internal error regression.
2089 * value.c (value_primitive_field): Handle value_optimized_out. Move
2090 packed bitfields comment.
2091
2092 2011-10-13 Tom Tromey <tromey@redhat.com>
2093
2094 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2095 always released.
2096
2097 2011-10-13 Tom Tromey <tromey@redhat.com>
2098
2099 * python/py-type.c (typy_has_key): Make 'field' const.
2100
2101 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2102
2103 * remote.c (remote_save_trace_data): Invert comparison.
2104
2105 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2106
2107 * tracepoint.c (trace_save_command): Use filename instead of
2108 args when printing.
2109
2110 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2111
2112 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2113 if .size is 0.
2114
2115 2011-10-13 Yao Qi <yao@codesourcery.com>
2116
2117 PR gdb/12703
2118 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2119 whether insn is a 32-bit Thumb-2 instruction.
2120 (thumb_in_function_epilogue_p): Likewise.
2121 (thumb_get_next_pc_raw): Likewise.
2122 (arm_breakpoint_from_pc): Likewise.
2123
2124 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2125
2126 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2127 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2128 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2129 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2130 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2131 zero DATA.
2132 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2133 validity.
2134 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2135 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2136 clear DATA on zero SIZE.
2137
2138 2011-10-12 Doug Evans <dje@google.com>
2139
2140 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2141 header->first_die_offset here. All callers updated.
2142
2143 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2144
2145 Fix compatibility with texinfo versions older than 4.12.
2146 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2147 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2148 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2149 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2150 * configure: Regenerate.
2151 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2152 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2153 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2154
2155 2011-10-12 Gary Benson <gbenson@redhat.com>
2156
2157 * breakpoint.h (pc_at_non_inline_function): Declare.
2158 * breakpoint.c (is_non_inline_function,
2159 pc_at_non_inline_function): New functions.
2160 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2161 if the stop is at a location where functions cannot be inlined.
2162
2163 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2164
2165 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2166 the core wanted them stopped, or if they now have a pending event
2167 to report.
2168 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2169 down to stop_and_resume_callback.
2170 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2171 having new pending events after calling linux_nat_filter_event.
2172
2173 2011-10-11 Sterling Augustine <saugustine@google.com>
2174
2175 * dwarf2read.c: Undo inadvertent changes in previous commit.
2176
2177 2011-10-11 Sterling Augustine <saugustine@google.com>
2178
2179 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2180 logic.
2181
2182 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2183
2184 * symfile.c (separate_debug_file_exists): Fix condition.
2185
2186 2011-10-11 David S. Miller <davem@davemloft.net>
2187
2188 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2189 static.
2190 * regcache.h (regcache_restore): Remove declaration.
2191
2192 * gdbarch.sh: New field 'long_long_align_bit'.
2193 * gdbarch.c, gdbarch.h: Regenerate.
2194 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2195 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2196
2197 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2198
2199 Revert this part of:
2200 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2201 Support @entry in input expressions.
2202 * c-exp.y (ENTRY, unknown_cpp_name): New.
2203 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2204 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2205 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2206 (name_not_typename: ENTRY): New.
2207 (yylex): Recognize ENTRY.
2208
2209 Reimplement @entry in input expressions.
2210 * c-exp.y (ENTRY): New.
2211 (variable: name_not_typename ENTRY): New.
2212 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2213
2214 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2215
2216 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2217 parent and child's pids as soon as we detect a clone event.
2218 Adjust another debug message.
2219
2220 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2221
2222 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2223 not zombie instead of reading the whole file.
2224
2225 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2226
2227 Fix separate debuginfo warning with "remote:" access.
2228 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2229 * symfile.c (get_file_crc): New function with the code moved from ...
2230 (separate_debug_file_exists): ... this function, specifically variables
2231 buffer and count. New variable verified_as_different, set it. Remove
2232 file_crc initialization. Verify also if both files are not the same
2233 manually, if needed.
2234
2235 2011-10-11 Yao Qi <yao@codesourcery.com>
2236
2237 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2238 to get address.
2239
2240 2011-10-10 Doug Evans <dje@google.com>
2241
2242 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2243 libthread_db when we load libpthread or the main symbol file.
2244 (thread_db_inferior_created): New function.
2245 (_initialize_thread_db): Attach inferior_created observer.
2246 * linux-nat.c (linux_child_post_attach): Remove call to
2247 check_for_thread_db.
2248 (linux_child_post_startup_inferior): Ditto.
2249 * objfiles.h (OBJF_MAINLINE): Define.
2250 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2251 allocate_objfile when appropriate.
2252
2253 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2254
2255 PR gdb/13218
2256 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2257 Remove unused variables.
2258 (get_linux_version): Remove function.
2259 (_initialize_arm_linux_nat): Do not call it.
2260
2261 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2262
2263 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2264 new clone lwp if the core asked it to stop. Don't pass on
2265 unexpected signals to the new clone; leave them pending instead.
2266
2267 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2268
2269 * linux-nat.c (resume_lwp): Remove redundant debug output.
2270
2271 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2272
2273 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2274 last_resume_kind before clearing it, and use the copy instead to
2275 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2276 resume_clear_callback in the non-stop path too.
2277
2278 2011-10-09 Yao Qi <yao@codesourcery.com>
2279
2280 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2281 Honor OPTIONS and VAL's type.
2282 (common_val_print, value_print): Update to pass one more parameter.
2283
2284 2011-10-09 Doug Evans <dje@google.com>
2285
2286 Add new "alias" command.
2287 * NEWS: Mention new command.
2288 * command.h (valid_user_defined_cmd_name_p): Declare.
2289 * defs.h (make_cleanup_dyn_string_delete): Declare.
2290 * utils.c: #include "dyn-string.h".
2291 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2292 * cli/cli-cmds.c: #include "dyn-string.h".
2293 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2294 (init_cli_cmds): Add new command.
2295 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2296
2297 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2298
2299 Fix compatibility with older GCCs.
2300 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2301 * stack.c (read_frame_arg): Initialize val_deref.
2302
2303 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2304
2305 Entry values NEWS entries, DWARF disassembly support.
2306 * NEWS: New entry values entry.
2307 (set print entry-values, show print entry-values)
2308 (set debug entry-values, show debug entry-values): New entries.
2309 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2310 indent. Remove variable start. Move header printing out. Respect
2311 INDENT. Support DW_OP_GNU_entry_value.
2312 (locexpr_describe_location_1): Move the header printing here, extend
2313 the disassemble_dwarf_expression passed parameters.
2314
2315 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2316
2317 Display @entry parameter values even for references.
2318 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2319 coerce_ref_if_computed.
2320 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2321 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2322 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2323 existing push_dwarf_reg_entry_value call. Add new detection calling
2324 dwarf_block_to_dwarf_reg_deref. Update the error message.
2325 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2326 * dwarf2expr.h
2327 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2328 parameter deref_size, describe it in the comment.
2329 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2330 (dwarf_block_to_dwarf_reg_deref): New declaration.
2331 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2332 deref_size, describe it in the function comment. New variables
2333 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2334 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2335 describe it in the function comment. Fetch the alternative block
2336 accoring to DEREF_SIZE.
2337 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2338 (entry_data_value_free_closure, entry_data_value_funcs): New.
2339 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2340 outer_val, target_val, val and addr. Try to fetch and create also
2341 referenced value content.
2342 (pieced_value_funcs): NULL value for coerce_ref.
2343 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2344 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2345 coerce_ref_if_computed.
2346 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2347 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2348 * stack.c (read_frame_arg): Compare also dereferenced values.
2349 * value.c (value_computed_funcs): Make the parameter v const, use
2350 value_lval_const for it.
2351 (value_lval_const, coerce_ref_if_computed): New function.
2352 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2353 * value.h (struct lval_funcs): New field coerce_ref.
2354 (value_computed_funcs): Make the parameter v const.
2355 (value_lval_const, coerce_ref_if_computed): New declarations.
2356
2357 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2358
2359 Support @entry in input expressions.
2360 * c-exp.y (ENTRY, unknown_cpp_name): New.
2361 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2362 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2363 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2364 (name_not_typename: ENTRY): New.
2365 (yylex): Recognize ENTRY.
2366 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2367 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2368 Likewise.
2369 * parse.c (operator_length_standard): Likewise.
2370 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2371
2372 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2373
2374 Display referenced values in backtraces.
2375 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2376 * stack.c (print_frame_arg): Likewise.
2377
2378 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2379
2380 Make some lval_funcs methods to default on NULL.
2381 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2382 NULL.
2383 (value_assign): Check if lval_computed write method is NULL.
2384 * value.h (struct lval_funcs): Comment NULL values for read and write
2385 methods.
2386
2387 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2388
2389 Display @entry parameter values (without references).
2390 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2391 New functions.
2392 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2393 New declarations.
2394 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2395 entry record.
2396 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2397 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2398 functions.
2399 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2400 (loclist_read_variable_at_entry): New function.
2401 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2402 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2403 DW_AT_location, call dwarf_block_to_sp_offset for it.
2404 * frame.h (print_entry_values_no, print_entry_values_only)
2405 (print_entry_values_preferred, print_entry_values_if_needed)
2406 (print_entry_values_both, print_entry_values_compact)
2407 (print_entry_values_default, print_entry_values): New declarations.
2408 (struct frame_arg): New field entry_kind.
2409 (read_frame_arg): New parameter entryargp.
2410 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2411 arg->entry_kind. Optionally print the `@entry' suffix.
2412 (list_args_or_locals): New variable entryarg, initialize it.
2413 Initialize also entry_kind of arg and entryarg. Conditionalize
2414 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2415 xfree for entryarg.error.
2416 * stack.c (print_entry_values_no, print_entry_values_only)
2417 (print_entry_values_preferred, print_entry_values_if_needed)
2418 (print_entry_values_both, print_entry_values_compact)
2419 (print_entry_values_default, print_entry_values_choices)
2420 (print_entry_values): New variables.
2421 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2422 print the `@entry' suffix, possibly in combination for
2423 print_entry_values_compact.
2424 (read_frame_arg): New parameter entryargp, new variables entryval,
2425 entryval_error and val_equal. Read in also entryargp, respect
2426 print_entry_values, compare the values using val_equal, fill in also
2427 argp->entry_kind (together with entryargp->entry_kind).
2428 (print_frame_args): New variable entryarg, initialize it.
2429 Conditionalize print_frame_arg for arg, add print_frame_arg for
2430 entryarg. Call xfree for entryarg.error.
2431 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2432 * symtab.h (struct symbol_computed_ops): New field
2433 read_variable_at_entry.
2434
2435 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2436
2437 Code reshuffle.
2438 * frame.h (struct frame_arg): New definition.
2439 (read_frame_arg): New declaration.
2440 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2441 (list_args_or_locals): ... the code here. New variable arg, call
2442 read_frame_arg and list_arg_or_local with it. Unify the
2443 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2444 arg.error.
2445 * stack.c (print_frame_arg): New functiom from the code of
2446 print_frame_args.
2447 (read_frame_arg): New function.
2448 (print_frame_args): Remove variable val. New variable arg, call
2449 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2450
2451 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2452
2453 Protect entry values against self tail calls.
2454 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2455 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2456
2457 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2458
2459 Recognize virtual tail call frames.
2460 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2461 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2462 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2463 * dwarf2-frame-tailcall.c: New file.
2464 * dwarf2-frame-tailcall.h: New file.
2465 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2466 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2467 REGS.PREV only after CIE execution.
2468 (struct dwarf2_frame_cache): New field tailcall_cache.
2469 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2470 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2471 parts, try to find entry_cfa_sp_offset. Call
2472 dwarf2_tailcall_sniffer_first.
2473 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2474 when appropriate.
2475 (dwarf2_frame_dealloc_cache): New function.
2476 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2477 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2478 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2479 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2480 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2481 * dwarf2loc.c (func_addr_to_tail_call_list)
2482 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2483 (call_site_find_chain_1, call_site_find_chain): New.
2484 * dwarf2loc.h (struct call_site_chain): New.
2485 (call_site_find_chain): New declaration.
2486 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2487 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2488 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2489 * stack.c (frame_info): Support also TAILCALL_FRAME.
2490
2491 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2492
2493 Tail call sites reader implementation.
2494 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2495 fill in TYPE_TAIL_CALL_LIST.
2496 * gdbtypes.h (struct func_type): New field tail_call_list.
2497 (struct call_site): New field tail_call_next.
2498 (TYPE_TAIL_CALL_LIST): New definition.
2499
2500 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2501
2502 Implement basic support for DW_TAG_GNU_call_site.
2503 * block.c: Include gdbtypes.h and exceptions.h.
2504 (call_site_for_pc): New function.
2505 * block.h (call_site_for_pc): New declaration.
2506 * defs.h: Include hashtab.h.
2507 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2508 declarations.
2509 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2510 ctx_no_push_dwarf_reg_entry_value.
2511 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2512 (dwarf_block_to_dwarf_reg): New function.
2513 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2514 (ctx_no_push_dwarf_reg_entry_value): New function.
2515 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2516 push_dwarf_reg_entry_value.
2517 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2518 declarations.
2519 * dwarf2loc.c: Include gdbcmd.h.
2520 (dwarf_expr_ctx_funcs): New forward declaration.
2521 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2522 (dwarf_expr_reg_to_entry_parameter)
2523 (dwarf_expr_push_dwarf_reg_entry_value): New.
2524 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2525 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2526 (needs_dwarf_reg_entry_value): New function.
2527 (needs_frame_ctx_funcs): Install it.
2528 (_initialize_dwarf2loc): New function.
2529 * dwarf2loc.h (entry_values_debug): New declaration.
2530 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2531 (read_call_site_scope): New forward declaration.
2532 (process_full_comp_unit): Copy call_site_htab.
2533 (process_die): Support DW_TAG_GNU_call_site.
2534 (read_call_site_scope): New function.
2535 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2536 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2537 (cleanup_htab): Delete.
2538 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2539 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2540 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2541 FIELD_LOC_KIND_DWARF_BLOCK.
2542 * gdbtypes.h (enum field_loc_kind): New entry
2543 FIELD_LOC_KIND_DWARF_BLOCK.
2544 (struct main_type): New loc entry dwarf_block.
2545 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2546 (TYPE_FIELD_DWARF_BLOCK): New.
2547 * python/py-type.c: Include dwarf2loc.h.
2548 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2549 internal_error call on unknown FIELD_LOC_KIND.
2550 * symtab.h (struct symtab): New field call_site_htab.
2551 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2552 (core_addr_hash, core_addr_eq): New functions.
2553
2554 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2555
2556 Code reshuffle.
2557 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2558 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2559 calling_convention under func_stuff there.
2560 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2561 (init_type) <TYPE_CODE_FUNC>: Likewise.
2562 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2563 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2564 * gdbtypes.h (enum type_specific_kind): Change
2565 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2566 (struct main_type) <type_specific>: Change calling_convention to
2567 func_stuff. Move calling_convention to ...
2568 (struct func_type): ... this new struct.
2569 (INIT_FUNC_SPECIFIC): New #define.
2570 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2571
2572 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2573
2574 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2575 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2576 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2577 ctx->ref_addr_size. Handle its invalid value.
2578 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2579 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2580 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2581 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2582 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2583 (dwarf2_per_cu_ref_addr_size): New function.
2584
2585 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2586
2587 Code cleanup.
2588 * dwarf2read.c (per_cu_header_read_in): New function.
2589 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2590 variables cu_header_local and cu_headerp.
2591
2592 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2593
2594 Fix initial language detection with -readnow.
2595 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2596 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2597 searches only for global symbols.
2598
2599 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2600
2601 Fix printed anonymous struct name.
2602 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2603 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2604 (anonymous_struct_prefix): New function.
2605 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2606 (dwarf2_name): Strip for anonymous structs any prefixes.
2607
2608 2011-10-07 Doug Evans <dje@google.com>
2609
2610 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2611 `replace'.
2612
2613 * python/lib/gdb/printing.py: Whitespace cleanup.
2614
2615 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2616 warning.
2617
2618 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2619
2620 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2621 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2622 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2623 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2624 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2625 (arm_linux_remove_watchpoint): Adjust.
2626 * i386-linux-nat.c (i386_linux_dr_set_control)
2627 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2628 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2629 (ia64_linux_remove_watchpoint): Adjust.
2630 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2631 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2632 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2633 (ppc_linux_insert_mask_watchpoint)
2634 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2635 (ppc_linux_remove_watchpoint): Adjust.
2636 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2637 Adjust.
2638
2639 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2640
2641 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2642 (clear_win32_environment): New function for Cygwin to clear out
2643 Win32 environment.
2644 (windows_create_inferior): Prepare new environment from in_env
2645 for Cygwin, too.
2646
2647 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2648
2649 PR python/13264
2650 * python/py-value.c (valpy_call): Check that arguments are
2651 a tuple.
2652 (is_intlike): Remove call to CHECK_TYPEDEF.
2653 (valpy_nonzero): Catch GDB exceptions.
2654 (valpy_absolute): Ditto.
2655 (valpy_lazy_string): Ditto.
2656 (valpy_call): Ditto.
2657 (valpy_get_is_optimized_out): Ditto.
2658 (valpy_long): Ditto.
2659 (valpy_float): Ditto.
2660 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2661 (valpy_richcompare): Ditto.
2662
2663 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2664
2665 * inferior.h (disable_randomization): Declare.
2666 * infrun.c (disable_randomization): New global variable.
2667 (show_disable_randomization): New function.
2668 (set_disable_randomization): Likewise.
2669 (_initialize_infrun): Install set/show disable-randomization
2670 commands.
2671 * linux-nat.c (disable_randomization): Remove.
2672 (show_disable_randomization): Likewise.
2673 (set_disable_randomization): Likewise.
2674 (_initialize_linux_nat): No longer install set/show
2675 disable-randomization commands here.
2676 (linux_nat_supports_disable_randomization): New function.
2677 (linux_nat_add_target): Install it.
2678 * remote.c (PACKET_QDisableRandomization): New enum value.
2679 (remote_protocol_packets): Support QDisableRandomization.
2680 (_initialize_remote): Likewise.
2681 (remote_supports_disable_randomization): New function.
2682 (init_remote_ops): Install it.
2683 (extended_remote_supports_disable_randomization): New function.
2684 (init_extended_remote_ops): Install it.
2685 (extended_remote_disable_randomization): New function.
2686 (extended_remote_create_inferior_1): Call it.
2687 * target.h (struct target_ops): Add to_supports_disable_randomization.
2688 (target_supports_disable_randomization): Add prototype.
2689 * target.c (target_supports_disable_randomization): New function.
2690 (find_default_supports_disable_randomization): Likewise.
2691 (init_dummy_target): Install it.
2692
2693 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2694
2695 Allow Python notification of new object-file loadings.
2696 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2697 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2698 Add build rule for this file.
2699 * python/py-event.h (emit_new_objfile_event): New prototype.
2700 (newobjfile): New Python event emitter.
2701 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2702 Python event registry.
2703 * python/py-inferior.c: Include objfiles.h
2704 (python_new_objfile): New function.
2705 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2706 observers.
2707 * python/py-newobjfileevent.c: New file.
2708 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2709 prototype.
2710 * python/python.c (_initialize_python): Add
2711 gdbpy_initialize_new_objfile_event call.
2712 * NEWS: Add item for new Python event "gdb.newobjfile"
2713
2714 2011-10-05 Tristan Gingold <gingold@adacore.com>
2715
2716 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2717 Extract the ravenscar task name from the symbol for the atcb.
2718
2719 2011-10-04 Paul Koning <paul_koning@dell.com>
2720
2721 * python/py-type.c (typy_make_iter): Add forward declaration.
2722 (typy_fields_items): Use the gdb.Type iterator.
2723
2724 2011-10-04 Paul Koning <paul_koning@dell.com>
2725
2726 * NEWS: Add entry for Python gdb.Type mapping methods.
2727
2728 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2729
2730 PR python/12691: Add the inferior to Python exited event
2731 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2732 to exited_event.
2733 * python/py-event.h (emit_exited_event): Likewise
2734 * python/-inferior.c (python_inferior_exit): Likewise
2735
2736 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2737
2738 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2739 in output of -ada-task-info GDB/MI command.
2740
2741 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2742
2743 * ada-lang.h (struct inferior): Declare.
2744 (print_ada_task_info): Add declaration.
2745 * ada-tasks.c (print_ada_task_info): Make non-static.
2746 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2747 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2748 * mi/mi-main.c: #include "ada-lang.h".
2749 (mi_cmd_list_features): Add "ada-task-info" to the list
2750 of supported features.
2751 (mi_cmd_ada_task_info): New function.
2752
2753 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2754
2755 * python/python.c (python_run_simple_file): New function.
2756 (source_python_script, source_python_script_for_objfile):
2757 Replace call to PyRun_SimpleFile by call to
2758 python_run_simple_file.
2759
2760 2011-10-03 Paul Koning <paul_koning@dell.com>
2761
2762 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2763 (value_to_value_object): Fetch value if it was lazy.
2764
2765 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2766
2767 Code cleanup.
2768 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2769 Rearrange the code for it.
2770
2771 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2772
2773 * breakpoint.c (bkpt_print_recreate): Add call to
2774 print_recreate_thread.
2775
2776 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2777
2778 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2779 PTRACE_GETFDPIC_INTERP): Define.
2780
2781 2011-09-28 Yao Qi <yao@codesourcery.com>
2782
2783 * symfile.c (add_symbol_file_command): Update message on usage.
2784
2785 2011-09-28 Paul Koning <paul_koning@dell.com>
2786
2787 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2788 (typy_length, typy_get, typy_has_key, typy_make_iter)
2789 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2790 (typy_iterator_iter, typy_iterator_iternext)
2791 (typy_iterator_dealloc): New functions to implement standard
2792 Python mapping methods on gdb.Type object.
2793 (gdb.TypeIterator): New Python type.
2794 * python/python-internal.h (gdbpy_iter_kind): New enum.
2795
2796 2011-09-28 David S. Miller <davem@davemloft.net>
2797
2798 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2799 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2800 * sparc-tdep.c (sparc_complex_floating_p): New function.
2801 (sparc32_store_arguments): Handle complex floats.
2802 (sparc32_extract_return_value): Likewise.
2803 (sparc32_store_return_value): Likewise.
2804 (sparc32_stabs_argument_has_addr): Likewise.
2805 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2806 (sparc64_store_floating_fields): Handle complex floats.
2807 (sparc64_store_arguments): Likewise.
2808 (sparc64_store_return_value): Likewise.
2809
2810 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2811
2812 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2813 before the change on 2006-12-09.
2814 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2815 generates the environment block for CreateProcessA, modulo the
2816 Cygwin-specific parts that are not needed here.
2817
2818 2011-09-27 Tristan Gingold <gingold@adacore.com>
2819
2820 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2821 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2822 (darwin_solib_get_all_image_info_addr_at_init): New function.
2823 (darwin_solib_read_all_image_info_addr): Likewise.
2824 (darwin_solib_create_inferior_hook): Use the above two functions.
2825 * darwin-nat.c (darwin_execvp): Renames retval to res.
2826 (darwin_read_write_inferior): Update comment.
2827 (darwin_read_dyld_info): New function.
2828 (darwin_xfer_partial): Handle DYLD_INFO.
2829
2830 2011-09-27 Stan Shebs <stan@codesourcery.com>
2831
2832 Add return address collection for tracepoints.
2833 * tracepoint.c (encode_actions_1): Add case for $_ret.
2834 (validate_actionline): Check for $_ret.
2835 (trace_dump_actions): Ditto.
2836 * ax-gdb.h (gen_trace_for_return_address): Declare.
2837 * ax-gdb.c: Include arch-utils.h.
2838 (gen_trace_for_return_address): New function.
2839 (agent_command): Add return address special case.
2840 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2841 (amd64_gen_return_address): New function.
2842 (amd64_init_abi): Call it.
2843 * i386-tdep.c: Include ax.h and ax-gdb.h.
2844 (i386_gen_return_address): New function.
2845 (i386_init_abi): Call it.
2846 * arch-utils.h (default_gen_return_address): Declare.
2847 * arch-utils.c (default_gen_return_address): New function.
2848 * gdbarch.sh (gen_return_address): New method.
2849 * gdbarch.h, gdbarch.c: Regenerate.
2850
2851 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2852
2853 PR gdb/13079
2854 * i386-tdep.c (i386_frame_align): New.
2855 (i386_gdbarch_init): Use i386_frame_align.
2856
2857 2011-09-23 Yao Qi <yao@codesourcery.com>
2858
2859 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2860 to get address.
2861
2862 2011-09-22 Tristan Gingold <gingold@adacore.com>
2863
2864 * fork-child.c (fork_inferior): Add exec_fun parameter.
2865 Call exec_fun or execvp.
2866 * inferior.h: Adjust prototype.
2867 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2868 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2869 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2870 * procfs.c (procfs_create_inferior): Ditto.
2871 * darwin-nat.c (darwin_execvp): New function.
2872 (darwin_create_inferior): Use it.
2873
2874 2011-09-22 Yao Qi <yao@codesourcery.com>
2875
2876 * infrun.c (context_switch): Print debug message when switching to
2877 a different thread.
2878
2879 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2880
2881 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2882 complex and vector types.
2883 (s390_return_value_convention): Likewise.
2884
2885 (s390_value_from_register): Call check_typedef.
2886 (extend_simple_arg): Likewise.
2887 (alignment_of): Likewise.
2888 (s390_push_dummy_call): Likewise.
2889 (s390_return_value): Likewise.
2890
2891 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2892
2893 * event-top.c (async_disconnect): If an exception is thrown from
2894 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2895 catch_errors.
2896 * top.c (quit_cover): Return void and take no arguments.
2897 * top.h (quit_cover): Update prototype.
2898
2899 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2900
2901 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2902 current_uiout, not uiout.
2903
2904 2011-09-19 Doug Evans <dje@google.com>
2905
2906 * python/py-auto-load.c (source_section_scripts): Fix file
2907 descriptor leak.
2908 * python/python.c (source_python_script_for_objfile): Tweak comments.
2909
2910 2011-09-18 Yao Qi <yao@codesourcery.com>
2911 Ulrich Weigand <ulrich.weigand@linaro.org>
2912
2913 Support displaced stepping for Thumb 16-bit insns.
2914 * arm-tdep.c (THUMB_NOP) Define.
2915 (thumb_copy_unmodified_16bit): New.
2916 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2917 (thumb_copy_alu_reg): New.
2918 (arm_copy_svc): Move some common code to ...
2919 (install_svc): ... here. New.
2920 (thumb_copy_svc): New.
2921 (install_pc_relative): New.
2922 (thumb_copy_pc_relative_16bit): New.
2923 (thumb_decode_pc_relative_16bit): New.
2924 (thumb_copy_16bit_ldr_literal): New.
2925 (thumb_copy_cbnz_cbz): New.
2926 (cleanup_pop_pc_16bit_all): New.
2927 (thumb_copy_pop_pc_16bit): New.
2928 (thumb_process_displaced_16bit_insn): New.
2929 (thumb_process_displaced_32bit_insn): New.
2930 (thumb_process_displaced_insn): process thumb instruction.
2931
2932 Support displaced stepping for Thumb 32-bit insns.
2933 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2934 (thumb2_copy_preload): New.
2935 (thumb2_copy_copro_load_store): New.
2936 (thumb2_copy_b_bl_blx): New.
2937 (thumb2_copy_alu_imm): New.
2938 (thumb2_copy_load_reg_imm): New.
2939 (thumb2_copy_load_literal): New
2940 (thumb2_copy_block_xfer): New.
2941 (thumb_32bit_copy_undef): New.
2942 (thumb_32bit_copy_unpred): New.
2943 (thumb2_decode_ext_reg_ld_st): New.
2944 (thumb2_decode_svc_copro): New.
2945 (decode_thumb_32bit_store_single_data_item): New.
2946 (thumb_copy_pc_relative_32bit): New.
2947 (thumb_decode_pc_relative_32bit): New.
2948 (decode_thumb_32bit_ld_mem_hints): New.
2949 (thumb2_copy_table_branch): New
2950 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2951 instructions.
2952
2953 2011-09-18 Yao Qi <yao@codesourcery.com>
2954
2955 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2956 (install_b_bl_blx): Likewise.
2957
2958 2011-09-17 Yao Qi <yao@codesourcery.com>
2959
2960 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2961 (install_load_store): ... this. New.
2962 Change parameter BYTE to SIZE.
2963 (arm_copy_ldr_str_ldrb_strb): Update caller.
2964 (arm_decode_ld_st_word_ubyte): Update caller.
2965
2966 2011-09-17 Yao Qi <yao@codesourcery.com>
2967
2968 * infrun.c (displaced_step_fixup): Move some code ...
2969 (displaced_step_restore): ... here. New function.
2970 (handle_inferior_event): Cleanup displaced stepping state for both
2971 child and parent when get forked or vforked event.
2972 * regcache.c (get_thread_arch_aspace_regcache): New function.
2973 get_thread_arch_regcache (): Call it.
2974
2975 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2976
2977 * ada-tasks.c (print_ada_task_info): New function, merging
2978 short_task_info and info_tasks together. Reimplement using
2979 ui-out instead of printing to stdout directly. Move the code
2980 building and checking the task list here, instead of leaving it
2981 in info_tasks_command.
2982 (info_task): Move the code building and checking the task
2983 list here, instead of leaving it in info_tasks_command.
2984 (info_tasks_command): Delete code building and checking
2985 the task list - moved elsewhere. Update calls to info_tasks
2986 and info_task.
2987
2988 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2989
2990 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2991
2992 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2993
2994 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2995
2996 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2997
2998 * ada-lang.h (ada_build_task_list): Remove parameter
2999 `warn_if_null'.
3000 * ada-tasks.c (ada_build_task_list): Remove parameter
3001 `warn_if_null'. Adjust implementation and documentation.
3002 (valid_task_id, ada_get_environment_task)
3003 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3004 (info_tasks_command): Adjust implementation.
3005 (task_command): Likewise.
3006 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3007 to ada_build_task_list.
3008
3009 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3010
3011 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3012 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3013 (ada_tasks_inferior_data_handle): New static global.
3014 (get_ada_tasks_inferior_data): New function.
3015 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3016 (ada_get_environment_task, iterate_over_live_ada_tasks)
3017 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3018 Adjust.
3019 (ada_set_current_inferior_known_tasks_addr): New function.
3020 (read_known_tasks, ada_build_task_list, short_task_info)
3021 (info_tasks, info_task, info_tasks_command, task_command_1)
3022 (task_command, ada_task_list_changed): Adjust.
3023 (ada_tasks_invalidate_inferior_data): New function.
3024 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3025 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3026 * ada-lang.h (struct inferior): Add declaration.
3027 (ada_task_list_changed): Update profile.
3028 * remote-wtx-pd.c: #include "inferior.h".
3029 (switch_to_pd_internal): Update call to ada_task_list_changed.
3030
3031 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3032
3033 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3034 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3035 (atcb_fieldno): Delete these static globals.
3036 (struct ada_tasks_pspace_data): New struct.
3037 (ada_tasks_pspace_data_handle): New static global.
3038 (get_ada_tasks_pspace_data): New function.
3039 (ada_tasks_invalidate_pspace_data): New function.
3040 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3041 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3042 (_initialize_tasks): Create this module's per-progspace
3043 data handle.
3044
3045 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3046
3047 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3048
3049 2011-09-16 Tristan Gingold <gingold@adacore.com>
3050
3051 * fork-child.c (fork_inferior): Update comment. Use alloca
3052 instead of xmalloc for argv. Move len and shell_command
3053 declarations in the block where they are used.
3054 Only call execvp. Factorize failure code.
3055
3056 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3057
3058 Code cleanup.
3059 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3060 `exp_element' instead of an element of the same and make the function
3061 static.
3062 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3063 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3064 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3065 Change argument of `write_exp_elt' function call.
3066 Remove extra spaces from comments.
3067 * parser-defs.h (write_exp_elt): Remove prototype.
3068
3069 2011-09-15 Paul Koning <paul_koning@dell.com>
3070
3071 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3072 count of item appended to list.
3073 * python/py-type.c (typy_fields): Likewise.
3074
3075 2011-09-15 Paul Koning <paul_koning@dell.com>
3076
3077 * MAINTAINERS (Write After Approval): Add myself to the list.
3078
3079 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3080
3081 PR threads/12628
3082 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3083 processes with multiple threads.
3084 (inf_has_multiple_thread_cb): New function.
3085 (inf_has_multiple_threads): New function.
3086
3087 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3088
3089 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3090 * python/py-inferior.c (GdbMethods): New Python method definition.
3091
3092 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3093
3094 Handle multiple breakpoint hits in Python interface:
3095 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3096 variable to breakpoints.
3097 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3098 bps instead of single breakpoint. Fix some space typos.
3099 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3100 variable to breakpoints.
3101
3102 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3103
3104 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3105 note if the breakpoint is internal.
3106
3107 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3108
3109 * MAINTAINERS (Write After Approval): Add myself to the list
3110
3111 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3112
3113 * infrun.c (prepare_for_detach, wait_for_inferior)
3114 (fetch_inferior_event): Don't flush the register cache.
3115 * remote.c (struct stop_reply) <regcache>: Add comment.
3116
3117 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3118
3119 Remove excessive DWARF expressions memory duplication.
3120 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3121 for block.data.
3122 (indirect_pieced_value): Remove variable result. Remove variable
3123 back_to and its use for baton.data.
3124 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3125 block.data.
3126 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3127 Update the function comment.
3128
3129 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3130
3131 * inferior.h (ALL_INFERIORS): New.
3132 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3133 for a stopped thread.
3134 (thread_db_find_new_threads): Look for threads in all inferiors.
3135
3136 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3137
3138 * breakpoint.c (update_watchpoint): Handle the case of the
3139 watchpoint to update not being in the breakpoint list yet.
3140 (hw_watchpoint_use_count): New, factored out from
3141 hw_watchpoint_used_count.
3142 (hw_watchpoint_used_count): Rename to ...
3143 (hw_watchpoint_used_count_others): ... this. Add `except'
3144 parameter. Don't count resources of `except'. Use
3145 hw_watchpoint_use_count.
3146
3147 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3148
3149 * gdbthread.h (enum thread_state): Moved here.
3150 (struct thread_info): Rename `executing_' field to `executing' and
3151 `state_' to `state'.
3152 * thread.c (enum thread_state): Moved to gdbthread.h.
3153 (new_thread, add_thread_silent, delete_thread_1)
3154 (any_live_thread_of_process, thread_alive, set_running)
3155 (set_running, is_thread_state, any_running, is_executing)
3156 (set_executing, finish_thread_state, print_thread_info)
3157 (do_captured_thread_select): Adjust.
3158
3159 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3160
3161 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3162 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3163
3164 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3165 Matt Rice <ratmice@gmail.com>
3166
3167 PR gdb/13175
3168
3169 * interps.c (struct interp) <interpreter_out>: Delete field.
3170 (interp_new): Remove the data and uiout parameters and adjust.
3171 (interp_set): Only set the current_uiout from the interpreter's
3172 uiout after initializing the interpreter. Adjust call to
3173 init_proc.
3174 (interp_ui_out): Adjust to call procs->ui_out_proc.
3175 (interp_data, interp_name): New.
3176 * interps.h (interp_init_ftype): Add `self' parameter.
3177 (interp_ui_out_ftype): New typedef.
3178 (struct interp_procs) <ui_out_proc>: New method pointer.
3179 (interp_new): Remove the data and uiout parameters.
3180 (interp_data, interp_name): Declare.
3181 * tui/tui-interp.c (tui_init): Adjust prototype.
3182 (tui_ui_out): New.
3183 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3184 tui_out here. Adjust call to interp_new.
3185 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3186 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3187 (cli_ui_out): New.
3188 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3189 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3190 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3191 Initialize mi->uiout depending on the mi_version as extracted from
3192 the interpreter's name.
3193 (mi_ui_out): New.
3194 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3195 interp_new. Don't allocate the ui_out's of the interpreters here.
3196
3197 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3198
3199 * solib.c (solib_used): New function.
3200 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3201 by another so_list object before freeing it.
3202
3203 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3204
3205 Code cleanup.
3206 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3207 values.
3208
3209 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3210
3211 Code cleanup.
3212 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3213 (amd64_skip_xmm_prologue): ... this new function. Describe its
3214 parameters. No longer use amd64_prologue_line_bug.
3215 * defs.h (producer_is_gcc_ge_4): New declaration.
3216 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3217 (process_full_comp_unit): Update its caller. Remove
3218 amd64_prologue_line_bug initialization.
3219 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3220 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3221
3222 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3223
3224 * linux-nat.h (enum resume_kind): New.
3225 (struct lwp_info) <last_resume_kind>: New field.
3226 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3227 resume_stop on the new lwp.
3228 (add_lwp): Set last_resume_kind as resume_continue by default.
3229 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3230 (resume_lwp): New, factored out from resume_callback. Also check
3231 for pending status in lp->waitstatus.
3232 (resume_callback): Reimplement.
3233 (resume_clear_callback): Set last_resume_kind as resume_stop.
3234 (resume_set_callback): Set last_resume_kind as resume_continue.
3235 (linux_nat_resume, linux_handle_extended_wait): Set
3236 last_resume_kind.
3237 (running_callback): Also check lp->waitstatus for pending events.
3238 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3239 is resume_step.
3240 (stop_and_resume_callback): Don't re-resume if the core wanted the
3241 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3242 using an invalidated pointer.
3243 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3244 SIGSTOPs if the core wanted the LWP to stop.
3245 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3246 wanted the lwp to stop. If the core wanted the lwp to stop, and
3247 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3248 of TARGET_SIGNAL_STOP.
3249 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3250 here. Instead, signal the lwp, and set the last_resume_kind to
3251 resume_stop.
3252
3253 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3254
3255 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3256 -1 (error), if the lwp exits right after attaching.
3257
3258 2011-09-08 Doug Evans <dje@google.com>
3259
3260 * py-cmd.c: Some minor formatting fixes.
3261 (gdbpy_parse_command_name): Rename text arg to name, make const.
3262 All callers updated.
3263 * python-internal.h (gdbpy_parse_command_name): Update.
3264
3265 * cli/cli-decode.c (add_cmd): Add comment.
3266
3267 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3268
3269 PR breakpoints/12435
3270 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3271 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3272 * dwarf2read.c (process_full_comp_unit): Initialize
3273 amd64_prologue_line_bug.
3274 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3275
3276 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3277
3278 Fix TUI screen corruption.
3279 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3280 batch_flag.
3281
3282 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3283
3284 * findvar.c (read_var_value): Never return NULL, throw an error
3285 instead. Update the function comment. State symbol name in the error
3286 messages.
3287 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3288 read_var_value.
3289 * stack.c (print_frame_args): Likewise.
3290 * valops.c (value_of_variable): Likewise.
3291
3292 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3293
3294 * stack.c (print_frame_args): New variable except. Wrap
3295 read_var_value and common_val_print into TRY_CATCH.
3296
3297 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3298
3299 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3300 caller to value_of_this.
3301 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3302 Twice.
3303 * valops.c (value_of_this): Remove parameter complain and variable ret.
3304 Update function comment. Never return NULL by this code.
3305 (value_of_this_silent): New function.
3306 * value.h (value_of_this): Remove parameter complain.
3307 (value_of_this_silent): New declaration.
3308
3309 2011-09-07 Yao Qi <yao@codesourcery.com>
3310
3311 * gdbthread.h (struct thread_info): Remove fields
3312 `stepping_through_solib_after_catch' and
3313 `stepping_through_solib_catchpoints'.
3314 * infrun.c (init_thread_stepping_state): Update.
3315 (process_event_stop_test, currently_stepping): Update.
3316 (currently_stepping_or_nexting_callback): Update.
3317
3318 2011-09-07 Yao Qi <yao@codesourcery.com>
3319
3320 * gdbthread.h (struct thread_info): Comment on field
3321 `step_after_step_resume_breakpoint'.
3322
3323 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3324
3325 * remote.c (remote_console_output): Reindent.
3326
3327 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3328
3329 * frame.c (has_stack_frames): Check for currently selected
3330 traceframe.
3331
3332 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3333
3334 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3335 (set_async_annotation_level, set_async_prompt, pop_prompt)
3336 (push_prompt, new_async_prompt): Delete declarations.
3337 * top.h (get_prompt, set_prompt): Change prototype.
3338 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3339 declarations.
3340 * top.c (command_loop):
3341 (top_prompt): New global.
3342 (get_prefix, set_prefix, get_suffix, ): Delete.
3343 (get_prompt, set_prompt): Rewrite.
3344 (show_new_async_prompt): Rename to ...
3345 (show_prompt): ... this.
3346 (init_main): Adjust. Don't handle --annotate=2 here.
3347 * event-top.c (new_async_prompt): Delete.
3348 (the_prompts): Delete.
3349 (more_to_come): Make static.
3350 (display_gdb_prompt): Use top_level_prompt() to compute the top
3351 level prompt, and don't notify the before_prompt observers
3352 directly here. Always trick readline into not trying to display
3353 the prompt if sync_execution and displaying the primary prompt.
3354 If displaying a local/secondary prompt, always show it, even if
3355 sync_execution is set.
3356 (change_annotation_level): Delete.
3357 (top_level_prompt): New, based on change_annotation_level.
3358 (push_prompt, pop_prompt): Delete.
3359 (async_disable_stdin): No longer pushes prompt.
3360 (command_line_handler): No longer pushes or pops prompt. If more
3361 input is expected, call display_gdb_prompt with an explicit empty
3362 prompt.
3363 (async_stop_sig): Adjust.
3364 (set_async_annotation_level, set_async_prompt): Delete.
3365 * python/python.c (before_prompt_hook): Adjust.
3366
3367 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3368
3369 PR cli/13110
3370
3371 * infrun.c (fetch_inferior_event): Check if there's a selected
3372 thread before checking if the selected thread is executing.
3373
3374 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3375
3376 * inf-loop.c (execute_command): Don't check if the current thread
3377 if running before synchronously waiting for command completion.
3378 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3379 here.
3380 (normal_stop): Call async_enable_stdin here.
3381 * inf-loop.c (inferior_event_handler): Don't call
3382 async_enable_stdin, nor handle "set exec-done-display" here.
3383
3384 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3385
3386 GDB 7.3.1 released.
3387
3388 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3389
3390 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3391
3392 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3393
3394 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3395
3396 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3397
3398 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3399
3400 2011-09-02 Matt Rice <ratmice@gmail.com>
3401
3402 PR gdb/10720
3403 * event-top.c (cli_command_loop): Replace readline setup with
3404 direct call to display_gdb_prompt.
3405 (display_gdb_prompt): Do not call observer mechanism during
3406 synchronous execution.
3407
3408 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3409
3410 * linux-nat.c (in_pid_list_p): New.
3411 (linux_record_stopped_pid): Delete.
3412 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3413 already attached to the LWP. Return an indication if so.
3414 (linux_nat_filter_event): Adjust.
3415 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3416 returning an indication to ignore this thread.
3417
3418 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3419
3420 * top.c: Include interps.h.
3421 (execute_command): If the target can async, but the interpreter is
3422 in sync mode, synchronously wait for the command to finish before
3423 returning.
3424 (execute_command_to_string): Force the interpreter to sync mode.
3425 * infrun.c: Include interps.h.
3426 (fetch_inferior_event): Don't restore the prompt yet if the
3427 interpreter is in sync mode.
3428 * interps.c (interpreter_async): New global.
3429 * interps.h (interpreter_async): Declare.
3430 * inf-loop.c: Include interps.h.
3431 (inferior_event_handler): Don't print the language change or run
3432 breakpoint commands yet if the interpreter in is sync mode.
3433 * main.c (captured_command_loop): Flip the interpreter to async
3434 mode.
3435 * cli/cli-script.c: Include interps.h.
3436 (execute_user_command, while_command, if_command): Force the
3437 interpreter to sync mode.
3438 * python/python.c: Include interps.h.
3439 (python_command, execute_gdb_command): Force the interpreter to
3440 sync mode.
3441
3442 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3443
3444 * value.c (show_convenience): Catch errors thrown while printing
3445 each internal variable.
3446 * infrun.c (validate_siginfo_access): New function.
3447 (siginfo_value_read, siginfo_value_write): Call it.
3448
3449 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3450
3451 Revert:
3452 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3453 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3454 attribute.
3455
3456 2011-08-29 Yao Qi <yao@codesourcery.com>
3457
3458 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3459 (cmp_name): New.
3460 (enable_break2): Update caller.
3461 * solib-frv.c (bfd_lookup_symbol): Removed.
3462 (cmp_name): New.
3463 (enable_break2): Update caller.
3464 * solib-pa64.c (bfd_lookup_symbol): Removed.
3465 (cmp_name): New.
3466 * solib-svr4.c (bfd_lookup_symbol): Removed.
3467 (cmp_name_and_sec_flags): New.
3468 (enable_break): Update caller.
3469 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3470 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3471 (gdb_bfd_lookup_symbol): New.
3472 * solib.h: Functions declarations.
3473
3474 2011-08-29 Yao Qi <yao@codesourcery.com>
3475
3476 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3477 and solib-dsbt.o.
3478
3479 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3480
3481 Fix TUI stepi on code without symbols.
3482 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3483 current PC instead.
3484
3485 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3486
3487 Code cleanup.
3488 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3489 and the static keyword.
3490 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3491 Make prefix an array.
3492 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3493 * mi/mi-main.c (get_register): Remove stb initialization and the static
3494 keyword.
3495
3496 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3497
3498 Code cleanup - make mi_opt const.
3499 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3500 opts const.
3501 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3502 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3503 (mi_cmd_env_dir): Likewise.
3504 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3505 (mi_cmd_target_file_put): Likewise.
3506 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3507 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3508 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3509 (mi_valid_noargs): Make opts const.
3510 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3511 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3512 (mi_cmd_data_read_memory): Likewise.
3513 (mi_cmd_data_read_memory_bytes): Likewise.
3514 (mi_cmd_data_write_memory): Likewise.
3515
3516 2011-08-26 Matt Rice <ratmice@gmail.com>
3517
3518 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3519 bcache_xmalloc, replace bcache_xmalloc with call to
3520 psymbol_bcache_init for psymbol_cache.
3521 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3522
3523 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3524
3525 * inf-loop.c (inferior_event_handler): Add exception_print in
3526 INF_EXEC_COMPLETE.
3527
3528 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3529
3530 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3531 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3532 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3533 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3534 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3535 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3536 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3537 * infrun.c (fetch_inferior_event): Call
3538 make_bpstat_clear_actions_cleanup.
3539 * top.c (execute_command): New variable cleanup_if_error, call
3540 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3541 * utils.c (do_bpstat_clear_actions_cleanup)
3542 (make_bpstat_clear_actions_cleanup): New functions.
3543
3544 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3545
3546 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3547 either the parent or the child forks. Rename a couple locals.
3548
3549 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3550
3551 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3552 library call. Avoid reading the `status' local if all waitpid
3553 calls failed.
3554
3555 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3556
3557 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3558 opening /proc/PID/task always succeeds.
3559
3560 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3561
3562 * linespec.c (symtab_from_filename): Check for the end of string.
3563
3564 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3565
3566 PR mi/11912
3567 * varobj.c (cplus_describe_child): Add the keyword
3568 'class' to the output of the method when dealing
3569 with a cast to a base class.
3570
3571 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3572
3573 No functionality change.
3574 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3575 function comment a reference, new variables tp and bs, move here code
3576 from throw_exception.
3577 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3578 describe it in the comment.
3579 * exceptions.c (throw_exception): Remove variable tp, move the code for
3580 bpstat_clear_actions to bpstat_clear_actions.
3581
3582 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3583
3584 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3585 * linux-nat.c: Include linux-procfs.h.
3586 (linux_proc_get_tgid): Move to ...
3587 * common/linux-procfs.c: ... here. New file.
3588 * common/linux-procfs.h: New file.
3589 * linux-thread-db.c: Include linux-procfs.h.
3590 * Makefile.in: Update dependencies.
3591 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3592 * config/arm/linux.mh: Likewise.
3593 * config/i386/linux.mh: Likewise.
3594 * config/i386/linux64.mh: Likewise.
3595 * config/ia64/linux.mh: Likewise.
3596 * config/m32r/linux.mh: Likewise.
3597 * config/m68k/linux.mh: Likewise.
3598 * config/mips/linux.mh: Likewise.
3599 * config/pa/linux.mh: Likewise.
3600 * config/pa/linux.mh: Likewise.
3601 * config/powerpc/linux.mh: Likewise.
3602 * config/powerpc/ppc64-linux.mh: Likewise.
3603 * config/powerpc/spu-linux.mh: Likewise.
3604 * config/sparc/linux.mh: Likewise.
3605 * config/sparc/linux64.mh: Likewise.
3606 * config/xtensa/linux.mh: Likewise.
3607
3608 2011-08-24 Hui Zhu <teawater@gmail.com>
3609
3610 * tracepoint.c (cond_string_is_same): New function.
3611 (find_matching_tracepoint): Add condition check
3612 by cond_string_is_same.
3613
3614 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3615
3616 Fix build error in Darwin port.
3617 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3618
3619 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3620
3621 Code cleanup.
3622 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3623 (command_line_is_silent): New function.
3624 (bpstat_do_actions_1): No longer use commands_left, use
3625 command_line_is_silent for commands.
3626 (bpstat_alloc): Remove clearing of commands_left.
3627 (bpstat_stop_status): Remove initialization of commands_left, use
3628 command_line_is_silent.
3629 * breakpoint.h (struct bpstats): Remove commands_left.
3630
3631 2011-08-18 Keith Seitz <keiths@redhat.com>
3632
3633 PR c++/12266
3634 * cp-name-parser.y (struct demangle_info): Remove unused
3635 member PREV.
3636 (d_grab): Likewise.
3637 (allocate_info): Change return type to struct demangle_info *.
3638 Always allocate a new demangle_info.
3639 Remove unused PREV pointer.
3640 (cp_new_demangle_parse_info): New function.
3641 (cp_demangled_name_parse_free): New function.
3642 (do_demangled_name_parse_free_cleanup): New function.
3643 (make_cleanup_cp_demangled_name_parse_free): New function.
3644 (cp_demangled_name_to_comp): Change return type to
3645 struct demangle_parse_info *.
3646 Allocate a new storage for each call.
3647 (main): Update usage for cp_demangled_name_to_comp
3648 API change.
3649 * cp-support.h (struct demangle_parse_info): New structure.
3650 (cp_demangled_name_to_comp): Update API change for
3651 return type.
3652 (cp_new_demangle_parse_info): Declare.
3653 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3654 (cp_demangled_name_parse_free): Declare.
3655 * cp-support.c (cp_canonicalize_string): Update API
3656 change for cp_demangled_name_to_comp.
3657 (mangled_name_to_comp): Likewise.
3658 Return struct demangle_parse_info, too.
3659 (cp_class_name_from_physname): Update mangled_name_to_comp
3660 API change.
3661 (method_name_from_physname): Likewise.
3662 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3663 (cp_remove_params): Likewise.
3664 * python/py-type.c (typy_legacy_template_argument): Likewise.
3665
3666 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3667 (cp_merge_demangle_parse_infos): Declare.
3668 * cp-support.c (ignore_typedefs): New file global.
3669 (copy_string_to_obstack): New function.
3670 (inspect_type): New function.
3671 (replace_typedefs): New function.
3672 (replace_typedefs_qualified_name): New function.
3673 (cp_canonicalize_string_no_typedefs): New function.
3674 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3675 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3676 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3677 instead of cp_canonicalize_string.
3678 (find_method): Likewise.
3679 (decode_compound): Before looking up the name, call
3680 cp_canonicalize_string_no_typedefs.
3681 (decode_variable): Likewise.
3682
3683 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3684 Tom Tromey <tromey@redhat.com>
3685 Matt Rice <ratmice@gmail.com>
3686
3687 * python/lib/gdb/prompt.py: New file.
3688 * python/lib/gdb/command/prompt.py: New file.
3689 * NEWS: Document set extended-prompt and gdb.prompt library
3690
3691 2011-08-16 Yao Qi <yao@codesourcery.com>
3692
3693 * tic6x-linux-tdep.c: Move const arrays definition from here...
3694 * tic6x-tdep.c: to here ...
3695
3696 2011-08-14 Yao Qi <yao@codesourcery.com>
3697
3698 * NEWS: New port to Texas Instruments TMS320C6x.
3699
3700 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3701 Bernd Schmidt <bernds@codesourcery.com>
3702 Yao Qi <yao@codesourcery.com>
3703
3704 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3705 * solib-dsbt.c: New file. Support DSBT shared object.
3706 * tic6x-linux-tdep.c: New file.
3707 * tic6x-tdep.c: New file.
3708 * tic6x-tdep.h: New file.
3709
3710 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3711 Yao Qi <yao@codesourcery.com>
3712
3713 * remote.c (PACKET_qXfer_fdpic): New enum value.
3714 (remote_protocol_features): Add qXfer:fdpic:read packet.
3715 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3716 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3717 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3718
3719 2011-08-14 Yao Qi <yao@codesourcery.com>
3720
3721 Target description for tic6x.
3722 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3723 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3724 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3725 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3726 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3727 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3728 * features/tic6x-c64xp-linux.xml: New.
3729 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3730 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3731 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3732 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3733 * regformats/tic6x-c64xp.dat,
3734 regformats/tic6x-c62x-linux.dat: Generated.
3735 * regformats/tic6x-c64x-linux.dat,
3736 regformats/tic6x-c64xp-linux.dat: Generated.
3737 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3738 features/tic6x-*.c files.
3739 Add regformats/tic6x-*.dat files.
3740
3741 2011-08-12 Doug Evans <dje@google.com>
3742
3743 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3744 * python/py-symbol.c (sympy_get_type): New function.
3745 (symbol_object_getset): Add "type".
3746
3747 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3748
3749 PR tui/13073
3750
3751 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3752 empty name.
3753 (tui_show_register_group): Don't store a byte buffer in the data
3754 element's value.
3755 (tui_register_format): Skip registers with an empty name.
3756 (tui_get_register): Store a struct value in the data element's
3757 value field instead of a byte buffer holding the raw register
3758 contents. Account for optimized-out and unavailable registers
3759 when comparing register contents.
3760
3761 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3762
3763 * printcmd.c (current_display_number): Update comment.
3764 (disable_current_display_cleanup): Delete.
3765 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3766 catch errors thrown while evaluating and printing the display.
3767
3768 2011-08-09 Tom Tromey <tromey@redhat.com>
3769
3770 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3771
3772 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3773
3774 * elfread.c (elf_symtab_read): Rework comments.
3775 * maint.c (maintenance_command): Ditto.
3776 * somread.c (som_symtab_read): Ditto.
3777 * solib.c (solib_find, solib_map_sections, update_solib_list)
3778 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3779 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3780 (sharedlibrary_command, no_shared_libraries): Ditto.
3781 * solib-irix.c (locate_base, disable_break, enable_break)
3782 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3783 (irix_current_sos, irix_open_symbol_file_object)
3784 (irix_special_symbol_handling): Ditto.
3785 * solib-sunos.c (locate_base, first_link_map_member)
3786 (sunos_current_sos, disable_break, enable_break)
3787 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3788 Ditto.
3789 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3790 (open_symbol_file_object, svr4_current_sos, enable_break)
3791 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3792 Ditto.
3793 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3794 (frv_current_sos, enable_break, frv_special_symbol_handling)
3795 (frv_solib_create_inferior_hook): Ditto.
3796 * solist.h (struct target_so_ops): Extend the comments of the
3797 special_symbol_handling, current_sos and open_symbol_file_object
3798 methods.
3799
3800 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3801
3802 * python/lib/gdb/__init__.py: Auto-load files in command and
3803 function directories.
3804 * python/python.c (finish_python_initialization): Use
3805 os.path.join.
3806 * python/lib/gdb/command/pretty_printers.py: Self register
3807 command.
3808 * NEWS: Document auto-loading.
3809
3810 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3811
3812 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3813 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3814 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3815
3816 2011-08-08 Tom Tromey <tromey@redhat.com>
3817
3818 * breakpoint.c (clean_up_filters): Remove.
3819 (catch_syscall_split_args): Use VEC_cleanup.
3820
3821 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3822
3823 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3824 (main): Uncomment "Demangling error\n".
3825
3826 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3827
3828 * solib-target.c (segment_attributes): Make them static.
3829 (section_attributes, library_children, library_attributes): Likewise.
3830 (library_list_children, library_list_attributes): Likesise.
3831 (library_list_elements): Likewise.
3832
3833 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3834
3835 * exceptions.c (throw_exception): Don't disable the current
3836 display.
3837 * printcmd.c (disable_current_display_cleanup): New function.
3838 (do_one_display): Install a cleanup to disable the current display
3839 if doing the display throws.
3840
3841 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3842
3843 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3844 initialization of the tp_new member to the corresponding
3845 gdbpy_initialize_* function.
3846 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3847 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3848 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3849 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3850 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3851
3852 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3853
3854 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3855 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3856 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3857 references to current_uiout.
3858
3859 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3860
3861 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3862 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3863 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3864 * top.c (gdb_readline_wrapper): Adjust.
3865 * tui/tui-interp.c (tui_command_loop):
3866 (_initialize_tui_interp): Don't install it.
3867
3868 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3869
3870 * ui-out.h (uiout): Rename to ...
3871 (current_uiout): ... this.
3872 * ui-out.c (uiout): Rename to ...
3873 (current_uiout): ... this.
3874 * ada-lang.c (print_it_exception, print_one_exception)
3875 (print_mention_exception): Adjust.
3876 * breakpoint.c (watchpoint_check): Adjust.
3877 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3878 (default_collect_info, watchpoints_info, print_one_catch_fork)
3879 (print_one_catch_vfork, print_one_catch_syscall)
3880 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3881 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3882 (print_it_watchpoint, print_mention_watchpoint)
3883 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3884 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3885 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3886 (bkpt_print_mention, momentary_bkpt_print_it)
3887 (tracepoint_print_mention, update_static_tracepoint)
3888 (tracepoints_info, save_breakpoints): Adjust.
3889 * cli-out.c (field_separator): Adjust.
3890 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3891 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3892 * frame.c (get_current_frame): Adjust.
3893 * infcmd.c (run_command_1, print_return_value): Adjust.
3894 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3895 * infrun.c (print_end_stepping_range_reason): Adjust.
3896 (print_signal_exited_reason, print_exited_reason): Adjust.
3897 (print_signal_received_reason, print_no_history_reason): Adjust.
3898 * interps.c (interp_set): Adjust.
3899 * osdata.c (info_osdata_command): Adjust.
3900 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3901 * remote-fileio.c (remote_fileio_request): Adjust.
3902 * remote.c (show_remote_cmd): Adjust.
3903 * solib.c (info_sharedlibrary_command): Adjust.
3904 * source.c (print_source_lines_base): Adjust.
3905 * stack.c (print_stack_frame): Adjust.
3906 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3907 * symfile-mem.c (add_vsyscall_page): Adjust.
3908 * symfile.c (load_progress, generic_load)
3909 (print_transfer_performance): Adjust.
3910 * thread.c (info_threads_command, restore_selected_frame)
3911 (thread_command): Adjust.
3912 * top.c (make_cleanup_restore_ui_file): Adjust.
3913 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3914 (print_one_static_tracepoint_marker): Adjust.
3915 * cli/cli-cmds.c (print_disassembly): Adjust.
3916 * cli/cli-decode.c (print_doc_line): Adjust.
3917 * cli/cli-interp.c (safe_execute_command): Adjust.
3918 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3919 (handle_redirections): Adjust.
3920 * cli/cli-script.c (show_user_1): Adjust.
3921 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3922 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3923 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3924 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3925 (mi_cmd_env_dir): Adjust.
3926 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3927 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3928 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3929 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3930 (list_args_or_locals): Adjust.
3931 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3932 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3933 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3934 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3935 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3936 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3937 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3938 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3939 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3940 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3941 (list_available_thread_groups, mi_cmd_list_thread_groups)
3942 (mi_cmd_data_list_register_names)
3943 (mi_cmd_data_list_changed_registers)
3944 (mi_cmd_data_list_register_values, get_register)
3945 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3946 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3947 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3948 (mi_execute_command, mi_load_progress): Adjust.
3949 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3950 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3951 Adjust.
3952 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3953 * tui/tui-interp.c (tui_command_loop): Adjust.
3954 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3955
3956 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3957
3958 * exceptions.c (struct catcher): Remove saved_uiout field.
3959 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3960 no longer save/resvore the global ui_out builder.
3961 (catch_exceptions_with_msg): Save/override/restore the global
3962 ui_out builder manually instead of relying on TRY_CATCH to do it.
3963 (catch_errors): Save/restore the global ui_out builder manually
3964 instead of relying on TRY_CATCH to do it.
3965 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3966 parameter.
3967 (TRY_CATCH): Adjust.
3968 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3969 the global ui_out builder manually instead of relying on TRY_CATCH
3970 to do it.
3971
3972 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3973
3974 * breakpoint.c (update_global_location_list): Ensure
3975 invariant 'first loc marked not duplicated and inserted,
3976 following locs marked duplicated/not inserted' is respected
3977 for multiple locations at the same address.
3978 (unduplicated_should_be_inserted) New function.
3979 (swap_insertion) New function.
3980
3981 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3982
3983 * stack.c (print_frame_arguments_choices): Comment typo fix.
3984
3985 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3986
3987 Revert:
3988 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3989 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3990 argument. Update callers.
3991
3992 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3993
3994 PR gdb/13045
3995 * doublest.c (convert_doublest_to_floatformat): Pass correct
3996 mantissa length to put_field.
3997
3998 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3999
4000 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4001 exception_print code path.
4002 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4003 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4004 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4005
4006 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4007
4008 Code cleanup.
4009 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4010 Remove, merge them into ...
4011 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4012 variable args and its initialization.
4013 (struct print_args_args, print_args_stub): Remove, merge them into
4014 print_frame.
4015 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4016 them into ...
4017 (do_gdb_disassembly): ... here. Remove variable args and its
4018 initialization.
4019 (print_frame): Remove variable args and its initialization, new
4020 variable gdbarch and numargs (from print_args_stub), inline here
4021 print_args_stub with a TRY_CATCH.
4022 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4023 them into ...
4024 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4025 New variable e, remove variable btargs and its initialization.
4026
4027 2011-08-01 Tristan Gingold <gingold@adacore.com>
4028
4029 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4030
4031 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4032
4033 * breakpoint.c (insert_bp_location): Document return value.
4034 (insert_breakpoint_locations): Fix documentation.
4035 (remove_breakpoints): Add documentation.
4036
4037 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4038
4039 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4040 argument. Update callers.
4041
4042 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4043
4044 * stack.c (print_frame_info): Comment typo fix.
4045
4046 2011-07-29 Sterling Augustine <saugustine@google.com>
4047
4048 * MAINTAINERS (Write After Approval): Add myself to the list.
4049
4050 2011-07-29 Tom Tromey <tromey@redhat.com>
4051
4052 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4053 (library_list_start_segment): Update.
4054 (library_list_start_section): Update.
4055
4056 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4057
4058 * varobj.c (value_get_print_value): Move hint check later into the
4059 function. Comment function. Free thevalue before reusing it.
4060
4061 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4062 Pedro Alves <pedro@codesourcery.com>
4063
4064 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4065 value_one.
4066 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4067 Assert the result kind.
4068 * value.h (value_one): Remove parameter lv.
4069
4070 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4071
4072 Fix crash on lval_computed values.
4073 * valops.c (value_zero): Use not_lval for lval_computed.
4074
4075 2011-07-27 Tom Tromey <tromey@redhat.com>
4076
4077 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4078 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4079
4080 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4081
4082 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4083 "ptype" by their typedefs difference.
4084
4085 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4086
4087 * dwarf2expr.c (ctx_no_read_reg): New function.
4088 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4089 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4090 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4091 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4092
4093 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4094
4095 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4096 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4097 file.
4098 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4099 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4100 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4101 (ctx_no_get_base_type): Move the functions here.
4102 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4103 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4104 (ctx_no_get_base_type): New declarations.
4105
4106 2011-07-27 Tom Tromey <tromey@redhat.com>
4107
4108 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4109 entries.
4110 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4111 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4112
4113 2011-07-26 Sterling Augustine <saugustine@google.com>
4114
4115 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4116 ULONGEST.
4117 (dump_bfd_file): Likewise.
4118
4119 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4120
4121 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4122 (remote_hw_watchpoint_length_limit): New variable.
4123 (_initialize_remote) add set,show cmds for this new variable.
4124 * gdb.texinfo: document these new commands.
4125 * NEWS: Mention these new commands.
4126
4127 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4128
4129 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4130 true for software watchpoints.
4131
4132 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4133
4134 GDB 7.3 released.
4135
4136 2011-07-26 Tom Tromey <tromey@redhat.com>
4137
4138 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4139 * dwarf2read.c (read_indirect_string_at_offset): New function.
4140 (read_indirect_string): Use it.
4141 (dwarf_decode_macro_bytes): New function, taken from
4142 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4143 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4144 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4145 New functions.
4146 (struct dwarf2_per_objfile) <macro>: New field.
4147 (dwarf2_elf_names): Add .debug_macro.
4148 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4149 (dwarf2_locate_sections): Handle new section.
4150 (read_file_scope): Handle DW_AT_GNU_macros.
4151 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4152
4153 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4154
4155 * NEWS: Mention dcache configuration.
4156 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4157 (dcache_size, dcache_line_size): New variables.
4158 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4159 (struct dcache_block): Make it expandable.
4160 (struct dcache_struct): New field.
4161 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4162 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4163 (dcache_poke_byte, dcache_print_line): Adjust.
4164 (set_dcache_size, set_dcache_line_size): New functions.
4165 (set_dcache_command, show_dcache_command): New functions.
4166 (_initialize_dcache): Add new commands.
4167
4168 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4169
4170 * progspace.h (struct program_space): Add solib_add_generation.
4171 * infcmd.c (post_create_inferior): Only call solib_add if not
4172 already done.
4173 * solib.c (solib_add): Increment solib_add_generation.
4174
4175 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4176
4177 Fix implicit pointer offsets.
4178 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4179 ptr.OFFSET.
4180
4181 2011-07-25 Tom Tromey <tromey@redhat.com>
4182
4183 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4184 const.
4185 (ada_exception_sal): Make 'ops' const.
4186 (ada_decode_exception_location): Likewise.
4187 (ada_decode_assert_location): Likewise.
4188 (catch_assert_command): Update.
4189 (catch_ada_exception_command): Update.
4190 (create_ada_exception_catchpoint): Make 'ops' const.
4191 * breakpoint.c (set_raw_breakpoint_without_location)
4192 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4193 const.
4194 (create_internal_breakpoint): Update.
4195 (init_raw_breakpoint_without_location): Make 'ops' const.
4196 (init_raw_breakpoint, init_catchpoint)
4197 (create_fork_vfork_event_catchpoint)
4198 (create_syscall_event_catchpoint, init_breakpoint_sal)
4199 (create_breakpoint_sal, create_breakpoints_sal)
4200 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4201 * breakpoint.h (struct breakpoint) <ops>: Now const.
4202 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4203 const.
4204
4205 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4206
4207 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4208
4209 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4210
4211 * breakpoint.h (print_recreate_thread): Declare.
4212 (struct breakpoint): Move step_count, pass_count,
4213 number_on_target, static_trace_marker_id,
4214 static_trace_marker_id_idx ...
4215 (struct tracepoint): ... to this new struct.
4216 (get_tracepoint, get_tracepoint_by_number_on_target)
4217 (get_tracepoint_by_number): Change return type to struct
4218 tracepoint pointer.
4219 * breakpoint.c (is_tracepoint_type): New, factored out from
4220 is_tracepoint.
4221 (is_tracepoint): Adjust.
4222 (print_one_breakpoint_location): Cast to struct tracepoint as
4223 necessary, and adjust.
4224 (print_recreate_catch_fork, print_recreate_catch_vfork)
4225 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4226 print_recreate_thread.
4227 (init_breakpoint_sal): New, factored out from
4228 create_breakpoint_sal.
4229 (create_breakpoint_sal): Reimplement.
4230 (create_breakpoint): Allocate a struct tracecepoint if the caller
4231 wanted a tracepoint. Use init_breakpoint_sal and
4232 install_breakpoint.
4233 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4234 (print_recreate_masked_watchpoint)
4235 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4236 (tracepoint_print_one_detail): Adjust.
4237 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4238 Dump the pass count here.
4239 (update_static_tracepoint): Adjust.
4240 (addr_string_to_sals): Adjust.
4241 (create_tracepoint_from_upload): Adjust. Change return type to
4242 struct tracepoint pointer.
4243 (trace_pass_set_count): Change parameter type to struct tracepoint
4244 pointer, and adjust.
4245 (trace_pass_command): Adjust.
4246 (get_tracepoint, get_tracepoint_by_number_on_target)
4247 (get_tracepoint_by_number): Change return type to struct
4248 tracepoint pointer, and adjust.
4249 (print_recreate_thread): New, factored out from save_breakpoints.
4250 (save_breakpoints): Don't print thread and task and passcount
4251 recreation here.
4252 * remote.c (remote_download_tracepoint): Adjust.
4253 * tracepoint.c (trace_actions_command, validate_actionline)
4254 (start_tracing, tfind_1, trace_find_tracepoint_command)
4255 (trace_dump_command): Adjust.
4256 (find_matching_tracepoint): Change return type to struct
4257 tracepoint pointer, and adjust.
4258 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4259 (tfile_trace_find, tfile_fetch_registers): Adjust.
4260 * tracepoint.h (create_tracepoint_from_upload): Change return type
4261 to struct tracepoint pointer.
4262 * ada-lang.c (print_recreate_exception): Call
4263 print_recreate_thread.
4264 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4265
4266 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4267
4268 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4269 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4270 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4271 watchpoint_thread, watchpoint_triggered ...
4272 (struct watchpoint): ... to this new struct.
4273 (is_watchpoint): Declare.
4274 (install_breakpoint): Add new `internal' parameter.
4275 * breakpoint.c (is_watchpoint): Delete declaration.
4276 (set_breakpoint_condition): Handle watchpoints.
4277 (is_watchpoint): Make public.
4278 (watchpoint_in_thread_scope): Change parameter type to struct
4279 watchpoint.
4280 (watchpoint_del_at_next_stop): Change parameter type to struct
4281 watchpoint. Remove assertion. Adjust.
4282 (update_watchpoint): Ditto.
4283 (insert_breakpoints, breakpoint_init_inferior)
4284 (watchpoints_triggered, watchpoint_check)
4285 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4286 (bpstat_stop_status, print_one_breakpoint_location)
4287 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4288 to struct watchpoint as necessary, and adjust.
4289 (install_breakpoint): Add `internal' argument. If true, don't
4290 mention the new breakpoint. Use set_breakpoint_number.
4291 (create_fork_vfork_event_catchpoint)
4292 (create_syscall_event_catchpoint): Adjust.
4293 (dtor_watchpoint): New.
4294 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4295 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4296 (print_it_watchpoint, print_mention_watchpoint)
4297 (print_recreate_watchpoint, insert_masked_watchpoint)
4298 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4299 (print_one_detail_masked_watchpoint)
4300 (print_mention_masked_watchpoint)
4301 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4302 necessary, and adjust.
4303 (watch_command_1): Allocate and initialize a struct watchpoint
4304 instead of a struct breakpoint. Use install_breakpoint.
4305 (catch_exec_command_1): Adjust.
4306 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4307 fields.
4308 (delete_breakpoint, enable_breakpoint_disp)
4309 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4310 as necessary, and adjust.
4311 (initialize_breakpoint_ops): Install dtor_watchpoint as
4312 watchpoints' dtor method.
4313 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4314 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4315 to struct watchpoint as necessary, and adjust.
4316
4317 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4318
4319 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4320 the the base class ops table.
4321 (catch_exception_breakpoint_ops)
4322 (catch_exception_unhandled_breakpoint_ops)
4323 (catch_assert_breakpoint_ops): Don't statically initialize.
4324 (initialize_ada_catchpoint_ops): New.
4325 (_initialize_ada_language): Call it.
4326 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4327 (bkpt_breakpoint_ops): Forward declare.
4328 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4329 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4330 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4331 (masked_watchpoint_breakpoint_ops)
4332 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4333 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4334 base class ops table.
4335 (null_re_set, null_check_status, null_works_in_software_mode)
4336 (null_resources_needed, null_print_one_detail): Delete.
4337 (bkpt_dtor): Rename to ...
4338 (base_breakpoint_dtor): ... this. Make static.
4339 (bkpt_allocate_location): Rename to ...
4340 (base_breakpoint_allocate_location): ... this. Make static.
4341 (base_breakpoint_re_set): New.
4342 (internal_error_pure_virtual_called): New.
4343 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4344 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4345 (base_breakpoint_works_in_software_mode)
4346 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4347 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4348 (base_breakpoint_print_recreate): New functions.
4349 (base_breakpoint_ops): New global.
4350 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4351 (bkpt_breakpoint_hit): Make static.
4352 (bkpt_check_status): Delete.
4353 (bkpt_resources_needed): Make static.
4354 (bkpt_works_in_software_mode): Delete.
4355 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4356 static.
4357 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4358 (momentary_breakpoint_ops): Don't statically initialize.
4359 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4360 Delete.
4361 (tracepoint_insert_location, tracepoint_remove_location)
4362 (tracepoint_check_status, tracepoint_works_in_software_mode)
4363 (tracepoint_print_it): Delete.
4364 (tracepoint_breakpoint_ops): Don't statically initialize.
4365 (initialize_breakpoint_ops): New.
4366 (_initialize_breakpoint): Call it.
4367 * breakpoint.h (null_re_set, null_works_in_software_mode)
4368 (null_resources_needed, null_check_status, null_print_one_detail):
4369 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4370 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4371 (bkpt_check_status, bkpt_resources_needed)
4372 (bkpt_works_in_software_mode, bkpt_print_it)
4373 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4374 Delete declarations.
4375 (initialize_breakpoint_ops): Declare.
4376
4377 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4378
4379 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4380 (momentary_bkpt_print_it): Simplify.
4381
4382 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4383
4384 Split internal, momentary and user breakpoints breakpoint_ops
4385 tables.
4386
4387 * breakpoint.c (internal_breakpoint_ops)
4388 (momentary_breakpoint_ops): Forward declare.
4389 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4390 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4391 (create_overlay_event_breakpoint)
4392 (create_std_terminate_master_breakpoint)
4393 (create_exception_master_breakpoint): Create breakpoints with
4394 internal_breakpoint_ops vtable.
4395 (set_longjmp_breakpoint): Create momentary breakpoints with
4396 momentary_breakpoint_ops vtable, using
4397 momentary_breakpoint_from_master.
4398 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4399 (create_solib_event_breakpoint): Create breakpoints with
4400 internal_breakpoint_ops vtable.
4401 (set_momentary_breakpoint): Create breakpoints with
4402 momentary_breakpoint_ops vtable.
4403 (momentary_breakpoint_from_master): New, factored out from
4404 clone_momentary_breakpoint.
4405 (clone_momentary_breakpoint): Adjust.
4406 (watch_command_1): Create scope breakpoints with
4407 momentary_breakpoint_ops vtable.
4408 (bkpt_re_set): Remove handling of internal and momentary
4409 breakpoints.
4410 (bkpt_print_mention, bkpt_print_recreate): New.
4411 (bkpt_breakpoint_ops): Adjust.
4412 (internal_bkpt_re_set, internal_bkpt_check_status)
4413 (internal_bkpt_print_it, internal_bkpt_print_mention)
4414 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4415 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4416 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4417 (momentary_bkpt_print_recreate): New.
4418 (momentary_breakpoint_ops): New.
4419
4420 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4421
4422 Implement most breakpoint_ops methods for all breakpoint types,
4423 and move the default handlings to the proper callbacks.
4424
4425 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4426 works_in_software_mode method.
4427 (insert_bp_location): Go through breakpoint_ops->insert_location
4428 for software and hardware watchpoints.
4429 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4430 breakpoint_ops.
4431 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4432 for software and hardware watchpoints.
4433 (print_it_typical): Delete.
4434 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4435 method.
4436 (watchpoint_check): Adjust comment.
4437 (bpstat_check_location): Simply always call the breakpoint's
4438 breakpoint_hit method.
4439 (bpstat_stop_status): Always call the breakpoint's check_status
4440 method. Remove special cases for watchpoints and internal event
4441 breakpoints from here (moved to the check_status implementations).
4442 (print_one_breakpoint_location): Assume b->ops is never NULL.
4443 Remove static tracepoint marker id printing from here (moved to
4444 the print_one_detail callback implementation of tracepoints).
4445 (init_bp_location): Assert OPS is never NULL.
4446 (allocate_bp_location): Always call the breakpoint's
4447 allocate_location method, and remove the default code from here.
4448 (free_bp_location): Always call the location's dtor method, and
4449 remove the default code from here.
4450 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4451 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4452 parameter. Pass it down.
4453 (set_raw_breakpoint): Ditto.
4454 (print_it_catch_fork): Adjust to take a bpstat as argument.
4455 (catch_fork_breakpoint_ops): Install methods.
4456 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4457 (catch_vfork_breakpoint_ops): Install methods.
4458 (dtor_catch_syscall): Call the base dtor.
4459 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4460 (catch_syscall_breakpoint_ops): Install methods.
4461 (dtor_catch_exec): Call the base dtor.
4462 (print_it_catch_exec): Adjust to take a bpstat as argument.
4463 (catch_exec_breakpoint_ops): Install methods.
4464 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4465 the breakpoint's resources_needed method, and remove the default
4466 code from here.
4467 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4468 breakpoint_ops.
4469 (clone_momentary_breakpoint): Clone the original's ops.
4470 (mention): Always call the breakpoint's print_mention method, and
4471 remove the default code from here.
4472 (create_breakpoint_sal): Adjust to pass the ops to
4473 set_raw_breakpoint rather than setting it manually.
4474 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4475 ops to set_raw_breakpoint_without_location rather than setting it
4476 manually.
4477 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4478 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4479 (ranged_breakpoint_ops): Install methods.
4480 (break_range_command): Adjust to pass the ops to
4481 set_raw_breakpoint rather than setting it manually.
4482 (re_set_watchpoint, breakpoint_hit_watchpoint)
4483 (check_status_watchpoint, resources_needed_watchpoint)
4484 (works_in_software_mode_watchpoint, print_it_watchpoint)
4485 (print_mention_watchpoint, print_recreate_watchpoint): New
4486 functions.
4487 (watchpoint_breakpoint_ops): Install new methods.
4488 (print_it_masked_watchpoint): New function.
4489 (masked_watchpoint_breakpoint_ops): Install new methods.
4490 (watch_command_1): Adjust to pass the right breakpoint_ops to
4491 set_raw_breakpoint_without_location rather than setting it
4492 manually later. Record the current pspace.
4493 (print_it_exception_catchpoint): Adjust to take a bpstat as
4494 argument.
4495 (gnu_v3_exception_catchpoint_ops): Install new methods.
4496 (say_where): New function.
4497 (null_re_set, null_check_status, null_works_in_software_mode)
4498 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4499 New functions.
4500 (bp_location_ops): New global.
4501 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4502 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4503 (bkpt_check_status, bkpt_resources_needed)
4504 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4505 (bkpt_print_recreate): New functions.
4506 (bkpt_breakpoint_ops): New global.
4507 (tracepoint_re_set, tracepoint_insert_location)
4508 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4509 (tracepoint_check_status, tracepoint_works_in_software_mode)
4510 (tracepoint_print_it, tracepoint_print_one_detail)
4511 (tracepoint_print_mention, tracepoint_print_recreate): New
4512 functions.
4513 (tracepoint_breakpoint_ops): New global.
4514 (delete_breakpoint): Always call the breakpoint's dtor method, and
4515 remove the default handling from here.
4516 (breakpoint_re_set_default): Make static.
4517 (breakpoint_re_set_one): Always call the breakpoints re_set
4518 method, and remove the default handling from here.
4519 (trace_command, ftrace_command, strace_command)
4520 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4521 to create_breakpoint.
4522 (save_breakpoints): Always call the breakpoint's print_recreate
4523 method, and remove the default handling from here.
4524
4525 * ada-lang.c (dtor_exception): Call the base dtor.
4526 (re_set_exception): Call the base method.
4527 (print_it_exception, print_it_catch_exception): Adjust to take a
4528 bpstat as argument.
4529 (catch_exception_breakpoint_ops): Install methods.
4530 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4531 argument.
4532 (catch_exception_unhandled_breakpoint_ops): Install methods.
4533 (print_it_catch_assert): Adjust to take a bpstat as argument.
4534 (catch_assert_breakpoint_ops): Install methods.
4535
4536 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4537 to take a bpstat as argument.
4538 (enum print_stop_action): Add describing comments to each enum
4539 value.
4540 (breakpoint_re_set_default): Delete declaration.
4541 (null_re_set, null_works_in_software_mode, null_resources_needed)
4542 (null_check_status, null_print_one_detail): Declare.
4543 (bkpt_breakpoint_ops): Declare.
4544 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4545 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4546 (bkpt_check_status, bkpt_resources_needed)
4547 (bkpt_works_in_software_mode, bkpt_print_it)
4548 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4549 Declare.
4550
4551 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4552 bkpt_breakpoint_ops.
4553 * python/py-breakpoint.c (bppy_init): Ditto.
4554
4555 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4556
4557 * MAINTAINERS (Write After Approval): Add myself to the list.
4558
4559 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4560
4561 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4562
4563 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4564
4565 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4566 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4567 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4568 adjust.
4569 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4570 (struct i386_debug_reg_state): New.
4571 (i386_init_dregs): New.
4572 (dr_mirror): New.
4573 (i386_cleanup_dregs): Use i386_init_dregs.
4574 (i386_show_dr): Add state parameter and adjust.
4575 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4576 the inferior here.
4577 (i386_remove_aligned_watchpoint): Likewise.
4578 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4579 (i386_update_inferior_debug_regs): New.
4580 (i386_insert_watchpoint): Work on a local mirror of the debug
4581 registers, and only update the inferior on success.
4582 (i386_remove_watchpoint): Ditto.
4583 (i386_region_ok_for_watchpoint): Adjust.
4584 (i386_stopped_data_address): Adjust.
4585 (i386_insert_hw_breakpoint): Adjust.
4586 (i386_remove_hw_breakpoint): Adjust.
4587
4588 2011-07-22 Tom Tromey <tromey@redhat.com>
4589
4590 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4591 from amd64_pseudo_register_read. Change arguments. Call
4592 mark_value_bytes_unavailable when needed.
4593 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4594 set_gdbarch_pseudo_register_read.
4595 * sentinel-frame.c (sentinel_frame_prev_register): Use
4596 regcache_cooked_read_value.
4597 * regcache.h (regcache_cooked_read_value): Declare.
4598 * regcache.c (regcache_cooked_read_value): New function.
4599 (regcache_cooked_read): Call
4600 gdbarch_pseudo_register_read_value if available.
4601 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4602 (i386_pseudo_register_read): Remove.
4603 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4604 i386_pseudo_register_read. Change arguments. Call
4605 mark_value_bytes_unavailable when needed.
4606 (i386_pseudo_register_read_value): New function.
4607 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4608 not set_gdbarch_pseudo_register_read.
4609 * gdbarch.sh (pseudo_register_read_value): New method.
4610 * gdbarch.c, gdbarch.h: Rebuild.
4611 * findvar.c (value_from_register): Call get_frame_register_value.
4612
4613 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4614
4615 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4616 get_prefix.
4617 (display_gdb_prompt): Likewise.
4618 (change_annotation_level): Likewise.
4619 (push_prompt): Likewise.
4620 (pop_prompt): Likewise.
4621 (handle_stop_sig): Use get_prompt with a level.
4622 * top.c (command_loop): Use get_prompt with a level.
4623 (set_async_annotation_level): Use set_prompt with a level.
4624 (get_prefix): New function.
4625 (set_prefix): Ditto.
4626 (set_suffix): Ditto.
4627 (get_suffix): Ditto.
4628 (get_prompt): Accept a level argument.
4629 (set_prompt): Accept a level argument. Free old prompts. Set
4630 new_async_prompt if level is 0.
4631 (init_main): Use set_prompt with a level. Do not set
4632 new_async_prompt.
4633 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4634 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4635 Modify set_prompt, get_prompt to account for levels.
4636 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4637 level.
4638 * python/python.c (before_prompt_hook): Use set_prompt.
4639
4640 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4641
4642 * defs.h: Add guard against inclusion in gdbserver.
4643 (struct ptid, ptid_t): Move to common/ptid.h.
4644 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4645 xsnprintf, internal_error): Move to common/common-utils.h.
4646 (nomem): Delete.
4647 * gdb_assert.h: Move into common/ sub-directory.
4648 * gdb_locale.h: Ditto.
4649 * gdb_dirent.h: Ditto.
4650 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4651 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4652 Move into common/ptid.h.
4653 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4654 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4655 Change nomem to malloc_failure.
4656 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4657 * utils.c (nomem): Rename to malloc_failure.
4658 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4659 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4660 (gdb_buildargv): Change nomem to malloc_failure.
4661 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4662 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4663 ptid_is_pid): Move into common/ptid.c.
4664 (initialize_infrun): Delete initialization of null_ptid and
4665 minus_one_ptid.
4666 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4667 linux_common_xfer_osdata.
4668 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4669 common/ptid.c and common/buffer.c.
4670 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4671 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4672 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4673 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4674 rules.
4675 * common/gdb_assert.h: New.
4676 * common/gdb_dirent.h: New.
4677 * common/gdb_locale.h: New.
4678 * common/buffer.c: New.
4679 * common/buffer.h: New.
4680 * common/ptid.c: New.
4681 * common/ptid.h: New.
4682 * common/xml-utils.c: New.
4683 * common/xml-utils.h: New.
4684 * common/common-utils.c: New.
4685 * common/common-utils.h: New.
4686 * common/linux-osdata.c: New.
4687 * common/linux-osdata.h: New.
4688 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4689 * config/arm/linux.mh (NATDEPFILES): Ditto.
4690 * config/i386/linux.mh (NATDEPFILES): Ditto.
4691 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4692 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4693 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4694 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4695 * config/mips/linux.mh (NATDEPFILES): Ditto.
4696 * config/pa/linux.mh (NATDEPFILES): Ditto.
4697 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4698 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4699 * config/s390/s390.mh (NATDEPFILES): Ditto.
4700 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4701 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4702 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4703
4704 2011-07-21 Matt Rice <ratmice@gmail.com>
4705
4706 * NEWS: Add info macros and info definitions commands.
4707
4708 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4709
4710 * NEWS: Document Python prompt substitution hook.
4711
4712 2011-07-18 Matt Rice <ratmice@gmail.com>
4713
4714 PR macros/12999
4715 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4716 * macrotab.c (foreach_macro): Ditto.
4717 (foreach_macro_in_scope): Ditto.
4718 * macrocmd.c (print_macro_callback): New function.
4719 (info_macro_command): Move some code to print_macro_definition.
4720 (print_macro_definition): New function.
4721 (print_one_macro): Add new arguments to callback.
4722 (info_definitions_command): New function.
4723 (info_macros_command): Ditto.
4724 (_initialize_macrocmd): Add info macros and info definitions commands.
4725 * symtab.c (add_macro_name): Add new arguments to callback.
4726
4727 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4728 Tom Tromey <tromey@redhat.com>
4729
4730 * top.c (set_prompt): Rewrite to free previous prompt, free
4731 asynch_new_prompt and set both on new prompts.
4732 * event-top.c (display_gdb_prompt): Add prompt substitution
4733 logic.
4734 * python/python.c (before_prompt_hook): New function.
4735
4736 2011-07-20 Matt Rice <ratmice@gmail.com>
4737
4738 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4739 arguments to store_unsigned_integer.
4740
4741 2011-07-20 Tom Tromey <tromey@redhat.com>
4742
4743 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4744 in some declaration-only cases.
4745
4746 2011-07-18 Tom Tromey <tromey@redhat.com>
4747
4748 PR symtab/12984:
4749 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4750 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4751 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4752 <debug_type_section>: New field.
4753 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4754 (load_cu): Use appropriate section.
4755 (create_signatured_type_table_from_index): Add 'section'
4756 argument.
4757 (dwarf2_read_index): Only allow a single .debug_types section.
4758 (dw2_get_file_names): Use appropriate section.
4759 (read_type_comp_unit_head): Add 'section' argument.
4760 (create_debug_types_hash_table): Loop over all .debug_types
4761 sections.
4762 (init_cu_die_reader): Use appropriate section.
4763 (process_psymtab_comp_unit, load_partial_comp_unit)
4764 (load_full_comp_unit, read_die_and_children, find_partial_die)
4765 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4766 (lookup_signatured_type_at_offset): Add 'section' argument.
4767 (read_signatured_type_at_offset): Add 'sect' argument.
4768 (read_signatured_type): Use appropriate section.
4769 (set_die_type, get_die_type_at_offset): Update.
4770 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4771 VEC.
4772 (write_psymtabs_to_index): Don't allow index with more than one
4773 .debug_types section.
4774
4775 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4776
4777 Fix crash if referenced CU is aged out.
4778 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4779 xfree of block.data.
4780 (indirect_pieced_value): New variable back_to, use to for xfree of
4781 baton.data.
4782 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4783 block.data.
4784 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4785 (load_cu): New function from ...
4786 (dw2_do_instantiate_symtab): ... the code here ...
4787 (process_full_comp_unit): ... and here.
4788 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4789 retval.data.
4790
4791 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4792
4793 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4794 type.
4795
4796 2011-07-19 Gary Benson <gbenson@redhat.com>
4797
4798 * infrun.c (struct execution_control_state): New member
4799 stop_func_filled_in.
4800 (clear_stop_func, fill_in_stop_func): New functions.
4801 (handle_inferior_event): Call clear_stop_func rather than
4802 manipulating the execution control state directly.
4803 Call fill_in_stop_func lazily as required rather than
4804 directly calling find_pc_partial_function in all cases.
4805
4806 2011-07-18 Tom Tromey <tromey@redhat.com>
4807
4808 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4809 checking for variable-sized array.
4810
4811 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4812
4813 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4814 of supported languages.
4815 * varobj.c: Add top definitions and basic implementation of the
4816 following callbacks: ada_number_of_children, ada_name_of_variable,
4817 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4818 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4819 (languages): Register Ada-specific callbacks.
4820 (variable_language): Add the Ada case in the language setter switch.
4821
4822 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4823
4824 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4825
4826 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4827
4828 Code cleanup.
4829 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4830 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4831 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4832 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4833 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4834 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4835 (struct dwarf_expr_context_funcs): New, move here methods from ...
4836 (struct dwarf_expr_context): ... here. New fields funcs.
4837 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4838 (dwarf_expr_ctx_funcs): New.
4839 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4840 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4841 (needs_frame_ctx_funcs): New.
4842 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4843
4844 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4845
4846 * MAINTAINERS (Write After Approval): Add myself to the list.
4847
4848 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4849
4850 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4851 that CIE pointer of an FDE really points to a CIE .
4852
4853 2011-07-15 Hui Zhu <teawater@gmail.com>
4854
4855 * remote.c (remote_get_trace_status): Add comments.
4856
4857 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4858
4859 Code cleanup - constify struct lval_funcs.
4860 * dwarf2loc.c (pieced_value_funcs): Make it const.
4861 * infrun.c (siginfo_value_funcs): Likewise.
4862 * opencl-lang.c (opencl_value_funcs): Likewise.
4863 * valops.c (value_assign, value_ind): Make the funcs variable const.
4864 * value.c (struct value): Make location.computed.funcs target const.
4865 Rearrange the comments.
4866 (allocate_computed_value): Make the funcs parameter target const.
4867 (value_computed_funcs): Return the funcs target const.
4868 (value_free, value_copy, set_value_component_location): Make the funcs
4869 variable const.
4870 * value.h (allocate_computed_value): Make the funcs parameter target
4871 const.
4872 (value_computed_funcs): Return the funcs target const.
4873 * windows-tdep.c (tlb_value_funcs): Make it const.
4874
4875 2011-07-14 Hui Zhu <teawater@gmail.com>
4876
4877 * remote.c (remote_get_trace_status): Initialize p.
4878
4879 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4880
4881 Work around kgdb.
4882 * remote.c (remote_get_trace_status): New variable ex. Put
4883 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4884
4885 2011-07-13 Tom Tromey <tromey@redhat.com>
4886
4887 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4888 value_from_contents for final conversion.
4889
4890 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4891
4892 Code cleanup.
4893 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4894 Indent prototypes so they do not get into tags.
4895
4896 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4897
4898 Code cleanup making also optimized out values lazy.
4899 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4900 allocate_optimized_out_value. Twice.
4901 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4902 * findvar.c (read_var_value): Likewise.
4903 * value.c (allocate_optimized_out_value): New function.
4904 * value.h (allocate_optimized_out_value): New declaration.
4905
4906 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4907
4908 Fix occasional crash of CTRL-C during DWARF read in.
4909 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4910
4911 2011-07-11 Tom Tromey <tromey@redhat.com>
4912
4913 * regcache.c (struct regcache_descr): Fix typo.
4914 * i387-tdep.c (i387_supply_xsave): Fix typo.
4915
4916 2011-07-11 Tom Tromey <tromey@redhat.com>
4917
4918 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4919 (read_file_scope, read_type_unit_scope): Use it.
4920
4921 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4922
4923 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4924 `int'.
4925
4926 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4927
4928 PR python/12438
4929 * python/python.c: Set gdbpy_should_print_stack default to off.
4930 (set_python): Deprecate maint set python print-stack to
4931 class_deprecate.
4932 (_initialize_python): Deprecate maint set/show python print-stack.
4933 Add new prefix command, python. Add new setting, print-backtrace.
4934 * NEWS: Document set python print-stack. Document default change.
4935
4936 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4937
4938 * python/py-inferior.c (infpy_dealloc): New function.
4939 (inferior_to_inferior_object): Return a new object, or a
4940 new reference to the existing object.
4941 (find_thread_object): Cleanup references to inferior.
4942 (delete_thread_object): Ditto.
4943 * python/py-infthread.c (create_thread_object): Do not increment
4944 inferior reference count.
4945
4946 2011-07-08 Tom Tromey <tromey@redhat.com>
4947
4948 * dwarf2loc.c (locexpr_regname): New function.
4949 (locexpr_describe_location_piece): Use it.
4950 (disassemble_dwarf_expression): Add per_cu argument. Use
4951 locexpr_regname.
4952 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4953 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4954 New cases.
4955 (locexpr_describe_location_1): Add per_cu argument.
4956 (locexpr_describe_location): Update.
4957 (loclist_describe_location): Update.
4958
4959 2011-07-08 Tom Tromey <tromey@redhat.com>
4960
4961 * dwarf2expr.c (execute_stack_op): Add QUIT.
4962
4963 2011-07-07 Hui Zhu <teawater@gmail.com>
4964
4965 Revert:
4966 2011-07-06 Hui Zhu <teawater@gmail.com>
4967 * remote.c (remote_start_remote): Add TRY_CATCH for
4968 remote_get_trace_status.
4969 * tracepoint.c (disconnect_tracing): Ditto.
4970
4971 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4972
4973 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4974 variables as signed, not unsigned.
4975
4976 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4977
4978 * jit.c (jit_inferior_init): Reformat forward declaration.
4979
4980 2011-07-06 Matt Rice <ratmice@gmail.com>
4981
4982 * MAINTAINERS (Write After Approval): Add myself to the list.
4983
4984 2011-07-06 Hui Zhu <teawater@gmail.com>
4985
4986 * remote.c (remote_start_remote): Add TRY_CATCH for
4987 remote_get_trace_status.
4988 * tracepoint.c (disconnect_tracing): Ditto.
4989
4990 2011-07-05 Tom Tromey <tromey@redhat.com>
4991
4992 * symtab.c (operator_chars): Now static.
4993 * linespec.c (operator_chars): Don't declare.
4994
4995 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4996
4997 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4998
4999 2011-07-05 Tom Tromey <tromey@redhat.com>
5000
5001 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5002 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5003 (TYPE_CPLUS_REALLY_JAVA): New macro.
5004 * dwarf2read.c (process_structure_scope): Set
5005 TYPE_CPLUS_REALLY_JAVA.
5006
5007 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5008
5009 * ada-lang.c: Fix typos.
5010 * amd64-tdep.c: Likewise.
5011 * breakpoint.c: Likewise.
5012 * cli/cli-decode.c: Likewise.
5013 * findcmd.c: Likewise.
5014 * inline-frame.c: Likewise.
5015 * mi/mi-main.c: Likewise.
5016 * minsyms.c: Likewise.
5017 * monitor.c: Likewise.
5018 * monitor.h: Likewise.
5019 * prologue-value.c: Likewise.
5020 * reverse.c: Likewise.
5021 * s390-tdep.c: Likewise.
5022
5023 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5024
5025 * jit.c (jit_inferior_init): Forward declare.
5026 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5027
5028 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5029
5030 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5031
5032 2011-07-04 Tristan Gingold <gingold@adacore.com>
5033
5034 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5035 (tcb_fieldno): Add activation_link field.
5036 (get_known_tasks_addr): Moved and rewritten.
5037 (get_tcb_types_info): Set activation_link field.
5038 (read_known_tasks_array): Add parameter. Rewritten.
5039 (read_known_tasks_list): New function.
5040 (read_known_tasks): New function.
5041 (ada_build_task_list): Call read_known_tasks instead of
5042 read_known_tasks_array.
5043 * ravenscar-thread.c: Add first_task_name constant.
5044 (has_ravenscar_runtime): Check for task list too.
5045
5046 2011-07-04 Tristan Gingold <gingold@adacore.com>
5047
5048 * ada-tasks.c: Renames fieldno to actb_fieldno.
5049 (ada_get_task_number): Indentation.
5050 (get_tcb_types_info): Remove all parameters. Write directly
5051 the globals.
5052 (ptid_from_atcb_common): Adjust.
5053 (read_atcb): Adjust.
5054
5055 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5056
5057 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5058
5059 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5060
5061 * ui-out.c (ui_out_field_core_addr): Mention that the function
5062 description is in the header file.
5063 * ui-out.h (ui_out_field_core_addr): Document function.
5064
5065 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5066
5067 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5068 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5069
5070 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5071
5072 * symtab.c (expand_line_sal): Remove empty line.
5073
5074 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
5075
5076 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5077 same way as ELFOSABI_NONE.
5078 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5079
5080 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5081
5082 * breakpoint.c: Fix typos in comments.
5083 * linespec.c: Likewise.
5084 * symtab.c: Likewise.
5085
5086 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5087
5088 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5089 section in separate object files.
5090
5091 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5092
5093 Fix false GCC warning.
5094 * linespec.c (decode_line_1): Initialize values.
5095
5096 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5097
5098 * linespec.c (find_method): Accept the function type automatically only
5099 if it was specified with parameter types.
5100
5101 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5102
5103 Stop on first linespec terminator instead of eating what we can.
5104 * linespec.c (is_linespec_boundary): New function.
5105 (name_end): Remove function.
5106 (keep_name_info): New parameter on_boundary, replace the body.
5107 (decode_line_1): Provide the parameter to keep_name_info.
5108 (decode_compound): Likewise. Drop the trailing java return type
5109 handling. Twice.
5110
5111 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5112
5113 Fall back linespec to minimal symbols.
5114 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5115 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5116 (find_method, symbol_found): Change error to cplusplus_error.
5117
5118 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5119
5120 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5121
5122 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5123 Tom Tromey <tromey@redhat.com>
5124
5125 * dwarf2read.c (check_physname): New variable.
5126 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5127 (show_check_physname): New function.
5128 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5129
5130 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5131
5132 * machoread.c (macho_symfile_read): Delete OBE comment.
5133
5134 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5135
5136 * machoread.c (struct macho_oso_data): Delete.
5137 (current_oso): Delete.
5138 (macho_relocate_common_syms): New function, mostly extracted
5139 out of
5140 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5141 Remove code that sets and unset current_oso.
5142 (macho_symfile_relocate): Delete handling of common symbols,
5143 now moved to macho_relocate_common_syms.
5144
5145 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5146
5147 * darwin-nat.c (darwin_ptrace): Add documentation.
5148 Set errno to zero before calling ptrace. If ptrace returns
5149 -1 and errno is zero, then change then return zero.
5150 (darwin_kill_inferior): Issue a warning instead of triggering
5151 a failed assertion when the PT_KILL ptrace operations returned
5152 nonzero.
5153
5154 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5155
5156 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5157 only when inf->private->no_ptrace.
5158
5159 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5160
5161 * ada-lang.c (print_it_exception): Print temporary catchpoints
5162 as "Temporary catchpoint".
5163 (print_mention_exception): Likewise.
5164
5165 2011-07-01 Tom Tromey <tromey@redhat.com>
5166
5167 * jv-lang.c (java_language_defn): Use java_printchar,
5168 java_printstr.
5169 (java_get_encoding): New function.
5170 (java_emit_char): Use generic_emit_char.
5171 (java_printchar): New function.
5172 (java_printstr): Likewise.
5173
5174 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5175
5176 * ada-typeprint.c (print_record_type): If unable to decode
5177 the name of the parent type, use the encoded name.
5178
5179 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5180
5181 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5182 pointer to constrained packed array type output.
5183 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5184 packed array output.
5185
5186 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5187
5188 * ada-typeprint.c (print_array_type): removed if condition on show
5189 being negative for bounds printing.
5190
5191 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5192
5193 * ada-lang.c (ada_identical_enum_types_p): New function.
5194 (symbols_are_identical_enums): New function.
5195 (remove_extra_symbols): Do nothing if NSYMS < 2.
5196 Use symbols_are_identical_enums.
5197
5198 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5199
5200 * ada-valprint.c (ada_value_print): Handle typedefs.
5201
5202 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5203
5204 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5205
5206 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5207
5208 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5209 (decode_constrained_packed_array): Likewise.
5210 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5211
5212 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5213
5214 * ada-exp.y (convert_char_literal): Handle typedef types.
5215
5216 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5217
5218 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5219
5220 2011-06-30 Tom Tromey <tromey@redhat.com>
5221
5222 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5223 * valops.c (find_overload_match): Call do_cleanups on early exit
5224 path.
5225 * solib.c (solib_find): Call do_cleanups on early exit path.
5226
5227 2011-06-30 Tom Tromey <tromey@redhat.com>
5228
5229 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5230 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5231 return paths. Defer final do_cleanups until last return.
5232 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5233 early return.
5234
5235 2011-06-30 Tom Tromey <tromey@redhat.com>
5236
5237 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5238
5239 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5240
5241 * MAINTAINERS (Write After Approval): Add myself to the list.
5242
5243 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5244
5245 Disable epilogue unwinders on recent GCCs.
5246 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5247 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5248 * dwarf2read.c (process_full_comp_unit): Initialize
5249 EPILOGUE_UNWIND_VALID.
5250 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5251 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5252 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5253
5254 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5255
5256 Code cleanup - reformatting.
5257 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5258 (producer_is_gcc_ge_4): ... here, change the return value.
5259 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5260 interpretation.
5261
5262 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5263
5264 Fix non-only rename list for Fortran modules import.
5265 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5266 cp_add_using_directive caller.
5267 (cp_add_using_directive): New parameter excludes, describe it. New
5268 variables ix and param. Compare if also excludes match. Allocate NEW
5269 with variable size, initialize EXCLUDES there.
5270 (cp_lookup_symbol_imports): New variable excludep, test
5271 current->EXCLUDES with it.
5272 * cp-support.h: Include vec.h.
5273 (struct using_direct): New field excludes, describe it.
5274 (DEF_VEC_P (const_char_ptr)): New.
5275 (cp_add_using_directive): New parameter excludes.
5276 * defs.h (const_char_ptr): New typedef.
5277 * dwarf2read.c (read_import_statement): New variables child_die,
5278 excludes and cleanups, read in excludes.
5279 (read_namespace): Adjust the cp_add_using_directive caller.
5280
5281 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5282
5283 Code cleanup.
5284 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5285 negative comparisons.
5286
5287 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5288
5289 * mi/mi-main.c (mi_cmd_list_features): Emit
5290 breakpoint-notifications.
5291
5292 2011-06-29 Tom Tromey <tromey@redhat.com>
5293
5294 PR fortran/10036:
5295 * valprint.h (generic_emit_char, generic_printstr): Declare.
5296 * valprint.c (wchar_printable, append_string_as_wide)
5297 (print_wchar): Move from c-lang.c.
5298 (generic_emit_char): New function; mostly taken from c_emit_char.
5299 (generic_printstr): New function; mostly taken from c_printstr.
5300 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5301 represented as arrays.
5302 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5303 type.
5304 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5305 identically to TYPE_CODE_INT.
5306 * f-lang.c (f_get_encoding): New function.
5307 (f_emit_char): Use generic_emit_char.
5308 (f_printchar): Replace comment.
5309 (f_printstr): Use generic_printstr.
5310 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5311 "character" types specially.
5312 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5313 for Fortran.
5314 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5315 Move to valprint.c
5316 (c_emit_char): Call generic_emit_char.
5317 (c_printstr): Call generic_printstr.
5318
5319 2011-06-29 Gary Benson <gbenson@redhat.com>
5320
5321 * breakpoint.c (bpstat_what): Removed duplicated case.
5322
5323 2011-06-28 Tom Tromey <tromey@redhat.com>
5324
5325 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5326
5327 2011-06-27 Tom Tromey <tromey@redhat.com>
5328
5329 * valops.c (find_overload_match): Call do_cleanups before early
5330 return.
5331 * top.c (execute_command): Call do_cleanups before early return.
5332 (command_loop): Likewise.
5333 * stack.c (backtrace_command): Make a null cleanup early. Don't
5334 conditionally call do_cleanups.
5335 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5336 TRY_CATCH.
5337 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5338 so cleanups are always run.
5339 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5340 * findcmd.c (parse_find_args): Call do_cleanups on early return
5341 path.
5342 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5343 Don't conditionally call do_cleanups.
5344 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5345 later.
5346
5347 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5348
5349 * MAINTAINERS (Write After Approval): Use default email address.
5350
5351 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5352
5353 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5354
5355 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5356
5357 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5358 saved_regs_mask and copied_regs_mask fields.
5359 (sparc_record_save_insn): New prototype.
5360 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5361 (sparc_record_save_insn): New function.
5362 (sparc_analyze_prologue): Add head comment. Recognize store insns
5363 of call-saved registers. Use OFFSET consistently. Recognize flat
5364 frames and cache their settings.
5365 (sparc32_skip_prologue): Handle flat frames.
5366 (sparc_frame_cache): Add frame_offset to the base address.
5367 (sparc32_frame_cache): Adjust to new frame description.
5368 (sparc32_frame_prev_register): Likewise.
5369 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5370 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5371 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5372 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5373 frame by calling sparc_record_save_insn.
5374 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5375 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5376 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5377
5378 2011-06-27 Tristan Gingold <gingold@adacore.com>
5379
5380 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5381 field by map_addr and map_len.
5382 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5383 (munmap_section_buffer): Likewise.
5384
5385 2011-06-24 Tom Tromey <tromey@redhat.com>
5386
5387 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5388 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5389 * python/python.c (gdbpy_parameter): Make 'arg' const.
5390 (execute_gdb_command): Likewise.
5391 (gdbpy_decode_line): Likewise. Copy it.
5392 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5393 (gdbpy_write): Make 'arg' const.
5394 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5395 const.
5396 (gdbpy_lookup_type): Likewise.
5397 * python/py-prettyprint.c (print_children): Make 'name' const.
5398 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5399 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5400 Py_ssize_t.
5401 * python/py-function.c (fnpy_init): Make 'name' const.
5402 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5403 (gdbpy_string_to_argv): Make 'input' const.
5404 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5405 it.
5406 * gdbtypes.h (lookup_typename): Update.
5407 * gdbtypes.c (lookup_typename): Make 'name' const.
5408 (lookup_struct): Likewise.
5409 (lookup_union): Likewise.
5410 (lookup_enum): Likewise.
5411
5412 2011-06-24 Tom Tromey <tromey@redhat.com>
5413
5414 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5415 gdb_thread_db.h. Move all common/ entries to be together.
5416 (TAGS): Don't depend on DEPFILES.
5417
5418 2011-06-23 Yao Qi <yao@codesourcery.com>
5419
5420 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5421 * remote.c (remote_start_remote): ... here.
5422 * monitor.c (monitor_open): ... here.
5423
5424 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5425
5426 * gdbtypes.c (append_composite_type_field_aligned): Fix
5427 calculation of bit position based on alignment.
5428
5429 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5430
5431 * breakpoint.c (bpstat_stop_status): Call the check_status
5432 breakpoint_ops method.
5433 (print_one_breakpoint_location): Also print the condition for Ada
5434 exception catchpoints.
5435 (allocate_bp_location): New, factored out from
5436 allocate_bp_location.
5437 (allocate_bp_location): Adjust. Call the owner breakpoint's
5438 allocate_location method, if there is one.
5439 (free_bp_location): Call the locations's dtor method, if there is
5440 one.
5441 (init_raw_breakpoint_without_location): New breakpoint_ops
5442 parameter. Use it.
5443 (set_raw_breakpoint_without_location): Adjust.
5444 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5445 (set_raw_breakpoint): Adjust.
5446 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5447 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5448 re_set and check_status methods.
5449 (init_catchpoint): Don't memset, initialize thread, addr_string
5450 and enable_state. Pass the ops down to init_raw_breakpoint.
5451 (install_catchpoint): Rename to ...
5452 (install_breakpoint): ... this, and make extern.
5453 (create_fork_vfork_event_catchpoint): Adjust.
5454 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5455 re_set and check_status methods.
5456 (create_syscall_event_catchpoint): Adjust.
5457 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5458 (masked_watchpoint_breakpoint_ops): Install NULL
5459 allocate_location, re_set and check_status methods.
5460 (catch_exec_command_1): Adjust.
5461 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5462 re_set and check_status methods.
5463 (create_ada_exception_breakpoint): Rename to ...
5464 (init_ada_exception_breakpoint): ... this. Add a struct
5465 breakpoint parameter, and delete the exp_string, cond_string and
5466 cond parameters. Use init_raw_breakpoint, and don't install or
5467 mention the breakpoint yet. Don't clear breakpoint fields that
5468 init_raw_breakpoint already clears.
5469 (re_set_breakpoint): Delete, split into ...
5470 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5471 functions.
5472 (breakpoint_re_set_one): Call the breakpoint's
5473 breakpoint_ops->re_set implementation, if there's one. Adjust.
5474 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5475 (struct bp_location_ops): New type.
5476 (struct bp_location): New field `ops'.
5477 (struct breakpoint_ops): New `allocate_location', `re_set' and
5478 `check_status' fields. Make `breakpoint_hit''s description match
5479 reality.
5480 (init_bp_location): Declare.
5481 (breakpoint_re_set_default): Declare.
5482 (create_ada_exception_breakpoint): Rename to ...
5483 (init_ada_exception_breakpoint): ... this. Add a struct
5484 breakpoint parameter, and delete the exp_string, cond_string and
5485 cond parameters.
5486 (install_breakpoint): Declare.
5487 * ada-lang.c: Include exceptions.h.
5488 <Ada exceptions description>: Update.
5489 (struct ada_catchpoint_location): New type.
5490 (ada_catchpoint_location_dtor): New function.
5491 (ada_catchpoint_location_ops): New global.
5492 (ada_catchpoint): New type.
5493 (create_excep_cond_exprs): New function.
5494 (dtor_exception, allocate_location_exception, re_set_exception)
5495 (should_stop_exception, check_status_exception): New functions.
5496 (print_one_exception, print_mention_exception)
5497 (print_recreate_exception): Adjust.
5498 (dtor_catch_exception, allocate_location_catch_exception)
5499 (re_set_catch_exception, check_status_catch_exception): New
5500 functions.
5501 (catch_exception_breakpoint_ops): Install them.
5502 (dtor_catch_exception_unhandled)
5503 (allocate_location_catch_exception_unhandled)
5504 (re_set_catch_exception_unhandled)
5505 (check_status_catch_exception_unhandled): New functions.
5506 (catch_exception_unhandled_breakpoint_ops): Install them.
5507 (dtor_catch_assert, allocate_location_catch_assert)
5508 (re_set_catch_assert, check_status_catch_assert): New functions.
5509 (catch_assert_breakpoint_ops): Install them.
5510 (ada_exception_catchpoint_p): Delete.
5511 (catch_ada_exception_command_split)
5512 (ada_exception_catchpoint_cond_string): Rename exp_string
5513 parameter to excep_string. Adjust.
5514 (ada_parse_catchpoint_condition): Delete.
5515 (ada_exception_sal): Rename the exp_string parameter to
5516 excep_string. Delete the cond_string and cond parameters.
5517 Adjust.
5518 (ada_decode_exception_location): Rename the exp_string parameter
5519 to excep_string. Delete the cond_string and cond parameters.
5520 Adjust.
5521 (create_ada_exception_catchpoint): New function.
5522 (catch_ada_exception_command, ada_decode_assert_location)
5523 (catch_assert_command): Adjust.
5524 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5525
5526 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5527
5528 * ada-lang.c: Include arch-utils.h.
5529 (ada_decode_exception_location): Make static.
5530 (catch_ada_exception_command): Moved here from breakpoint.c.
5531 (ada_decode_assert_location): Make static.
5532 (catch_assert_command): Moved here from breakpoint.c.
5533 (_initialize_ada_lang): Install the exception and assert
5534 catchpoint commands here.
5535 * ada-lang.h (ada_decode_exception_location)
5536 (ada_decode_assert_location): Delete declarations.
5537 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5538 breakpoint.h.
5539 (create_ada_exception_breakpoint): Make extern.
5540 (catch_ada_exception_command, catch_assert_command): Moved to
5541 ada-lang.c.
5542 (add_catch_command): Make extern.
5543 (_initilize_breakpoint): Don't install the exception and assert
5544 catchpoint commands here.
5545 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5546 breakpoint.c
5547 (add_catch_command, create_ada_exception_breakpoint): Declare.
5548
5549 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5550
5551 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5552 the breakpoint to the breakpoint chain here.
5553 (set_raw_breakpoint_without_location): Add the breakpoint to the
5554 breakpoint chain here.
5555 (init_raw_breakpoint): Adjust comments.
5556 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5557 here.
5558 (init_catchpoint): Don't set the catchpoint's breakpoint number
5559 here.
5560 (install_catchpoint): New function.
5561 (create_fork_vfork_event_catchpoint)
5562 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5563 use install_catchpoint.
5564
5565 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5566
5567 * breakpoint.c (create_catchpoint_without_mention)
5568 (create_catchpoint): Delete.
5569
5570 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5571
5572 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5573 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5574 reference to exec_pathname.
5575 (struct exec_catchpoint): New type.
5576 (dtor_catch_exec): New function.
5577 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5578 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5579 (catch_exec_command_1): Adjust to use init_catchpoint.
5580 (delete_breakpoint): Remove reference to exec_pathname.
5581
5582 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5583
5584 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5585 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5586 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5587 reference to syscalls_to_be_caught.
5588 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5589 NULL `dtor'.
5590 (struct syscall_catchpoint): New type.
5591 (dtor_catch_syscall): New function.
5592 (insert_catch_syscall, remove_catch_syscall)
5593 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5594 (print_recreate_catch_syscall): Adjust.
5595 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5596 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5597 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5598 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5599 (masked_watchpoint_breakpoint_ops)
5600 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5601 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5602 there is one. Remove references to syscalls_to_be_caught.
5603 (catching_syscall_number): Adjust.
5604 * ada-lang.c (catch_exception_breakpoint_ops)
5605 (catch_exception_unhandled_breakpoint_ops)
5606 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5607
5608 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5609
5610 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5611 field.
5612 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5613 reference to forked_inferior_pid.
5614 (struct fork_catchpoint): New type.
5615 (breakpoint_hit_catch_fork, print_it_catch_fork)
5616 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5617 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5618 (create_fork_vfork_event_catchpoint): Adjust to use
5619 init_catchpoint.
5620
5621 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5622
5623 * breakpoint.c (add_to_breakpoint_chain)
5624 (init_raw_breakpoint_without_location): New functions, factored
5625 out from ...
5626 (set_raw_breakpoint_without_location): ... this one.
5627 (init_raw_breakpoint): New function, factored out from
5628 set_raw_breakpoint and adjusted to use
5629 init_raw_breakpoint_without_location.
5630 (set_raw_breakpoint): Adjust.
5631 (init_catchpoint): New function, factored out from
5632 create_catchpoint_without_mention and adjusted to use
5633 init_raw_breakpoint.
5634 (create_catchpoint_without_mention): Adjust.
5635
5636 2011-06-22 Tom Tromey <tromey@redhat.com>
5637
5638 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5639 argument of 0 specially.
5640
5641 2011-06-22 Yao Qi <yao@codesourcery.com>
5642
5643 * infrun.c (handle_inferior_event): Remove write-only local variable
5644 `sw_single_step_trap_p'.
5645
5646 2011-06-20 Tom Tromey <tromey@redhat.com>
5647
5648 * symtab.c (lookup_language_this): End loop if block is NULL.
5649
5650 2011-06-17 Tom Tromey <tromey@redhat.com>
5651
5652 * valops.c (value_of_this): Use lookup_language_this.
5653 * symtab.h (lookup_language_this): Declare.
5654 * symtab.c (lookup_language_this): New function.
5655 (lookup_symbol_aux): Use lookup_language_this.
5656 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5657
5658 2011-06-17 Tom Tromey <tromey@redhat.com>
5659
5660 * value.h (value_of_this): Update.
5661 (value_of_local): Remove.
5662 * valops.c (value_of_this): Rename from value_of_local. Change
5663 parameters.
5664 * p-exp.y (exp): Update.
5665 (variable): Likewise.
5666 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5667
5668 2011-06-17 Tom Tromey <tromey@redhat.com>
5669
5670 * valops.c (value_of_local): Complain if NAME is NULL.
5671 * std-operator.def (OP_OBJC_SELF): Remove.
5672 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5673 * objc-exp.y (name_not_typename): Use OP_THIS.
5674 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5675 name for "this".
5676 <OP_OBJC_SELF>: Remove.
5677 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5678
5679 2011-06-16 Tristan Gingold <gingold@adacore.com>
5680
5681 * python/py-events.h (gdb_py_events): Make it extern.
5682 * python/py-evtregistry.c (gdb_py_events): Declare.
5683
5684 2011-06-16 Hui Zhu <teawater@gmail.com>
5685
5686 * remote.c (remote_trace_set_readonly_regions): Add check for
5687 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5688 output warning.
5689
5690 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5691
5692 * arm-linux-tdep.c: Include "auxv.h".
5693 (AT_HWCAP): Define.
5694 (ARM_LINUX_SIZEOF_VFP): Define.
5695 (arm_linux_supply_vfp): New function.
5696 (arm_linux_collect_vfp): Likewise.
5697 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5698 (arm_linux_fpa_regset_sections): New variable.
5699 (arm_linux_vfp_regset_sections): Likewise.
5700 (arm_linux_core_read_description): New function.
5701 (arm_linux_init_abi): Install arm_linux_core_read_description and
5702 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5703 appropriate for the architecture.
5704 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5705 (tdesc_arm_with_m): Declare.
5706 (tdesc_arm_with_iwmmxt): Likewise.
5707 (tdesc_arm_with_vfpv2): Likewise.
5708 (tdesc_arm_with_vfpv3): Likewise.
5709 (tdesc_arm_with_neon): Likewise.
5710 * arm-linux-nat.c: Move features/*.c includes ...
5711 * arm-tdep.c: ... here.
5712 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5713 target description data structures ...
5714 * arm-tdep.c (_initialize_arm_tdep): ... here.
5715 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5716 HWCAP_VFPv3D16): Move definitions ...
5717 * arm-linux-tdep.h: ... here.
5718
5719 2011-06-15 Hui Zhu <teawater@gmail.com>
5720
5721 * remote.c (remote_trace_set_readonly_regions): Add a check for
5722 target_buf_size.
5723
5724 2011-06-14 Tom Tromey <tromey@redhat.com>
5725
5726 * coffread.c (coffread_objfile): Rename from current_objfile.
5727 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5728 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5729
5730 2011-06-14 Tom Tromey <tromey@redhat.com>
5731
5732 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5733 (class_symtab): Remove.
5734 (jv_dynamics_progspace_key): New global.
5735 (jv_per_objfile_free): Reset program space data. Update assert.
5736 Don't clear globals.
5737 (get_dynamics_objfile): Use and set program space data.
5738 (get_java_class_symtab): Use get_dynamics_objfile.
5739 (add_class_symbol): Likewise.
5740 (java_link_class_type): Likewise.
5741 (java_object_type, jv_clear_object_type, set_java_object_type):
5742 Remove.
5743 (get_java_object_type): Update. Don't cache result.
5744 (is_object_type): Don't call set_java_object_type.
5745 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5746 initialize jv_dynamics_progspace_key.
5747
5748 2011-06-14 Tom Tromey <tromey@redhat.com>
5749
5750 * symtab.h (current_objfile): Don't declare.
5751 * objfiles.h (current_objfile): Don't declare.
5752 * objfiles.c (current_objfile): Remove.
5753 * mdebugread.c (current_objfile): New file-scope global.
5754 * dbxread.c (current_objfile): New file-scope global.
5755 * coffread.c (current_objfile): New file-scope global.
5756
5757 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5758
5759 * top.h (line): Rename to ...
5760 (saved_command_line): ... this.
5761 (linesize): Rename to ...
5762 (saved_command_line_size): ... this.
5763 * top.c (line): Rename to ...
5764 (saved_command_line): ... this.
5765 (linesize): Rename to ...
5766 (saved_command_line_size): ... this.
5767 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5768 * event-top.c (command_line_handler): Adjust.
5769 * main.c (captured_main): Adjust.
5770
5771 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5772
5773 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5774 get_frame_func instead of get_frame_pc to determine the code
5775 address used to construct the frame ID.
5776 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5777 (i386_epilogue_frame_this_id): Likewise.
5778 (i386_epilogue_frame_prev_register): New function.
5779 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5780 (i386_stack_tramp_frame_sniffer): Fix coding style.
5781 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5782 (i386_gdbarch_init): Fix comments.
5783
5784 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5785
5786 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5787 instruction when walking back through the instruction stream.
5788
5789 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5790
5791 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5792 fullname parameters order.
5793
5794 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5795
5796 Code cleanup.
5797 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5798 for fun.
5799 * psymtab.c (map_symbol_filenames_psymtab)
5800 (map_partial_symbol_filenames): Likewise.
5801 * psymtab.h: Include symfile.h.
5802 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5803 * symfile.h (symbol_filename_ftype): New.
5804 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5805 map_symbol_filenames, clarify more the naming in comment.
5806
5807 2011-06-07 Doug Evans <dje@google.com>
5808
5809 * cc-with-index.sh: Fix typos in comment.
5810 Look for ../../gdb, for fullname.exp.
5811
5812 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5813 Pedro Alves <pedro@codesourcery.com>
5814
5815 * cli/cli-cmds.c (shell_escape): Use waitpid.
5816 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5817
5818 2011-06-07 Tristan Gingold <gingold@adacore.com>
5819
5820 * xcoffread.c (dwarf2_xcoff_names): New variable.
5821 (aix_process_linenos): Add a guard.
5822 (xcoff_symfile_finish): Free dwarf2.
5823 (xcoff_initial_scan): Add dwarf2 support.
5824
5825 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5826
5827 * infcall.c (run_inferior_call): Don't mask async. Instead force
5828 a synchronous wait, if the target can async.
5829
5830 * target.h (struct target_ops): Delete to_async_mask.
5831 (target_async_mask): Delete.
5832 * target.c (update_current_target): Delete references to to_async_mask.
5833 * linux-nat.c (linux_nat_async_mask_value): Delete.
5834 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5835 to linux_nat_async_mask_value.
5836 (linux_nat_async_mask): Delete.
5837 (linux_nat_async, linux_nat_close): Remove references to
5838 linux_nat_async_mask_value.
5839 * record.c (record_async_mask_value): Delete.
5840 (record_async): Remove references to record_async_mask_value.
5841 (record_async_mask): Delete.
5842 (record_can_async_p, record_is_async_p): Remove references to
5843 record_async_mask_value.
5844 (init_record_ops, init_record_core_ops): Remove references to
5845 record_async_mask.
5846 * remote.c (remote_async_mask_value): Delete.
5847 (init_remote_ops): Remove reference to remote_async_mask.
5848 (remote_can_async_p, remote_is_async_p): Remove references to
5849 remote_async_mask_value.
5850 (remote_async): Remove references to remote_async_mask_value.
5851 (remote_async_mask): Delete.
5852
5853 * infrun.c (fetch_inferior_event): Don't claim registers changed
5854 if the current thread is already not executing.
5855
5856 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5857
5858 From Stephen Kitt <steve@sk2.org>
5859 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5860 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5861
5862 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5863
5864 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5865 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5866
5867 2011-06-03 Tom Tromey <tromey@redhat.com>
5868
5869 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5870 code fields.
5871 * python/py-exitedevent.c (create_exited_event_object): Change
5872 type of 'exit_code'. Optionally add exit_code attribute.
5873 (emit_exited_event): Change type of 'exit_code'.
5874 * python/py-event.h (emit_exited_event): Update.
5875 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5876 * infrun.c (handle_inferior_event): Set exit code fields on
5877 inferior.
5878 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5879 fields.
5880 * inferior.c (exit_inferior_1): Initialize new fields.
5881
5882 2011-06-03 Tom Tromey <tromey@redhat.com>
5883
5884 * dwarf2expr.c (get_signed_type): New function.
5885 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5886
5887 2011-06-02 Keith Seitz <keiths@redhat.com>
5888
5889 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5890
5891 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5892
5893 * top.h (simplified_command_loop): Delete declaration.
5894
5895 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5896
5897 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5898 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5899
5900 2011-06-01 Yao Qi <yao@codesourcery.com>
5901
5902 * objfiles.h (obj_section_addr): Update reference to objfile from
5903 `abfd' to `obfd'.
5904 (obj_section_endaddr): Likewise.
5905
5906 2011-06-01 Daniel Jacobowitz <drow@false.org>
5907
5908 * MAINTAINERS: Update my email address and affiliation. Also
5909 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5910
5911 2010-05-31 Keith Seitz <keiths@redhat.com>
5912
5913 PR c++/12750
5914 * linespec.c (get_search_block): New function.
5915 (find_methods): Add FILE_SYMTATB parameter and use it and
5916 get_search_block to pass an appropriate block to
5917 lookup_symbol_in_namespace.
5918 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5919 Check if *ARGPTR starts with a filename first.
5920 If it does, call locate_first_half again to locate the next
5921 "first half" of the linespec.
5922 Pass FILE_SYMTATB to decode_objc and decode_compound.
5923 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5924 (locate_first_half): Stop on the first colon seen.
5925 (decode_compound): Add FILE_SYMTAB parameter.
5926 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5927 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5928 get_search_block with lookup_symbol.
5929 (find_method): Add FILE_SYMTAB parameter and pass it to
5930 find_methods.
5931 (decode_objc): Use get_search_block.
5932
5933 2010-05-31 Keith Seitz <keiths@redhat.com>
5934
5935 PR symtab/12704
5936 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5937 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5938 and CP_ANONYMOUS_NAMESPACE_LEN.
5939 (cp_is_anonymous): Likewise.
5940 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5941 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5942 * dwarf2read.c (namespace_name): Likewise.
5943 (fixup_partial_die): Likewise.
5944 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5945 seen in the input, keep it.
5946
5947 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5948
5949 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5950 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5951 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5952 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5953 * remote.c (_initialize_remote): Register
5954 async_remote_interrupt_twice directly as
5955 sigint_remote_twice_token event.
5956
5957 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5958
5959 * target.h (enum inferior_event_type): Delete INF_ERROR.
5960 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5961
5962 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5963
5964 * interps.c (interp_set): Don't cancel continuations.
5965
5966 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5967
5968 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5969
5970 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5971
5972 * continuations.h (continuation_ftype): Add `err' parameter.
5973 Document parameters.
5974 (do_all_continuations, do_all_continuations_thread)
5975 (do_all_intermediate_continuations)
5976 (do_all_intermediate_continuations_thread)
5977 (do_all_inferior_continuations): Add `err' parameter.
5978 * continuations.c (do_my_continuations_1, do_my_continuations)
5979 (do_all_inferior_continuations, do_all_continuations_ptid)
5980 (do_all_continuations_thread_callback)
5981 (do_all_continuations_thread, do_all_continuations)
5982 (do_all_intermediate_continuations_thread_callback)
5983 (do_all_intermediate_continuations_thread)
5984 (do_all_intermediate_continuations): Add `err' parameter, and pass
5985 it down all the way to the continuations proper.
5986 * inf-loop.c (inferior_event_handler): If fetching an inferior
5987 event throws an error, don't pop the target, and still call the
5988 continuations, but with `err' set. Adjust all other continuation
5989 calls.
5990 * breakpoint.c (until_break_command_continuation): Add `err'
5991 parameter.
5992 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5993 issue another step if `err' is set.
5994 (struct until_next_continuation_args): New.
5995 (until_next_continuation): Add `err' parameter. Adjust.
5996 (until_next_command): Adjust.
5997 (struct finish_command_continuation_args): Add `thread' field.
5998 (finish_command_continuation): Add `err' parameter. Handle it.
5999 (finish_forward): Adjust.
6000 (attach_command_continuation): Add `err' parameter. Handle it.
6001 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6002 cancel the continuations.
6003 * interps.c (interp_set): Adjust to cancel the continuations.
6004 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6005 continuations rather than discarding.
6006 (free_thread): Don't clear thread inferior resources here.
6007 (delete_thread_1): Do it here instead. And do it before removing
6008 the thread from the threads list. Tag the thread as exited before
6009 clearing thread inferior resources.
6010
6011 2011-05-30 Joel Brobecker <brobecker@adacore.com>
6012
6013 * infcall.c (call_function_by_hand): Rephrase error message.
6014
6015 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6016
6017 * defs.h (struct thread_info, struct inferior): Delete forward
6018 declarations.
6019 * breakpoint.h (struct thread_info): New forward declaration.
6020 * observer.sh (struct inferior): New forward declaration.
6021 * python/python-internal.h (struct inferior): New forward
6022 declaration.
6023
6024 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6025
6026 * defs.h (struct continuation, continuation_ftype)
6027 (continuation_free_arg_ftype, add_continuation)
6028 (do_all_continuations, do_all_continuations_thread)
6029 (discard_all_continuations, discard_all_continuations_thread)
6030 (add_intermediate_continuation, do_all_intermediate_continuations)
6031 (do_all_intermediate_continuations_thread)
6032 (discard_all_intermediate_continuations)
6033 (discard_all_intermediate_continuations_thread)
6034 (add_inferior_continuation, do_all_inferior_continuations)
6035 (discard_all_inferior_continuations): Move to ...
6036 * continuations.h: ... this new file.
6037 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6038 infcmd.c, inferior.c, infrun.c, interps.c: Include
6039 continuations.h.
6040
6041 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6042 Doug Evans <dje@google.com>
6043
6044 Fix PR 10970, PR 12702.
6045 * linux-nat.c (linux_lwp_is_zombie): New function.
6046 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6047 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6048
6049 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6050
6051 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6052 typedefs.
6053 (add_continuation, add_intermediate_continuation)
6054 (add_inferior_continuation): Use them.
6055 * continuations.c (struct continuation): Use them.
6056 (make_continuation_ftype): Delete.
6057 (make_continuation, add_inferior_continuation, add_continuation)
6058 (add_intermediate_continuation): Use continuation_ftype and
6059 continuation_free_arg_ftype. Rename parameters to shorter names.
6060
6061 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6062
6063 * continuations.c (make_continuation): Make it return void.
6064 (do_my_continuations): Rename to ...
6065 (do_my_continuations_1): ... this. Remove old_chain parameter and
6066 adjust.
6067 (do_my_continuations): New.
6068 (discard_my_continuations): Rename to ...
6069 (discard_my_continuations_1): ... this. Remove old_chain
6070 parameter and adjust.
6071 (discard_my_continuations): New.
6072 (add_inferior_continuation): Simplify.
6073 (do_all_inferior_continuations): Reimplement on top
6074 do_my_continuations.
6075 (discard_all_inferior_continuations): Simplify.
6076 (add_continuation): Simplify.
6077 (do_all_continuations_ptid): Simplify.
6078 (discard_all_continuations_thread_callback): Simplify.
6079 (add_intermediate_continuation): Simplify.
6080 (discard_all_intermediate_continuations_thread_callback):
6081 Simplify.
6082
6083 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6084
6085 * utils.c (struct continuation, add_continuation)
6086 (add_inferior_continuation)
6087 (do_all_inferior_continuations, discard_all_inferior_continuations)
6088 (restore_thread_cleanup, do_all_continuations_ptid)
6089 (do_all_continuations_thread_callback)
6090 (do_all_continuations_thread, do_all_continuations)
6091 (discard_all_continuations_thread_callback)
6092 (discard_all_continuations_thread, discard_all_continuations)
6093 (add_intermediate_continuation)
6094 (do_all_intermediate_continuations_thread_callback)
6095 (do_all_intermediate_continuations_thread)
6096 (do_all_intermediate_continuations)
6097 (discard_all_intermediate_continuations_thread_callback)
6098 (discard_all_intermediate_continuations_thread)
6099 (discard_all_intermediate_continuations): Move to ...
6100 * continuations.c: ... this new file, and adjust to no longer
6101 implement continuations on top of cleanups.
6102 * Makefile.in (SFILES): Add continuations.c.
6103 (COMMON_OBS): Add continuations.o.
6104
6105 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6106
6107 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6108 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6109 Internal error on invalid values.
6110 * reverse.c: Don't handle EXEC_ERROR.
6111 * mi/mi-main.c: Don't handle EXEC_ERROR.
6112
6113 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6114
6115 * record.c: Include event-loop.h, inf-loop.h.
6116 (record_beneath_to_async): New global.
6117 (tmp_to_async): New global.
6118 (record_async_inferior_event_token): New global.
6119 (record_open_1): Don't error out if async is enabled.
6120 (record_open): Handle to_async. Create an async event source in
6121 the event loop.
6122 (record_close): Delete the async event source.
6123 (record_resumed): New global.
6124 (record_execution_dir): New global.
6125 (record_resume, record_core_resume): Set them. Register the
6126 target on the event loop.
6127 (record_wait): Rename to ...
6128 (record_wait_1): ... this. Add more debug output. Handle
6129 TARGET_WNOHANG, and the target beneath returning
6130 TARGET_WAITKIND_IGNORE.
6131 (record_wait): Reimplement on top of record_wait_1.
6132 (record_async_mask_value): New global.
6133 (record_async, record_async_mask, record_can_async_p)
6134 (record_is_async_p, record_execution_direction): New functions.
6135 (init_record_ops, init_record_core_ops): Install new methods.
6136 * infrun.c (fetch_inferior_event): Temporarily switch the global
6137 execution direction to the direction the target was going.
6138 (execution_direction): Change type to int.
6139 * target.c (default_execution_direction): New function.
6140 (update_current_target): Inherit and de_fault
6141 to_execution_direction.
6142 * target.h (struct target_ops) <to_execution_direction>: New
6143 field.
6144 (target_execution_direction): New macro.
6145 * inferior.h (execution_direction): Change type to int.
6146
6147 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6148
6149 * infcall.c (call_function_by_hand): Don't allow calling functions
6150 in reverse execution mode.
6151
6152 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6153
6154 * infcmd.c (finish_command): Allow async finish in reverse.
6155
6156 2011-05-26 Yao Qi <yao@codesourcery.com>
6157
6158 * gdb_thread_db.h: Delete. Move to ...
6159 * common/gdb_thread_db.h: ... here.
6160
6161 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6162
6163 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6164 function's entry point instead of a manually managed momentary
6165 breakpoint, and only ever issue one proceed call.
6166 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6167 doing a reverse-finish, switch to stepi mode, to do another step.
6168 (insert_step_resume_breakpoint_at_sal): Make public.
6169 (normal_stop): No need to save function value return registers if
6170 going reverse.
6171 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6172
6173 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6174
6175 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6176 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6177 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6178 at the end.
6179 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6180 step-resume breakpoints.
6181 (print_it_typical): Handle bp_hp_step_resume.
6182 (bpstat_what): Ditto.
6183 (bptype_string): Ditto.
6184 (print_one_breakpoint_location): Ditto.
6185 (allocate_bp_location): Ditto.
6186 (mention): Ditto.
6187 (breakpoint_re_set_one): Ditto.
6188 * infrun.c (handle_inferior_event): Adjust. Split
6189 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6190 BPSTAT_WHAT_HP_STEP_RESUME.
6191 (insert_step_resume_breakpoint_at_sal): Rename to ...
6192 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6193 parameter. Handle it.
6194 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6195 insert_step_resume_breakpoint_at_sal_1.
6196 (insert_step_resume_breakpoint_at_frame): Rename to ...
6197 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6198 set a high-priority step-resume breakpoint.
6199 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6200 (insert_step_resume_breakpoint_at_caller): Ditto.
6201
6202 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6203
6204 * breakpoint.c (iterate_over_related_breakpoints): New.
6205 (do_map_delete_breakpoint): New.
6206 (delete_command): Pass do_map_delete_breakpoint to
6207 map_breakpoint_numbers.
6208 (do_disable_breakpoint): New.
6209 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6210 breakpoints.
6211 (do_enable_breakpoint): Rename to ...
6212 (enable_breakpoint_disp): ... this.
6213 (enable_breakpoint): Adjust.
6214 (do_enable_breakpoint): New.
6215 (enable_once_breakpoint): Delete.
6216 (do_map_enable_breakpoint): New.
6217 (do_map_enable_once_breakpoint): New.
6218 (enable_once_command, enable_delete_command)
6219 (delete_trace_command): Iterate over the breakpoint's related
6220 breakpoints.
6221
6222 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6223
6224 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6225 for ALPHA_ZERO_REGNUM.
6226 (alpha_supply_int_regs): Explicitly supply zero as the value for
6227 ALPHA_ZERO_REGNUM in the register cache.
6228 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6229
6230 2011-05-26 Yao Qi <yao@codesourcery.com>
6231
6232 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6233
6234 2011-05-26 Tristan Gingold <gingold@adacore.com>
6235
6236 * symfile.h (struct dwarf2_section_names): New type.
6237 (struct dwarf2_debug_sections): New type.
6238 (dwarf2_has_info): Add parameter.
6239 * dwarf2read.c (dwarf2_elf_names): New variable.
6240 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6241 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6242 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6243 (dwarf2_has_info): Add names parameter. Pass names
6244 to dwarf2_locate_sections.
6245 (section_is_p): Rewrite using the names parameter.
6246 (dwarf2_locate_sections): Use section names from the names parameter.
6247 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6248 * elfread.c (read_psyms): Ditto.
6249 * machoread.c (macho_symfile_read): Ditto.
6250
6251 2011-05-25 Andreas Schwab <schwab@redhat.com>
6252
6253 PR gdb/8677
6254 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6255
6256 2011-05-24 Keith Seitz <keiths@redhat.com>
6257
6258 PR breakpoint/12803
6259 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6260 (decode_compound): Unconditionally call keep_name_info.
6261
6262 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6263
6264 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6265 scope, clear its command list.
6266 (map_breakpoint_numbers): Don't walk the related breakpoints list
6267 of each breakpoint.
6268
6269 2011-05-24 Tom Tromey <tromey@redhat.com>
6270
6271 * MAINTAINERS: Move Jim Blandy to past maintainers.
6272
6273 2011-05-24 Tristan Gingold <gingold@adacore.com>
6274
6275 * symfile.h (enum dwarf2_section_enum): New type.
6276 (dwarf2_get_section_info): New prototype.
6277 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6278 section_name by sect. Use a switch to select the info.
6279 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6280 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6281
6282 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6283
6284 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6285 shared library event breakpoint if there's no execution.
6286
6287 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6288
6289 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6290 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6291
6292 2011-05-23 Tom Tromey <tromey@redhat.com>
6293
6294 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6295 NULL.
6296
6297 2011-05-23 Doug Evans <dje@google.com>
6298
6299 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6300 entry for RuntimeError to doc string.
6301
6302 2011-05-23 Jerome Guitton <guitton@adacore.com>
6303
6304 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6305 sequence for probing loops.
6306
6307 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6308
6309 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6310 comment.
6311
6312 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6313
6314 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6315 zero as the value for %g0 in the register cache.
6316 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6317 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6318
6319 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6320
6321 * infrun.c (proceed): Set previous_inferior_ptid here.
6322 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6323 inferior_ptid, not null_ptid.
6324 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6325 (fetch_inferior_event): Nor here.
6326
6327 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6328
6329 * inf-loop.c (inferior_event_handler): Only output a message if
6330 verbose.
6331
6332 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6333
6334 * MAINTAINERS: Update my e-mail address.
6335
6336 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6337
6338 * infrun.c (proceed): Switch the inferior event loop to
6339 INF_EXEC_COMPLETE if the target refused to resume from a
6340 vfork/fork.
6341
6342 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6343
6344 * infcmd.c: Include "inf-loop.h".
6345 (step_once): When stepping into an inline subroutine, pretend the
6346 target has run. If the target can async, switch the inferior
6347 event loop to INF_EXEC_COMPLETE.
6348 * inferior.h (user_visible_resume_ptid): Declare.
6349 * infrun.c (user_visible_resume_ptid): New function, factored out
6350 from `resume'.
6351 (resume): Use it.
6352 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6353 that the current thread is running. Merge async and sync
6354 branches.
6355
6356 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6357
6358 * infcmd.c (step_1): Simplify synchronous case.
6359
6360 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6361
6362 * tracepoint.c: Include exceptions.h.
6363 (TFILE_PID): Move higher in file.
6364 (tfile_open): Delay pushing the tfile target until we're assured
6365 the tfile header is present in the file. Wrap reading the initial
6366 newline-terminated lines in TRY_CATCH. Pop the target if the
6367 initial setup failed. Add the tfile's thread immediately
6368 aftwards, before any non-essential setup. Don't skip
6369 post_create_inferior if there are no traceframes present in the
6370 file.
6371 (tfile_close): Remove redundant check for null before xfree call.
6372 (tfile_thread_alive): New function.
6373 (init_tfile_ops): Register it as to_thread_alive callback.
6374
6375 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6376
6377 * tracepoint.c (tfile_open): Delete #if 0'd code.
6378
6379 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6380
6381 Fix -readnow for -gdwarf-4 unused type units.
6382 * dwarf2read.c (struct signatured_type): Remove the field offset.
6383 (create_signatured_type_table_from_index): Remove its initialization.
6384 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6385 instead. Add a complaint call.
6386 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6387 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6388 (lookup_signatured_type_at_offset, read_signatured_type)
6389 (write_one_signatured_type): Update the field for per_cu.
6390
6391 2011-05-19 Tom Tromey <tromey@redhat.com>
6392
6393 * python/py-inferior.c (python_inferior_exit): Use
6394 target_gdbarch.
6395 (python_on_resume): Likewise.
6396
6397 2011-05-19 Matt Rice <ratmice@gmail.com>
6398
6399 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6400
6401 2011-05-19 Hui Zhu <teawater@gmail.com>
6402
6403 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6404
6405 2011-05-19 Hui Zhu <teawater@gmail.com>
6406
6407 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6408
6409 2011-05-18 Tom Tromey <tromey@redhat.com>
6410
6411 * dwarf2read.c (dwarf2_add_field): Constify.
6412 * value.c (value_static_field): Constify.
6413 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6414 Now const.
6415 * ax-gdb.c (gen_static_field): Constify
6416
6417 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6418
6419 * linux-nat.c (kill_callback): Use SIGKILL first.
6420
6421 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6422
6423 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6424
6425 2011-05-18 Tom Tromey <tromey@redhat.com>
6426
6427 * value.c (value_fn_field): Constify.
6428 * symtab.c (gdb_mangle_name): Constify.
6429 * stabsread.c (update_method_name_from_physname): Make 'physname'
6430 argument const.
6431 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6432 const. Use explicit fputc_filtered loop.
6433 (pascal_type_print_base): Constify.
6434 * p-lang.h (pascal_type_print_method_args): Update.
6435 * linespec.c (add_matching_methods): Constify.
6436 (add_constructors): Likewise.
6437 * jv-typeprint.c (java_type_print_base): Constify.
6438 * gdbtypes.h (struct cplus_struct_type)
6439 <fn_fieldlist.fn_field.physname>: Now const.
6440 * dwarf2read.c (compute_delayed_physnames): Constify.
6441 (dwarf2_add_member_fn): Likewise.
6442 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6443
6444 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6445
6446 * infrun.c (resume): Mention which is the current thread, and its
6447 current PC in debug output.
6448 (prepare_to_proceed): Mention the thread switching in debug
6449 output.
6450
6451 2011-05-18 Tom Tromey <tromey@redhat.com>
6452
6453 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6454 path check. Use xmalloc and cleanups.
6455 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6456
6457 2011-05-17 Tom Tromey <tromey@redhat.com>
6458
6459 * cp-valprint.c (cp_print_value_fields): Catch errors from
6460 value_static_field.
6461
6462 2011-05-17 Tom Tromey <tromey@redhat.com>
6463
6464 * dwarf2read.c (dwarf2_get_die_type): Call
6465 get_die_type_at_offset.
6466 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6467 get_base_type function.
6468
6469 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6470
6471 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6472 trap_expected.
6473
6474 2011-05-16 Doug Evans <dje@google.com>
6475
6476 * python/py-auto-load.c (source_section_scripts): Mention objfile
6477 name in warning.
6478
6479 2011-05-15 Doug Evans <dje@google.com>
6480
6481 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6482 (try_thread_db_load_from_pdir): Call it. If unable to find
6483 libthread_db in directory of libpthread, see if we're looking at
6484 the separate-debug-info copy.
6485
6486 * python/py-autoload.c (print_script): Print "Missing" instead of
6487 "No" for missing scripts.
6488 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6489
6490 2011-05-13 Doug Evans <dje@google.com>
6491
6492 * ui-file.c (stdio_file_write_async_safe): Add comment.
6493
6494 2011-05-14 Hui Zhu <teawater@gmail.com>
6495
6496 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6497
6498 2011-05-13 Doug Evans <dje@google.com>
6499
6500 Support $pdir and $sdir in libthread-db-search-path.
6501 * NEWS: Mention $sdir,$pdir.
6502 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6503 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6504 (try_thread_db_load_from_sdir): New function.
6505 (try_thread_db_load_from_dir): New function.
6506 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6507 system directories if search of libthread-db-search-path fails,
6508 that is now done via $sdir.
6509 (has_libpthread): New function.
6510 (thread_db_load): Remove search for libthread_db in directory of
6511 libpthread, that is now done via $pdir.
6512
6513 * NEWS: Mention "info auto-load-scripts".
6514 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6515 script_not_found_warning_printed.
6516 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6517 all callers updated. Initialize script_not_found_warning_printed.
6518 (get_auto_load_pspace_data_for_loading): New function.
6519 (maybe_add_script): New function.
6520 (source_section_scripts): Simplify. Only print one warning regardless
6521 of the number of auto-load scripts not found.
6522 (clear_section_scripts): Clear script_not_found_warning_printed.
6523 (auto_load_objfile_script): Record script in hash table.
6524 (count_matching_scripts): New function.
6525 (maybe_print_script): Renamed from maybe_print_section_script, all
6526 callers updated. Rewrite to use ui_out_*.
6527 (info_auto_load_scripts): Renamed from
6528 maintenance_print_section_scripts, all callers updated.
6529 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6530 renamed as "info auto-load-scripts".
6531
6532 2011-05-13 Tom Tromey <tromey@redhat.com>
6533
6534 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6535 (read_sleb128): Likewise.
6536
6537 2011-05-13 Tom Tromey <tromey@redhat.com>
6538
6539 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6540 offset display.
6541
6542 2011-05-13 Doug Evans <dje@google.com>
6543
6544 * linux-nat.c (debug_linux_nat_async): Delete.
6545 Replace all references to use debug_linux_nat instead.
6546 (show_debug_linux_nat_async): Delete.
6547 (sigchld_handler): Call ui_file_write_async_safe instead of
6548 fprintf_unfiltered.
6549 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6550 * ui-file.c (struct ui_file): New member to_write_async_safe.
6551 (null_file_write_async_safe): New function.
6552 (ui_file_write_async_safe): New function.
6553 (set_ui_file_write_async_safe): New function.
6554 (ui_file_new): Initialize to_write_async_safe.
6555 (stdio_file_write_async_safe): New function.
6556 (struct stdio_file): New member fd.
6557 (stdio_file_new): Initialize to_write_async_safe, fd.
6558 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6559 fileno.
6560 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6561 (set_ui_file_write_async_safe): Declare.
6562 (ui_file_write_async_safe): Declare.
6563
6564 2011-05-13 Tom Tromey <tromey@redhat.com>
6565
6566 * utils.c (do_value_free): New function.
6567 (make_cleanup_value_free): Likewise.
6568 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6569 freeing correctly.
6570 (dwarf2_loc_desc_needs_frame): Call
6571 make_cleanup_value_free_to_mark.
6572 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6573 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6574 value_free_to_mark.
6575 (new_dwarf_expr_context): Don't call value_mark.
6576 * dwarf2-frame.c (execute_stack_op): Call
6577 make_cleanup_value_free_to_mark.
6578 * defs.h (make_cleanup_value_free): Declare.
6579
6580 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6581
6582 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6583 prepare_execute_command.
6584 * top.c (prepare_execute_command): Return cleanup.
6585 (execute_command): Use cleanup from prepare_execute_command.
6586 * top.h (prepare_execute_command): Change prototype to return
6587 cleanup.
6588 * defs.h (struct value): Add opaque declaration.
6589 (make_cleanup_value_free_to_mark): Add prototype.
6590 * utils.c (do_value_free_to_mark): New function.
6591 (make_cleanup_value_free_to_mark): Likewise.
6592
6593 2011-05-12 Tom Tromey <tromey@redhat.com>
6594
6595 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6596 cast left-hand-side to unsigned.
6597
6598 2011-05-12 Tom Tromey <tromey@redhat.com>
6599
6600 PR gdb/12617:
6601 * value.h (value_from_contents): Declare.
6602 * value.c (value_from_contents): New function.
6603 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6604 (dwarf2_get_die_type): New function.
6605 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6606 (allocate_piece_closure): Acquire reference to values.
6607 (read_pieced_value): Update for value-based expressions.
6608 (write_pieced_value): Likewise.
6609 (free_pieced_value_closure): Call value_free as needed.
6610 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6611 Update for value-based expressions.
6612 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6613 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6614 <get_base_type>: New field.
6615 (struct dwarf_expr_piece) <v.value>: Change type.
6616 <v.regno>: New field.
6617 (struct dwarf_expr_context) <mark>: New field.
6618 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6619 (dwarf_expr_pop, dwarf_expr_push): Remove.
6620 (dwarf_expr_push_address): Declare.
6621 * dwarf2expr.c (dwarf_arch_cookie): New global.
6622 (struct dwarf_gdbarch_types): New.
6623 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6624 functions.
6625 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6626 static.
6627 (dwarf_expr_push_address): New function.
6628 (dwarf_expr_pop): Now static.
6629 (dwarf_expr_fetch): Change return type.
6630 (dwarf_require_integral): New function.
6631 (dwarf_expr_fetch): Simplify.
6632 (add_piece): Update.
6633 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6634 functions.
6635 (execute_stack_op) <sign_ext>: Remove.
6636 Use values for DWARF stack.
6637 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6638 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6639 New cases.
6640 (_initialize_dwarf2expr): New function.
6641 (add_piece): Update.
6642 (new_dwarf_expr_context): Set new field.
6643 (free_dwarf_expr_context): Call value_free_to_mark.
6644 * dwarf2-frame.c (no_base_type): New function.
6645 (execute_stack_op): Set get_base_type field. Update.
6646
6647 2011-05-12 Tom Tromey <tromey@redhat.com>
6648
6649 * dwarf2read.c (read_common_block): Fix formatting.
6650
6651 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6652
6653 * breakpoint.c (disable_breakpoint): Disable all locations
6654 associated with a tracepoint on target if a trace experiment is
6655 running.
6656 (disable_command): Disable a specific tracepoint location on target if
6657 a trace experiment is running.
6658 (do_enable_breakpoint): Enable all locations associated with a
6659 tracepoint on target if a trace experiment is running.
6660 (enable_command) Enable a specific tracepoint location on target if a
6661 trace experiment is running.
6662 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6663 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6664 to_disable_tracepoint.
6665 * target.h: Add declaration of struct bp_location.
6666 (struct target_ops): Add new functions
6667 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6668 to_disable_tracepoint to target operations.
6669 (target_supports_enable_disable_tracepoint): New macro.
6670 (target_enable_tracepoint): New macro.
6671 (target_disable_tracepoint): New macro.
6672 * remote.c (struct remote_state): Add new field.
6673 (remote_enable_disable_tracepoint_feature): New.
6674 (remote_protocol_features): Add new entry.
6675 (remote_supports_enable_disable_tracepoint): New.
6676 (remote_enable_tracepoint): New.
6677 (remote_disable_tracepoint): New.
6678 (init_remote_ops): Add remote_enable_tracepoint,
6679 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6680 to remote operations.
6681 * tracepoint.c (start_tracing): Allow tracing to start without any
6682 tracepoints enabled with just a warning if they can be re-enabled
6683 later.
6684 * NEWS: Add news item for the new behaviour of the enable and disable
6685 GDB commands when applied to tracepoints.
6686 Add news items for the new remote packets QTEnable and QTDisable.
6687
6688 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6689
6690 * config.in: Regenerate.
6691 * configure: Regenerate.
6692 * configure.ac <--with-system-readline> (for readline_echoing_p):
6693 Remove the test.
6694 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6695 (tui_old_rl_echoing_p): ... here.
6696 (tui_setup_io): Rename extern declaration readline_echoing_p to
6697 _rl_echoing_p. Adjust assignments for the both renames.
6698
6699 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6700
6701 * symtab.c (lookup_symtab): Run cleanup before returning.
6702
6703 2011-05-11 Tom Tromey <tromey@redhat.com>
6704
6705 * dwarf2read.c (handle_data_member_location): New function.
6706 (dwarf2_add_field): Use it.
6707 (read_common_block): Likewise.
6708
6709 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6710
6711 Make addrs->SECTINDEX always defined.
6712 * symfile.c (relative_addr_info_to_section_offsets): Check for
6713 SECTINDEX -1, not for zero ADDR.
6714 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6715 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6716 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6717 on its validity.
6718
6719 2011-05-10 Doug Evans <dje@google.com>
6720
6721 * linux-thread-db.c: Whitespace cleanup.
6722 (try_thread_db_load_1): Fix comment.
6723
6724 * linux-thread-db.c (set_libthread_db_search_path): New function.
6725 (_initialize_thread_db): Add setter for libthread-db-search-path.
6726
6727 2011-05-09 Doug Evans <dje@google.com>
6728
6729 * NEWS: Mention --with-iconv-bin.
6730 * configure.ac: New option --with-iconv-bin.
6731 * configure: Regenerate.
6732 * config.in: Regenerate.
6733 * defs.h (relocate_gdb_directory): Declare.
6734 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6735 removed progname parameter, and exported. All callers updated.
6736 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6737
6738 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6739 adding missing call to restore_child_signals_mask.
6740
6741 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6742
6743 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6744 parameter.
6745 * infrun.c (proceed, start_remote): Adjust.
6746 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6747 and adjust to not handle it.
6748 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6749 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6750 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6751 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6752 * windows-nat.c (do_initial_windows_stuff): Adjust.
6753 * infcmd.c (attach_command): Adjust.
6754 (notice_new_inferior): Adjust.
6755
6756 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6757
6758 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6759 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6760 * spu-tdep.c (op_selb): Use correct value.
6761
6762 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6763
6764 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6765 "parent" parameter to symbol_file_add_from_bfd call.
6766
6767 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6768 Thiago Jung Bauermann <bauerman@br.ibm.com>
6769
6770 Implement support for PowerPC BookE masked watchpoints.
6771 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6772 section.
6773 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6774 method. Initialize to NULL in all existing breakpoint_ops instances.
6775 (struct breakpoint) <hw_wp_mask>: New field.
6776 * breakpoint.c (is_masked_watchpoint): Add prototype.
6777 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6778 breakpoint's breakpoint_ops.works_in_software_mode if available.
6779 (watchpoints_triggered): Handle the case of a hardware masked
6780 watchpoint trigger.
6781 (watchpoint_check): Likewise.
6782 (works_in_software_mode_watchpoint): New function.
6783 (insert_masked_watchpoint, remove_masked_watchpoint)
6784 (resources_needed_masked_watchpoint)
6785 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6786 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6787 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6788 functions.
6789 (masked_watchpoint_breakpoint_ops): New structure.
6790 (watch_command_1): Check for the existence of the `mask' parameter.
6791 Set b->ops according to the type of hardware watchpoint being created.
6792 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6793 (ppc_linux_remove_mask_watchpoint)
6794 (ppc_linux_masked_watch_num_registers): New functions.
6795 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6796 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6797 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6798 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6799 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6800 (target_masked_watch_num_registers): New functions.
6801 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6802 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6803 methods.
6804 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6805 (target_masked_watch_num_registers): Add prototypes.
6806
6807 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6808
6809 PR 12573
6810 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6811 (producer_is_gcc_ge_4_0): New function.
6812 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6813 symtab->language code.
6814 (var_decode_location): Set cu->has_loclist.
6815 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6816 skip. Intialize force_skip from locations_valid. Move the prologue
6817 skipping code into two passes.
6818 * symtab.h (struct symtab): Make the primary field a bitfield. New
6819 field locations_valid.
6820
6821 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6822
6823 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6824 (classify_inner_name): Call cp_lookup_nested_type with
6825 yylval.tsym.type.
6826 * cp-namespace.c (cp_lookup_nested_type): New variable
6827 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6828 type_name_no_tag_or_error with saved_parent_type.
6829 * dwarf2read.c (load_partial_dies): Read in any children of
6830 DW_TAG_typedef with complaint in such case.
6831 * gdbtypes.c (type_name_no_tag_or_error): New function.
6832 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6833 * valops.c (destructor_name_p): New comment for parameter type. Remove
6834 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6835 * value.h (destructor_name_p): Remove type const.
6836
6837 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6838
6839 * symtab.c (compare_symbol_name): New function.
6840 (completion_list_add_name, expand_partial_symbol_name): Call it,
6841 remove the variable ncmp.
6842 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6843 gdb_assert it.
6844
6845 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6846
6847 Demote to sw watchpoint only in update_watchpoint.
6848 * breakpoint.c (update_watchpoint): Change between software and
6849 hardware watchpoint for all kinds of watchpoints, not just
6850 read/write ones. Determine b->exact value here instead of
6851 in watch_command_1. Error out if there are not enough resources
6852 for a read or access hardware watchpoint.
6853 (watch_command_1): Remove logic of checking whether there are
6854 enough resources available, since update_watchpoint will do that
6855 work now. Don't set b->exact here. Catch exceptions thrown by
6856 update_watchpoint and delete the watchpoint.
6857 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6858 Use target_exact_watchpoints instead.
6859 (delete_breakpoint): Notify observers only if deleted watchpoint
6860 has a breakpoint number assigned to it.
6861
6862 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6863
6864 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6865
6866 2011-05-05 Jerome Guitton <guitton@adacore.com>
6867
6868 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6869 New functions.
6870 (i386_stack_tramp_frame_unwind): New static global.
6871 (i386_match_pattern): New function, extracted from i386_match_insn.
6872 (i386_match_insn): Use i386_match_pattern.
6873 (i386_match_insn_block): New function.
6874 (i386_tramp_chain_in_reg_insns)
6875 (i386_tramp_chain_on_stack_insns): New static variables.
6876 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6877 of unwinders.
6878
6879 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6880
6881 * configure.host (xscale*): Don't handle target.
6882 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6883 handle targets.
6884
6885 2011-05-04 Yao Qi <yao@codesourcery.com>
6886
6887 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6888
6889 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6890
6891 Revert:
6892 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6893 | * elfread.c (elf_symtab_read): Stop memory leak.
6894
6895 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6896
6897 * nto-tdep.c (nto_target): Replace deprecated call to
6898 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6899
6900 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6901
6902 Fix false GCC warning.
6903 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6904
6905 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6906
6907 * breakpoint.c (update_watchpoint): Move code to change
6908 the enable state of breakpoint from here ...
6909 (do_enable_breakpoint): ... to here.
6910
6911 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6912
6913 * valprint.c (val_print_array_elements): Fixed poor performance
6914 of printing very large arrays with repeat_count_threshold set
6915 to unlimited. New comment.
6916
6917 2011-04-29 Tom Tromey <tromey@redhat.com>
6918
6919 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6920 (mi_parse): Likewise.
6921 * breakpoint.c (break_range_command): Use sizeof char*, not
6922 char**.
6923 (create_breakpoint): Likewise.
6924 (parse_breakpoint_sals): Likewise.
6925
6926 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6927
6928 * linux-nat.c (linux_child_remove_fork_catchpoint)
6929 (linux_child_remove_vfork_catchpoint)
6930 (linux_child_remove_exec_catchpoint): New functions.
6931 (linux_target_install_ops): Install them.
6932
6933 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6934
6935 PR mi/12531
6936
6937 * varobj.c (install_default_visualizer): Do not install a
6938 visualizer if the varobj is CPLUS_FAKE_CHILD.
6939 (construct_visualizer): Likewise.
6940
6941 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6942
6943 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6944 case insensitive comparison.
6945
6946 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6947
6948 * infrun.c (proceed): Revert previous change.
6949 (resume): Instead, handle the case of signal delivery while stepping
6950 off a breakpoint location here, and only if software single-stepping
6951 is used. Handle nested signals.
6952
6953 2011-04-28 Yao Qi <yao@codesourcery.com>
6954
6955 * arm-tdep.c (copy_unmodified): Rename to ...
6956 (arm_copy_unmodified): .. this. New.
6957 (copy_preload): Move common part to ...
6958 (install_preload): .. this. New.
6959 (arm_copy_preload): New.
6960 (copy_preload_reg): Move common part to ...
6961 (install_preload_reg): ... this. New.
6962 (arm_copy_preload_reg): New.
6963 (copy_b_bl_blx): Move common part to ...
6964 (install_b_bl_blx): .. this. New.
6965 (arm_copy_b_bl_blx): New.
6966 (copy_bx_blx_reg): Move common part to ...
6967 (install_bx_blx_reg): ... this. New.
6968 (arm_copy_bx_blx_reg): New.
6969 (copy_alu_reg): Move common part to ...
6970 (install_alu_reg): ... this. New.
6971 (arm_copy_alu_reg): New.
6972 (copy_alu_shifted_reg): Move common part to ...
6973 (install_alu_shifted_reg): ... this. New.
6974 (copy_ldr_str_ldrb_strb): Move common part to ...
6975 (install_ldr_str_ldrb_strb): ... this. New.
6976 (arm_copy_ldr_str_ldrb_strb): New.
6977 (copy_copro_load_store): Move some common part to ...
6978 (install_copy_copro_load_store): ... this. New.
6979 (arm_copy_copro_load_store): New.
6980 (copy_svc): Delete.
6981 (arm_copy_svc): Renamed from copy_svc.
6982 (copy_undef): Delete.
6983 (arm_copy_undef): Renamed from copy_undef.
6984 (decode_ext_reg_ld_st): Delete.
6985 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6986 (decode_svc_copro): Delete.
6987 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6988 (copy_copro_load_store, copy_alu_imm): update callers.
6989 (copy_extra_ld_st, copy_block_xfer): Likewise.
6990 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6991 (decode_miscellaneous, decode_dp_misc): Likewise.
6992 (decode_ld_st_word_ubyte, decode_media): Likewise.
6993 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6994 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6995 (decode_unconditional, decode_miscellaneous): Likewise.
6996 (decode_media, decode_b_bl_ldmstm): Likewise.
6997 (arm_process_displaced_insn): Likewise..
6998 (decode_misc_memhint_neon): Delete.
6999 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7000 (decode_miscellaneous): Delete.
7001 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7002 (decode_dp_misc): Delete.
7003 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7004 (decode_ld_st_word_ubyte): Delete.
7005 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7006 (decode_media): Delete.
7007 (arm_decode_media): Renamed from decode_media.
7008 (decode_b_bl_ldmstm): Delete.
7009 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7010 (decode_ext_reg_ld_st): Delete.
7011 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7012 (decode_unconditional): Delete.
7013 (arm_decode_unconditional): Renamed from decode_unconditional.
7014
7015 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7016
7017 Case insensitive lookups implementation.
7018 * dwarf2read.c: Include ctype.h.
7019 (struct mapped_index): New field version.
7020 (mapped_index_string_hash): New parameter index_version. New comment
7021 for it. Call tolower appropriately.
7022 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7023 Choose the right index version for mapped_index_string_hash.
7024 (dwarf2_read_index): Support also the index version 5. Initialize the
7025 new struct mapped_index field version.
7026 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7027 (find_slot): Explain the version needs. Pass INT_MAX for the new
7028 parameter.
7029 (write_psymtabs_to_index): Produce version 5.
7030 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7031 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7032 * psymtab.c (lookup_partial_symbol): Find the
7033 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7034 entries.
7035 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7036 NAME lowercasing.
7037 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7038 (completion_list_add_name): New variable ncmp, initialize it, use it.
7039 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7040 * utils.c (strcmp_iw): Support case_sensitive_off.
7041 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7042 New function comment part. New variables saved_string1,
7043 saved_string2 and case_pass. Add a proper second pass.
7044
7045 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7046
7047 Replace re_comp/re_exec by regcomp/regexec.
7048 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7049 (search_symbols_name_matches): Use them, use regexec.
7050 (search_symbols): New variable retval_chain, adjust the use of
7051 old_chain against it. Replace re_comp by regcomp. Use the new struct
7052 search_symbols_data fields, use regexec instead of re_exec.
7053
7054 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7055
7056 Format the code for the next patch.
7057 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7058 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7059 New variables c1 and c2.
7060
7061 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7062
7063 * infrun.c (proceed): Do not single-step into signal delivery
7064 when stepping off a breakpoint location.
7065 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7066 (insert_step_resume_breakpoint_at_caller): Likewise.
7067 (insert_step_resume_breakpoint_at_sal): Likewise.
7068 (insert_longjmp_resume_breakpoint): Likewise.
7069
7070 2011-04-27 Yao Qi <yao@codesourcery.com>
7071
7072 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7073
7074 2011-04-27 Joel Brobecker <brobecker@adacore.com>
7075
7076 * procfs.c (procfs_pass_signals): Fix advance declaration.
7077
7078 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7079
7080 * target.h (struct target_ops): Remove to_notice_signals;
7081 add to_pass_signals.
7082 (target_notice_signals): Remove.
7083 (target_pass_signals): Add prototype.
7084 * target.c (update_current_target): Remove to_notice_signals;
7085 mention to_pass_signals.
7086 (target_pass_signals): New function.
7087 (debug_to_notice_signals): Remove.
7088 (setup_target_debug): Do not install debug_to_notice_signals.
7089
7090 * infrun.c (signal_pass): New global.
7091 (resume): Call target_pass_signals.
7092 (handle_inferior_event): Report all signals while stepping over
7093 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7094 are re-inserted when stepping over a signal handler.
7095 (signal_cache_update): New function.
7096 (signal_stop_update): Call it.
7097 (signal_print_update): Likewise.
7098 (signal_pass_update): Likewise.
7099 (handle_command): Call signal_cache_update and target_pass_signals
7100 instead of target_notice_signals.
7101 (_initialize_infrun): Initialize signal_pass.
7102
7103 * linux-nat.c (pass_mask): New global.
7104 (linux_nat_pass_signals): New function.
7105 (linux_nat_create_inferior): Report all signals initially.
7106 (linux_nat_attach): Likewise.
7107 (linux_nat_resume): Use pass_mask to decide whether to directly
7108 handle an inferior signal.
7109 (linux_nat_wait_1): Likewise.
7110 (linux_nat_add_target): Install to_pass_signals callback.
7111
7112 * nto-procfs.c (notice_signals): Remove.
7113 (procfs_resume): Do not call notice_signals.
7114 (procfs_notice_signals): Remove.
7115 (procfs_pass_signals): New function.
7116 (init_procfs_ops): Install to_pass_signals callback instead of
7117 to_notice_signals callback.
7118 (_initialize_procfs): Report all signals initially.
7119
7120 * procfs.c (procfs_notice_signals): Remove.
7121 (procfs_pass_signals): New function.
7122 (procfs_target): Install to_pass_signals callback instead of
7123 to_notice_signals callback.
7124 (register_gdb_signals): Remove.
7125 (procfs_debug_inferior): Report all signals initially.
7126 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7127
7128 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7129 parameters; use them instead of calling signal_..._state routines.
7130 (remote_notice_signals): Remove.
7131 (remote_start_remote): Report all signals initially.
7132 (remote_resume): Do not call remote_pass_signals.
7133 (_initialize_remote): Install to_pass_signals callback instead of
7134 to_notice_signals callback.
7135
7136 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7137
7138 * breakpoint.c (user_settable_breakpoint): Delete.
7139 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7140 (delete_command): Check user_breakpoint_p instead of looking at
7141 the breakpoint's type.
7142 (disable_command): Ditto.
7143 (enable_command): Ditto.
7144 (delete_trace_command): Use user_breakpoint_p instead of looking
7145 at the breakpoint number directly. When checking if there are
7146 user visible tracepoints, in order to know whether to ask the user
7147 for confirmation, check whether the breakpoint is actually a
7148 tracepoint.
7149
7150 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7151
7152 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7153 compilation.
7154
7155 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7156
7157 MI breakpoint notifications.
7158
7159 * annotate.c (breakpoint_changed): Adjust parameter type.
7160 * breakpoint.c (set_breakpoint_condition): Adjust to change
7161 in breakpoint_modified type.
7162 (breakpoint_set_commands): Likewise.
7163 (do_map_commands_command): Likewise.
7164 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7165 changed after bumping hit count.
7166 (bpstat_stop_status): Likewise.
7167 (print_one_breakpoint_location): Don't wrap in tuple here.
7168 (print_one_breakpoint): Always print individual locations.
7169 For locations, use unnamed tuple.
7170 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7171 has changed.
7172 (create_catchpoint, create_syscall_event_catchpoint): Call
7173 breakpoint_created obsever.
7174 (mention): Don't call breakpoint_created observer.
7175 (create_breakpoint_sal): Call breakpoint_created observer.
7176 (create_breakpoint, watch_command_1): Likewise.
7177 (create_ada_exception_breakpoint): Likewise.
7178 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7179 (locations_are_equal): New.
7180 (update_breakpoint_locations): If locations were changed, notify.
7181 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7182 Call breakpoint_modified observer.
7183
7184 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7185 (mi_cmd_break_insert): Don't set observers for modify and delete.
7186 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7187 (mi_breakpoint_created, mi_breakpoint_deleted)
7188 (mi_breakpoint_modified): New.
7189 (mi_interpreter_init): Hook the above.
7190 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7191 while -break-* commands are executing.
7192 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7193 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7194 (mi_redirect): New.
7195 (mi_ui_out_impl): Hook in mi_redirect.
7196 (mi_field_skip): True to the name, skip the field, don't output
7197 a field with an empty value.
7198
7199 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7200 (gdbpy_breakpoint_deleted): Adjust.
7201 * tui/tui-hooks.c (tui_event_create_breakpoint)
7202 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7203
7204 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7205
7206 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7207 (procfs_remove_hw_watchpoint): Likewise.
7208
7209 2011-04-26 Michael Walle <michael@walle.cc>
7210
7211 * remote.c (remote_start_remote): Ack packet after sending the
7212 interrupt sequence.
7213
7214 2011-04-26 Yao Qi <yao@codesourcery.com>
7215
7216 * linux-nat.c: Move common macros to ...
7217 Include linux-ptrace.h.
7218 * common/linux-ptrace.h: ... here. New.
7219
7220 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7221
7222 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7223 !objfile_has_partial_symbols. New comment.
7224 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7225 SYM_READ_PSYMBOLS is not present. Extend the comment.
7226 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7227
7228 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7229
7230 * defs.h (ENUM_BITFIELD): Remove.
7231
7232 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7233 Eli Zaretskii <eliz@gnu.org>
7234
7235 * NEWS: Document the new gdbserver --once option.
7236
7237 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7238
7239 * MAINTAINERS: Update my email address.
7240
7241 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7242
7243 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7244 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7245 function call if __STDC_ISO_10646__ macro is defined.
7246 (intermediate_encoding): New prototype.
7247 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7248 to generate compile time error for unsupported gdb_wchar_t size.
7249 (ENDIAN_SUFFIX): New macro.
7250 (intermediate_encoding): New function.
7251
7252 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7253
7254 * ada-lang.c (struct add_partial_datum): Update the comment for
7255 expand_partial_symbol_name.
7256 (ada_add_partial_symbol_completions): Rename to ...
7257 (ada_expand_partial_symbol_name): ... here, change return type, update
7258 function comment, call symbol_completion_match instead of
7259 symbol_completion_add.
7260 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7261 and ada_expand_partial_symbol_name.
7262 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7263 FILE_MATCHER.
7264 (dw2_map_symbol_names): Remove.
7265 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7266 * psymtab.c (map_symbol_names_psymtab): Remove.
7267 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7268 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7269 order.
7270 (psym_functions): Unlist map_symbol_names_psymtab.
7271 (map_partial_symbol_names): Rename to ...
7272 (expand_partial_symbol_names): ... here, change the FUN type, call
7273 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7274 * psymtab.h (map_partial_symbol_names): Rename to ...
7275 (expand_partial_symbol_names): ... here, change the FUN type.
7276 * symfile.h (struct quick_symbol_functions): Update the description of
7277 expand_symtabs_matching. Remove map_symbol_names.
7278 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7279 (struct add_name_data): Update the comment for
7280 expand_partial_symbol_name.
7281 (add_partial_symbol_name): Rename to ...
7282 (expand_partial_symbol_name): ... here. Replace
7283 completion_list_add_name call by strncmp.
7284 (default_make_symbol_completion_list_break_on): Use now
7285 expand_partial_symbol_names and expand_partial_symbol_name.
7286 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7287
7288 2011-04-20 Tom Tromey <tromey@redhat.com>
7289
7290 * dwarf2read.c (save_gdb_index_command): Replace format
7291 documentation with a pointer to the manual.
7292
7293 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7294
7295 * regcache.c: Include remote.h.
7296 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7297 (regcache_dump): Handle regcache_dump_remote.
7298 (maintenance_print_remote_registers): New function.
7299 (_initialize_regcache): Install "maint print remote-registers"
7300 command.
7301 * remote.c (map_regcache_remote_table): New function, factored out
7302 from ...
7303 (init_remote_state): ... here.
7304 (remote_register_number_and_offset): New.
7305 * remote.h (remote_register_number_and_offset): Declare.
7306
7307 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7308
7309 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7310 null_ptid, assume and allow a NULL address space, instead of
7311 asking the target for the ptid's address space.
7312 * infrun.c (ptid_is_pid): Remove assertion.
7313
7314 2011-04-19 Tom Tromey <tromey@redhat.com>
7315
7316 * windows-tdep.c (windows_xfer_shared_library):
7317 * windows-nat.c (get_module_name, windows_make_so):
7318 * v850-tdep.c (v850_handle_pushm):
7319 * utils.c (null_cleanup, gdb_realpath):
7320 * ui-out.c (get_next_header):
7321 * tracepoint.c (clear_traceframe_info):
7322 * symtab.c (lookup_symtab):
7323 * serial.h (struct serial_ops):
7324 * mipsread.c (read_alphacoff_dynamic_symtab):
7325 * infcmd.c (print_return_value):
7326 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7327 * f-exp.y (parse_number):
7328 * exceptions.c (catch_exceptions):
7329 * dummy-frame.c (dummy_frame_this_id):
7330 * defs.h (struct cleanup):
7331 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7332 * arm-tdep.c (arm_push_dummy_call):
7333 * amd64-tdep.h (amd64_collect_xsave):
7334 * amd64-tdep.c (amd64_collect_xsave):
7335 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7336 * README (typing): Remove duplicate words.
7337 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7338 * infrun.c (siginfo_value_read): Fix typo.
7339 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7340 * top.c (source_line_number): Add comma.
7341
7342 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7343
7344 * thread.c (any_live_thread_of_process): Prioritize threads
7345 that are not executing.
7346 * gdbthread.h (any_live_thread_of_process): Update comment
7347 as per above change.
7348
7349 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7350
7351 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7352 (scan_xcoff_symtab): Likewise.
7353
7354 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7355
7356 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7357 inside if clause.
7358
7359 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7360 Pedro Alves <pedro@codesourcery.com>
7361
7362 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7363 variables to simplify code and avoid == operator at end of
7364 line as this is against GNU coding standards.
7365
7366 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7367
7368 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7369 lm_name to name_lm to avoid conflict with lm_name function.
7370
7371 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7372
7373 ARI fixes: Use only lowercase function name for static functions.
7374 * nto-tdep.c (LM_ADDR): Rename to...
7375 (lm_addr): New function name.
7376 (nto_relocate_section_addresses): Adapt to change above.
7377 * solib-sunos.c (LM_ADDR): Rename to...
7378 (lm_addr): New function name.
7379 (LM_NEXT): Rename to...
7380 (lm_next): New function name.
7381 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7382 function name changes above.
7383 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7384 (lm_addr_from_link_map): New function name.
7385 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7386 (has_lm_dynamic_from_link_map): New function name.
7387 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7388 (lm_dynamic_from_link_map): New function name.
7389 (LM_ADDR_CHECK): Rename to...
7390 (lm_addr_check): New function name.
7391 (LM_NEXT): Rename to...
7392 (lm_next): New function name.
7393 (LM_PREV): Rename to...
7394 (lm_prev): New function name.
7395 (LM_NAME): Rename to...
7396 (lm_name): New function name.
7397 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7398 (ignore_first_link_map_entry): New function name.
7399 (svr4_keep_data_in_core): Adapt to function name changes above.
7400 (svr4_current_sos): Likewise.
7401 (enable_break): Likewise.
7402 (svr4_relocate_section_addresses): Likewise.
7403
7404 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7405
7406 ARI cleanup.
7407 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7408 sprintf. Simplify code and avoid loosing memory.
7409 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7410 (call0_frame_cache): Remove && operator from end of line.
7411
7412 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7413
7414 Fix libraries displacement if they change whether they were prelinked.
7415 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7416 does not match. Comment why.
7417
7418 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7419
7420 * corelow.c: Include wrapper.h.
7421 (core_open): Call now gdb_target_find_new_threads.
7422 * wrapper.c: Include target.h.
7423 (gdb_target_find_new_threads): New.
7424 * wrapper.h (gdb_target_find_new_threads): New declaration.
7425
7426 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7427
7428 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7429 even if !TARGET_HAS_EXECUTION.
7430
7431 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7432
7433 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7434 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7435 bfd_get_synthetic_symtab.
7436 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7437 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7438 parameter parent, remove the call to add_separate_debug_objfile.
7439 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7440 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7441 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7442 parent, new comment for it, call add_separate_debug_objfile for it.
7443 (symbol_file_add_separate): Pass objfile as the parameter parent,
7444 remove the call to add_separate_debug_objfile.
7445 (symbol_file_add_from_bfd): New parameter parent, pass it.
7446 (symbol_file_add): Pass NULL to the new parameter parent.
7447 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7448
7449 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7450
7451 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7452 BSF_SYNTHETIC.
7453
7454 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7455
7456 Fix Python access to inlined frames.
7457 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7458 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7459
7460 2011-04-15 Tom Tromey <tromey@redhat.com>
7461
7462 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7463
7464 2011-04-15 Gary Benson <gbenson@redhat.com>
7465
7466 * MAINTAINERS: Add myself to write-after-approval section.
7467
7468 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7469
7470 * remote-sim.c (sim_command_completer): New function.
7471 (_initialize_remote_sim): Set completer to sim_command_completer.
7472
7473 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7474
7475 * breakpoint.c (print_exception_catchpoint): Rename to ...
7476 (print_it_exception_catchpoint): ... this.
7477 (gnu_v3_exception_catchpoint_ops): Update with new name
7478 for print_it_exception_catchpoint.
7479
7480 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7481
7482 * MAINTAINERS: Add myself for write after approval privileges.
7483
7484 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7485
7486 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7487
7488 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7489
7490 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7491
7492 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7493
7494 * breakpoint.c (save_breakpoints): Verify whether
7495 breakpoint_ops.print_recreate is defined before calling it.
7496
7497 2011-04-11 Gary Benson <gbenson@redhat.com>
7498
7499 Fix failure with --enable-maintainer-mode.
7500 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7501
7502 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7503
7504 Code cleanup.
7505 * symtab.c (search_symbols): Reorder the KIND description in the
7506 function comment. Remove the unused 4th element of types, types2,
7507 types3 and types4. New gdb_assert on KIND.
7508 (symtab_symbol_info): Remove the unused 4th element of classnames.
7509 New gdb_assert on KIND.
7510 * symtab.h (enum search_domain): New warning in the enum comment.
7511 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7512 TYPES_DOMAIN.
7513
7514 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7515
7516 Fix crash of gdb save-index on a STABS file.
7517 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7518 PSYMTABS_ADDRMAP.
7519
7520 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7521
7522 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7523 * dwarf2read.c: Include ctype.h.
7524 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7525 functions.
7526 (dwarf2_add_field): Fix new_field->accessibility by calling
7527 dwarf2_default_access_attribute. Restructure setting accessibility
7528 vs. virtuality.
7529 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7530 is_private and is_protected by calling
7531 dwarf2_default_access_attribute.
7532
7533 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7534
7535 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7536 to the initialization.
7537
7538 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7539
7540 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7541 initalization.
7542
7543 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7544
7545 Remove support for old Cygwin 1.5 versions.
7546 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7547 function on old Cygwin version.
7548 * windows-nat.c: Remove cygwin version check and always define
7549 __USEWIDE for Cygwin compilation.
7550
7551 2011-04-07 Yao Qi <yao@codesourcery.com>
7552
7553 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7554 and TO.
7555 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7556 (arm_copy_svc): Remove parameters INSN and TO.
7557 (decode_svc_copro): Update caller.
7558 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7559 from function pointer `copy_svc_os'.
7560
7561 2011-04-07 Yao Qi <yao@codesourcery.com>
7562
7563 * arm-tdep.c (cleanup_branch): Set a correct return address in
7564 LR for ARM and Thumb.
7565
7566 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7567
7568 Code cleanup.
7569 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7570 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7571 in the function comment, a new note on values compatibility.
7572 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7573 * symtab.h (SYMBOL_HASH_NEXT): New.
7574
7575 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7576
7577 * ppc-linux-nat.c (check_condition): Add len output parameter.
7578 Set it based on the memory region referenced in the condition
7579 expression. Update all callers.
7580
7581 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7582
7583 Fix crash regression on systems featuring .gdb_index.
7584 * objfiles.c (free_objfile): Move the
7585 forget_cached_source_info_for_objfile call earlier. Comment it.
7586 Extend the comment for objfile_free_data.
7587
7588 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7589
7590 Fix regression of displaying the debug format.
7591 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7592 subfile.
7593
7594 2011-04-04 Tom Tromey <tromey@redhat.com>
7595
7596 * cli/cli-interp.c (struct captured_execute_command_args):
7597 Remove.
7598 (do_captured_execute_command): Remove.
7599 (safe_execute_command): Use TRY_CATCH.
7600 * cli/cli-script.c (struct wrapped_read_command_file_args):
7601 Remove.
7602 (wrapped_read_command_file): Remove.
7603 (script_from_file): Use TRY_CATCH.
7604 * exceptions.c (catch_exception): Remove.
7605 * exceptions.h (catch_exception): Remove.
7606 (deprecated_throw_reason): Update comment.
7607 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7608 argument to 'context'.
7609 (mi_execute_command): Use TRY_CATCH.
7610 * remote.c (struct start_remote_args): Remove.
7611 (remote_start_remote): Update; change arguments.
7612 (remote_open_1): Use TRY_CATCH.
7613
7614 2011-04-04 Tom Tromey <tromey@redhat.com>
7615
7616 * tracepoint.c (scope_info): Update.
7617 * symtab.c (decode_line_spec): Update.
7618 * python/python.c (gdbpy_decode_line): Update.
7619 * linespec.h (decode_line_1): Update.
7620 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7621 (decode_compound, find_method, symtab_from_filename)
7622 (decode_variable): Likewise.
7623 * cli/cli-cmds.c (edit_command): Update.
7624 (list_command): Update.
7625 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7626 argument.
7627 (create_breakpoint): Update.
7628 (until_break_command): Update.
7629 (addr_string_to_sals): Update.
7630 (decode_line_spec_1): Update.
7631
7632 2011-04-04 Tom Tromey <tromey@redhat.com>
7633
7634 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7635 (do_captured_parse_breakpoint): Remove.
7636 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7637 Use TRY_CATCH directly.
7638
7639 2011-04-04 Tom Tromey <tromey@redhat.com>
7640
7641 * symtab.h (free_symtab): Remove.
7642 (forget_cached_source_info_for_objfile): Declare.
7643 * symmisc.c (free_symtab): Remove.
7644 * source.c (forget_cached_source_info_for_objfile): New function.
7645 (forget_cached_source_info): Use it.
7646 * objfiles.c (free_objfile): Simplify check before calling
7647 clear_current_source_symtab_and_line. Call
7648 forget_cached_source_info_for_objfile.
7649
7650 2011-04-04 Tom Tromey <tromey@redhat.com>
7651
7652 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7653 (new_symtab): Don't set `free_code' on symtab.
7654 (new_linetable): Properly handle size==0.
7655 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7656 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7657 free_func.
7658 * jv-lang.c (struct jv_per_objfile_data): New.
7659 (jv_per_objfile_free): Free the data.
7660 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7661 (get_java_class_symtab): Set the `dict' field on the
7662 jv_per_objfile_data.
7663 (free_class_block): Remove.
7664 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7665 the symtab.
7666
7667 2011-04-04 Tom Tromey <tromey@redhat.com>
7668
7669 * symfile.c (reread_symbols): Update.
7670 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7671 field.
7672 * objfiles.c (allocate_objfile): Update.
7673 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7674 declare.
7675 * cp-namespace.c (lookup_symbol_file): Don't call
7676 lookup_possible_namespace_symbol.
7677 (initialize_namespace_symtab, get_possible_namespace_block)
7678 (free_namespace_block, cp_check_possible_namespace_symbols)
7679 (check_possible_namespace_symbols_loop)
7680 (check_one_possible_namespace_symbol)
7681 (lookup_possible_namespace_symbol): Remove.
7682 (maintenance_cplus_namespace): Replace with notice.
7683 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7684
7685 2011-04-04 Tom Tromey <tromey@redhat.com>
7686
7687 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7688 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7689 * symmisc.c (free_symtab): Don't free debugformat.
7690 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7691 (record_debugformat, record_producer): Document.
7692 * buildsym.c (end_symtab): Don't save debugformat and producer
7693 names on obstack.
7694 (end_symtab): Don't free debugformat and producer fields.
7695 (record_debugformat): Don't call xstrdup.
7696 (record_producer): Likewise.
7697
7698 2011-04-04 Tom Tromey <tromey@redhat.com>
7699
7700 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7701 (source_line_charpos, source_charpos_line): Remove.
7702
7703 2011-04-04 Tom Tromey <tromey@redhat.com>
7704
7705 * symtab.h (domain_enum): Split in two...
7706 (enum search_domain): New.
7707 (search_symbols): Update.
7708 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7709 redundant declarations.
7710 (search_symbols): Change 'kind' argument to search_domain.
7711 Update.
7712 (print_symbol_info): Likewise.
7713 (symtab_symbol_info): Likewise.
7714 * symfile.h (struct quick_symbol_functions)
7715 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7716 <expand_symtabs_matching>: Likewise.
7717 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7718 (expand_symtabs_matching_via_partial): Update.
7719 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7720 (dw2_expand_symtabs_for_function): Update.
7721 * block.h: Moved anonymous enum...
7722 * defs.h (enum block_enum): ... here. Now named.
7723
7724 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7725
7726 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7727 * version.in: Bump version to 7.3.50.20110403-cvs.
7728
7729 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7730
7731 * NEWS: Create a new section for the next release branch.
7732 Rename the section of the current branch, now that it has
7733 been cut.
7734
7735 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7736
7737 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7738 for "fpscr" in target description.
7739
7740 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7741
7742 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7743 initialize it. Delay HASH initialization. Strip the part after open
7744 parenthesis for languages with qualifiers. Call do_cleanups.
7745
7746 2011-04-01 Tom Tromey <tromey@redhat.com>
7747
7748 * utils.c (report_command_stats): Don't print `-' for negative
7749 number.
7750
7751 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7752
7753 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7754 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7755 typedefs.
7756
7757 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7758
7759 * breakpoint.h (bpdisp_text): Add declaration.
7760 * breakpoint.c (bpdisp_text): Make non-static.
7761 * ada-lang.c: #include "mi/mi-common.h".
7762 (print_it_exception): Rewrite to improve GDB/MI output.
7763
7764 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7765
7766 * arm-tdep.h (struct address_space): Add forward declaration.
7767
7768 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7769
7770 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7771 * arm-tdep.c (arm_override_mode): New global.
7772 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7773 execution mode heuristics.
7774 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7775 second single-step breakpoint if needed, using
7776 arm_insert_single_step_breakpoint.
7777 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7778 ARM execution mode, do not call thumb_get_next_pc_raw.
7779 (arm_get_next_pc): Encode execution mode in return value. Call
7780 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7781 (arm_insert_single_step_breakpoint): New function.
7782 (arm_software_single_step): Call it.
7783 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7784 argument to return execution mode of sigreturn target.
7785 (arm_linux_syscall_next_pc): Use it.
7786 (arm_linux_copy_svc): Update call.
7787 (arm_linux_software_single_step): Call
7788 arm_insert_single_step_breakpoint.
7789
7790 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7791
7792 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7793 the comment.
7794
7795 2011-03-31 Tom Tromey <tromey@redhat.com>
7796
7797 * varobj.c (update_dynamic_varobj_children): Properly handle
7798 errors from iterator.
7799
7800 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7801
7802 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7803 struct linkage name twice.
7804
7805 2011-03-31 Tom Tromey <tromey@redhat.com>
7806
7807 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7808 missing ">" to message.
7809
7810 2011-03-31 Tom Tromey <tromey@redhat.com>
7811
7812 * varobj.c (instantiate_pretty_printer): Remove duplicate
7813 'return'.
7814
7815 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7816
7817 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7818 if neither saved value nor register available (e.g. signal frame).
7819
7820 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7821
7822 * macroexp.c (expand): Avoid uninitialized variable
7823 compiler warning.
7824
7825 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7826
7827 * breakpoint.c (break_range_command): Fix typo in comment.
7828
7829 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7830 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7831
7832 Implement support for PowerPC BookE ranged breakpoints.
7833 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7834 * breakpoint.h (struct bp_target_info) <length>: New member
7835 variable.
7836 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7837 instead of struct breakpoint as argument, and also add ASPACE
7838 and BP_ADDR arguments. Update all callers.
7839 (struct breakpoint_ops) <print_one_detail>: New method.
7840 (struct breakpoint) <addr_string_range_end>: New member variable.
7841 * breakpoint.c (breakpoint_location_address_match): Add function
7842 prototype.
7843 (insert_bp_location): Set bl->target_info.length.
7844 (breakpoint_here_p): Call breakpoint_location_address_match.
7845 (moribund_breakpoint_here_p): Likewise.
7846 (regular_breakpoint_inserted_here_p): Likewise.
7847 (breakpoint_thread_match): Likewise.
7848 (bpstat_stop_status): Likewise.
7849 (bpstat_check_location): Move call to
7850 breakpoint_ops.breakpoint_hit to the top.
7851 (print_one_breakpoint_location): Call
7852 breakpoint_ops.print_one_detail if available.
7853 (breakpoint_address_match_range): New function.
7854 (breakpoint_location_address_match): Likewise.
7855 (breakpoint_locations_match): Compare the length field of the
7856 locations too.
7857 (hw_breakpoint_used_count): Count resources used by all locations
7858 in a breakpoint, and use breakpoint_ops.resources_needed if
7859 available.
7860 (breakpoint_hit_ranged_breakpoint): New function.
7861 (resources_needed_ranged_breakpoint): Likewise.
7862 (print_it_ranged_breakpoint): Likewise.
7863 (print_one_ranged_breakpoint): Likewise.
7864 (print_one_detail_ranged_breakpoint): Likewise.
7865 (print_mention_ranged_breakpoint): Likewise.
7866 (print_recreate_ranged_breakpoint): Likewise.
7867 (ranged_breakpoint_ops): New structure.
7868 (find_breakpoint_range_end): New function.
7869 (break_range_command): Likewise.
7870 (delete_breakpoint): Free addr_string_range_end.
7871 (update_breakpoint_locations): Add SALS_END argument. Update
7872 all callers. Calculate breakpoint length if a non-zero SALS_END
7873 is given. Call breakpoint_locations_match instead of
7874 breakpoint_address_match.
7875 (reset_breakpoint): Find SaL of the end of the range if B is a
7876 ranged breakpoint.
7877 (_initialize_breakpoint): Register break-range command.
7878 * defs.h (print_core_address): Add function prototype.
7879 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7880 function.
7881 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7882 (ppc_linux_remove_hw_breakpoint): Likewise.
7883 (_initialize_ppc_linux_nat): Initialize
7884 to_ranged_break_num_registers.
7885 * target.c (update_current_target): Add comment about
7886 to_ranged_break_num_registers.
7887 (target_ranged_break_num_registers): New function.
7888 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7889 New method.
7890 (target_ranged_break_num_registers): Add function prototype.
7891 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7892 * utils.c (print_core_address): ... here.
7893
7894 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7895
7896 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7897 variable compiler warning.
7898
7899 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7900
7901 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7902 code from here ...
7903 (re_set_breakpoint): ... to here ...
7904 (addr_string_to_sals): ... and here.
7905
7906 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7907
7908 * Makefile.in (SFILES): Add missing C sources.
7909 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7910 Add missing headers.
7911
7912 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7913
7914 * .gitignore: New file.
7915
7916 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7917
7918 * NEWS: Mention new cfi device simulation.
7919
7920 2011-03-29 Tom Tromey <tromey@redhat.com>
7921
7922 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7923 otherwise anonymous types.
7924 (dwarf2_name): Likewise.
7925 * valops.c (value_struct_elt_for_reference): Refine artificial
7926 type logic. Call error if j==-1.
7927
7928 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7929
7930 Fix false GCC warning.
7931 * infcall.c (find_function_addr): Initialize funaddr.
7932
7933 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7934
7935 Fix mingw compilation with --enable-targets=all.
7936 * remote-mips.c (gdb_usleep.h): Include header.
7937 (mips_enter_debug): Use gdb_usleep instead of sleep.
7938
7939 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7940
7941 Support resolution of STT_GNU_IFUNC via breakpoints.
7942 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7943 bp_gnu_ifunc_resolver_return.
7944 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7945 the loop. Support bp_gnu_ifunc_resolver and
7946 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7947 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7948 breakpoints.
7949 (bptype_string, print_one_breakpoint_location): Support
7950 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7951 (user_settable_breakpoint): Return true also for
7952 bp_gnu_ifunc_resolver.
7953 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7954 bp_gnu_ifunc_resolver_return.
7955 (set_breakpoint_location_function): New parameter explicit_loc,
7956 describe it. Call find_pc_partial_function_gnu_ifunc with new
7957 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7958 EXPLICIT_LOC is not set.
7959 (set_raw_breakpoint): Set EXPLICIT_LOC for
7960 set_breakpoint_location_function.
7961 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7962 set_breakpoint_location_function.
7963 (mention): Support bp_gnu_ifunc_resolver and
7964 bp_gnu_ifunc_resolver_return.
7965 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7966 set_breakpoint_location_function.
7967 (update_breakpoint_locations): Remove static.
7968 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7969 bp_gnu_ifunc_resolver_return.
7970 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7971 bp_gnu_ifunc_resolver_return.
7972 (update_breakpoint_locations): New declaration.
7973 * elfread.c: Include gdbthread.h and regcache.h.
7974 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7975 functions.
7976 (elf_gnu_ifunc_fns): Install them.
7977 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7978 (stub_gnu_ifunc_resolver_return_stop): New functions.
7979 (stub_gnu_ifunc_fns): Install them.
7980 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7981 and gnu_ifunc_resolver_return_stop.
7982 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7983
7984 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7985
7986 STT_GNU_IFUNC reader implementation.
7987 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7988 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7989 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7990 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7991 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7992 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7993 (elf_gnu_ifunc_resolve_addr): New.
7994 (elf_symfile_read): Call elf_rel_plt_read.
7995 (elf_gnu_ifunc_fns): New.
7996 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7997 Install elf_gnu_ifunc_fns.
7998 * infcall.c (find_function_return_type): New function.
7999 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8000 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8001 (stub_gnu_ifunc_resolve_name): New functions.
8002 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8003 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8004 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8005
8006 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8007
8008 Code cleanup for later STT_GNU_IFUNC support.
8009 * infcall.c (find_function_addr): Remove variable code, use explicit
8010 dereferences for it. Move VALUE_TYPE initialization later.
8011
8012 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8013
8014 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8015 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8016 (clear_pc_function_cache): Clear it.
8017 (find_pc_partial_function): Rename to ...
8018 (find_pc_partial_function_gnu_ifunc): ... this function. New
8019 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8020 (find_pc_partial_function): New wrapper for this function.
8021 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8022
8023 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8024
8025 GDB internal type support for STT_GNU_IFUNC.
8026 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8027 (elf_symtab_read): Set mst_text_gnu_ifunc for
8028 BSF_GNU_INDIRECT_FUNCTION.
8029 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8030 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8031 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8032 nodebug_got_plt_symbol.
8033 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8034 (TYPE_GNU_IFUNC): New.
8035 (struct main_type): New field flag_gnu_ifunc.
8036 (struct builtin_type): New field builtin_func_func.
8037 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8038 nodebug_got_plt_symbol.
8039 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8040 (in_gnu_ifunc_stub): New.
8041 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8042 mst_text_gnu_ifunc.
8043 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8044 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8045 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8046 in_gnu_ifunc_stub.
8047 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8048 * symtab.c (search_symbols): Likewise.
8049 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8050 and mst_slot_got_plt.
8051 (in_gnu_ifunc_stub): New declaration.
8052
8053 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8054
8055 Support a ring of related breakpoints.
8056 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8057 other functions, add gdb_assert.
8058 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8059 watchpoint_del_at_next_stop.
8060 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8061 (bpstat_stop_status): Handle ring in related_breakpoint.
8062 (set_raw_breakpoint_without_location): Initialize ring in
8063 related_breakpoint.
8064 (delete_breakpoint): Handle ring in related_breakpoint, use
8065 watchpoint_del_at_next_stop.
8066 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8067
8068 2011-03-28 Tom Tromey <tromey@redhat.com>
8069
8070 PR symtab/12441:
8071 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8072 with `language_minimal'.
8073
8074 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8075
8076 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8077 instead of checking for STT_ARM_TFUNC symbol type.
8078
8079 2011-03-25 Tom Tromey <tromey@redhat.com>
8080
8081 * linespec.c (symbol_found): Restore line-based result for
8082 non-LOC_LABEL symbols.
8083
8084 2011-03-25 Kai Tietz <ktietz@redhat.com>
8085
8086 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8087 instead of strcmp for comparison.
8088 (tui_source_is_displayed): Likewise.
8089 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8090
8091 2011-03-24 Mark Wielaard <mjw@redhat.com>
8092
8093 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8094 complaint.
8095 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8096 (find_partial_die_in_comp_unit): Likewise in comment.
8097 (read_attribute_value): Likewise.
8098 (lookup_die_type): Likewise.
8099 (dwarf_form_name): Likewise.
8100 (dump_die_shallow): Likewise.
8101 (follow_die_ref_or_sig): Likewise.
8102
8103 2011-03-24 Tom Tromey <tromey@redhat.com>
8104
8105 PR breakpoints/11816:
8106 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8107 (decode_compound): Update.
8108 (find_function_symbol): New function.
8109 (decode_dollar): Update.
8110 (decode_label): Add 'function_symbol' parameter. Handle
8111 function-relative labels.
8112 (decode_variable): Update.
8113 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8114 not its line. Set `special_display' and canonical name for
8115 labels.
8116
8117 2011-03-24 Tom Tromey <tromey@redhat.com>
8118
8119 * linespec.h (struct linespec_result) <special_display>: New
8120 field.
8121 * breakpoint.h (struct breakpoint) <display_canonical>: New
8122 field.
8123 * breakpoint.c (print_breakpoint_location): Respect
8124 display_canonical.
8125 (create_breakpoint_sal): Add 'display_canonical' parameter.
8126 (create_breakpoints_sal): Update.
8127 (create_breakpoint): Update.
8128
8129 2011-03-24 Tom Tromey <tromey@redhat.com>
8130
8131 * symtab.c (decode_line_spec): Update.
8132 * linespec.c (build_canonical_line_spec): Change type of
8133 'canonical'.
8134 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8135 (find_method, decode_all_digits, decode_dollar, decode_label)
8136 (symbol_found): Likewise.
8137 (init_linespec_result): New function.
8138 * breakpoint.c (struct captured_parse_breakpoint_args)
8139 <canonical_p>: New field, replaces addr_string_p.
8140 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8141 'addr_string'.
8142 (parse_breakpoint_sals): Likewise.
8143 (do_captured_parse_breakpoint): Update.
8144 (create_breakpoint): Use struct linespec_result.
8145 (until_break_command): Update.
8146 (breakpoint_re_set_one): Update.
8147 (decode_line_spec_1): Update.
8148 * linespec.h (struct linespec_result): New.
8149 (init_linespec_result): Declare.
8150
8151 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8152
8153 * regcache.c (regcache_raw_read): If the target didn't supply a
8154 given raw register, mark it as unavailable.
8155
8156 2011-03-23 Kai Tietz <ktietz@redhat.com>
8157
8158 * breakpoint.c (clear_command): Use filename_cmp
8159 instead of strcmp for comparison.
8160 * buildsym.c (watch_main_source_file_lossage): Likewise.
8161 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8162 checking just for slash.
8163 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8164 strrchr and filename_cmp instead of strcmp for filenames.
8165 (add_old_header_file): Use filename_cmp
8166 instead of strcmp for comparison.
8167 * exec.c (exec_set_section_address): Likewise.
8168 * macrotab.c (macro_lookup_inclusion): Likewise.
8169 (macro_lookup_inclusion): Likewise.
8170 * elfread.c (_initialize_elfread): Likewise.
8171 (elfstab_offset_sections): Likewise.
8172 (elfstab_offset_sections): Use lbasename instead of
8173 strrchr.
8174 * mdebugread.c (parse_partial_symbols): Likewise.
8175 (arse_partial_symbols): Use filename_(n)cmp instead of
8176 str(n)cmp for comparison.
8177 * minsyms.c (lookup_minimal_symbol): Likewise.
8178 * psymtab.c (read_psymtabs_with_filename): Likewise.
8179 * solib.c (solib_read_symbols): Likewise.
8180 (reload_shared_libraries_1): Likewise.
8181 * symmisc.c (maintenance_print_symbols): Likewise.
8182 * symfile.c (separate_debug_file_exists): Likewise.
8183 (reread_symbols): Likewise.
8184 (find_separate_debug_file_by_debuglink): Likewise.
8185 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8186 * source.c (add_path): Likewise.
8187 * symtab.c (filename_seen): Likewise.
8188 (file_matches): Likewise.
8189 (print_symbol_info): Likewise.
8190 (maybe_add_partial_symtab_filename): Likewise.
8191 (make_source_files_completion_list): Likewise.
8192 * xml-syscall.c (init_sysinfo): Likewise.
8193 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8194 IS_DIR_SEPARATOR for checking for trailing path separator.
8195
8196 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8197
8198 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8199 label abort_expression.
8200 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8201 DWARF_VALUE_OPTIMIZED_OUT.
8202
8203 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8204
8205 Code cleanup.
8206 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8207 to linkage_name. Invert its value. Update the function comment.
8208 (c_type_print_varspec_suffix): Invert it at the caller.
8209 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8210
8211 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8212
8213 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8214 errors when reading the `stop_pc'.
8215 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8216 get_frame_pc.
8217
8218 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8219
8220 * NEWS: Document gdb.Write stream keyword.
8221
8222 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8223
8224 Revert:
8225 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8226 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8227 (dwarf2_add_field): Fix new_field->accessibility for
8228 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8229
8230 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8231
8232 PR python/12183
8233
8234 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8235 other error classes. Do not print stack trace.
8236
8237 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8238
8239 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8240 (dwarf2_add_field): Fix new_field->accessibility for
8241 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8242
8243 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8244
8245 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8246 encountering a load via a non-SP register.
8247
8248 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8249
8250 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8251 field in returned unwinder.
8252
8253 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8254
8255 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8256
8257 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8258
8259 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8260 of xmalloc.
8261
8262 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8263
8264 * frame.c (frame_unwind_register): Throw an error if unwinding the
8265 register failed.
8266 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8267 an unwind stop reason.
8268 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8269 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8270 UNWIND_UNAVAILABLE>: New.
8271 * inline-frame.c (inline_frame_unwind): Install
8272 default_frame_unwind_stop_reason.
8273 * frame-unwind.c: Include "exceptions.h".
8274 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8275 (default_frame_unwind_stop_reason): New.
8276 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8277 (default_frame_unwind_stop_reason): Declare.
8278 (struct frame_unwind) <stop_reason>: New function pointer.
8279
8280 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8281 * dwarf2-frame.c: Include exceptions.h.
8282 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8283 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8284 computing the CFA. If such an error was thrown, set
8285 unavailable_retaddr.
8286 (dwarf2_frame_unwind_stop_reason): New.
8287 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8288 unavailable.
8289 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8290 (dwarf2_signal_frame_unwind): Ditto.
8291
8292 * amd64-tdep.c: Include "exceptions.h".
8293 (struct amd64_frame_cache): New field "base_p".
8294 (amd64_init_frame_cache): Clear it.
8295 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8296 Avoid reading registers with functions that throw if the register
8297 is not necessary to compute the frame base.
8298 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8299 swallowing NOT_AVAILABLE_ERROR.
8300 (amd64_frame_unwind_stop_reason): New.
8301 (amd64_frame_this_id): Don't build a frame id if the frame base
8302 was unavailable.
8303 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8304 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8305 base_p if the frame base was computable.
8306 (amd64_sigtramp_frame_unwind_stop_reason): New.
8307 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8308 frame base was unavailable.
8309 (amd64_sigtramp_frame_unwind): Install
8310 amd64_sigtramp_frame_unwind_stop_reason.
8311 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8312 base_p if the frame base was computable.
8313 (amd64_epilogue_frame_unwind_stop_reason): New.
8314 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8315 frame base was unavailable.
8316 (amd64_epilogue_frame_unwind): Install
8317 amd64_epilogue_frame_unwind_stop_reason.
8318 * i386-tdep.c: Include "exceptions.h".
8319 (struct i386_frame_cache): New field "base_p".
8320 (i386_init_frame_cache): Clear it.
8321 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8322 Avoid reading registers with functions that throw if the register
8323 is not necessary to compute the frame base.
8324 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8325 swallowing NOT_AVAILABLE_ERROR.
8326 (i386_frame_unwind_stop_reason): New.
8327 (i386_frame_this_id): Don't build a frame id if the frame base was
8328 unavailable.
8329 (i386_frame_prev_register): Handle unavailable SP.
8330 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8331 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8332 base_p if the frame base was computable.
8333 (i386_epilogue_frame_unwind_stop_reason): New.
8334 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8335 base was unavailable.
8336 (i386_epilogue_frame_unwind): Install
8337 i386_epilogue_frame_unwind_stop_reason.
8338 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8339 base_p if the frame base was computable.
8340 (i386_sigtramp_frame_unwind_stop_reason): New.
8341 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8342 base was unavailable.
8343 (i386_sigtramp_frame_unwind): Install
8344 i386_sigtramp_frame_unwind_stop_reason.
8345 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8346 type's size, not the register's.
8347 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8348
8349 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8350 default_frame_unwind_stop_reason.
8351 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8352 (alpha_heuristic_frame_unwind): Ditto.
8353 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8354 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8355 * avr-tdep.c (avr_frame_unwind): Ditto.
8356 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8357 Ditto.
8358 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8359 * frv-tdep.c (frv_frame_unwind): Ditto.
8360 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8361 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8362 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8363 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8364 (hppa_stub_frame_unwind): Ditto.
8365 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8366 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8367 (ia64_libunwind_frame_unwind)
8368 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8369 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8370 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8371 * m32c-tdep.c (m32c_unwind): Ditto.
8372 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8373 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8374 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8375 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8376 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8377 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8378 * mep-tdep.c (mep_frame_unwind): Ditto.
8379 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8380 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8381 (mips_stub_frame_unwind): Ditto.
8382 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8383 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8384 * mt-tdep.c (mt_frame_unwind): Ditto.
8385 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8386 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8387 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8388 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8389 (s390_sigtramp_frame_unwind): Ditto.
8390 * score-tdep.c (score_prologue_unwind): Ditto.
8391 * sh-tdep.c (sh_frame_unwind): Ditto.
8392 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8393 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8394 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8395 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8396 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8397 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8398 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8399 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8400 (sparc64obsd_trapframe_unwind): Ditto.
8401 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8402 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8403 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8404 * v850-tdep.c (v850_frame_unwind): Ditto.
8405 * vax-tdep.c (vax_frame_unwind): Ditto.
8406 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8407 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8408 * xtensa-tdep.c (xtensa_unwind): Ditto.
8409
8410 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8411
8412 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8413 there's always a frame. Use get_frame_pc_if_available instead of
8414 get_frame_pc, and if there's no PC available, don't look up a
8415 symtab.
8416
8417 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8418
8419 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8420 unavailable PC.
8421
8422 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8423
8424 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8425 gracefully.
8426
8427 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8428
8429 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8430 * frame.c (frame_unwind_caller_pc_if_available): New.
8431 * stack.c (frame_info): Handle unavailable PC.
8432
8433 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8434
8435 * frame.c (frame_unwind_pc): Rename to ...
8436 (frame_unwind_pc_if_available): ... this. New `pc' output
8437 parameter. Change return type to int. Gracefully handle
8438 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8439 happened, or 1 otherwise.
8440 (frame_unwind_pc): Reimplement on top of
8441 frame_unwind_pc_if_available.
8442 (get_frame_func): Rename to ...
8443 (get_frame_func_if_available): New `pc' output parameter. Change
8444 return type to int. Gracefully handle the PC not being available.
8445 (get_frame_func): Reimplement on top of
8446 get_frame_func_if_available.
8447 (select_frame): Handle the PC being unavailable.
8448 (get_prev_frame): Handle the PC being unavailable.
8449 (get_frame_pc_if_available): New.
8450 (get_frame_address_in_block_if_available): New.
8451 (find_frame_sal): Handle the frame PC not being available.
8452 * frame.h (get_frame_pc_if_available): Declare.
8453 (get_frame_address_in_block_if_available): Declare.
8454 (get_frame_func_if_available): Declare.
8455 * stack.c (print_frame_info): Handle the PC being unavailable.
8456 (find_frame_funname): Ditto.
8457 (print_frame): Handle the PC being unavailable.
8458 (get_frame_language): Ditto.
8459 * blockframe.c (get_frame_block): Ditto.
8460 * macroscope.c (default_macro_scope): Ditto.
8461 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8462
8463 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8464
8465 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8466 NOT_AVAILABLE_ERROR when evaluating the location expression.
8467
8468 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8469
8470 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8471 returning that the register piece is unavailable/optimized out.
8472 (write_pieced_value): Handle get_frame_register_bytes returning
8473 that the register piece is unavailable/optimized out when doing a
8474 read-modify write of a bitfield.
8475 * findvar.c (value_from_register): Handle get_frame_register_bytes
8476 returning that the register piece is unavailable/optimized out.
8477 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8478 and `unavailablep'. Throw error on bad debug info. Use
8479 frame_register instead of frame_register_read, to fill in the new
8480 arguments.
8481 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8482 and `unavailablep'.
8483 * valops.c: (value_assign): Adjust, and handle
8484 get_frame_register_bytes failing.
8485 * spu-tdep.c: Include exceptions.h.
8486 (spu_software_single_step): Adjust, and handle
8487 get_frame_register_bytes failing.
8488 (spu_get_longjmp_target): Ditto.
8489 * gdbarch.sh (register_to_value): Change to return int. New
8490 parameters `optimizedp' and `unavailablep'.
8491 * gdbarch.h, gdbarch.c: Regenerate.
8492 * i386-tdep.c (i386_register_to_value): Adjust to new
8493 gdbarch_register_to_value interface.
8494 * i387-tdep.c (i387_register_to_value): Ditto.
8495 * i387-tdep.h (i387_register_to_value): Ditto.
8496 * alpha-tdep.c (alpha_register_to_value): Ditto.
8497 * ia64-tdep.c (ia64_register_to_value): Ditto.
8498 * m68k-tdep.c (m68k_register_to_value): Ditto.
8499 * mips-tdep.c (mips_register_to_value): Ditto.
8500 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8501
8502 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8503
8504 * findvar.c (value_of_register): Mark the value as unavailable, if
8505 the register is unavailable.
8506 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8507 (frame_register): New `unavailablep' parameter.
8508 (frame_register_read): Update comment.
8509 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8510 Set it if the register is unavailable. If the register is
8511 unavailable, clear the output buffer.
8512 (frame_register): New `unavailablep' parameter. Pass it down.
8513 (frame_unwind_register): Adjust.
8514 (put_frame_register): Adjust.
8515 (frame_register_read): Adjust. Also return false if the register
8516 is not available.
8517 (frame_register_unwind_location): Adjust.
8518 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8519 is unavailable, mark the value accordingly.
8520 * stack.c (frame_info): Handle unavailable registers.
8521
8522 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8523
8524 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8525 simplify, using regcache_cooked_read.
8526
8527 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8528
8529 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8530 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8531 (regcache_raw_read_unsigned, regcache_raw_read_part)
8532 (regcache_cooked_read, regcache_cooked_read_signed)
8533 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8534 (regcache_cooked_read_ftype): Change return to enum
8535 register_status.
8536 * regcache.c: Include exceptions.h
8537 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8538 (do_cooked_read): Change return to enum register_status. Always
8539 forward to regcache_cooked_read.
8540 (regcache_raw_read): Change return to enum register_status. If
8541 the register is not REG_VALID, memset the buffer. Return the
8542 register's status.
8543 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8544 return the register's status.
8545 (regcache_raw_read_unsigned): Ditto.
8546 (regcache_cooked_read): Change return to enum register_status.
8547 Assert that with read-only regcaches, the register's status must
8548 be known. If the regcache is read-only, and the register is not
8549 REG_VALID, memset the buffer. Return the register's status.
8550 (regcache_cooked_read_signed): Change return to enum
8551 register_status. Handle non-REG_VALID registers and return the
8552 register's status.
8553 (regcache_cooked_read_unsigned): Change return to enum
8554 register_status. Handle non-REG_VALID registers and return the
8555 register's status.
8556 (regcache_xfer_part, regcache_raw_read_part)
8557 (regcache_cooked_read_part): Change return to enum
8558 register_status. Return the register's status.
8559 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8560 unavailable.
8561 (regcache_dump): Handle unavailable cooked registers.
8562 * frame.c (do_frame_register_read): Adjust interface to match
8563 regcache_cooked_read_ftype.
8564 * gdbarch.sh (pseudo_register_read): Change return to enum
8565 register_status.
8566 * gdbarch.h, gdbarch.c: Regenerate.
8567
8568 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8569 register_status.
8570 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8571 register_status. If reading a raw register indicates the raw
8572 register is not valid, return the raw register's status,
8573 otherwise, return REG_VALID.
8574 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8575 register_status. Handle non-REG_VALID raw registers and return
8576 the register's status.
8577 * arm-tdep.c (arm_neon_quad_read)
8578 (arm_pseudo_read): Change return to enum register_status. Handle
8579 non-REG_VALID raw registers and return the register's status.
8580 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8581 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8582 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8583 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8584 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8585 register_status.
8586 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8587 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8588 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8589 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8590 (m32c_pseudo_register_read): Change return to enum
8591 register_status. Adjust.
8592 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8593 enum register_status. Return the register's status.
8594 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8595 register_status. Return the register's status.
8596 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8597 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8598 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8599 * rs6000-tdep.c (move_ev_register_func): New typedef.
8600 (e500_move_ev_register): Use it. Change return to enum
8601 register_status. Return the register's status.
8602 (do_regcache_raw_read): New function.
8603 (do_regcache_raw_write): New function.
8604 (e500_pseudo_register_read): Change return to enum
8605 register_status. Return the register's status. Use
8606 do_regcache_raw_read.
8607 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8608 (dfp_pseudo_register_read): Change return to enum register_status.
8609 Return the register's status.
8610 (vsx_pseudo_register_read): Ditto.
8611 (efpr_pseudo_register_read): Ditto.
8612 (rs6000_pseudo_register_read): Ditto.
8613 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8614 register_status. Return the register's status.
8615 * sh64-tdep.c (pseudo_register_read_portions): New function.
8616 (sh64_pseudo_register_read): Change return to enum
8617 register_status. Use pseudo_register_read_portions. Return the
8618 register's status.
8619 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8620 register_status. Return the register's status.
8621 * sh-tdep.c (pseudo_register_read_portions): New function.
8622 (sh_pseudo_register_read): Change return to enum register_status.
8623 Use pseudo_register_read_portions. Return the register's status.
8624 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8625 enum register_status. Return the register's status.
8626 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8627 * spu-tdep.c (spu_pseudo_register_read_spu)
8628 (spu_pseudo_register_read): Ditto.
8629 * xtensa-tdep.c (xtensa_register_read_masked)
8630 (xtensa_pseudo_register_read): Ditto.
8631 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8632
8633 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8634
8635 * python/py-value.c (valpy_getitem): Fix formatting of error function
8636 call.
8637
8638 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8639
8640 ARI fixes: Add missing internationalization markups throughout
8641 C source files.
8642 * darwin-nat-info.c: Ditto.
8643 * record.c: Ditto.
8644 * remote.c: Ditto.
8645 * mi/mi-main.c: Ditto.
8646
8647 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8648
8649 ARI fixes: Add missing internationalization markups throughout
8650 yacc files.
8651 * c-exp.y: Ditto.
8652 * cp-name-parser.y: Ditto.
8653 * f-exp.y: Ditto.
8654 * m2-exp.y: Ditto.
8655 * objc-exp.y: Ditto.
8656 * p-exp.y: Ditto.
8657
8658 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8659
8660 ARI fixes: Messages should have no trailing new lines.
8661 * darwin-nat.c (mach_check_error): Remove trailing new line from
8662 warning function call message.
8663 * record.c (bfdcore_read): Idem for error call.
8664
8665 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8666
8667 * common/signals.c (target_signal_from_host): Add _ markup to error
8668 function call message.
8669 (target_signal_to_host): Add _ markup and remove trailing new line
8670 from warning call message.
8671 (target_signal_from_command): Add _ markup to error function call
8672 message.
8673
8674 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8675
8676 PR python/12149
8677
8678 * python/python.c (gdbpy_write): Accept a stream argument and
8679 operate to the appropriate stream.
8680 (gdbpy_flush): Likewise.
8681 (_initialize_python): Add stream constants.
8682 (finish_python_initialization): Add GdbOutputErrorFile class.
8683
8684 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8685
8686 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8687
8688 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8689
8690 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8691 to store_signed_integer. Add debug message when relocating CALL
8692 instructions. Fix formatting of debug message.
8693 * i386-tdep.c (i386_relocate_instruction): Ditto.
8694
8695 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8696
8697 * target.h (struct target_ops): Remove to_lookup_symbol field.
8698 (target_lookup_symbol): Delete macro.
8699 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8700 (update_current_target, setup_target_debug): Remove handling
8701 of to_lookup_symbol target_ops field.
8702 * ada-tasks.c (get_known_tasks_addr): Remove use of
8703 target_lookup_symbol.
8704 * coffread.c (coff_symtab_read): Likewise.
8705 * dbxread.c (read_dbx_symtab): Ditto.
8706
8707 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8708
8709 PR gdb/12116:
8710 * configure.ac: Add getthrds declaration check.
8711 * configure, config.in: Regenerate.
8712 * aix-thread.c (getthrds): Declare only if not already declared
8713 in procinfo.h. More declaration out of get_signaled_thread to
8714 global scope.
8715
8716 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8717
8718 * python/py-symtab.c: Populate symtab_object_methods,
8719 sal_object_methods.
8720 (stpy_is_valid): New function.
8721 (salpy_is_valid): Ditto.
8722 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8723 (sympy_is_valid): New function.
8724 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8725 (objfpy_is_valid): New function.
8726 * python/py-inferior.c: Populate inferior_object_methods.
8727 (infpy_is_valid): New function.
8728 * python/py-infthread.c: Populate thread_object_methods.
8729 (thpy_is_valid): New function.
8730 * python/py-block.c: Declare block_object_methods. Populate. Declare
8731 block_iterator_object_methods. Populate.
8732 (blpy_is_valid): New function.
8733 (blpy_iter_is_valid): Ditto.
8734
8735 2011-03-16 Keith Seitz <keiths@redhat.com>
8736
8737 * linespec.c (find_methods): Canonicalize NAME before looking
8738 up the symbol.
8739 (name_end): New function.
8740 (keep_name_info): New function.
8741 (decode_line_1): Use keep_name_info.
8742 (decode_compound): Likewise.
8743 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8744 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8745
8746 PR c++/12273
8747 * linespec.c (locate_first_half): Keep overload information, too.
8748 (decode_compound): Use a string to represent break characters
8749 to escape the loop.
8750 If P points to a break character, do not increment it.
8751 For C++ and Java, keep overload information and relevant keywords.
8752 If we cannot find a symbol, search the minimal symbols.
8753
8754 PR c++/11734
8755 * linespec.c (decode_compound): Rename SAVED_ARG to
8756 THE_REAL_SAVED_ARG.
8757 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8758 single-quotes.
8759 Pass a valid block to lookup_symbol.
8760 (lookup_prefix_sym): Likewise.
8761 (find_method): Construct search name based on SYM_CLASS instead
8762 of SAVED_ARG.
8763 * psymtab.c (lookup_partial_symbol): Add language parameter.
8764 (lookup_symbol_aux_psymtabs): Likewise.
8765 Don't assume that the psymtab we found was the right one. Search
8766 for the desired symbol in the symtab to be certain.
8767 (psymtab_search_name): New function.
8768 (lookup_partial_symbol): Use psymtab_search_name.
8769 Add language parameter.
8770 (read_symtabs_for_function): Add language parameter and pass to
8771 lookup_partial_symbol.
8772 (find_symbol_file_from_partial): Likewise.
8773
8774 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8775
8776 PR gdb/12528
8777 * dwarf2read.c (noop_record_line): New function.
8778 (dwarf_decode_lines): Ignore line tables for GCd functions.
8779
8780 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8781
8782 Fix ARI warnings about new lines at the end of messages, which
8783 are unneeded as there is a new line added at the end of the message
8784 automatically.
8785 * darwin-nat.c (darwin_stop_inferior): Ditto.
8786 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8787 * dfp.c (decimal_to_number): Ditto.
8788 * exec.c (print_section_info): Ditto.
8789 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8790 * osdata.c (get_osdata): Ditto.
8791 * record.c (bfdcore_write): Ditto.
8792 * remote-mips.c (mips_readchar): Ditto.
8793 * remote.c (read_ptid): Ditto.
8794 * ser-mingw.c (ser_windows_raw): Ditto.
8795 * tracepoint.c (add_local_symbols): Ditto.
8796 * windows-nat.c (fake_create_process): Ditto.
8797
8798 2011-03-16 Tom Tromey <tromey@redhat.com>
8799
8800 * tracepoint.c (stop_tracing): Don't declare.
8801 * event-top.c (after_char_processing_hook): Add `(void)'.
8802
8803 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8804
8805 * NEWS: Add Parameter sub-classing description.
8806
8807 2011-03-16 Kai Tietz <ktietz@redhat.com>
8808
8809 * MAINTAINERS: Update my e-mail address.
8810
8811 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8812
8813 * MAINTAINERS: Add myself for write after approval privileges.
8814
8815 2011-03-15 Michael Snyder <msnyder@vmware.com>
8816
8817 * frame.c (find_frame_sal): Assert sym is not null.
8818
8819 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8820
8821 * objc-lang.c (selectors_info): Check strchr for null result.
8822
8823 * stabsread.c (define_symbol): Guard against bad stabstring input.
8824
8825 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8826
8827 Remove trailing spaces and tabulations from pascal language
8828 support sources.
8829 p-exp.y: Ditto.
8830 p-lang.c: Ditto.
8831 p-lang.h: Ditto.
8832 p-valprint.c: Ditto.
8833
8834 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8835
8836 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8837 than LOW. Comment it.
8838 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8839 HIGHPC not strictly higher than LOWPC.
8840
8841 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8842
8843 Fix formatting of function declarations returning a pointer in
8844 previous commit.
8845 * varobj.c (varobj_add_child): Ditto.
8846 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8847 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8848
8849 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8850
8851 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8852 for the "generic" vector ABI used with GCC 4.3 and later.
8853 (ppc64_sysv_abi_return_value): Likewise.
8854
8855 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8856
8857 * infcall.c (call_function_by_hand): Function return value is
8858 always a non_lval, even when using struct_return.
8859
8860 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8861
8862 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8863 (map_display_numbers): New.
8864 (do_delete_display): New.
8865 (undisplay_command): Use map_display_numbers.
8866 (do_enable_disable_display): New.
8867 (enable_disable_display_command): New function.
8868 (enable_display): Delete.
8869 (enable_display_command): New.
8870 (disable_display_command): Reimplement.
8871 (_initialize_printcmd): Adjust "enable display" command to use
8872 `enable_display_command' as callback.
8873
8874 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8875
8876 * NEWS: Add Python breakpoint 'stop' operation.
8877
8878 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8879
8880 * NEWS: Delete duplicate entry. Fix typo.
8881
8882 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8883
8884 Fix ARI warning about function names in first column.
8885 Put prototype declaration on same line as return type.
8886 * objc-exp.y: Ditto.
8887 * p-exp.y: Ditto.
8888 * python/py-stopevent.h: Ditto.
8889 For long function names, split parameters to
8890 allow function name on same line as return type.
8891 * solib-pa64.c: Ditto.
8892 * varobj.c: Ditto.
8893 * varobj.h: Ditto.
8894 For long function declaration, use single line.
8895 * hppa-tdep.h: Ditto.
8896 * inferior.h: Ditto.
8897
8898 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8899
8900 * python/python.h: Declare gdbpy_should_stop and
8901 gdbpy_breakpoint_has_py_cond.
8902 * python/python.c: Add python.h to includes. Remove python.h from
8903 HAVE_PYTHON definition
8904 (gdbpy_should_stop): New dummy function.
8905 (gdbpy_breakpoint_has_py_cond): New dummy function.
8906 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8907 sub-classing capabilities.
8908 (gdbpy_should_stop): New function.
8909 (gdbpy_breakpoint_has_py_cond): New function.
8910 (local_setattro): New function.
8911 * breakpoint.c (condition_command): Add check for Python 'stop'
8912 operation.
8913 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8914 operation function as part of stop/continue tests.
8915
8916 2011-03-14 Tom Tromey <tromey@redhat.com>
8917
8918 PR gdb/12576:
8919 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8920 (needs_frame_dwarf_call): Likewise.
8921
8922 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8923
8924 Fix ARI warning about functions without parameters that do not
8925 use (void).
8926 * breakpoint.c (all_tracepoints): Replace () by (void).
8927 * f-exp.y (match_string_literal): Ditto.
8928 (yylex): Ditto.
8929 * m2-exp.y (yylex): Ditto.
8930 * mep-tdep.c (current_me_module): Ditto.
8931 (current_options): Ditto.
8932 (current_cop_data_bus_width): Ditto.
8933 (current_cr_names): Ditto.
8934 (current_cr_is_float): Ditto.
8935 (current_ccr_names): Ditto.
8936 * objc-exp.y (yylex): Ditto.
8937 * p-exp.y (yylex): Ditto.
8938 * remote.c (send_interrupt_sequence): Ditto.
8939 * tracepoint.c (current_trace_status): Ditto.
8940 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8941 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8942
8943 2011-03-11 Michael Snyder <msnyder@vmware.com>
8944
8945 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8946 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8947 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8948 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8949 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8950
8951 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8952 (delete_async_event_handler): Ditto.
8953
8954 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8955
8956 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8957
8958 * top.c (set_verbose): Assert showcmd was found.
8959
8960 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8961
8962 * xtensa-tdep.c (warning_once): Correct style issues.
8963
8964 2011-03-11 Yao Qi <yao@codesourcery.com>
8965
8966 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8967
8968 2011-03-11 Andreas Schwab <schwab@redhat.com>
8969
8970 * common/aclocal.m4: Remove.
8971
8972 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8973
8974 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8975 (xtensa_write_register, xtensa_read_register): Likewise.
8976 (xtensa_hextochar): Removed.
8977 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8978
8979 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8980
8981 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8982 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8983 (xtensa_alloc_frame_cache): Add initialization for new fields.
8984 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8985 (warning_once): New function.
8986 (xtensa_insn_kind): New item c0opc_and.
8987 (call0_classify_opcode): Add the case for AND instruction.
8988 (call0_track_op): Change arguments. New local variable litbase.
8989 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8990 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8991 in the prologue.
8992 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8993 (call0_analyze_prologue): Update the comments. Change arguments.
8994 Add the variety of updates to handle extended prologues, which now can
8995 conduct dynamic stack adjustments.
8996 (call0_frame_cache): Likewise.
8997 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8998 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8999
9000 2011-03-10 Michael Snyder <msnyder@vmware.com>
9001
9002 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9003 (cmd_qtframe): Ditto.
9004 (cmd_qtbuffer): Ditto.
9005 (cmd_bigqtbuffer): Ditto.
9006
9007 2011-03-10 Tom Tromey <tromey@redhat.com>
9008
9009 * tracepoint.c (trace_actions_command): Update.
9010 * thread.c (thread_apply_command): Update.
9011 * reverse.c (delete_bookmark_command): Update.
9012 (bookmarks_info): Update.
9013 * printcmd.c (undisplay_command): Update.
9014 * memattr.c (mem_enable_command): Update.
9015 (mem_disable_command): Update.
9016 (mem_delete_command): Update.
9017 * inferior.c (detach_inferior_command): Update.
9018 (kill_inferior_command): Update.
9019 (remove_inferior_command): Update.
9020 * cli/cli-utils.h (struct get_number_or_range_state): New.
9021 (init_number_or_range): Declare.
9022 (get_number_or_range): Update.
9023 * cli/cli-utils.c (init_number_or_range): New function.
9024 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9025 static variables.
9026 (number_is_in_list): Update.
9027 * breakpoint.h (get_tracepoint_by_number): Update.
9028 * breakpoint.c (map_breakpoint_numbers): Update for change to
9029 get_number_or_range.
9030 (find_location_by_number): Use get_number, not
9031 get_number_or_range.
9032 (trace_pass_set_count): New function.
9033 (trace_pass_command): Update for change to get_number_or_range.
9034 Rework loop logic.
9035 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9036 'state' parameter.
9037
9038 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9039
9040 * python/py-param.c (add_setshow_generic): Add set/show callback
9041 parameters. Register Python object context.
9042 (get_show_value): New function.
9043 (get_set_value): New function.
9044 (call_doc_function): New function.
9045 (get_doc_string): Move behind get_show_value/get_set_value.
9046
9047 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9048
9049 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9050
9051 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9052
9053 * xtensa-tdep.c (xtensa_read_register): Add comment.
9054 (xtensa_write_register): Likewise.
9055 (xtensa_hextochar): Add comment and update to match coding conventions.
9056 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9057 (execute_l32e, execute_s32e, execute_code): Update comments.
9058 (xtensa_exception_handler_t): Update to match coding conventions.
9059 (xtensa_insn_kind): Likewise.
9060
9061 2011-03-09 Michael Snyder <msnyder@vmware.com>
9062
9063 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9064
9065 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9066
9067 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9068
9069 2011-03-09 Tom Tromey <tromey@redhat.com>
9070
9071 * thread.c (restore_selected_frame): Handle frame_level == -1.
9072 (make_cleanup_restore_current_thread): Use
9073 get_selected_frame_if_set.
9074 * frame.h (get_selected_frame_if_set): Declare.
9075 * frame.c (get_selected_frame_if_set): New function.
9076
9077 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9078
9079 * cli/cli-cmds.c (shell_escape): Use lbasename.
9080 * coffread.c (coff_start_symtab): Constify parameter.
9081 (complete_symtab): Constify `name' parameter.
9082 (coff_symtab_read): Constify `filestring' local.
9083 (coff_getfilename): Constify return and `result' local.
9084 Use lbasename.
9085 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9086 * linux-fork.c (info_checkpoints_command): Use lbasename.
9087 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9088 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9089 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9090 * procfs.c (procfs_make_note_section): Use lbasename.
9091 * tui/tui-io.c (printable_part): Constity return and parameter.
9092 Use lbasename.
9093 (print_filename): Constify parameters, and local `s'.
9094 (tui_rl_display_match_list): Constify local `temp'.
9095
9096 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9097
9098 Revert:
9099 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9100 Fix DWARF-3+ DW_AT_accessibility default assumption.
9101 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9102 cu->header.version >= 3.
9103
9104 2011-03-09 Yao Qi <yao@codesourcery.com>
9105
9106 * common/Makefile.in: Remove.
9107 * common/configure: Remove.
9108 * common/configure.ac: Remove.
9109
9110 2011-03-09 Yao Qi <yao@codesourcery.com>
9111
9112 Revert:
9113 2011-02-11 Yao Qi <yao@codesourcery.com>
9114
9115 * common/Makefile.in: Add copyright header.
9116
9117 2011-02-11 Yao Qi <yao@codesourcery.com>
9118
9119 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9120 libcommon.a.
9121 * configure.ac: Add common to sub dir.
9122 * configure: Regenerate.
9123
9124 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9125
9126 * xtensa-tdep.c (call0_ret): New function.
9127 (xtensa_skip_prologue): Speed up analysis.
9128
9129 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9130
9131 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9132 while executing MI command -data-list-changed-registers.
9133
9134 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9135
9136 * xtensa-tdep.c (xtensa_read_register): New function.
9137 (xtensa_write_register): New function.
9138 (xtensa_find_register_by_name): New function.
9139 (xtensa_windowed_frame_cache): Update comments in type description.
9140 (xtensa_frame_cache): Likewise.
9141 (xtensa_window_interrupt_insn): New function.
9142 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9143 (xtensa_insn_kind): Add new instructions.
9144 (rwx_special_register): New function.
9145 (call0_classify_opcode): Add new instructions to the analysis.
9146 (a0_saved, a7_saved, a11_saved): New variables.
9147 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9148 (execute_l32e): New function.
9149 (execute_s32e): New function.
9150 (xtensa_exception_handler_t): New type.
9151 (execute_code): New function.
9152 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9153 analysis for Xtensa Window Exception handlers.
9154
9155 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9156
9157 * xtensa-tdep.c (TX_PS): New.
9158 (windowing_enabled): Update to count for Call0 ABI.
9159 (xtensa_hextochar): New.
9160 (xtensa_init_reggroups): Make algorithm generic.
9161 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9162
9163 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9164
9165 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9166
9167 2011-03-08 Michael Snyder <msnyder@vmware.com>
9168
9169 * i386-tdep.c (i386_follow_jump): Check return value of
9170 target_read_memory.
9171 (i386_analyze_struct_return): Ditto.
9172 (i386_skip_probe): Ditto.
9173 (i386_match_insn): Ditto.
9174 (i386_skip_noop): Ditto.
9175 (i386_analyze_frame_setup): Ditto.
9176 (i386_analyze_register_saves): Ditto.
9177 (i386_skip_prologue): Ditto.
9178 (i386_skip_main_prologue): Ditto.
9179
9180 * target.c (read_whatever_is_readable): Fix memory leak.
9181
9182 * i386-tdep.c (i386_process_record): Document fall through.
9183
9184 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9185
9186 Fix DWARF-3+ DW_AT_accessibility default assumption.
9187 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9188 cu->header.version >= 3.
9189
9190 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9191
9192 * remote.c (remote_check_symbols): Skip if the target has no
9193 execution.
9194
9195 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9196
9197 * target.c (read_whatever_is_readable): Reformat comment,
9198 with a minor typo fix. Minor reformatting of the code.
9199
9200 2011-03-08 Yao Qi <yao@codesourcery.com>
9201
9202 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9203 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9204 Use cached result instead of calling displaced_in_arm_mode again.
9205 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9206 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9207 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9208 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9209 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9210 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9211 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9212 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9213 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9214 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9215 (arm_catch_kernel_helper_return): Likewise.
9216 * gdb/arm-tdep.h : Update function declarations.
9217
9218 2011-03-07 Michael Snyder <msnyder@vmware.com>
9219
9220 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9221
9222 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9223
9224 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9225
9226 * elfread.c (elf_symtab_read): Stop memory leak.
9227
9228 * main.c (captured_main): Fix memory leak.
9229
9230 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9231
9232 * ada-lang.c (compare_names): Call is_name_suffix with string1
9233 instead of string2.
9234
9235 2011-03-07 Tom Tromey <tromey@redhat.com>
9236
9237 * xcoffread.c (xcoff_sym_fns): Update.
9238 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9239 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9240 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9241 (symbol_file_add_with_addrs_or_offsets): Likewise.
9242 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9243 * somread.c (som_sym_fns): Update.
9244 * psymtab.h (require_partial_symbols): Declare.
9245 * psymtab.c (require_partial_symbols): New function.
9246 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9247 (ALL_OBJFILE_PSYMTABS): Undef.
9248 (ALL_PSYMTABS): Move from psympriv.h.
9249 (lookup_partial_symtab, find_pc_sect_psymtab)
9250 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9251 (find_last_source_symtab_from_partial)
9252 (forget_cached_source_info_partial)
9253 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9254 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9255 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9256 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9257 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9258 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9259 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9260 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9261 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9262 psymtabs.
9263 * mipsread.c (ecoff_sym_fns): Update.
9264 * machoread.c (macho_sym_fns): Update.
9265 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9266 (read_psyms): New function.
9267 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9268 (elf_sym_fns_lazy_psyms): New global.
9269 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9270 dwarf2_build_psymtabs.
9271 * dbxread.c (aout_sym_fns): Update.
9272 * coffread.c (coff_sym_fns): Update.
9273
9274 2011-03-07 Tom Tromey <tromey@redhat.com>
9275
9276 * infrun.c (print_exited_reason): Include inferior id and pid in
9277 message.
9278
9279 2011-03-07 Tom Tromey <tromey@redhat.com>
9280
9281 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9282 parameter.
9283 (target_has_execution_1): Update.
9284 (target_has_execution_current): Declare.
9285 (target_has_execution): Call target_has_execution_current.
9286 (default_child_has_execution): Update.
9287 * target.c (default_child_has_execution): Add 'the_ptid'
9288 parameter.
9289 (target_has_execution_1): Likewise.
9290 (target_has_execution_current): New function.
9291 (add_target): Update.
9292 (init_dummy_target): Update.
9293 * remote-m32r-sdi.c (m32r_has_execution): New function.
9294 (init_m32r_ops): Use it.
9295 * record.c (record_core_has_execution): Now static. Add
9296 'the_ptid' parameter.
9297 * inferior.c (have_live_inferiors): Don't save current thread.
9298 Use target_has_execution_1.
9299
9300 2011-03-07 Yao Qi <yao@codesourcery.com>
9301
9302 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9303
9304 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9305
9306 * elfread.c (elf_symtab_read): Minor reformatting.
9307
9308 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9309
9310 * objc-lang.c (selectors_info): Minor reformatting.
9311
9312 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9313
9314 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9315
9316 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9317 Michael Snyder <msnyder@vmware.com>
9318
9319 * ada-valprint.c (ada_val_print_array): Move the declaration of
9320 "byte_order" and "elttype" inside the block where these variables
9321 are actually used. Remove some special handling for the case
9322 where "elttype" and "eltlen" are null. Replace by a comment
9323 and a couple of assertion checks.
9324
9325 2011-03-05 Michael Snyder <msnyder@vmware.com>
9326
9327 * source.c (add_path): Replace semicolon at end of block.
9328 * dwarf2expr.c (execute_stack_op): Ditto.
9329
9330 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9331
9332 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9333 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9334 (bfin-*-*): Likewise.
9335
9336 2011-03-05 Michael Snyder <msnyder@vmware.com>
9337
9338 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9339 * mdebugread.c (parse_symbol): Ditto.
9340 * parse.c (parse_exp_in_context): Ditto.
9341 * source.c (add_path): Ditto.
9342 * utils.c (gnu_debuglink_crc32): Ditto.
9343 * varobj.c (variable_language): Ditto.
9344
9345 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9346
9347 2011-03-04 Michael Snyder <msnyder@vmware.com>
9348
9349 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9350
9351 * symfile.c (simple_overlay_update): Check for null return value
9352 from lookup_minimal_symbol.
9353
9354 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9355
9356 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9357
9358 * eval.c (parse_and_eval_address_1): Remove function.
9359 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9360 instead of parse_and_eval_address_1.
9361 * value.h (parse_and_eval_address_1): Remove prototype.
9362
9363 2011-03-04 Michael Snyder <msnyder@vmware.com>
9364
9365 * remote.c (putpkt_binary): Document that case stmt falls through.
9366
9367 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9368
9369 * breakpointc (print_it_typical): Move NULL check from here...
9370 (print_bp_stop_message): ... to here.
9371
9372 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9373
9374 * breakpoint.c (enable_command): Use break instead of continue,
9375 and fill in a missing break.
9376 (disable_command): Ditto.
9377
9378 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9379
9380 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9381 (terminal_save_ours): Remove misleading comment.
9382 (inflow_inferior_data_cleanup): Free ttystate.
9383 (inflow_inferior_exit): Likewise.
9384 (copy_terminal_info): Copy ttystate.
9385
9386 * serial.c (serial_copy_tty_state): New function.
9387 * serial.h (serial_copy_tty_state): Add prototype.
9388 (struct serial_ops): Add copy_tty_state callback.
9389 * ser-base.c (ser_base_copy_tty_state): New function.
9390 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9391 * ser-go32.c (dos_copy_tty_state): New function.
9392 (dos_ops): Install copy_tty_state callback.
9393 * ser-mingw.c (_initialize_ser_windows): Likewise.
9394 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9395 * ser-unix.c (hardwire_copy_tty_state): New function.
9396 (_initialize_ser_hardwire): Install it.
9397
9398 2011-03-04 Michael Snyder <msnyder@vmware.com>
9399
9400 * breakpoint.c (create_breakpoint): Add missing break statement.
9401
9402 Reverting this patch:
9403 * infcall.c (call_function_by_hand): Add break statements for lint.
9404
9405 Reverting this patch:
9406 * cli/cli-script.c (script_from_file): Add break for lint.
9407
9408 2011-03-04 Michael Snyder <msnyder@vmware.com>
9409
9410 * solib.c (reload_shared_libraries_1): Close memory leak.
9411
9412 2011-03-03 Tom Tromey <tromey@redhat.com>
9413
9414 PR gdb/12538:
9415 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9416 DW_STRING is NULL.
9417
9418 2011-03-03 Michael Snyder <msnyder@vmware.com>
9419
9420 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9421 fields of struct 'st' to zero.
9422
9423 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9424 sal.pspace before calling set_current_source_symtab_and_line.
9425
9426 2011-03-03 Yao Qi <yao@codesourcery.com>
9427
9428 * Makefile.in (configure-common): Remove. Let Makefile
9429 in dir common to rebuild itself.
9430 (common/Makefile): Likewise.
9431
9432 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9433
9434 * utils.c (parse_escape): Add i18n markup in error message.
9435
9436 2011-03-03 Yao Qi <yao@codesourcery.com>
9437
9438 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9439 ARM_PC_REGNUM.
9440 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9441 (displaced_write_reg, displaced_read_reg): Likewise.
9442 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9443 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9444 (cleanup_branch): Replace magic number 14 and 15 with
9445 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9446
9447 2011-03-02 Michael Snyder <msnyder@vmware.com>
9448
9449 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9450
9451 * cli/cli-script.c (script_from_file): Add break for lint.
9452
9453 * mdebugread.c (parse_partial_symbols): Fix indent.
9454
9455 * target-descriptions.c (tdesc_gdb_type): No need to call
9456 xstrdup, callee saves a copy.
9457
9458 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9459
9460 * infcall.c (call_function_by_hand): Add break statements for lint.
9461
9462 * utils.c (parse_escape): Escape the escape char.
9463
9464 * python/py-inferior.c (build_inferior_list): Error out if
9465 PyList_Append fails.
9466 (gdbpy_inferiors): Error out if build_inferior_list fails.
9467
9468 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9469 a function call.
9470
9471 * record.c (record_restore): Move printf to before error return.
9472
9473 2011-03-02 Yao Qi <yao@codesourcery.com>
9474
9475 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9476 is_thumb and insn_size.
9477 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9478 on both ARM and Thumb mode.
9479 (arm_process_displaced_insn): Set is_thumb and insn_size.
9480 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9481 (arm_displaced_step_fixup): Likewise.
9482
9483 2011-03-01 Michael Snyder <msnyder@vmware.com>
9484
9485 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9486
9487 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9488
9489 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9490
9491 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9492
9493 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9494 with xmalloc.
9495
9496 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9497 which shadows function parameter.
9498
9499 * tracepoint.c (create_tsv_from_upload): Superfluous call
9500 to xstrdup. Callee already calls xstrdup.
9501
9502 * linespec.c (decode_line_1): Remove unnecessary null check.
9503
9504 * tracepoint.c (scope_info): Fix mem leak, remove underused
9505 variable.
9506
9507 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9508 superfluous null check.
9509
9510 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9511 (value_of_builtin_frame_fp_reg): Ditto.
9512
9513 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9514
9515 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9516 be null.
9517
9518 * linespec.c (decode_line_1): Check for null before dereference.
9519
9520 * reverse.c (record_restore): Move null-check to before pointer
9521 dereference.
9522
9523 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9524
9525 * objc-lang.c (selectors_info): Add explanitory comment.
9526 (classes_info): Ditto.
9527
9528 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9529
9530 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9531 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9532 versions of the trampoline. Handle Thumb vs. ARM addresses.
9533 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9534 (arm_linux_init_abi): Install it.
9535 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9536 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9537
9538 2011-02-28 Michael Snyder <msnyder@vmware.com>
9539
9540 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9541 a little bigger, to avoid possibility of an overflow.
9542
9543 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9544 buffers a little bigger, to avoid possibility of an overflow.
9545
9546 * coffread.c (coff_getfilename): Add check to avoid overflow.
9547
9548 * objc-lang.c (selectors_info): Add a small safety margin to
9549 avoid overflow.
9550 (classes_info): Error out on too long REGEXP.
9551
9552 * infrun.c (handle_inferior_event): Remove unused function call.
9553
9554 * fork-child.c (fork_inferior): Remove ifdef'd code and
9555 unused variable.
9556
9557 * linux-thread-db.c (attach_thread): Discard unused value.
9558
9559 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9560
9561 * remote.c (remote_get_noisy_reply): Discard unused value.
9562 (remote_vcont_resume): Ditto.
9563 (remote_stop_ns): Ditto.
9564
9565 * linespec.c (decode_objc): Delete unused variable.
9566
9567 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9568
9569 * dwarf2read.c (add_partial_symbol): Discard unused values.
9570 (read_base_type): Delete unused variable.
9571
9572 * dbxread.c (read_dbx_symtab): Discard unused value.
9573
9574 * eval.c (evaluate_subexp_standard): Delete unused variable,
9575 and discard unused values.
9576
9577 * infcmd.c (_initialize_infcmd): Discard unused values.
9578
9579 * stabsread.c (rs6000_builtin_type): Missing break statement.
9580
9581 * dbxread.c (process_one_symbol): Discard unused value.
9582
9583 * coffread.c (coff_end_symtab): Delete unused variable.
9584
9585 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9586 (dwarf2_add_typedef): Delete unused variable.
9587 (read_namespace): Ditto.
9588 (dwarf_decode_macros): Ditto.
9589
9590 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9591
9592 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9593
9594 * p-valprint.c (pascal_val_print): Discard unused value.
9595
9596 * utils.c (nquery): Call va_end before return;
9597 (yquery): Ditto.
9598 (query): Ditto.
9599
9600 * proc-service.c (ps_plog): Call va_end before return.
9601
9602 2011-02-28 Tom Tromey <tromey@redhat.com>
9603
9604 * python/python.c (gdbpy_value_cst): New global.
9605 (_initialize_python): Initialize it.
9606 * python/python-internal.h (gdbpy_value_cst): Declare.
9607 * python/py-value.c (convert_value_from_python): Use
9608 gdbpy_value_cst.
9609
9610 2011-02-28 Michael Snyder <msnyder@vmware.com>
9611
9612 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9613
9614 * breakpoint.c (catch_syscall_completer): Free malloced list.
9615
9616 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9617
9618 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9619 (lval_func_check_synthetic_pointer): Ditto.
9620 (lval_func_free_closure): Fix use-after-free.
9621
9622 2011-02-28 Tom Tromey <tromey@redhat.com>
9623
9624 * psymtab.c (expand_partial_symbol_tables): Use
9625 ALL_OBJFILE_PSYMTABS.
9626
9627 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9628
9629 * objc-lang.c (selectors_info): Error on too long REGEXP.
9630
9631 2011-02-28 Michael Snyder <msnyder@vmware.com>
9632
9633 * python/py-param.c (set_parameter_value): Add missing
9634 break statement.
9635
9636 * linux-record.c (record_linux_system_call): Add missing
9637 break statement.
9638
9639 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9640
9641 * breakpoint.c (print_one_breakpoint_location): Remove unused
9642 argument PRINT_ADDRESS_BITS. Update callers.
9643 (print_one_breakpoint): Likewise.
9644
9645 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9646
9647 * breakpoint.c (wrap_indent_at_field): New function.
9648 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9649 Allocate ui_stream locally instead of using STB argument.
9650 (print_one_breakpoint_location): Update call.
9651 * ui-out.c (ui_out_query_field): New function.
9652 * ui-out.h (ui_out_query_field): Add prototype.
9653
9654 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9655
9656 From Michael Snyder <msnyder@vmware.com>
9657 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9658
9659 2011-02-27 Michael Snyder <msnyder@vmware.com>
9660
9661 * objc-lang.c (selectors_info): Prevent string overrun.
9662
9663 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9664 error in strncpy.
9665
9666 * symtab.c (rbreak_command): Move variable 'file_name' to
9667 outer scope.
9668
9669 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9670 param with a local variable of the same name.
9671
9672 2011-02-27 Michael Snyder <msnyder@vmware.com>
9673
9674 * value.c (value_from_history_ref): New function.
9675 * value.h (value_from_history_ref): Export.
9676 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9677 to parse value history references.
9678 * cli/cli-utils.h (get_number_trailer): Update comment.
9679
9680 2011-02-27 Michael Snyder <msnyder@vmware.com>
9681
9682 * inferior.c (detach_inferior_command): Use get_number_or_range.
9683 (kill_inferior_command): Ditto.
9684 (remove_inferior_command): Ditto.
9685 (initialize_inferiors): Make command names plural.
9686 Update help strings.
9687
9688 2011-02-27 Michael Snyder <msnyder@vmware.com>
9689
9690 * darwin-nat-info.c: Fix comment typo.
9691 * dwarf2expr.h: Ditto.
9692 * fbsd-nat.c: Ditto.
9693 * fbsd-nat.h: Ditto.
9694 * frame-unwind.h: Ditto.
9695 * frame.h: Ditto.
9696 * hppa-hpux-tdep.c: Ditto.
9697 * i386-linux-nat.c: Ditto.
9698 * linux-nat.c: Ditto.
9699 * nbsd-nat.c: Ditto.
9700 * nbsd-nat.h: Ditto.
9701 * ppc-linux-tdep.c: Ditto.
9702 * serial.c: Ditto.
9703 * ui-file.h: Ditto.
9704 * tui/tui-winsource.c: Ditto.
9705
9706 2011-02-26 Michael Snyder <msnyder@vmware.com>
9707
9708 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9709
9710 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9711
9712 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9713 with a local variable of the same name.
9714
9715 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9716 param with a local variable of the same name.
9717 (i387_supply_xsave): Ditto.
9718
9719 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9720 that it does not shadow a function parameter.
9721
9722 * i386-nat.c (i386_length_and_rw_bits): Document that case
9723 statement is meant to fall through.
9724
9725 * expprint.c (dump_subexp_body_standard): Document that case
9726 statement is meant to fall through.
9727
9728 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9729 dead if statement. Condition can't be false.
9730
9731 2011-02-25 Michael Snyder <msnyder@vmware.com>
9732
9733 * arm-tdep.c: Fix typos in comments.
9734 * bsd-uthread.c: Ditto.
9735 * completer.c: Ditto.
9736 * corelow.c: Ditto.
9737 * cp-namespace.c: Ditto.
9738 * cp-support.c: Ditto.
9739 * cris-tdep.c: Ditto.
9740 * dbxread.c: Ditto.
9741 * dwarf2read.c: Ditto.
9742 * frame.h: Ditto.
9743 * gdbtypes.h: Ditto.
9744 * inferior.h: Ditto.
9745 * mdebugread.c: Ditto.
9746 * mips-tdep.c: Ditto.
9747 * ppc-linux-nat.c: Ditto.
9748 * ppc-linux-tdep.c: Ditto.
9749 * printcmd.c: Ditto.
9750 * sol-thread.c: Ditto.
9751 * solib-frv.c: Ditto.
9752 * solist.h: Ditto.
9753 * sparc64-tdep.c: Ditto.
9754 * spu-tdep.c: Ditto.
9755 * stabsread.c: Ditto.
9756 * symfile.c: Ditto.
9757 * valops.c: Ditto.
9758 * varobj.c: Ditto.
9759 * vax-nat.c: Ditto.
9760 * python/py-block.c: Ditto.
9761 * python/py-symbol.c: Ditto.
9762 * python/py-symtab.c: Ditto.
9763 * python/py-value.c: Ditto.
9764 * tui/tui-win.c: Ditto.
9765
9766 2011-02-25 Michael Snyder <msnyder@vmware.com>
9767
9768 * inferior.c (print_inferior): Accept a string instead of an int
9769 for requested_inferiors, and use get_number_or_range to parse it.
9770 (info_inferiors_command): Pass args string to print_inferior.
9771 (initialize_inferiors): Change help string for info inferiors.
9772 * inferior.h (print_inferior): Export prototype change.
9773
9774 2011-02-25 Tom Tromey <tromey@redhat.com>
9775
9776 * common/ax.def (invalid2): Set to 0x31.
9777
9778 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9779
9780 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9781 L and plongest.
9782 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9783 use L and plongest.
9784 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9785
9786 2011-02-24 Michael Snyder <msnyder@vmware.com>
9787
9788 * Makefile.in (clean): Make clean should remove generated files
9789 observer.h and observer.inc.
9790
9791 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9792
9793 Revert the following patch (not approved yet):
9794 2011-02-21 Hui Zhu <teawater@gmail.com>
9795 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9796 * ax-gdb.c (gen_printf_expr_callback): New function.
9797 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9798 * ax-general.c (ax_memcpy): New function.
9799 (ax_print): Handle "printf".
9800 (ax_reqs): Ditto.
9801 * ax.h (ax_memcpy): Forward declare.
9802 * common/ax.def (invalid2): Removed.
9803 (printf): New entry.
9804 * printcmd.c (printcmd.h): New include.
9805 (string_printf): New function.
9806 (ui_printf): Removed.
9807 (printf_command): Remove static. Call string_printf.
9808 (eval_command): Call string_printf.
9809 * printcmd.h: New file.
9810 * tracepoint.c (validate_actionline,
9811 encode_actions_1): handle printf_command.
9812
9813 2011-02-23 Tom Tromey <tromey@redhat.com>
9814
9815 * ax-general.c (ax_pick): Add missing newline.
9816
9817 2011-02-23 Michael Snyder <msnyder@vmware.com>
9818
9819 * breakpoint.c (breakpoint_1): Change first argument from an int
9820 to a char pointer, so that the function now accepts a list of
9821 breakpoints rather than just one. Use new function
9822 'number_is_in_list' to implement.
9823 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9824 (watchpoints_info): Ditto.
9825 (tracepoints_info): Ditto.
9826 (maintenance_info_breakpoints): Ditto.
9827 (_initialize_breakpoint): Update help strings to reflect the fact
9828 that these functions can now take more than one argument.
9829 * cli/cli-utils.c (number_is_in_list): New function.
9830 * cli/cli-utils.h (number_is_in_list): Export.
9831
9832 2011-02-23 Michael Snyder <msnyder@vmware.com>
9833
9834 * memattr.c (mem_enable_command): Use get_number_or_range.
9835 (mem_disable_command): Ditto.
9836 (mem_delete_command): Ditto.
9837 (_initialize_mem): Tweak usage message to reflect multiple
9838 arguments.
9839
9840 2011-02-22 Doug Evans <dje@google.com>
9841
9842 Add gdb.lookup_global_symbol python function.
9843 * NEWS: Add entry.
9844 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9845 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9846 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9847
9848 2011-02-22 Tom Tromey <tromey@redhat.com>
9849
9850 * language.c (language_class_name_from_physname): Rename
9851 'curr_language' argument to 'lang'; use in body.
9852
9853 2011-02-22 Michael Snyder <msnyder@vmware.com>
9854
9855 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9856
9857 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9858
9859 * frame-unwind.h: Fix comment to mention the this frame, not the
9860 next.
9861
9862 2011-02-22 Tom Tromey <tromey@redhat.com>
9863
9864 * symfile.c (auto_solib_limit): Remove.
9865 * symfile.h (auto_solib_limit): Remove.
9866
9867 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9868
9869 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9870
9871 2011-02-21 Michael Snyder <msnyder@vmware.com>
9872
9873 * gdbthread.h (print_thread_info): Change prototype.
9874 * thread.c (print_thread_info): Accept char* instead of int for
9875 requested_threads argument. Use new function number_is_in_list
9876 to determine which threads to list.
9877 (info_threads_command): Pass char* to print_thread_info.
9878 * cli/cli-utils.c (number_is_in_list): New function.
9879 * cli/cli-utils.h (number_is_in_list): Export.
9880 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9881 print_thread_info.
9882 (print_one_inferior): Ditto.
9883 (mi_cmd_list_thread_groups): Ditto.
9884
9885 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9886
9887 * common/Makefile.in (CFLAGS): New.
9888 (COMPILE): Add $(CFLAGS).
9889
9890 2011-02-21 Tom Tromey <tromey@redhat.com>
9891
9892 * breakpoint.c (catch_syscall_command_1): Fix typo.
9893
9894 2011-02-21 Tom Tromey <tromey@redhat.com>
9895
9896 * reverse.c: Include cli-utils.h.
9897 * printcmd.c: Include cli-utils.h.
9898 (string_printf): Use skip_spaces.
9899 * cli/cli-utils.h: New file.
9900 * cli/cli-utils.c: New file.
9901 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9902 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9903 * breakpoint.h (get_number, get_number_or_range): Move to
9904 cli-utils.h.
9905 * breakpoint.c: Include cli-utils.h.
9906 (get_number_trailer, get_number, get_number_or_range)
9907 (ep_skip_leading_whitespace): Move to cli-utils.c.
9908 (create_breakpoint_sal, find_condition_and_thread)
9909 (decode_static_tracepoint_spec, watch_command_1)
9910 (watch_maybe_just_location, ep_parse_optional_if_clause)
9911 (catch_fork_command_1, catch_exec_command_1)
9912 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9913 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9914 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9915 (HFILES_NO_SRCDIR): Add cli-utils.h.
9916 (cli-utils.o): New target.
9917
9918 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9919
9920 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9921 before calling discard_all_inferiors.
9922
9923 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9924
9925 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9926 (struct builtin_opencl_type): Remove.
9927 (builtin_opencl_type): Change return type to "struct type **".
9928 (lookup_opencl_vector_type): Update caller.
9929 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9930 (build_opencl_types): Install plain array of "struct type *"
9931 instead of "struct builtin_opencl_type".
9932
9933 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9934 Ulrich Weigand <uweigand@de.ibm.com>
9935
9936 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9937 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9938 (struct arm_linux_hwbp_cap): New type.
9939 (arm_linux_get_hwbp_cap): New function.
9940 (arm_linux_get_hw_breakpoint_count): Likewise.
9941 (arm_linux_get_hw_watchpoint_count): Likewise.
9942 (arm_linux_can_use_hw_breakpoint): Likewise.
9943 (arm_hwbp_type): New type.
9944 (arm_hwbp_control_t): Likewise.
9945 (struct arm_linux_hw_breakpoint): Likewise.
9946 (struct arm_linux_thread_points): Likewise.
9947 (arm_threads): New global variable.
9948 (arm_linux_find_breakpoints_by_tid): New function.
9949 (arm_hwbp_control_initialize): Likewise.
9950 (arm_hwbp_control_is_enabled): Likewise.
9951 (arm_hwbp_control_disable): Likewise.
9952 (arm_linux_hw_breakpoint_initialize): Likewise.
9953 (arm_linux_get_hwbp_type): Likewise.
9954 (arm_linux_hw_watchpoint_initialize): Likewise.
9955 (arm_linux_hw_breakpoint_equal): Likewise.
9956 (arm_linux_insert_hw_breakpoint1): Likewise.
9957 (arm_linux_remove_hw_breakpoint1): Likewise.
9958 (arm_linux_insert_hw_breakpoint): Likewise.
9959 (arm_linux_remove_hw_breakpoint): Likewise.
9960 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9961 (arm_linux_insert_watchpoint): Likewise.
9962 (arm_linux_remove_watchpoint): Likewise.
9963 (arm_linux_stopped_data_address): Likewise.
9964 (arm_linux_stopped_by_watchpoint): Likewise.
9965 (arm_linux_watchpoint_addr_within_range): Likewise.
9966 (arm_linux_new_thread): Likewise.
9967 (arm_linux_thread_exit): Likewise.
9968 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9969 related target callbacks. Register arm_linux_new_thread and
9970 arm_linux_thread_exit.
9971 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9972 * arm-tdep.c (arm_pc_is_thumb): Make global.
9973 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9974
9975 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9976
9977 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9978 per-frame locations while within a function epilogue.
9979
9980 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9981
9982 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9983 to GNU coding standards.
9984
9985 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9986
9987 Allow use of mingw native on Windows 95 OS.
9988 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9989 (ser_windows_close): Only call CancelIo if function exists.
9990 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9991 to check for existence of CancelIo function in kernel32 DLL.
9992
9993 2011-02-21 Hui Zhu <teawater@gmail.com>
9994
9995 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9996 * ax-gdb.c (gen_printf_expr_callback): New function.
9997 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9998 * ax-general.c (ax_memcpy): New function.
9999 (ax_print): Handle "printf".
10000 (ax_reqs): Ditto.
10001 * ax.h (ax_memcpy): Forward declare.
10002 * common/ax.def (invalid2): Removed.
10003 (printf): New entry.
10004 * printcmd.c (printcmd.h): New include.
10005 (string_printf): New function.
10006 (ui_printf): Removed.
10007 (printf_command): Remove static. Call string_printf.
10008 (eval_command): Call string_printf.
10009 * printcmd.h: New file.
10010 * tracepoint.c (validate_actionline,
10011 encode_actions_1): handle printf_command.
10012
10013 2011-02-19 Michael Snyder <msnyder@vmware.com>
10014
10015 * reverse.c (delete_one_bookmark): Argument is now bookmark
10016 id rather than pointer to bookmark struct.
10017 (delete_bookmark_command): Use get_number_or_range.
10018 (goto_bookmark_command): Parse with get_number instead of strtoul.
10019 (bookmark_1): New function. Print info for one bookmark.
10020 (bookmarks_info): Use get_number_or_range and bookmark_1.
10021
10022 2011-02-18 Michael Snyder <msnyder@vmware.com>
10023
10024 * thread.c (info_threads_command): Re-implement using
10025 get_number_or_range.
10026 (thread_apply_command): Ditto.
10027
10028 2011-02-18 Tom Tromey <tromey@redhat.com>
10029
10030 * common/ax.def: New file.
10031 * ax.h (enum agent_op): Use ax.def.
10032 * ax-general.c (aop_map): Use ax.def.
10033
10034 2011-02-18 Tom Tromey <tromey@redhat.com>
10035
10036 * ax-general.c (aop_map): Add pick and rot.
10037 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10038 <DW_OP_rot>: Implement.
10039 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10040 (ax_pick): Declare.
10041 * ax-general.c (ax_pick): New function.
10042
10043 2011-02-18 Tom Tromey <tromey@redhat.com>
10044
10045 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10046
10047 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10048 Tom Tromey <tromey@redhat.com>
10049
10050 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10051 make_symbol_overload_list_block with NULL BLOCK.
10052 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10053
10054 2011-02-18 Pedro Alves <pedro@codesourcery.com>
10055
10056 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10057 * breakpoint.h (get_number_or_range): Declare.
10058 * printcmd.c (ALL_DISPLAYS): Declare.
10059 (delete_display): Reimplement taking a display pointer.
10060 (undisplay_command): Accept a range of displays to delete, using
10061 get_number_or_range.
10062
10063 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10064
10065 * c-valprint.c (c_val_print): Add embedded_offset to address
10066 for arrays of unspecified length.
10067 * p-valprint.c (pascal_val_print): Likewise.
10068
10069 2011-02-18 Yao Qi <yao@codesourcery.com>
10070
10071 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10072 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10073 (thumb_process_displaced_insn): New.
10074 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10075 call to arm_process_displaced_insn.
10076 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10077
10078 2011-02-17 Tom Tromey <tromey@redhat.com>
10079
10080 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10081 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10082 compile_dwarf_to_ax. No longer static. Call
10083 dwarf2_compile_cfa_to_ax.
10084 (locexpr_tracepoint_var_ref): Update.
10085 (loclist_tracepoint_var_ref): Update.
10086 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10087 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10088 argument; add 'gdbarch' and 'pc'.
10089 (dwarf2_compile_cfa_to_ax): New function.
10090 (dwarf2_frame_cache): Update.
10091
10092 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10093
10094 * ada-lang.c (ada_type_of_array): Fix the size of the array
10095 in the case of an unconstrained packed array.
10096
10097 2011-02-17 Yao Qi <yao@codesourcery.com>
10098
10099 * common/Makefile.in: Add more targets for make.
10100
10101 2011-02-16 Tom Tromey <tromey@redhat.com>
10102
10103 * dwarf2loc.c (unimplemented): Fix typo.
10104
10105 2011-02-16 Tom Tromey <tromey@redhat.com>
10106
10107 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10108 (compile_dwarf_to_ax) <default>: Use unimplemented.
10109 <DW_OP_deref>: Update.
10110 (disassemble_dwarf_expression): Update.
10111 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10112 (decode_locdesc): Update.
10113 * dwarf2expr.h (dwarf_stack_op_name): Update.
10114
10115 2011-02-16 Tom Tromey <tromey@redhat.com>
10116
10117 * ax.h (struct aop_map) <name>: Now const.
10118
10119 2011-02-16 Tom Tromey <tromey@redhat.com>
10120
10121 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10122 than axs_rvalue.
10123
10124 2011-02-16 Yao Qi <yao@codesourcery.com>
10125
10126 * infrun.c (get_displaced_step_closure_by_addr): New.
10127 * inferior.h: Declare it.
10128 * arm-tdep.c: (arm_pc_is_thumb): Call
10129 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10130 returns non-NULL.
10131
10132 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10133 Jan Kratochvil <jan.kratochvil@redhat.com>
10134
10135 gdb/
10136 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10137
10138 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10139 Jan Kratochvil <jan.kratochvil@redhat.com>
10140
10141 * value.c (value_contents_copy_raw): Extend describing comment.
10142 Assert that the destination contents we're overwriting are wholly
10143 available.
10144 (value_contents_copy): Extend describing comment.
10145
10146 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10147 Jan Kratochvil <jan.kratochvil@redhat.com>
10148
10149 * value.c (value_available_contents_eq): Remove redundant local
10150 variables. Fix available contents comparision.
10151 * value.h (value_available_contents_eq): Extend describing
10152 comment.
10153
10154 2011-02-16 Yao Qi <yao@codesourcery.com>
10155
10156 * thread.c (info_threads_command): Add missing i18n markup and remove
10157 trailing newline.
10158
10159 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10160
10161 * breakpoint.c (longjmp_names): New variable.
10162 (struct breakpoint_objfile_data): New type.
10163 (breakpoint_objfile_key): New variable.
10164 (msym_not_found): New variable.
10165 (msym_not_found_p): New predicate.
10166 (get_breakpoint_objfile_data): New function.
10167 (create_overlay_event_breakpoint): Check per-objfile cache for
10168 symbols first.
10169 (create_longjmp_master_breakpoint): Likewise.
10170 (create_std_terminate_master_breakpoint): Likewise.
10171 (create_exception_master_breakpoint): Likewise.
10172 (_initialize_breakpoint): Register per-objfile data key.
10173
10174 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10175
10176 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10177 parameter value.
10178 (create_longjmp_master_breakpoint): Loop over longjmp names.
10179 (create_std_terminate_master_breakpoint): Const-propagate parameter
10180 value.
10181 (update_breakpoints_after_exec): Adjust.
10182 (breakpoint_re_set): Adjust.
10183
10184 2011-02-15 Michael Snyder <msnyder@vmware.com>
10185
10186 * thread.c (info_threads_command): Process arg as thread id,
10187 or list of thread ids.
10188 (thread_find_command): New command.
10189 (_initialize_thread): Document argument for info threads.
10190 Document 'thread find' command.
10191 * NEWS: Document new command "thread find".
10192
10193 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10194
10195 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10196 * aclocal.m4: Regenerated with aclocal-1.11.1.
10197 * common/configure: Regenerate with autoconf-2.64.
10198
10199 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10200
10201 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10202 bool data type to a size of one byte.
10203
10204 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10205 Jan Kratochvil <jan.kratochvil@redhat.com>
10206
10207 * target.c (memory_xfer_live_readonly_partial): Document where to
10208 look for interface description.
10209
10210 2011-02-15 Yao Qi <yao@codesourcery.com>
10211
10212 PR tdep/12352
10213 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10214 order to store PC value on stack instead of text section.
10215
10216 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10217
10218 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10219 the EFP register set size.
10220 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10221 data from the VMX register.
10222 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10223 and write data from/to the VMX register.
10224
10225 2011-02-14 Michael Snyder <msnyder@vmware.com>
10226
10227 * command.h (enum command_class): New class 'no_set_class', for
10228 "show" commands without a corresponding "set" command.
10229 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10230 * copying.c (_initialize_copying): Ditto for "show copying" and
10231 "show warranty".
10232 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10233 "show version".
10234 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10235 which there is no corresponding "set" command (eg. "show copying").
10236
10237 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10238 Jan Kratochvil <jan.kratochvil@redhat.com>
10239
10240 * exec.c (section_table_available_memory): Change `len' parameter
10241 type to ULONGEST.
10242 * exec.h (section_table_available_memory): Ditto.
10243 * value.h (read_value_memory): Rename the `offset' parameter to
10244 `embedded_offset'.
10245
10246 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10247 Jan Kratochvil <jan.kratochvil@redhat.com>
10248
10249 * memrange.c (compare_mem_ranges): Mention sort order in
10250 describing comment.
10251 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10252 * tracepoint.c (traceframe_available_memory): Extend comment to
10253 mention what happens to RESULT when the target does not support
10254 the query.
10255
10256 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10257 Jan Kratochvil <jan.kratochvil@redhat.com>
10258
10259 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10260 range.
10261
10262 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10263
10264 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10265 No longer handle NULL values.
10266
10267 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10268
10269 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10270 * value.c: Include "exceptions.h".
10271 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10272 generic error.
10273 * cp-abi.c: Include gdb_assert.h.
10274 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10275 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10276 errors.
10277 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10278 parameters. No longer returns -1 on error.
10279 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10280 `val' parameters.
10281 * cp-valprint.c: Include exceptions.h.
10282 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10283 the baseclass_offset. Handle unavailable base classes. Use
10284 val_print_invalid_address.
10285 * p-valprint.c: Include exceptions.h.
10286 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10287 when fetching the baseclass_offset. No longer expect
10288 baseclass_offset returning -1. Handle unavailable base classes.
10289 Use val_print_invalid_address.
10290 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10291 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10292 `embedded_offset' and `val' parameters. Adjust.
10293 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10294 parameter, and change its type to gdb_byte pointer. Add
10295 `embedded_offset' and `val' parameters. Adjust. No longer expect
10296 baseclass_offset returning -1.
10297 (value_dynamic_cast): Use value_contents_for_printing rather than
10298 value_contents. Adjust.
10299 (search_struct_field): No longer expect baseclass_offset returning
10300 -1.
10301 (search_struct_method): If reading memory from the target is
10302 necessary, wrap it in a new value to pass to baseclass_offset. No
10303 longer expect baseclass_offset returning -1.
10304 (find_method_list): No longer expect baseclass_offset returning
10305 -1. Use value_contents_for_printing rather than value_contents.
10306 * valprint.c (val_print_invalid_address): New function.
10307 * valprint.h (val_print_invalid_address): Declare.
10308 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10309 and `val' parameters. No longer expect baseclass_offset returning
10310 -1. Adjust.
10311 * gnu-v2-abi.c: Include "exceptions.h".
10312 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10313 parameters. Handle unavailable memory. Recurse through
10314 gnuv2_baseclass_offset directly, rather than through
10315 baseclass_offset. No longer returns -1 on not found, instead
10316 throw an error.
10317 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10318 `val' parameters. Adjust.
10319
10320 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10321
10322 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10323 almost but not quite adjacent.
10324
10325 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10326
10327 * value.h (value_entirely_available): Declare.
10328 * value.c (value_entirely_available): New function.
10329 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10330 real type if the pointer is unavailable.
10331
10332 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10333
10334 * valops.c (value_repeat): Use read_value_memory instead of
10335 read_memory.
10336
10337 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10338
10339 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10340 * value.c (value_contents_copy_raw, value_contents_copy): New
10341 functions.
10342 (value_primitive_field): Use value_contents_copy_raw instead of
10343 memcpy.
10344 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10345 memcpy.
10346 (value_array, value_slice): Ditto.
10347 * valarith.c (value_subscripted_rvalue): Use
10348 value_contents_copy_raw instead of memcpy.
10349
10350 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10351
10352 <unavailable> references.
10353
10354 * valops.c (get_value_at): Use value_from_contents_and_address,
10355 avoiding read_memory.
10356
10357 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10358
10359 * c-valprint.c (c_val_print): Print a string with unavailable
10360 contents as an array.
10361
10362 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10363
10364 * value.h (unpack_bits_as_long): Delete declaration.
10365 (unpack_value_bits_as_long): Declare.
10366 (unpack_value_field_as_long): Declare.
10367 (value_field_bitfield): Declare.
10368 * value.c (unpack_bits_as_long): Rename to...
10369 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10370 value parameters. Return the extracted result in a new output
10371 parameter. If the value contents are unavailable, return false,
10372 otherwise return true.
10373 (unpack_value_bits_as_long): New.
10374 (unpack_field_as_long): Rename to...
10375 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10376 Add embedded_offset and value parameters. Return the extracted
10377 result in a new output parameter. If the value contents are
10378 unavailable, return false, otherwise return true.
10379 (unpack_value_field_as_long): New.
10380 (unpack_field_as_long_1): New.
10381 (unpack_field_as_long): Reimplement as wrapper around
10382 unpack_value_field_as_long_1.
10383 (value_field_bitfield): New function.
10384 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10385 unpack_value_bits_as_long. Mark the value as unavailable, if it
10386 is unavailable.
10387 * jv-valprint.c (java_print_value_fields): Use
10388 value_field_bitfield.
10389 * p-valprint.c (pascal_object_print_value_fields): Use
10390 value_field_bitfield.
10391 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10392
10393 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10394
10395 * value.c (get_internalvar_integer): Also return the int value of
10396 TYPE_CODE_INT INTERNALVAR_VALUE values.
10397 (set_internalvar): Don't special case TYPE_CODE_INT.
10398
10399 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10400
10401 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10402 INTERNALVAR_POINTER.
10403 <pointer>: Delete.
10404 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10405 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10406 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10407
10408 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10409
10410 * value.h (value_available_contents_eq): Declare.
10411 * value.c (find_first_range_overlap): New function.
10412 (value_available_contents_eq): New function.
10413 * valprint.c (val_print_array_elements): Use
10414 value_available_contents_eq.
10415 * ada-valprint.c (val_print_packed_array_elements): Use
10416 value_available_contents_eq.
10417 * jv-valprint.c (java_value_print): Use
10418 value_available_contents_eq.
10419
10420 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10421
10422 * target.c (target_read_live_memory): New function.
10423 (memory_xfer_live_readonly_partial): New.
10424 (memory_xfer_partial): If reading from a traceframe, fallback to
10425 reading unavailable read-only memory from read-only regions of
10426 live target memory.
10427 * tracepoint.c (disconnect_tracing): Adjust.
10428 (set_current_traceframe): New, factored out from
10429 set_traceframe_number.
10430 (set_traceframe_number): Reimplement to only change the traceframe
10431 number on the GDB side.
10432 (do_restore_current_traceframe_cleanup): Adjust.
10433 (make_cleanup_restore_traceframe_number): New.
10434 (cur_traceframe_number): New global.
10435 (tfile_open): Set cur_traceframe_number to no traceframe.
10436 (set_tfile_traceframe): New function.
10437 (tfile_trace_find): If looking up a traceframe using any method
10438 other than by number, make sure the current tfile traceframe
10439 matches gdb's current traceframe. Update the current tfile
10440 traceframe if the lookup succeeded.
10441 (tfile_fetch_registers, tfile_xfer_partial)
10442 (tfile_get_trace_state_variable_value): Make sure the remote
10443 traceframe matches gdb's current traceframe.
10444 * remote.c (remote_traceframe_number): New global.
10445 (remote_open_1): Set it to -1.
10446 (set_remote_traceframe): New function.
10447 (remote_fetch_registers, remote_store_registers)
10448 (remote_xfer_memory, remote_xfer_partial)
10449 (remote_get_trace_state_variable_value): Make sure the remote
10450 traceframe matches gdb's current traceframe.
10451 (remote_trace_find): If looking up a traceframe using any method
10452 other than by number, make sure the current remote traceframe
10453 matches gdb's current traceframe. Update the current remote
10454 traceframe if the lookup succeeded.
10455 * infrun.c (fetch_inferior_event): Adjust.
10456 * tracepoint.h (set_current_traceframe): Declare.
10457 (get_traceframe_number, set_traceframe_number): Add describing
10458 comments.
10459
10460 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10461
10462 Mark pieces of values as unavailable if the corresponding memory
10463 is unavailable.
10464
10465 * valops.c: Include tracepoint.h.
10466 (value_fetch_lazy): Use read_value_memory.
10467 (read_value_memory): New.
10468 * value.h (read_value_memory): Declare.
10469 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10470 * exec.c (section_table_available_memory): New function.
10471 * exec.h (section_table_available_memory): Declare.
10472
10473 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10474
10475 * Makefile.in (SFILES): Add memrange.c.
10476 (HFILES_NO_SRCDIR): Add memrange.h.
10477 (COMMON_OBS): Add memrange.o.
10478 * memrange.c: New file.
10479 * memrange.h: New file.
10480 * tracepoint.c: Include memrange.h.
10481 (struct mem_range): Delete.
10482 (mem_range_s): Delete.
10483 (traceframe_available_memory): New function.
10484 * tracepoint.h (traceframe_available_memory): Declare.
10485
10486 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10487
10488 * target.h (struct traceframe_info): Forward declare.
10489 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10490 (struct target_ops) <to_traceframe_info>: New field.
10491 (target_traceframe_info): New.
10492 * target.c (update_current_target): Inherit and default
10493 to_traceframe_info.
10494 * remote.c (PACKET_qXfer_traceframe_info): New.
10495 (remote_protocol_features): Register qXfer:traceframe-info:read.
10496 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10497 (remote_traceframe_info): New.
10498 (init_remote_ops): Install it.
10499 (_initialize_remote): Install "set/show remote traceframe-info"
10500 commands.
10501 * tracepoint.h (parse_traceframe_info): Declare.
10502 * tracepoint.c (struct mem_range): New.
10503 (mem_range_s): New typedef.
10504 (struct traceframe_info): New.
10505 (traceframe_info): New global.
10506 (free_traceframe_info): New function.
10507 (clear_traceframe_info): New function.
10508 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10509 info.
10510 (build_traceframe_info): New function.
10511 (tfile_traceframe_info): New function.
10512 (init_tfile_ops): Install tfile_traceframe_info.
10513 (traceframe_info_start_memory, free_result): New functions.
10514 (memory_attributes, traceframe_info_elements): New globals.
10515 (parse_traceframe_info, get_traceframe_info): New functions.
10516 * features/traceframe-info.dtd: New file.
10517 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10518
10519 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10520
10521 Base support for <unavailable> value contents.
10522
10523 * value.h (value_bytes_available): Declare.
10524 (mark_value_bytes_unavailable): Declare.
10525 * value.c (struct range): New struct.
10526 (range_s): New typedef.
10527 (ranges_overlap): New function.
10528 (range_lessthan): New function.
10529 (ranges_contain_p): New function.
10530 (struct value) <unavailable>: New field.
10531 (value_bytes_available): New function.
10532 (mark_value_bytes_unavailable): New function.
10533 (require_not_optimized_out): Constify parameter.
10534 (require_available): New function.
10535 (value_contents_all, value_contents): Require all bytes be
10536 available.
10537 (value_free): Free `unavailable'.
10538 (value_copy): Copy `unavailable'.
10539 * valprint.h (val_print_unavailable): Declare.
10540 * valprint.c (valprint_check_validity): Rename `offset' parameter
10541 to `embedded_offset'. If printing a scalar, check whether the
10542 value chunk is available.
10543 (val_print_unavailable): New.
10544 (val_print_scalar_formatted): Check whether the value is
10545 available.
10546 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10547 pretty-printing unavailable values.
10548
10549 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10550
10551 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10552 * c-typeprint.c (c_type_print_args): Update the function comment. New
10553 variable param_type, initialize it. Remove const/volatile qualifiers
10554 for language_cplus and !show_artificial. Use param_type.
10555
10556 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10557
10558 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10559 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10560 * symtab.h (struct symtab) <next>: Comment extension.
10561
10562 2011-02-12 Yao Qi <yao@codesourcery.com>
10563
10564 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10565
10566 2011-02-11 Yao Qi <yao@codesourcery.com>
10567
10568 * common/Makefile.in: Add copyright header.
10569
10570 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10571
10572 * infrun.c (proceed): Move switching out and in of tfind mode from
10573 here ...
10574 (fetch_inferior_event): ... to here.
10575
10576 2011-02-11 Yao Qi <yao@codesourcery.com>
10577
10578 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10579 libcommon.a.
10580 * configure.ac: Add common to sub dir.
10581 * configure: Regenerate.
10582
10583 2011-02-11 Yao Qi <yao@codesourcery.com>
10584
10585 Build libcommon.a.
10586
10587 * common/Makefile.in: New.
10588 * common/configure.ac: New.
10589 * common/aclocal.m4: New.
10590 * common/configure: Generate.
10591
10592 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10593
10594 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10595 side of the parenthesis.
10596
10597 Merge from GCC:
10598 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10599 * vec.h (VEC_block_remove): Fix comment.
10600
10601 2011-02-08 Michael Snyder <msnyder@vmware.com>
10602
10603 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10604
10605 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10606
10607 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10608 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10609 psubd and paddd.
10610
10611 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10612
10613 PR 12361.
10614 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10615 phsubsw.
10616 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10617 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10618
10619 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10620
10621 * dwarf2read.c (read_subroutine_type): Set special calling
10622 convention flag for functions compiled by IBM XL C for OpenCL.
10623 * ppc-sysv-tdep.c: Include "dwarf2.h"
10624 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10625 calling convention.
10626 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10627 IBM OpenCL vector types calling convention.
10628 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10629 (ppc_sysv_abi_broken_return_value): Likewise.
10630 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10631 types calling convention.
10632 (ppc64_sysv_abi_return_value): Likewise.
10633 * spu-tdep.c: Include "dwarf2.h"
10634 (spu_return_value): Implement IBM OpenCL vector types calling
10635 convention.
10636
10637 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10638
10639 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10640 correct ABI for AltiVec vector arguments.
10641
10642 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10643
10644 * valprint.c (val_print): Extend comment.
10645 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10646 interface explanation to val_print.
10647 (ada_val_print_array): Adjust comment to current interface.
10648 (print_field_values): Adjust comment to current interface.
10649 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10650 explanation to val_print.
10651 * f-valprint.c (f_val_print): Ditto.
10652 * jv-valprint.c (java_val_print): Ditto.
10653 * m2-valprint.c (m2_val_print): Ditto.
10654 * p-valprint.c (pascal_val_print): Ditto.
10655
10656 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10657
10658 * breakpoint.c (parse_breakpoint_sals): Fix description.
10659
10660 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10661 Oguz Kayral <oguzkayral@gmail.com>
10662
10663 * python/py-inferior.c (python_on_normal_stop): New function.
10664 (python_on_resume): New function.
10665 (python_inferior_exit): New function.
10666 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10667 inferior_exit observers.
10668 * python/py-evtregistry.c: New file.
10669 * python/py-threadevent.c : New file.
10670 * python/py-event.c: New file.
10671 * python/py-evts.c: New file.
10672 * python/py-continueevent.c: New file.
10673 * python/py-bpevent.c: New file.
10674 * python/py-signalevent.c: New file.
10675 * python/py-exetiedevent.c: New file.
10676 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10677 Move struct breakpoint_object from here...
10678 * python/python-internal.h: ... to here.
10679 * python/py-event.h: New file.
10680 * python/py-events.h: New file.
10681 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10682 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10683 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10684 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10685 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10686 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10687 Add build rules for all the above.
10688
10689 2011-02-04 Tom Tromey <tromey@redhat.com>
10690
10691 * dwarf2read.c (dwarf2_section_empty_p): New function.
10692 (dwarf2_read_section): Use dwarf2_section_empty_p.
10693 (dwarf2_section_size): New function.
10694 (dwarf2_get_section_info): Unconditionally read section.
10695 (dwarf2_read_index): Use dwarf2_section_empty_p.
10696 (partial_read_comp_unit_head): Use dwarf2_section_size.
10697 (dwarf2_symbol_mark_computed): Likewise.
10698
10699 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10700
10701 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10702
10703 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10704
10705 * mips-linux-tdep.c: Include xml-syscall.h.
10706 (mips_linux_get_syscall_number): New function.
10707 (mips_linux_init_abi): Add calls to
10708 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10709 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10710 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10711 * syscalls/mips-n32-linux.xml: New file.
10712 * syscalls/mips-n64-linux.xml: New file.
10713 * syscalls/mips-o32-linux.xml: New file.
10714
10715 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10716
10717 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10718 Complain about inverted range entries.
10719 (dwarf2_record_block_ranges): Likewise.
10720
10721 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10722
10723 Fix some typos.
10724 * breakpoint.c (update_watchpoint): Fix name of the
10725 update_global_location_list function.
10726 (print_one_breakpoint): Fix typo.
10727 (_initialize_breakpoint): Remove extra space in hbreak help
10728 string.
10729 * breakpoint.h (struct bp_location) <length>: Fix field
10730 description.
10731
10732 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10733
10734 * regcache.c (registers_changed_ptid): Don't explictly always
10735 clear `current_regcache'. Only clear current_thread_ptid and
10736 current_thread_arch when PTID matches. Only reinit the frame
10737 cache if PTID matches the current inferior_ptid. Move alloca(0)
10738 call to ...
10739 (registers_changed): ... here.
10740
10741 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10742
10743 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10744 starts with __stack_chk_guard as stack guard symbol.
10745
10746 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10747
10748 * disasm.c (compare_lines): Handle the end of sequence markers
10749 within the line table to better support disassembling over
10750 compilation unit boundaries.
10751
10752 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10753
10754 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10755 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10756 implementation even if no symbols are available.
10757 (thumb_analyze_prologue): Update call to skip_prologue_function.
10758 (arm_analyze_prologue): Likewise.
10759
10760 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10761
10762 * arm-tdep.c: Include "observer.h".
10763 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10764 (arm_exidx_data_key): New static variable.
10765 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10766 (struct arm_exidx_data): Likewise.
10767 (arm_exidx_data_free): New function.
10768 (arm_compare_exidx_entries): Likewise.
10769 (arm_obj_section_from_vma): Likewise.
10770 (arm_exidx_new_objfile): Likewise.
10771 (arm_find_exidx_entry): Likewise.
10772 (arm_exidx_fill_cache): Likewise.
10773 (arm_exidx_unwind_sniffer): Likewise.
10774 (arm_exidx_unwind): New global variable.
10775 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10776 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10777 observer. Register arm_exidx_data_key as objfile data.
10778
10779 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10780
10781 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10782 due to accessing uninitialized variable. Fix indentation.
10783
10784 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10785
10786 * c-valprint.c (c_value_print): When doing virtual base pointer
10787 adjustment, create a new value with adjusted contents rather than
10788 changing the contents of the value being printed (and getting it
10789 wrong).
10790
10791 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10792
10793 * xml-support.c (xml_find_attribute): New.
10794 (xinclude_start_include): Use it.
10795 * xml-support.h (xml_find_attribute): Declare.
10796 * memory-map.c (memory_map_start_memory)
10797 (memory_map_start_property): Use xml_find_attribute.
10798 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10799 xml_find_attribute.
10800 * remote.c (start_thread): Use xml_find_attribute.
10801 * solib-target.c (library_list_start_segment)
10802 (library_list_start_section, library_list_start_library)
10803 (library_list_start_list): Use xml_find_attribute.
10804 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10805 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10806 (tdesc_start_field): Use xml_find_attribute.
10807
10808 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10809
10810 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10811 (BUILD_OCL_VTYPES): Update.
10812
10813 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10814
10815 * configure.ac: Work around non-GNU sed limitation when computing
10816 python version number.
10817 * configure: Regenerate.
10818
10819 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10820
10821 Fix debug printing of TYPE_INSTANCE.
10822 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10823 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10824
10825 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10826
10827 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10828 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10829 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10830 * ada-operator.inc: Rename the file to ...
10831 * ada-operator.def: ... here, wrap all the entries by macro OP.
10832 * expprint.c (op_name_standard): Remove all the entries. Include
10833 "std-operator.def" instead.
10834 * expression.h (enum exp_opcode): Include "std-operator.def" and
10835 "ada-operator.def". Move all the entries ...
10836 * std-operator.def: ... here, wrap all the entries by macro OP.
10837
10838 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10839
10840 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10841 * breakpoint.c (remove_jit_event_breakpoints): New function.
10842 * jit.c (jit_descriptor_addr): Delete.
10843 (registering_code): Delete.
10844 (clear_int): Delete.
10845 (jit_inferior_data): New variable.
10846 (struct jit_inferior_data): New type.
10847 (get_jit_inferior_data): New function.
10848 (jit_inferior_data_cleanup): New function.
10849 (jit_read_descriptor): Adjust.
10850 (jit_register_code): Adjust.
10851 (jit_breakpoint_re_set_internal): New function; move code here ...
10852 (jit_inferior_init): ... from here.
10853 (jit_breakpoint_re_set): Adjust.
10854 (jit_reset_inferior_data_and_breakpoints): New function.
10855 (jit_inferior_created_observer): Adjust.
10856 (jit_inferior_exit_hook): Adjust.
10857 (jit_executable_changed_observer): New function.
10858 (jit_event_handler): Adjust.
10859 (_initialize_jit): Adjust.
10860
10861 2011-01-31 Michael Snyder <msnyder@vmware.com>
10862
10863 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10864 line.
10865
10866 2011-01-31 Tom Tromey <tromey@redhat.com>
10867
10868 PR python/12216:
10869 * python/python.c (execute_gdb_command): Call
10870 prevent_dont_repeat.
10871 * top.c (suppress_dont_repeat): New global.
10872 (dont_repeat): Use it.
10873 (prevent_dont_repeat): New function.
10874 * command.h (prevent_dont_repeat): Declare.
10875
10876 2011-01-31 Tom Tromey <tromey@redhat.com>
10877
10878 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10879 * python/py-breakpoint.c (bppy_set_silent): Use
10880 breakpoint_set_silent.
10881 (bppy_set_thread): Use breakpoint_set_thread.
10882 (bppy_set_task): Use breakpoint_set_task.
10883 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10884 (breakpoint_set_task): Declare.
10885 (make_breakpoint_silent): Remove.
10886 * breakpoint.c (breakpoint_set_silent): New function.
10887 (breakpoint_set_thread): Likewise.
10888 (breakpoint_set_task): Likewise.
10889 (make_breakpoint_silent): Remove.
10890
10891 2011-01-31 Tom Tromey <tromey@redhat.com>
10892
10893 * breakpoint.h (user_breakpoint_p): Declare.
10894 * breakpoint.c (user_breakpoint_p): New function.
10895 (breakpoint_1): Use it.
10896 (save_breakpoints): Likewise.
10897
10898 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10899
10900 * configure.ac: Add handling of Python distribution on Windows.
10901 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10902 sysconfig variables are not defined, then do not use them.
10903 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10904 instead. On Windows, return all paths using forward-slashes
10905 rather than backslashes.
10906
10907 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10908
10909 * configure.ac: Remove fallback behavior for building
10910 against Python. Remove tweaking of Python include path.
10911 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10912 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10913 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10914 Always restore CPPFLAGS and LIBS after linking test.
10915 * configure: Regenerated.
10916 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10917 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10918 * python/python-internal.h: Adjust includes of Python .h files.
10919
10920 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10921
10922 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10923 in error message.
10924
10925 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10926
10927 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10928 value test.
10929
10930 2011-01-31 Yao Qi <yao@codesourcery.com>
10931
10932 * arm-linux-nat.c: Update calls to regcache_register_status
10933 instead of regcache_valid_p.
10934 * aix-thread.c: Likewise.
10935 * i386gnu-nat.c: Likewise.
10936
10937 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10938
10939 Fix crash.
10940 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10941 touching TYPE_FIELD_ARTIFICIAL.
10942
10943 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10944
10945 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10946 Committers.
10947
10948 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10949
10950 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10951 selected, don't try iterating over the traceframe's blocks.
10952 (tfile_has_stack): If there's no traceframe selected, then there's
10953 no stack.
10954 (tfile_has_registers): If there's no traceframe selected, then
10955 there's no registers.
10956
10957 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10958
10959 * target.c (memory_xfer_partial): No need to restore shadows if we
10960 haven't read anything.
10961
10962 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10963
10964 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10965 and val_print_scalar_formatted.
10966
10967 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10968
10969 * tracepoint.c (tfile_read): New.
10970 (tfile_open): Use it.
10971 (tfile_get_traceframe_address): Use it.
10972 (tfile_trace_find): Use it.
10973 (walk_blocks_callback_func): New typedef.
10974 (match_blocktype): New function.
10975 (traceframe_walk_blocks): New function.
10976 (traceframe_find_block_type): New function.
10977 (tfile_fetch_registers, tfile_xfer_partial)
10978 (tfile_get_trace_state_variable_value): Use
10979 traceframe_find_block_type and tfile_read.
10980
10981 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10982
10983 * remote-mips.c: Add internationalization mark ups. Remove
10984 trailing \n from already marked up strings.
10985
10986 2011-01-26 Tom Tromey <tromey@redhat.com>
10987
10988 * python/py-prettyprint.c (print_string_repr): Clear
10989 'addressprint' option when calling val_print_string.
10990 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10991 option when calling val_print_string.
10992
10993 2011-01-26 Tom Tromey <tromey@redhat.com>
10994
10995 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10996 GDB_PY_LL_ARG.
10997 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10998 macros.
10999 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11000 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11001 (gdb_py_long_as_ulongest): New defines.
11002 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11003 (gdb_py_int_as_long): Declare.
11004 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11005 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11006 (valpy_long): Add comment.
11007 * python/py-utils.c (get_addr_from_python): Use
11008 gdb_py_long_as_ulongest. Handle overflow properly.
11009 (gdb_py_object_from_longest): New function.
11010 (gdb_py_object_from_ulongest): Likewise.
11011 (gdb_py_int_as_long): Likewise.
11012 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11013 * python/py-symtab.c (salpy_get_pc): Use
11014 gdb_py_long_from_ulongest.
11015 (salpy_get_line): Use PyInt_FromLong.
11016 * python/py-param.c (set_parameter_value): Use
11017 gdb_py_int_as_long.
11018 * python/py-lazy-string.c (stpy_get_address): Use
11019 gdb_py_long_from_ulongest.
11020 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11021 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11022 * python/py-breakpoint.c (bppy_set_thread): Use
11023 gdb_py_int_as_long.
11024 (bppy_set_task): Likewise.
11025 (bppy_set_ignore_count): Likewise.
11026 (bppy_set_hit_count): Likewise.
11027 * python/py-block.c (blpy_get_start): Use
11028 gdb_py_object_from_ulongest.
11029 (blpy_get_end): Likewise.
11030 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11031
11032 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11033
11034 PR/symtab 11766:
11035 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11036 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11037 equality test for objfile, initialize addr_low if needed.
11038
11039 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11040
11041 * tui/tui-regs.c (tui_register_format): Remove dead code.
11042
11043 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11044
11045 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11046 instead of print_scalar_formatted.
11047 (print_scalar_formatted): Don't handle 's' format strings here,
11048 and add an assertion that we never see such format here.
11049 * valprint.h (val_print_scalar_formatted): Declare.
11050 * valprint.c (val_print_scalar_formatted): New.
11051 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11052 instead of print_scalar_formatted.
11053 * jv-valprint.c (java_val_print): Ditto.
11054 * p-valprint.c (pascal_val_print): Ditto.
11055 * ada-valprint.c (ada_val_print_1): Ditto.
11056 * f-valprint.c (f_val_print): Ditto.
11057 * infcmd.c (registers_info): Ditto.
11058 * m2-valprint.c (m2_val_print): Ditto.
11059
11060 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11061
11062 * m2-valprint.c (print_unbounded_array): Pass
11063 value_contents_for_printing rather than value_contents, to
11064 m2_print_array_contents. Also pass in the value.
11065
11066 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11067
11068 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11069 (save_gdb_index_command): Switch to .gdb_index version 4.
11070
11071 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11072
11073 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11074 than frame_register, and always pass a valid value to val_print.
11075
11076 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11077
11078 Centralize printing "<optimized out>".
11079
11080 * valprint.h (val_print_optimized_out): Declare.
11081 * cp-valprint.c (cp_print_value_fields): Use
11082 val_print_optimized_out.
11083 * jv-valprint.c (java_print_value_fields): Ditto.
11084 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11085 * printcmd.c (print_formatted): Ditto.
11086 * valprint.c (valprint_check_validity): Ditto.
11087 (value_check_printable): Ditto.
11088 (val_print_optimized_out): New.
11089
11090 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11091
11092 * infcmd.c (default_print_registers_info): Allocate values so to
11093 never pass a NULL value to val_print.
11094
11095 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11096
11097 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11098 boolean. Make sure to always pass a value that matches the
11099 contents buffer to callees. Preserve `address' for following
11100 iterations.
11101 * value.c (value_contents_for_printing_const): New.
11102 (value_address): Constify value argument.
11103 * value.h (value_contents_for_printing_const): Declare.
11104 (value_address): Constify value argument.
11105
11106 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11107
11108 * regcache.c (struct regcache_descr): Rename
11109 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11110 and sizeof_cooked_register_valid_p to
11111 sizeof_cooked_register_status.
11112 (init_regcache_descr): Adjust.
11113 (struct regcache): Rename register_valid_p field to
11114 register_status.
11115 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11116 (do_cooked_read): Adjust.
11117 (regcache_valid_p): Rename to ...
11118 (regcache_register_status): ... this. Adjust.
11119 (regcache_invalidate): Adjust.
11120 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11121 Adjust.
11122 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11123 as unavailable, not valid.
11124 (regcache_dump): Adjust.
11125 * regcache.h (enum register_status): New.
11126 (regcache_register_status): Declare.
11127 (regcache_invalidate): Delete declaration.
11128 * corelow.c (get_core_registers): Adjust.
11129 * tracepoint.c (tfile_fetch_registers): Adjust.
11130 * trad-frame.c (REG_VALUE): Rename to ...
11131 (TF_REG_VALUE): ... this.
11132 (REG_UNKNOWN): Rename to ...
11133 (TF_REG_UNKNOWN): ... this.
11134 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11135 * mi/mi-main.c (register_changed_p): Adjust.
11136
11137 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11138
11139 * regcache.c (struct regcache_descr): Remove outdated comment.
11140 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11141 overallocate hack.
11142 (regcache_xmalloc): Rename to ...
11143 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11144 Allocate the regcache type accordingly.
11145 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11146 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11147 cooked registers, not raw.
11148 (regcache_dup_no_passthrough): Delete.
11149 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11150 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11151 mention obsolete write_register_bytes.
11152 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11153
11154 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11155
11156 Stop remote_read_bytes from handling partial reads itself.
11157
11158 * remote-fileio.c: Include target.h.
11159 (remote_fileio_write_bytes): Delete.
11160 (remote_fileio_func_open, remote_fileio_func_write)
11161 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11162 target_read_memory.
11163 (remote_fileio_func_stat): Use target_read_memory and
11164 target_write_memory.
11165 (remote_fileio_func_gettimeofday): Use target_write_memory.
11166 (remote_fileio_func_system): Use target_read_memory.
11167 * remote.c (remote_write_bytes): Make it static.
11168 (remote_read_bytes): Don't handle partial reads here.
11169 * remote.h (remote_read_bytes): Delete declaration.
11170
11171 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11172
11173 Simplify XML parsing a bit.
11174
11175 * xml-support.h (gdb_xml_parse_quick): Declare.
11176 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11177 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11178 parameter.
11179 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11180 gdb_xml_create_parser_and_cleanup_1.
11181 (gdb_xml_parse_quick): New.
11182 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11183 * osdata.c (osdata_parse): Ditto.
11184 * remote.c (remote_threads_info): Ditto.
11185 * solib-target.c (solib_target_parse_libraries): Ditto.
11186 * xml-syscall.c (syscall_parse_xml): Ditto.
11187 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11188
11189 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11190
11191 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11192 with remote-mips.o added to gdb_target_obs.
11193 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11194
11195 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11196
11197 * ada-valprint.c (val_print_packed_array_elements): Pass the
11198 correct struct value to val_print.
11199 (ada_val_print_1): Ditto.
11200
11201 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11202
11203 Don't lose embedded_offset in printing routines throughout.
11204
11205 * valprint.h (val_print_array_elements): Change prototype.
11206 * valprint.c (val_print_array_elements): Add `embedded_offset'
11207 parameter, and adjust to pass it down to val_print, while passing
11208 `valaddr' or `address' unmodified. Take embedded_offset into
11209 account when checking repetitions.
11210 * c-valprint.c (c_val_print): Pass embedded_offset to
11211 val_print_array_elements instead of adjusting `valaddr' and
11212 `address'.
11213 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11214 embedded_offset to val_print_array_elements instead of adjusting
11215 `valaddr'.
11216 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11217 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11218 val_print_array_elements and pascal_object_print_value_fields
11219 instead of adjusting `valaddr'.
11220 (pascal_object_print_value_fields): Add `offset' parameter, and
11221 adjust to use it.
11222 (pascal_object_print_value): Add `offset' parameter, and adjust to
11223 use it.
11224 (pascal_object_print_static_field): Use
11225 value_contents_for_printing/value_embedded_offset, rather than
11226 value_contents.
11227 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11228 parameter, and adjust to use it. Use
11229 value_contents_for_printing/value_embedded_offset, rather than
11230 value_contents.
11231 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11232 (ada_val_print_array): Add `offset' parameter, and adjust to use
11233 it.
11234 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11235 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11236 Instead work with offsets. Use
11237 value_contents_for_printing/value_embedded_offset, rather than
11238 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11239 and use value_from_pointer to extract a target pointer, rather
11240 than value_from_longest.
11241 (print_variant_part): Add `offset' parameter. Replace
11242 `outer_valaddr' parameter by a new `outer_offset' parameter.
11243 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11244 (ada_value_print): Use
11245 value_contents_for_printing/value_embedded_offset, rather than
11246 value_contents.
11247 (print_record): Add `offset' parameter, and adjust to pass it
11248 down.
11249 (print_field_values): Add `offset' parameter. Replace
11250 `outer_valaddr' parameter by a new `outer_offset' parameter.
11251 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11252 Use value_contents_for_printing/value_embedded_offset, rather than
11253 value_contents.
11254 * d-valprint.c (dynamic_array_type): Use
11255 value_contents_for_printing/value_embedded_offset, rather than
11256 value_contents.
11257 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11258 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11259 (java_print_value_fields): Take `offset' into account. Don't
11260 re-adjust `valaddr'. Instead pass down adjusted offsets.
11261 (java_val_print): Take `embedded_offset' into account. Pass it to
11262 java_print_value_fields.
11263 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11264 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11265 down adjusted offsets.
11266 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11267 (f_val_print): Take `embedded_offset' into account.
11268
11269 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11270
11271 * inflow.c: Include "gdbcmd.h".
11272 (interactive_mode): New static global, moved here from top.c.
11273 (show_interactive_mode): New function, moved here from top.c.
11274 use gdb_has_a_terminal instead of input_from_terminal_p to
11275 determine the current mode.
11276 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11277 setting.
11278 (_initialize_inflow): Add the "set/show interactive-mode"
11279 commands. Moved here from top.c, after having adjusted slightly
11280 the help text.
11281 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11282 to inflow.c.
11283 (input_from_terminal_p): Remove handling of "interactive-mode"
11284 setting, moved to infow.c.
11285 (init_main): Remove creation of the "set/show interactive-mode"
11286 commands, moved to inflow.c.
11287
11288 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11289
11290 * NEWS: Add entry for native ia64-hpux support.
11291
11292 2011-01-19 Tom Tromey <tromey@redhat.com>
11293
11294 PR mi/8618:
11295 * thread.c (free_thread): Free 'name'.
11296 (print_thread_info): Emit thread name. Change CLI output.
11297 (thread_name_command): New function.
11298 (do_captured_thread_select): Emit newline.
11299 (_initialize_thread): Register 'thread name' command.
11300 * target.h (struct target_ops) <to_thread_name>: New field.
11301 (target_thread_name): New macro.
11302 * target.c (update_current_target): Handle to_thread_name.
11303 * python/py-infthread.c (thpy_get_name): New function.
11304 (thpy_set_name): Likewise.
11305 (thread_object_getset): Add "name".
11306 * linux-nat.c (linux_nat_thread_name): New function.
11307 (linux_nat_add_target): Set to_thread_name.
11308 * gdbthread.h (struct thread_info) <name>: New field.
11309
11310 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11311
11312 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11313 (ada_val_print_1): Likewise.
11314
11315 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11316
11317 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11318 upper limit address is not greater than the function end address
11319 when the upper limit could not be computed using the debugging
11320 info.
11321
11322 2011-01-17 Tom Tromey <tromey@redhat.com>
11323
11324 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11325 get_regcomp_error.
11326 * utils.c: Include gdb_regex.h.
11327 (do_regfree_cleanup): New function.
11328 (make_regfree_cleanup): Likewise.
11329 (get_regcomp_error): Likewise.
11330 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11331
11332 2011-01-17 Tom Tromey <tromey@redhat.com>
11333
11334 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11335 re_compile_fastmap.
11336
11337 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11338
11339 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11340 for internal variables.
11341 (last_was_structop): New static variable.
11342 (COMPLETE): New token.
11343 (field_exp): New rule to group all '.' suffix handling.
11344 Add mark_struct_expression calls when approriate to be able
11345 to correctly find fields for completion.
11346 (yylex): Adapt to handle field completion and set INTVAR when
11347 required.
11348
11349 2011-01-14 Yao Qi <yao@codesourcery.com>
11350
11351 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11352 save_reggroup, restore_reggroup and all_reggroup.
11353
11354 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11355
11356 * ada-valprint. (ada_printchar): Use the correct type length
11357 in call to ada_emit_char.
11358 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11359
11360 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11361
11362 * solib-som.h (hpux_major_release): Declare variable here.
11363 * solib-som.c: Remove <sys/utsname.h> header.
11364 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11365 (hpux_major_release): Make global, change default value to
11366 DEFAULT_HPUX_MAJOR_RELEASE.
11367 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11368 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11369 Add "solib-som.h" header.
11370 (set_hpux_major_release): New function.
11371 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11372
11373 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11374
11375 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11376
11377 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11378
11379 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11380 new-line at end of warning message.
11381 (ia64_hpux_store_register): Remove trailing new-line at end of
11382 error message.
11383 * ia64-hpux-tdep.c: Rephrase comment.
11384 * solib-ia64-hpux.c (struct dld_info): Change type of field
11385 dld_flags from "long long" to ULONGEST.
11386
11387 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11388
11389 * target.h (deprecated_child_ops): Delete declaration.
11390 * target.c (deprecated_child_ops): Delete definition.
11391
11392 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11393
11394 * Makefile.in (hpux-thread.o): Delete rule.
11395 * configure.ac: Don't check for HPUX DCE threads support.
11396 * configure, config.in: Regenerate.
11397 * hppa-hpux-nat.c (child_suppress_run): Delete.
11398 (hppa_hpux_child_can_run): Delete.
11399 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11400 * hpux-thread.c: Delete.
11401
11402 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11403
11404 * hpux-thread.c (hpux_pid_to_str): Delete.
11405
11406 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11407
11408 * ada-valprint.c (ada_emit_char): Remove strange code.
11409 Check that c is <= UCHAR_MAX before passing it to isascii.
11410 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11411
11412 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11413
11414 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11415 to the case where instream is stdin.
11416
11417 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11418
11419 * ia64-tdep.h (struct regcache): Forward declare.
11420 (struct ia64_infcall_ops): New struct type.
11421 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11422 and "infcall_ops".
11423 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11424 Renames ia64_find_global_pointer.
11425 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11426 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11427 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11428 methods.
11429 (ia64_infcall_ops): New static global constant.
11430 (ia64_gdbarch_init): Set tdep->infcall_ops.
11431 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11432 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11433 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11434 (ia64_hpux_dummy_code): New static global constant.
11435 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11436 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11437 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11438 New function.
11439 (ia64_hpux_infcall_ops): New static global constant.
11440 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11441 for inferior function calls to work properly on ia64-hpux.
11442
11443 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11444
11445 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11446 * ia64-tdep.h (struct frame_info): forward declaration.
11447 (struct gdbarch_tdep): Add field size_of_register_frame.
11448 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11449 to determine the size of the register frame.
11450 (ia64_size_of_register_frame): New function.
11451 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11452 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11453 (IA64_HPUX_UREG_REASON): New macro.
11454 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11455 New functions.
11456 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11457 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11458 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11459 objects.
11460
11461 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11462
11463 Add support for ia64-hpux.
11464 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11465 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11466
11467 * configure.host: Add handling for ia64-hpux hosts. Add associated
11468 floatformats.
11469 * configure.tgt: Add handling for ia64-hpux targets.
11470 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11471 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11472 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11473
11474 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11475
11476 [ttrace] Compute thread list immediately after attach.
11477 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11478 New subprogram.
11479 (inf_ttrace_attach): Use it.
11480
11481 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11482
11483 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11484 if we could not determine the frame's function address. Instead,
11485 use the frame's PC, and then continue.
11486
11487 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11488
11489 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11490 not already defined.
11491
11492 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11493
11494 * ia64-tdep.c (ia64_struct_type_p): New function.
11495 (ia64_extract_return_value): Handle integral values that are
11496 less than 8 bytes long.
11497 (ia64_push_dummy_call): Likewise.
11498
11499 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11500
11501 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11502 floatformat_ia64_ext.
11503 (floatformat_ia64_ext_big): New static const.
11504 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11505
11506 2011-01-12 Tom Tromey <tromey@redhat.com>
11507
11508 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11509 messages.
11510 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11511 (mi_cmd_thread_list_ids): Likewise.
11512 (mi_cmd_data_list_changed_registers): Likewise.
11513 (mi_cmd_data_list_register_values): Likewise.
11514 (mi_cmd_data_write_register_values): Likewise.
11515 (mi_cmd_data_evaluate_expression): Likewise.
11516 (mi_cmd_data_read_memory): Likewise.
11517 (mi_cmd_data_read_memory_bytes): Likewise.
11518 (mi_cmd_data_write_memory): Likewise.
11519 (mi_cmd_enable_timings): Likewise.
11520 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11521 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11522 (mi_cmd_var_delete): Likewise.
11523 (mi_cmd_var_set_format): Likewise.
11524 (mi_cmd_var_show_format): Likewise.
11525 (mi_cmd_var_info_num_children): Likewise.
11526 (mi_cmd_var_list_children): Likewise.
11527 (mi_cmd_var_info_type): Likewise.
11528 (mi_cmd_var_info_expression): Likewise.
11529 (mi_cmd_var_show_attributes): Likewise.
11530 (mi_cmd_var_assign): Likewise.
11531 (mi_cmd_var_update): Likewise.
11532 (mi_cmd_enable_pretty_printing): Likewise.
11533 (mi_cmd_var_set_update_range): Likewise.
11534 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11535 messages.
11536 (mi_cmd_target_file_put): Likewise.
11537 (mi_cmd_target_file_delete): Likewise.
11538 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11539 messages.
11540 (mi_cmd_stack_info_depth): Likewise.
11541 (mi_cmd_stack_list_locals): Likewise.
11542 (mi_cmd_stack_list_args): Likewise.
11543 (mi_cmd_stack_select_frame): Likewise.
11544 (mi_cmd_stack_select_frame): Likewise.
11545 (mi_cmd_stack_info_frame): Likewise.
11546 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11547 messages.
11548 (mi_cmd_file_list_exec_source_files): Likewise.
11549 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11550 (mi_cmd_env_cd): Likewise.
11551 (mi_cmd_env_path): Likewise.
11552 (mi_cmd_env_dir): Likewise.
11553 (mi_cmd_inferior_tty_show): Likewise.
11554 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11555 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11556 (mi_cmd_break_watch): Likewise.
11557
11558 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11559
11560 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11561 (ppc_linux_insert_hw_breakpoint): Likewise.
11562 (ppc_linux_remove_hw_breakpoint): Likewise.
11563 (ppc_linux_insert_watchpoint): Likewise.
11564
11565 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11566 Jan Kratochvil <jan.kratochvil@redhat.com>
11567
11568 PR fortran/11104 and DWARF unbound arrays detection.
11569 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11570 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11571 unspecified upper bound.
11572 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11573 variables array_size_array, tmp_type and offset_item. New variable
11574 array. Remove call to f77_get_upperbound. New variables array_type
11575 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11576 the final call to deprecated_set_value_type.
11577
11578 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11579
11580 Make value allocations more lazy.
11581 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11582 instead of allocate_value and set_value_lazy when possible.
11583 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11584 instead of allocate_value and set_value_lazy.
11585 * findvar.c (value_of_register_lazy): Likewise.
11586 (read_var_value): Remove V preallocation, call just check_typedef in
11587 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11588 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11589 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11590 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11591 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11592 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11593 the end, remove set_value_lazy there.
11594 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11595 instead of allocate_value and set_value_lazy when possible.
11596 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11597 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11598 of allocate_value and set_value_lazy.
11599 (value_from_contents_and_address): Use allocate_value_lazy instead of
11600 allocate_value and set_value_lazy when possible.
11601
11602 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11603
11604 * disasm.c (dump_insns): Support dumping opcodes for MI.
11605 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11606 dumping of instruction opcodes.
11607
11608 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11609
11610 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11611 appropiately.
11612
11613 2011-01-11 Tom Tromey <tromey@redhat.com>
11614
11615 * thread.c (do_captured_thread_select): Emit newline before
11616 printing frame.
11617
11618 2011-01-11 Michael Snyder <msnyder@vmware.com>
11619
11620 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11621 * score-tdep.c: Ditto.
11622 * score-tdep.h: Ditto.
11623 * ser-base.c: Ditto.
11624 * ser-go32.c: Ditto.
11625 * serial.c: Ditto.
11626 * serial.h: Ditto.
11627 * ser-mingw.c: Ditto.
11628 * ser-pipe.c: Ditto.
11629 * ser-tcp.c: Ditto.
11630 * ser-unix.c: Ditto.
11631 * sh64-tdep.c: Ditto.
11632 * shnbsd-nat.c: Ditto.
11633 * sh-tdep.c: Ditto.
11634 * sh-tdep.h: Ditto.
11635 * solib.c: Ditto.
11636 * solib-darwin.c: Ditto.
11637 * solib-frv.c: Ditto.
11638 * solib.h: Ditto.
11639 * solib-irix.c: Ditto.
11640 * solib-osf.c: Ditto.
11641 * solib-pa64.c: Ditto.
11642 * solib-som.c: Ditto.
11643 * solib-spu.c: Ditto.
11644 * solib-sunos.c: Ditto.
11645 * solib-svr4.c: Ditto.
11646 * solist.h: Ditto.
11647 * sol-thread.c: Ditto.
11648 * somread.c: Ditto.
11649 * source.c: Ditto.
11650 * source.h: Ditto.
11651 * sparc64-linux-tdep.c: Ditto.
11652 * sparc64-tdep.c: Ditto.
11653 * sparc-linux-nat.c: Ditto.
11654 * sparc-linux-tdep.c: Ditto.
11655 * sparc-sol2-nat.c: Ditto.
11656 * sparc-sol2-tdep.c: Ditto.
11657 * sparc-tdep.c: Ditto.
11658 * sparc-tdep.h: Ditto.
11659 * spu-tdep.c: Ditto.
11660 * stabsread.c: Ditto.
11661 * stabsread.h: Ditto.
11662 * stack.c: Ditto.
11663 * symfile.c: Ditto.
11664 * symfile.h: Ditto.
11665 * symmisc.c: Ditto.
11666 * symtab.c: Ditto.
11667 * symtab.h: Ditto.
11668 * target.c: Ditto.
11669 * target-descriptions.c: Ditto.
11670 * target-descriptions.h: Ditto.
11671 * target.h: Ditto.
11672 * target-memory.c: Ditto.
11673 * terminal.h: Ditto.
11674 * thread.c: Ditto.
11675 * top.c: Ditto.
11676 * tracepoint.c: Ditto.
11677 * tracepoint.h: Ditto.
11678 * trad-frame.h: Ditto.
11679 * typeprint.c: Ditto.
11680
11681 2011-01-11 Michael Snyder <msnyder@vmware.com>
11682
11683 * ui-file.c: Comment cleanup, mostly periods and spaces.
11684 * ui-file.h: Ditto.
11685 * ui-out.c: Ditto.
11686 * ui-out.h: Ditto.
11687 * utils.c: Ditto.
11688 * v850-tdep.c: Ditto.
11689 * valarith.c: Ditto.
11690 * valops.c: Ditto.
11691 * valprint.c: Ditto.
11692 * valprint.h: Ditto.
11693 * value.c: Ditto.
11694 * value.h: Ditto.
11695 * varobj.c: Ditto.
11696 * varobj.h: Ditto.
11697 * vax-tdep.c: Ditto.
11698 * vec.c: Ditto.
11699 * vec.h: Ditto.
11700 * version.h: Ditto.
11701 * windows-nat.c: Ditto.
11702 * windows-tdep.c: Ditto.
11703 * xcoffread.c: Ditto.
11704 * xcoffsolib.c: Ditto.
11705 * xml-support.c: Ditto.
11706 * xstormy16-tdep.c: Ditto.
11707 * xtensa-tdep.c: Ditto.
11708 * xtensa-tdep.h: Ditto.
11709
11710 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11711
11712 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11713 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11714
11715 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11716 Thiago Jung Bauermann <bauerman@br.ibm.com>
11717
11718 Implement support for PowerPC BookE ranged watchpoints.
11719 * breakpoint.h
11720 (struct breakpoint_ops) <resources_needed>: New method.
11721 Initialize to NULL in all existing breakpoint_ops instances.
11722 (struct breakpoint) <exact>: New field.
11723 (target_exact_watchpoints): Declare external global.
11724 * breakpoint.c (target_exact_watchpoints): New global flag.
11725 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11726 b->enable_state to bp_enabled before calling
11727 hw_watchpoint_used_count.
11728 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11729 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11730 if available.
11731 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11732 if the watchpoint is exact.
11733 (resources_needed_watchpoint): New function.
11734 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11735 (watch_command_1): Set b->exact if the user asked for an exact
11736 watchpoint and one can be set.
11737 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11738 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11739 the user asks for an exact watchpoint and one can be set. Return
11740 number of needed debug registers to watch the expression.
11741 * gdbtypes.c (is_scalar_type): New function, based on
11742 valprint.c:scalar_type_p.
11743 (is_scalar_type_recursive): New function.
11744 * gdbtypes.h (is_scalar_type_recursive): Declare.
11745 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11746 handle regions when ranged watchpoints are available.
11747 (create_watchpoint_request): New function.
11748 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11749 create_watchpoint_request.
11750 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11751 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11752 `set powerpc' and `show powerpc' commands.
11753 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11754 Mention documentation comment in the target macro.
11755 (target_region_ok_for_hw_watchpoint): Document return value.
11756
11757 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11758
11759 * breakpoint.c (update_watchpoint): Decide on using a software or
11760 hardware watchpoint after the bp_locations are created.
11761
11762 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11763
11764 Convert hardware watchpoints to use breakpoint_ops.
11765 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11766 <insert_location>: ... this. Return int instead of void.
11767 Accept pointer to struct bp_location instead of pointer to
11768 struct breakpoint. Adapt all implementations.
11769 (breakpoint_ops) <remove>: Rename to...
11770 <remove_location>: ... this. Accept pointer to struct bp_location
11771 instead of pointer to struct breakpoint. Adapt all implementations.
11772 * breakpoint.c (insert_catchpoint): Delete function.
11773 (insert_bp_location): Call the watchpoint or catchpoint's
11774 breakpoint_ops.insert method.
11775 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11776 breakpoint_ops.remove method.
11777 (insert_watchpoint, remove_watchpoint): New functions.
11778 (watchpoint_breakpoint_ops): New structure.
11779 (watch_command_1): Initialize the OPS field.
11780 * inf-child.c (inf_child_insert_fork_catchpoint)
11781 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11782 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11783 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11784 Delete functions.
11785 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11786 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11787 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11788 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11789 * target.c (update_current_target): Change default implementation of
11790 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11791 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11792 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11793 to_set_syscall_catchpoint to return_one.
11794 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11795 (debug_to_insert_exec_catchpoint): Report return value.
11796 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11797 (to_insert_exec_catchpoint): Change declaration to return int instead
11798 of void.
11799
11800 2011-01-11 Michael Snyder <msnyder@vmware.com>
11801
11802 * arm-tdep.c: Internationalization.
11803 * c-lang.c: Ditto.
11804 * charset.c: Ditto.
11805 * fork-child.c: Ditto.
11806 * nto-procfs.c: Ditto.
11807 * ppc-sysv-tdep.c: Ditto.
11808 * procfs.c: Ditto.
11809 * remote-mips.c: Ditto.
11810 * remote.c: Ditto.
11811 * rs6000-nat.c: Ditto.
11812 * rs6000-tdep.c: Ditto.
11813 * target.c: Ditto.
11814 * valops.c: Ditto.
11815 * value.c: Ditto.
11816 * xml-support.c: Ditto.
11817 * mi/mi-cmd-break.c: Ditto.
11818 * mi/mi-cmd-var.c: Ditto.
11819 * mi/mi-interp.c: Ditto.
11820 * mi/mi-main.c: Ditto.
11821
11822 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11823
11824 * remote-sim.c (gdbsim_store_register): Update API to
11825 sim_store_register to check more error conditions.
11826
11827 2011-01-10 Michael Snyder <msnyder@vmware.com>
11828
11829 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11830 * nto-tdep.c: Ditto.
11831 * nto-tdep.h: Ditto.
11832 * objc-exp.y: Ditto.
11833 * objc-lang.c: Ditto.
11834 * objfiles.c: Ditto.
11835 * objfiles.h: Ditto.
11836 * observer.c: Ditto.
11837 * opencl-lang.c: Ditto.
11838 * osabi.c: Ditto.
11839 * parse.c: Ditto.
11840 * parser-defs.h: Ditto.
11841 * p-exp.y: Ditto.
11842 * p-lang.c: Ditto.
11843 * posix-hdep.c: Ditto.
11844 * ppcbug-rom.c: Ditto.
11845 * ppc-linux-nat.c: Ditto.
11846 * ppc-linux-tdep.c: Ditto.
11847 * ppc-linux-tdep.h: Ditto.
11848 * ppcnbsd-tdep.c: Ditto.
11849 * ppcobsd-tdep.c: Ditto.
11850 * ppcobsd-tdep.h: Ditto.
11851 * ppc-sysv-tdep.c: Ditto.
11852 * ppc-tdep.h: Ditto.
11853 * printcmd.c: Ditto.
11854 * proc-abi.c: Ditto.
11855 * proc-flags.c: Ditto.
11856 * procfs.c: Ditto.
11857 * proc-utils.h: Ditto.
11858 * progspace.h: Ditto.
11859 * prologue-value.c: Ditto.
11860 * prologue-value.h: Ditto.
11861 * psympriv.h: Ditto.
11862 * psymtab.c: Ditto.
11863 * p-typeprint.c: Ditto.
11864 * p-valprint.c: Ditto.
11865 * ravenscar-sparc-thread.c: Ditto.
11866 * ravenscar-thread.c: Ditto.
11867 * ravenscar-thread.h: Ditto.
11868 * record.c: Ditto.
11869 * regcache.c: Ditto.
11870 * regcache.h: Ditto.
11871 * remote.c: Ditto.
11872 * remote-fileio.c: Ditto.
11873 * remote-fileio.h: Ditto.
11874 * remote.h: Ditto.
11875 * remote-m32r-sdi.c: Ditto.
11876 * remote-mips.c: Ditto.
11877 * remote-sim.c: Ditto.
11878 * rs6000-aix-tdep.c: Ditto.
11879 * rs6000-nat.c: Ditto.
11880 * rs6000-tdep.c: Ditto.
11881
11882 2011-01-10 Michael Snyder <msnyder@vmware.com>
11883
11884 * charset.c (validate): Internationalization.
11885 * coffread.c (read_one_sym): Ditto.
11886 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11887 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11888 * inflow.c (new_tty): Ditto.
11889 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11890 * m32c-tdep.c (m32c_return_value): Ditto.
11891 * mep-tdep.c (mep_store_return_value): Ditto.
11892 * score-tdep.c (score7_fetch_insn): Ditto.
11893 * ser-mingw.c (pipe_windows_open): Ditto.
11894 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11895 * spu-tdep.c (spu_register_type): Ditto.
11896 * tracepoint.c (trace_find_command): Ditto.
11897 * valarith.c (value_pos): Ditto.
11898
11899 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11900
11901 * ada-valprint.c (printstr): Minor comment reformatting.
11902
11903 2011-01-08 Michael Snyder <msnyder@vmware.com>
11904
11905 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11906 markup.
11907
11908 2011-01-08 Michael Snyder <msnyder@vmware.com>
11909
11910 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11911 * hppa-hpux-tdep.c: Ditto.
11912 * hppa-linux-nat.c: Ditto.
11913 * hppa-linux-tdep.c: Ditto.
11914 * hppanbsd-tdep.c: Ditto.
11915 * hppa-tdep.c: Ditto.
11916 * hppa-tdep.h: Ditto.
11917 * hpux-thread.c: Ditto.
11918 * i386-cygwin-tdep.c: Ditto.
11919 * i386-darwin-nat.c: Ditto.
11920 * i386gnu-nat.c: Ditto.
11921 * i386-linux-nat.c: Ditto.
11922 * i386-linux-tdep.c: Ditto.
11923 * i386-nat.c: Ditto.
11924 * i386-nat.h: Ditto.
11925 * i386nbsd-tdep.c: Ditto.
11926 * i386-sol2-nat.c: Ditto.
11927 * i386-stub.c: Ditto.
11928 * i386-tdep.c: Ditto.
11929 * i386-tdep.h: Ditto.
11930 * i387-tdep.c: Ditto.
11931 * ia64-linux-nat.c: Ditto.
11932 * ia64-linux-tdep.c: Ditto.
11933 * ia64-tdep.c: Ditto.
11934 * infcall.c: Ditto.
11935 * infcall.h: Ditto.
11936 * infcmd.c: Ditto.
11937 * inferior.c: Ditto.
11938 * inferior.h: Ditto.
11939 * infloop.c: Ditto.
11940 * inflow.c: Ditto.
11941 * infrun.c: Ditto.
11942 * interps.c: Ditto.
11943 * interps.h: Ditto.
11944 * iq2000-tdep.c: Ditto.
11945 * irix5-nat.c: Ditto.
11946 * jit.c: Ditto.
11947 * jit.h: Ditto.
11948 * jv-exp.y: Ditto.
11949 * jv-lang.c: Ditto.
11950 * jv-lang.h: Ditto.
11951 * jv-typeprint.c: Ditto.
11952 * jv-valprint.c: Ditto.
11953 * language.c: Ditto.
11954 * language.h: Ditto.
11955 * linespec.c: Ditto.
11956 * linux-fork.c: Ditto.
11957 * linux-nat.c: Ditto.
11958 * linux-thread-db.c: Ditto.
11959 * lm32-tdep.c: Ditto.
11960
11961 2011-01-08 Michael Snyder <msnyder@vmware.com>
11962
11963 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11964 * m2-lang.c: Ditto.
11965 * m2-typeprint.c: Ditto.
11966 * m2-valprint.c: Ditto.
11967 * m32c-tdep.c: Ditto.
11968 * m32r-linux-nat.c: Ditto.
11969 * m32r-rom.c: Ditto.
11970 * m32r-tdep.c: Ditto.
11971 * m32r-tdep.h: Ditto.
11972 * m68hc11-tdep.c: Ditto.
11973 * m58klinux-nat.c: Ditto.
11974 * m68k-tdep.c: Ditto.
11975 * m88k-tdep.c: Ditto.
11976 * m88k-tdep.h: Ditto.
11977 * machoread.c: Ditto.
11978 * macrocmd.c: Ditto.
11979 * macroexp.c: Ditto.
11980 * macrotab.c: Ditto.
11981 * main.c: Ditto.
11982 * maint.c: Ditto.
11983 * mdebugread.c: Ditto.
11984 * mdebugread.h: Ditto.
11985 * memattr.c: Ditto.
11986 * memattr.h: Ditto.
11987 * memory-map.h: Ditto.
11988 * mep-tdep.c: Ditto.
11989 * microblaze-rom.c: Ditto.
11990 * microblaze-tdep.c: Ditto.
11991 * minsyms.c: Ditto.
11992 * mips-irix-tdep.c: Ditto.
11993 * mips-linux-nat.c: Ditto.
11994 * mips-linux-tdep.c: Ditto.
11995 * mips-linux-tdep.h: Ditto.
11996 * mipsnbsd-nat.c: Ditto.
11997 * mipsnbsd-tdep.c: Ditto.
11998 * mipsread.c: Ditto.
11999 * mips-tdep.c: Ditto.
12000 * mips-tdep.h: Ditto.
12001 * mn10300-linux-tdep.c: Ditto.
12002 * mn10300-tdep.c: Ditto.
12003 * mn10300-tdep.h: Ditto.
12004 * monitor.c: Ditto.
12005 * monitor.h: Ditto.
12006 * moxie-tdep.c: Ditto.
12007 * moxie-tdep.h: Ditto.
12008 * mt-tdep.c: Ditto.
12009
12010 2011-01-08 Mike Frysinger <vapier@gentoo.org>
12011
12012 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12013
12014 2011-01-08 Robert Millan <rmh@gnu.org>
12015
12016 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12017
12018 2011-01-07 Michael Snyder <msnyder@vmware.com>
12019
12020 * charset.c (_initialize_charset): Fix typo in string.
12021
12022 2011-01-07 Michael Snyder <msnyder@vmware.com>
12023
12024 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12025 for i18n.
12026 * tui/tui-layout.c (tui_set_layout_for_display_command):
12027 Split line so that operator goes to beginning of line.
12028 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12029 assignment out of if statement.
12030
12031 2011-01-07 Michael Snyder <msnyder@vmware.com>
12032
12033 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12034 * ada-lang.h: Ditto.
12035 * ada-tasks.c: Ditto.
12036 * ada-valprint.c: Ditto.
12037 * aix-threads.c: Ditto.
12038 * alpha-linux-nat.c: Ditto.
12039 * alpha-linux-tdep.c: Ditto.
12040 * alpha-mdebug-tdep.c: Ditto.
12041 * alpha-nat.c: Ditto.
12042 * alpha-osf1-tdep.c: Ditto.
12043 * alpha-tdep.c: Ditto.
12044 * alphabsd-nat.c: Ditto.
12045 * alphabsd-tdep.c: Ditto.
12046 * amd64-darwin-tdep.c: Ditto.
12047 * amd64-linux-nat.c: Ditto.
12048 * amd64-linux-tdep.c: Ditto.
12049 * amd64-sol2-tdep.c: Ditto.
12050 * amd64-tdep.c: Ditto.
12051 * amd64-fbsd-tdep.c: Ditto.
12052 * amd64-nbsd-tdep.c: Ditto.
12053 * amd64-obsd-tdep.c: Ditto.
12054 * amd64-linux-nat.c: Ditto.
12055 * amd64-linux-tdep.c: Ditto.
12056 * arm-tdep.c: Ditto.
12057 * arm-tdep.h: Ditto.
12058 * armnbsd-nat.c: Ditto.
12059 * avr-tdep.c: Ditto.
12060 * bfin-tdep.c: Ditto.
12061 * bsd-kvm.c: Ditto.
12062 * c-typeprintc: Ditto.
12063 * c-valprint.c: Ditto.
12064 * coff-pe-read.h: Ditto.
12065 * coffreead.c: Ditto.
12066 * cris-tdep.c: Ditto.
12067 * d-lang.c: Ditto.
12068 * darwin-nat-info.c: Ditto.
12069 * darwin-nat.c: Ditto.
12070 * dbug-rom.c: Ditto.
12071 * dbxread.c: Ditto.
12072 * dcache.c: Ditto.
12073 * dcache.h: Ditto.
12074 * dec-thread.c: Ditto.
12075 * defs.h: Ditto.
12076 * demangle.c: Ditto.
12077 * dicos-tdep.c: Ditto.
12078 * dictionary.c: Ditto.
12079 * dictionary.h: Ditto.
12080 * dink32-rom.c: Ditto.
12081 * disasm.c: Ditto.
12082 * doublest.c: Ditto.
12083 * dsrec.c: Ditto.
12084 * dummy-frame.c: Ditto.
12085 * dwarf2-frame.c: Ditto.
12086 * dwarf2expr.c: Ditto.
12087 * dwarf2loc.c: Ditto.
12088 * dwarf2read.c: Ditto.
12089 * elfread.c: Ditto.
12090 * environ.c: Ditto.
12091 * eval.c: Ditto.
12092 * event-top.h: Ditto.
12093 * exceptions.c: Ditto.
12094 * exceptions.h: Ditto.
12095 * exec.c: Ditto.
12096 * expprint.c: Ditto.
12097 * expression.h: Ditto.
12098 * f-exp.y: Ditto.
12099 * f-lang.c: Ditto.
12100 * f-lang.h: Ditto.
12101 * f-typeprint.c: Ditto.
12102 * f-valprint.c: Ditto.
12103 * fbsd-nat.c: Ditto.
12104 * findvar.c: Ditto.
12105 * fork-child.c: Ditto.
12106 * frame.c: Ditto.
12107 * frame.h: Ditto.
12108 * frv-linux-tdep.c: Ditto.
12109 * frv-tdep.c: Ditto.
12110 * gcore.c: Ditto.
12111 * gdb-stabs.h: Ditto.
12112 * gdb_assert.h: Ditto.
12113 * gdb_string.h: Ditto.
12114 * gdb_thread_db.h: Ditto.
12115 * gdb_wait.h: Ditto.
12116 * gdbarch.sh: Ditto.
12117 * gdbcore.h: Ditto.
12118 * gdbthread.h: Ditto.
12119 * gdbtypes.c: Ditto.
12120 * gdbtypes.h: Ditto.
12121 * gnu-nat.c: Ditto.
12122 * gnu-nat.h: Ditto.
12123 * gnu-v2-abi.c: Ditto.
12124 * gnu-v3-abi.c: Ditto.
12125 * go32-nat.c: Ditto.
12126 * gdbarch.c: Regenerate.
12127 * gdbarch.h: Regenerate.
12128
12129 2011-01-07 Michael Snyder <msnyder@vmware.com>
12130
12131 * ax-gdb.c: Adjust some long output strings.
12132 * breakpoint.c: Ditto.
12133 * charset.c: Ditto.
12134 * cp-abi.c: Ditto.
12135 * infcall.c: Ditto.
12136 * infrun.c: Ditto.
12137 * linux-nat.c: Ditto.
12138 * solib-pa64.c: Ditto.
12139 * solib-som.c: Ditto.
12140
12141 2011-01-06 Tom Tromey <tromey@redhat.com>
12142
12143 PR python/12367:
12144 * NEWS: Add item.
12145 * python/python.c (GdbMethods): Add "newest_frame" method.
12146 * python/python-internal.h (gdbpy_newest_frame): Declare.
12147 * python/py-frame.c (gdbpy_newest_frame): New function.
12148
12149 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12150
12151 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12152 * jit.c (jit_debug): New variable.
12153 (show_jit_debug): New function.
12154 (struct target_buffer): Use ULONGEST.
12155 (bfd_open_from_target_memory): Likewise.
12156 (jit_register_code, jit_inferior_init): Add debug output.
12157 (_initialize_jit): Register "debug jit" command.
12158
12159 2011-01-06 Tom Tromey <tromey@redhat.com>
12160
12161 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12162 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12163 and ARCH_FRAME.
12164
12165 2011-01-06 Tom Tromey <tromey@redhat.com>
12166
12167 * python/py-frame.c (frapy_block): Use get_frame_block.
12168
12169 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12170
12171 Do not stop on SIGPRIO signals by default
12172 * infrun.c (_initialize_infrun): Unset signal_stop and
12173 signal_print for TARGET_SIGNAL_PRIO.
12174
12175 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12176
12177 * ada-tasks.c: Fix style violation in comment.
12178
12179 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12180
12181 * linespec.c (decode_compound, find_method): Remove trailing \n
12182 at end of error string.
12183 * solib-irix.c (irix_current_sos): Likewise.
12184 * varobj.c (uninstall_variable): Likewise.
12185
12186 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12187
12188 * copyright.py: New script.
12189 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12190 Launch emacs without exec'ing. Call copyright.py afterwards.
12191
12192 2011-01-05 Michael Snyder <msnyder@vmware.com>
12193
12194 * addrmap.c: Shorten lines of >= 80 columns.
12195 * arch-utils.c: Ditto.
12196 * arch-utils.h: Ditto.
12197 * ax-gdb.c: Ditto.
12198 * ax-general.c: Ditto.
12199 * bcache.c: Ditto.
12200 * blockframe.c: Ditto.
12201 * breakpoint.c: Ditto.
12202 * buildsym.c: Ditto.
12203 * c-lang.c: Ditto.
12204 * c-typeprint.c: Ditto.
12205 * charset.c: Ditto.
12206 * coffread.c: Ditto.
12207 * command.h: Ditto.
12208 * corelow.c: Ditto.
12209 * cp-abi.c: Ditto.
12210 * cp-namespace.c: Ditto.
12211 * cp-support.c: Ditto.
12212 * dbug-rom.c: Ditto.
12213 * dbxread.c: Ditto.
12214 * defs.h: Ditto.
12215 * dfp.c: Ditto.
12216 * dfp.h: Ditto.
12217 * dictionary.c: Ditto.
12218 * disasm.c: Ditto.
12219 * doublest.c: Ditto.
12220 * dwarf2-frame.c: Ditto.
12221 * dwarf2expr.c: Ditto.
12222 * dwarf2loc.c: Ditto.
12223 * dwarf2read.c: Ditto.
12224 * elfread.c: Ditto.
12225 * eval.c: Ditto.
12226 * event-loop.c: Ditto.
12227 * event-loop.h: Ditto.
12228 * exceptions.h: Ditto.
12229 * exec.c: Ditto.
12230 * expprint.c: Ditto.
12231 * expression.h: Ditto.
12232 * f-lang.c: Ditto.
12233 * f-valprint.c: Ditto.
12234 * findcmd.c: Ditto.
12235 * frame-base.c: Ditto.
12236 * frame-unwind.c: Ditto.
12237 * frame-unwind.h: Ditto.
12238 * frame.c: Ditto.
12239 * frame.h: Ditto.
12240 * gcore.c: Ditto.
12241 * gdb-stabs.h: Ditto.
12242 * gdb_assert.h: Ditto.
12243 * gdb_dirent.h: Ditto.
12244 * gdb_obstack.h: Ditto.
12245 * gdbcore.h: Ditto.
12246 * gdbtypes.c: Ditto.
12247 * gdbtypes.h: Ditto.
12248 * inf-ttrace.c: Ditto.
12249 * infcall.c: Ditto.
12250 * infcmd.c: Ditto.
12251 * inflow.c: Ditto.
12252 * infrun.c: Ditto.
12253 * inline-frame.h: Ditto.
12254 * language.c: Ditto.
12255 * language.h: Ditto.
12256 * libunwind-frame.c: Ditto.
12257 * libunwind-frame.h: Ditto.
12258 * linespec.c: Ditto.
12259 * linux-nat.c: Ditto.
12260 * linux-nat.h: Ditto.
12261 * linux-thread-db.c: Ditto.
12262 * machoread.c: Ditto.
12263 * macroexp.c: Ditto.
12264 * macrotab.c: Ditto.
12265 * main.c: Ditto.
12266 * maint.c: Ditto.
12267 * mdebugread.c: Ditto.
12268 * memattr.c: Ditto.
12269 * minsyms.c: Ditto.
12270 * monitor.c: Ditto.
12271 * monitor.h: Ditto.
12272 * objfiles.c: Ditto.
12273 * objfiles.h: Ditto.
12274 * osabi.c: Ditto.
12275 * p-typeprint.c: Ditto.
12276 * p-valprint.c: Ditto.
12277 * parse.c: Ditto.
12278 * printcmd.c: Ditto.
12279 * proc-events.c: Ditto.
12280 * procfs.c: Ditto.
12281 * progspace.c: Ditto.
12282 * progspace.h: Ditto.
12283 * psympriv.h: Ditto.
12284 * psymtab.c: Ditto.
12285 * record.c: Ditto.
12286 * regcache.c: Ditto.
12287 * regcache.h: Ditto.
12288 * remote-fileio.c: Ditto.
12289 * remote.c: Ditto.
12290 * ser-mingw.c: Ditto.
12291 * ser-tcp.c: Ditto.
12292 * ser-unix.c: Ditto.
12293 * serial.c: Ditto.
12294 * serial.h: Ditto.
12295 * solib-frv.c: Ditto.
12296 * solib-irix.c: Ditto.
12297 * solib-osf.c: Ditto.
12298 * solib-pa64.c: Ditto.
12299 * solib-som.c: Ditto.
12300 * solib-sunos.c: Ditto.
12301 * solib-svr4.c: Ditto.
12302 * solib-target.c: Ditto.
12303 * solib.c: Ditto.
12304 * somread.c: Ditto.
12305 * source.c: Ditto.
12306 * stabsread.c: Ditto.
12307 * stabsread.c: Ditto.
12308 * stack.c: Ditto.
12309 * stack.h: Ditto.
12310 * symfile-mem.c: Ditto.
12311 * symfile.c: Ditto.
12312 * symfile.h: Ditto.
12313 * symmisc.c: Ditto.
12314 * symtab.c: Ditto.
12315 * symtab.h: Ditto.
12316 * target-descriptions.c: Ditto.
12317 * target-memory.c: Ditto.
12318 * target.c: Ditto.
12319 * target.h: Ditto.
12320 * terminal.h: Ditto.
12321 * thread.c: Ditto.
12322 * top.c: Ditto.
12323 * tracepoint.c: Ditto.
12324 * tracepoint.h: Ditto.
12325 * ui-file.c: Ditto.
12326 * ui-file.h: Ditto.
12327 * ui-out.h: Ditto.
12328 * user-regs.c: Ditto.
12329 * user-regs.h: Ditto.
12330 * utils.c: Ditto.
12331 * valarith.c: Ditto.
12332 * valops.c: Ditto.
12333 * valprint.c: Ditto.
12334 * valprint.h: Ditto.
12335 * value.c: Ditto.
12336 * varobj.c: Ditto.
12337 * varobj.h: Ditto.
12338 * vec.h: Ditto.
12339 * xcoffread.c: Ditto.
12340 * xcoffsolib.c: Ditto.
12341 * xcoffsolib.h: Ditto.
12342 * xml-syscall.c: Ditto.
12343 * xml-tdesc.c: Ditto.
12344
12345 2011-01-05 Michael Snyder <msnyder@vmware.com>
12346
12347 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12348 * cli/cli-decode.c: Ditto.
12349 * cli/cli-dump.c: Ditto.
12350 * cli/cli-logging.c: Ditto.
12351 * cli/cli-script.c: Ditto.
12352 * cli/cli-setshow.c: Ditto.
12353 * common/signals.c: Ditto.
12354 * mi/mi-cmd-break.c: Ditto.
12355 * mi/mi-cmd-disas.c: Ditto.
12356 * mi/mi-cmd-stack.c: Ditto.
12357 * mi/mi-cmd-var.c: Ditto.
12358 * mi/mi-cmds.c: Ditto.
12359 * mi/mi-common.h: Ditto.
12360 * mi/mi-console.c: Ditto.
12361 * mi/mi-interp.c: Ditto.
12362 * mi/mi-main.c: Ditto.
12363 * osf-share/cma_attr.c: Ditto.
12364 * osf-share/cma_deb_core.h: Ditto.
12365 * osf-share/cma_debug_client.h: Ditto.
12366 * osf-share/cma_handle.h: Ditto.
12367 * osf-share/cma_mutex.h: Ditto.
12368 * osf-share/cma_stack_int.h: Ditto.
12369 * osf-share/cma_tcb_defs.h: Ditto.
12370 * python/py-auto-load.c: Ditto.
12371 * python/py-breakpoint.c: Ditto.
12372 * python/py-cmd.c: Ditto.
12373 * python/py-frame.c: Ditto.
12374 * python/py-objfile.c: Ditto.
12375 * python/py-param.c: Ditto.
12376 * python/py-progspace.c: Ditto.
12377 * python/py-symbol.c: Ditto.
12378 * python/py-value.c: Ditto.
12379 * python/python-internal.h: Ditto.
12380 * python/python.c: Ditto.
12381 * tui/tui-data.c: Ditto.
12382 * tui/tui-disasm.c: Ditto.
12383 * tui/tui-hooks.c: Ditto.
12384 * tui/tui-io.c: Ditto.
12385 * tui/tui-layout.c: Ditto.
12386 * tui/tui-regs.c: Ditto.
12387 * tui/tui-source.c: Ditto.
12388 * tui/tui-stack.c: Ditto.
12389 * tui/tui-win.c: Ditto.
12390 * tui/tui-windata.c: Ditto.
12391 * tui/tui-winsource.c: Ditto.
12392
12393 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12394
12395 * configure.ac, gdb.1: Copyright year update.
12396
12397 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12398
12399 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12400 this_pc_in_block, morestack_msym and morestack_name. Check for
12401 "__morestack" minimal symbol there.
12402
12403 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12404
12405 * symfile.c (find_sym_fns): Add call to dont_repeat.
12406
12407 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12408
12409 Copyright year update in most files (performed by copyright.sh).
12410
12411 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12412
12413 * top.c (print_gdb_version): Update copyright year in version output.
12414
12415 For older changes see ChangeLog-2010.
12416 \f
12417 Local Variables:
12418 mode: change-log
12419 left-margin: 8
12420 fill-column: 74
12421 version-control: never
12422 coding: utf-8
12423 End:
This page took 0.512899 seconds and 5 git commands to generate.