feba95f28fab9264fa0818b33d04f903bbab973e
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
2
3 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
4 `optarg' to `oind' and `oarg', respectively(-Wshadow).
5 (mi_cmd_target_file_put): Ditto.
6 (mi_cmd_target_file_delete): Ditto.
7
8 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
9
10 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
11 `optarg' to `oind' and `oarg', respectively(-Wshadow).
12 (mi_cmd_env_dir): Ditto.
13
14 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
15
16 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
17 `optarg' to `oind' and `oarg', respectively(-Wshadow).
18
19 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
20
21 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
22 `optparg' to `oind' and `oarg', respectively(-Wshadow).
23 (mi_cmd_break_watch): Ditto.
24
25 2011-12-16 Tom Tromey <tromey@redhat.com>
26
27 * linespec.c (collect_symbols): Call maybe_add_address after
28 calling symbol_to_sal.
29 (minsym_found): Call maybe_add_address here.
30 (search_minsyms_for_name): Don't call maybe_add_address.
31
32 2011-12-16 Tom Tromey <tromey@redhat.com>
33
34 * linespec.c (struct collect_info) <objfile>: Remove field.
35 (decode_objc): Update.
36 (find_method): Update.
37 (decode_variable): Update.
38 (struct minsym_and_objfile): New.
39 (struct collect_minsyms): New.
40 (classify_mtype): New function.
41 (compare_msyms): Likewise.
42 (add_minsym): Likewise.
43 (check_minsym): Remove.
44 (search_minsyms_for_name): Sort minsyms and apply only those with
45 top priority.
46
47 2011-12-16 Tom Tromey <tromey@redhat.com>
48
49 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
50
51 2011-12-16 Pedro Alves <pedro@codesourcery.com>
52
53 * inf-loop.c: Include top.h.
54 (inferior_event_handler): Call check_frame_language.
55 * top.c (check_frame_language_change): New, factored out from ...
56 (execute_command): ... this. Use check_frame_language_change.
57 * top.h (check_frame_language_change): Declare.
58
59 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
60
61 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
62 prototypes.
63
64 2011-12-16 Doug Evans <dje@google.com>
65
66 * NEWS: Add entry for stdio gdbserver.
67
68 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
69
70 * python/python.c: Define python_excp_enums.
71 (eval_python_from_control_command): Do not call gdbpy_print_stack.
72 (python_command): Ditto.
73 (gdbpy_print_stack): Rewrite to use new enum constants.
74 (maint_set_python): Remove function.
75 (maint_show_python): Ditto.
76 (_initialize_python): Do not add "maint" commands. Add "set/show
77 python print-stack commands".
78 * NEWS: Update to reflect removal for "maint set/show
79 print-stack"
80
81 2011-12-15 Doug Evans <dje@google.com>
82
83 * exceptions.c (catcher_list_size): New function.
84 (last_message): Delete.
85 (exception_messages, exception_messages_size): New static globals.
86 (throw_it): Use exception_messages array to handle nested calls.
87
88 2011-12-15 Tom Tromey <tromey@redhat.com>
89
90 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
91 do_cleanups call.
92
93 2011-12-14 Doug Evans <dje@google.com>
94
95 * defs.h (wait_to_die_with_timeout): Declare.
96 * utils.c: #include "gdb_wait.h".
97 (sigalrm_handler, wait_to_die_with_timeout): New functions.
98 * ser-pipe.c: Don't #include "gdb_wait.h".
99 (pipe_close): Give child a chance to die on its own after closing
100 its stdin before SIGTERM'ing it.
101
102 2011-12-14 Joel Brobecker <brobecker@adacore.com>
103 Tom Tromey <tromey@redhat.com>
104
105 * ada-lang.c (add_nonlocal_symbols): Initialize data to
106 all zeros. Remove setting of data.arg_sym to NULL.
107
108 2011-12-14 Pedro Alves <pedro@codesourcery.com>
109
110 PR threads/10729
111
112 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
113 pointer.
114 (linux_nat_prepare_to_resume): New global.
115 (lwp_free): New.
116 (purge_lwp_list): Use it.
117 (add_lwp): Call linux_nat_new_thread even on the first LWP.
118 Adjust to interface change.
119 (delete_lwp): Call lwp_free instead of xfree.
120 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
121 (linux_handle_syscall_trap, linux_handle_extended_wait)
122 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
123 linux_nat_prepare_to_resume before resuming.
124 (linux_stop_lwp): New.
125 (linux_nat_set_new_thread): Adjust.
126 (linux_nat_set_prepare_to_resume): New.
127 * linux-nat.h (struct arch_lwp_info): Forward declare.
128 (struct lwp_info) <arch_private>: New field.
129 (linux_stop_lwp): Declare.
130 (linux_nat_set_new_thread): Adjust.
131 (linux_nat_set_prepare_to_resume): New.
132
133 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
134 (struct i386_debug_reg_state): Move to i386-nat.h.
135 (dr_mirror): Comment.
136 (i386_debug_reg_state): New.
137 (i386_update_inferior_debug_regs): Simplify.
138 (i386_stopped_data_address): Use the debug register state from the
139 inferior, not from the local cache.
140 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
141 unset_status fields. New get_addr and get_control fields.
142 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
143 (DR_NADDR, DR_STATUS): New.
144 (struct i386_debug_reg_state): Moved from i386-nat.c.
145
146 * amd64-linux-nat.c (struct arch_lwp_info): New.
147 (amd64_linux_dr): Delete global.
148 (amd64_linux_dr_get_addr): New.
149 (amd64_linux_dr_get_control): New.
150 (amd64_linux_dr_unset_status): Delete.
151 (amd64_linux_dr_set_addr): Reimplement.
152 (amd64_linux_dr_reset_addr): Delete.
153 (update_debug_registers_callback): New.
154 (amd64_linux_dr_set_control): Reimplement.
155 (amd64_linux_dr_set_addr): Reimplement.
156 (amd64_linux_prepare_to_resume): New.
157 (amd64_linux_new_thread): Change parameter to an lwp pointer.
158 Reimplement.
159 (_initialize_amd64_linux_nat): No longer install
160 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
161 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
162 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
163 amd64_linux_prepare_to_resume.
164 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
165 (DR_CONTROL): Delete.
166 (struct arch_lwp_info): New.
167 (i386_linux_dr): Delete global.
168 (i386_linux_dr_set_control): Reimplement.
169 (i386_linux_dr_get_addr): New.
170 (i386_linux_dr_set_addr): Reimplement.
171 (i386_linux_dr_get_control): New.
172 (update_debug_registers_callback): New.
173 (i386_linux_dr_unset_status): Delete.
174 (i386_linux_dr_set_addr): Reimplement.
175 (i386_linux_prepare_to_resume): New.
176 (i386_linux_new_thread): Change parameter to an lwp pointer.
177 Reimplement.
178 (_initialize_i386_linux_nat): No longer install
179 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
180 i386_linux_dr_get_control as i386_dr_low.get_control. Install
181 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
182 i386_linux_prepare_to_resume.
183
184 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
185 lwp pointer. Adjust.
186 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
187 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
188 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
189 * s390-nat.c (s390_fix_watch_points): Likewise.
190
191 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
192 (DR_CONTROL): Delete.
193 (i386_darwin_dr_reset_addr): Delete.
194 (i386_darwin_dr_get_addr): New.
195 (i386_darwin_dr_get_control): New.
196 * go32-nat.c
197 (go32_get_dr7, go32_get_dr): New.
198 (init_go32_ops): No longer install i386_dr_low.reset_addr.
199 Install go32_get_dr7 as i386_dr_low.get_control. Install
200 go32_get_dr as i386_dr_low.get_addr.
201 * i386bsd-nat.c (i386bsd_dr_get): New.
202 (i386bsd_dr_reset_addr): Delete.
203 (i386bsd_dr_get_addr): New.
204 (i386bsd_dr_get_status): Use i386bsd_dr_get.
205 (i386bsd_dr_get_control): New.
206 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
207 (i386bsd_dr_get_addr): New.
208 (i386bsd_dr_get_control): New.
209 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
210 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
211 i386bsd_dr_get_control as i386_dr_low.get_control. Install
212 i386bsd_dr_get_addr as i386_dr_low.get_addr.
213 * windows-nat.c (init_windows_ops): No longer install
214 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
215 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
216 as i386_dr_low.get_addr.
217 (cygwin_get_dr): New.
218 (cygwin_get_dr7): New.
219
220 2011-12-14 Pedro Alves <pedro@codesourcery.com>
221
222 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
223 target_write_raw_memory.
224 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
225 target_write_raw_memory.
226 * microblaze-linux-tdep.c
227 (microblaze_linux_memory_remove_breakpoint): Use
228 target_write_raw_memory.
229 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
230 target_write_raw_memory.
231
232 2011-12-14 Joel Brobecker <brobecker@adacore.com>
233
234 * linespec.c (decode_line_internal): Make static.
235
236 2011-12-14 Yao Qi <yao@codesourcery.com>
237
238 * breakpoint.c (create_breakpoint): Set canonical.addr_string
239 for static tracepoint.
240
241 2011-12-13 Joel Brobecker <brobecker@adacore.com>
242
243 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
244 * version.in: Bump version to 7.4.50.20111213-cvs.
245
246 2011-12-13 Joel Brobecker <brobecker@adacore.com>
247
248 * NEWS: Create a new section for the next release branch.
249 Rename the section of the current branch, now that it has
250 been cut.
251
252 2011-12-11 Joel Brobecker <brobecker@adacore.com>
253
254 * ada-lang.c (ada_exception_support_info_sniffer): Improve
255 error message.
256
257 2011-12-11 Joel Brobecker <brobecker@adacore.com>
258
259 * ada-lang.c (struct ada_inferior_data) [exception_info]:
260 New field.
261 (exception_info): Delete.
262 (ada_exception_support_info_sniffer): Get exception_support_info
263 data from our per-inferior data. Adjust code accordingly.
264 (ada_unhandled_exception_name_addr_from_raise): Likewise.
265 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
266 (ada_executable_changed_observer): Delete.
267 (_initialize_ada_language): Remove call to
268 observer_attach_executable_changed.
269
270 2011-12-11 Joel Brobecker <brobecker@adacore.com>
271
272 * ada-lang.c (ada_has_this_exception_support): Raise an error
273 if we could find the Ada exception hook in the Ada runtime,
274 but no debugging info for that hook.
275
276 2011-12-11 Joel Brobecker <brobecker@adacore.com>
277
278 * ada-lang.c (ada_has_this_exception_support): New function,
279 extracted out of ada_exception_sal and ada_exception_sal.
280 (ada_exception_support_info_sniffer): Simplify by using
281 ada_has_this_exception_support.
282 (ada_exception_sal): Replace unnecessary checks by assertions.
283 Minor simplifications.
284
285 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
286
287 * breakpoint.c (update_global_location_list): Remove nested
288 definition of `b'(-Wshadow).
289
290 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
291
292 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
293 `error_flag'(-Wshadow).
294
295 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
296
297 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
298 `abfd'(-Wshadow).
299
300 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
301
302 * annotate.c (annotate_array_section_begin): Rename `index' to
303 `idx'(-Wshadow).
304
305 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
306
307 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
308 `idx'(-Wshadow).
309
310 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
311
312 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
313 `syscall' to `syscall_number'(-Wshadow).
314
315 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
316
317 * ada-lang.c (remove_extra_symbols): Rename `remove' to
318 `remove_p'(-Wshadow).
319
320 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
321
322 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
323 `ren_sym'(-Wshadow).
324
325 2011-12-10 Doug Evans <dje@google.com>
326
327 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
328 debug_types_section. All uses updated.
329 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
330 to is_debug_types_section.
331
332 * python/py-auto-load.c (source_section_scripts): Call xfree
333 instead of free.
334
335 2011-12-10 Hui Zhu <teawater@gmail.com>
336 Yao Qi <yao@codesourcery.com>
337
338 * tracepoint.c (start_tracing): Clear `inserted' flag.
339
340 2011-12-10 Hui Zhu <teawater@gmail.com>
341
342 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
343
344 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
345
346 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
347 `bpoint'(-Wshadow).
348
349 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
350
351 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
352 `marker' variables to `sal2' and `tpmarker' respectively
353 (-Wshadow).
354
355 2011-12-09 Andrew Pinski <apinski@cavium.com>
356
357 * linespec.c (hash_address_entry): Use iterative_hash_object on each
358 field rather than the struct itself.
359
360 2011-12-09 Tom Tromey <tromey@redhat.com>
361
362 * breakpoint.c (compare_breakpoints): New function.
363 (clear_command): Remove duplicate breakpoints. Properly clean
364 up.
365
366 2011-12-08 Maciej W. Rozycki <macro@mips.com>
367 Maciej W. Rozycki <macro@codesourcery.com>
368
369 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
370 address chunks retrieved from decoded lui/addiu pairs.
371
372 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
373
374 * mips-tdep.c (extended_offset): Correct calculation.
375 (unpack_mips16): Correct bitfield positions used for extraction
376 of the immediate argument; fix sign-extension of same.
377 (extended_mips16_next_pc): Correct B instruction's offset
378 calculation. Correct register decoding of the BEQZ and BNEZ
379 as well as jump-register instructions. Handle compact jumps.
380
381 2011-12-08 Tom Tromey <tromey@redhat.com>
382
383 * objfiles.h (struct objfile): Remove obsolete comment.
384 * objfiles.c (build_objfile_section_table): Remove obsolete
385 comment.
386
387 2011-12-07 Stan Shebs <stan@codesourcery.com>
388
389 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
390 maintainer of the tic6x target.
391
392 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
393
394 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
395 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
396 (arm_deal_with_atomic_sequence_raw): Likewise.
397 (arm_deal_with_atomic_sequence): Likewise.
398 (arm_software_single_step): Call it.
399 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
400
401 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
402
403 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
404 where appropriate.
405 * s390-tdep.h: Likewise.
406
407 2011-12-07 Tristan Gingold <gingold@adacore.com>
408
409 * machoread.c (macho_symtab_read): Do not consider N_OPT as
410 a debugging stab. Improve complaint message.
411
412 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
413
414 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
415 load adjustment if still within the prologue.
416
417 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
418
419 * mips-tdep.c (mips32_next_pc): Fix floating point condition
420 code mask.
421
422 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
423
424 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
425 of BLTZ* and BGEZ* instructions.
426
427 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
428
429 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
430 performed to determine whether an address refers to standard
431 MIPS or MIPS16 code.
432 (mips16_next_pc): Use mips_pc_is_mips16 instead of
433 is_mips16_addr.
434
435 2011-12-06 Pedro Alves <pedro@codesourcery.com>
436
437 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
438 (breakpoint_xfer_memory): ... this. Change prototype. Handle
439 memory writes too.
440 * breakpoint.h (breakpoint_restore_shadows): Delete.
441 (breakpoint_xfer_memory): Declare.
442 * mem-break.c (default_memory_insert_breakpoint)
443 (default_memory_remove_breakpoint): Use target_write_raw_memory.
444 (memory_xfer_partial): Rename to ...
445 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
446 here.
447 (memory_xfer_partial): New.
448 (target_write_raw_memory): New.
449 * target.h (target_write_raw_memory): New.
450
451 2011-12-06 Doug Evans <dje@google.com>
452
453 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
454
455 2011-12-06 Joel Brobecker <brobecker@acacore.com>
456
457 * language.h (struct language_defn): Add new component
458 la_symbol_name_compare.
459 * symfile.h (struct quick_symbol_functions): Update the profile
460 of parameter "name_matcher" for the expand_symtabs_matching
461 method. Update the documentation accordingly.
462 * ada-lang.h (ada_name_for_lookup): Add declaration.
463 * ada-lang.c (ada_name_for_lookup): New function, extracted out
464 from ada_iterate_over_symbols.
465 (ada_iterate_over_symbols): Do not encode symbol name anymore.
466 (ada_expand_partial_symbol_name): Adjust profile.
467 (ada_language_defn): Add value for la_symbol_name_compare field.
468 * linespec.c: #include "ada-lang.h".
469 (iterate_name_matcher): Add language parameter. Replace call
470 to strcmp_iw by call to language->la_symbol_name_compare.
471 (decode_variable): Encode COPY if current language is Ada.
472 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
473 of name_matcher parameter. Adjust call to name_matcher.
474 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
475 (expand_partial_symbol_names): Update profile of parameter "fun".
476 * psymtab.h (expand_partial_symbol_names): Update profile of
477 parameter "fun".
478 * symtab.c (demangle_for_lookup): Update function documentation.
479 (search_symbols_name_matches): Add language parameter.
480 (expand_partial_symbol_name): Likewise.
481 * c-lang.c (c_language_defn, cplus_language_defn)
482 (asm_language_defn, minimal_language_defn): Add value for
483 la_symbol_name_compare field.
484 * d-lang.c (d_language_defn): Likewise.
485 * f-lang.c (f_language_defn): Ditto.
486 * jv-lang.c (java_language_defn): Ditto.
487 * m2-lang.c (m2_language_defn): Ditto.
488 * objc-lang.c (objc_language_defn): Ditto.
489 * opencl-lang.c (opencl_language_defn): Ditto.
490 * p-lang.c (pascal_language_defn): Ditto.
491 * language.c (unknown_language_defn, auto_language_defn)
492 (local_language_defn): Ditto.
493
494 2011-12-06 Tom Tromey <tromey@redhat.com>
495
496 * linespec.c (iterate_over_all_matching_symtabs): Use
497 LA_ITERATE_OVER_SYMBOLS.
498 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
499 (find_function_symbols, decode_variable): Remove Ada special
500 case.
501 * language.h (struct language_defn) <la_iterate_over_symbols>: New
502 field.
503 (LA_ITERATE_OVER_SYMBOLS): New macro.
504 * language.c (unknown_language_defn, auto_language_defn)
505 (local_language_defn): Update.
506 * c-lang.c (c_language_defn, cplus_language_defn)
507 (asm_language_defn, minimal_language_defn): Update.
508 * d-lang.c (d_language_defn): Update.
509 * f-lang.c (f_language_defn): Update.
510 * jv-lang.c (java_language_defn): Update.
511 * m2-lang.c (m2_language_defn): Update.
512 * objc-lang.c (objc_language_defn): Update.
513 * opencl-lang.c (opencl_language_defn): Update.
514 * p-lang.c (pascal_language_defn): Update.
515 * ada-lang.c (ada_iterate_over_symbols): New function.
516 (ada_language_defn): Update.
517
518 2011-12-06 Tom Tromey <tromey@redhat.com>
519 Joel Brobecker <brobecker@acacore.com>
520
521 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
522 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
523 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
524 PR shlibs/8929, PR shlibs/7393:
525 * python/py-type.c (compare_maybe_null_strings): Rename from
526 compare_strings.
527 (check_types_equal): Update.
528 * utils.c (compare_strings): New function.
529 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
530 location changes.
531 * tracepoint.c (scope_info): Update.
532 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
533 * symtab.h (iterate_over_minimal_symbols)
534 (iterate_over_some_symtabs, iterate_over_symtabs)
535 (find_pcs_for_symtab_line, iterate_over_symbols)
536 (demangle_for_lookup): Declare.
537 (expand_line_sal): Remove.
538 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
539 (lookup_symtab_callback): New functions.
540 (lookup_symtab): Rewrite.
541 (demangle_for_lookup): New function, extract from
542 lookup_symbol_in_language.
543 (lookup_symbol_in_language): Use it.
544 (iterate_over_symbols): New function.
545 (find_line_symtab): Update.
546 (find_pcs_for_symtab_line): New functions.
547 (find_line_common): Add 'start' argument.
548 (decode_line_spec): Update. Change argument to 'flags', change
549 interpretation.
550 (append_expanded_sal): Remove.
551 (append_exact_match_to_sals): Remove.
552 (expand_line_sal): Remove.
553 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
554 Remove.
555 <map_symtabs_matching_filename>: New field.
556 * stack.c (func_command): Only look in the current program space.
557 Use DECODE_LINE_FUNFIRSTLINE.
558 * source.c (line_info): Set pspace on sal. Check program space in
559 the loop. Use DECODE_LINE_LIST_MODE.
560 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
561 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
562 * python/python.c (gdbpy_decode_line): Update.
563 * psymtab.c (partial_map_expand_apply): New function.
564 (partial_map_symtabs_matching_filename): Rename from
565 lookup_partial_symbol. Update arguments.
566 (lookup_symtab_via_partial_symtab): Remove.
567 (psym_functions): Update.
568 * objc-lang.h (parse_selector, parse_method): Don't declare.
569 (find_imps): Update.
570 * objc-lang.c (parse_selector, parse_method): Now static.
571 (find_methods): Change arguments. Fill in a vector of symbol
572 names.
573 (uniquify_strings): New function.
574 (find_imps): Change arguments.
575 * minsyms.c (iterate_over_minimal_symbols): New function.
576 * linespec.h (enum decode_line_flags): New.
577 (struct linespec_sals): New.
578 (struct linespec_result) <canonical>: Remove.
579 <pre_expanded, addr_string, sals>: New fields.
580 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
581 (decode_line_full): Declare.
582 (decode_line_1): Update.
583 * linespec.c (struct address_entry, struct linespec_state, struct
584 collect_info): New types.
585 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
586 (eq_address_entry, maybe_add_address): New functions.
587 (total_number_of_methods): Remove.
588 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
589 functions.
590 (find_methods): Change arguments. Don't canonicalize input.
591 Simplify logic.
592 (add_matching_methods, add_constructors)
593 (build_canonical_line_spec): Remove.
594 (filter_results, convert_results_to_lsals): New functions.
595 (decode_line_2): Change arguments. Rewrite for new data
596 structures.
597 (decode_line_internal): Rename from decode_line_1. Change
598 arguments. Add cleanups. Update for new data structures.
599 (linespec_state_constructor, linespec_state_destructor)
600 (decode_line_full, decode_line_1): New functions.
601 (decode_indirect): Change arguments. Update.
602 (locate_first_half): Use skip_spaces.
603 (decode_objc): Change arguments. Update for new data structures.
604 Simplify logic.
605 (decode_compound): Change arguments. Add cleanups. Remove
606 fallback code, replace with error.
607 (struct decode_compound_collector): New type.
608 (collect_one_symbol): New function.
609 (lookup_prefix_sym): Change arguments. Update.
610 (compare_symbol_name, add_all_symbol_names_from_pspace)
611 (find_superclass_methods ): New functions.
612 (find_method): Rewrite.
613 (struct symtab_collector): New type.
614 (add_symtabs_to_list, collect_symtabs_from_filename): New
615 functions.
616 (symtabs_from_filename): Change API. Rename from
617 symtab_from_filename.
618 (collect_function_symbols): New function.
619 (find_function_symbols): Change API. Rename from
620 find_function_symbol. Rewrite.
621 (decode_all_digits): Change arguments. Rewrite.
622 (decode_dollar): Change arguments. Use decode_variable.
623 (decode_label): Change arguments. Rewrite.
624 (collect_symbols): New function.
625 (minsym_found): Change arguments. Rewrite.
626 (check_minsym, search_minsyms_for_name)
627 (add_matching_symbols_to_info): New function.
628 (decode_variable): Change arguments. Iterate over all symbols.
629 (symbol_found): Remove.
630 (symbol_to_sal): New function.
631 (init_linespec_result, destroy_linespec_result)
632 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
633 New functions.
634 (decode_digits_list_mode, decode_digits_ordinary): New functions.
635 * dwarf2read.c (dw2_map_expand_apply): New function.
636 (dw2_map_symtabs_matching_filename): Rename from
637 dw2_lookup_symtab. Change arguments.
638 (dwarf2_gdb_index_functions): Update.
639 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
640 * defs.h (compare_strings): Declare.
641 * cli/cli-cmds.c (compare_strings): Move to utils.c.
642 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
643 filter_sals.
644 (compare_symtabs, filter_sals): New functions.
645 * breakpoint.h (struct bp_location) <line_number, source_file>:
646 New fields.
647 (struct breakpoint) <line_number, source_file>: Remove.
648 <filter>: New field.
649 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
650 (momentary_breakpoint_from_master, add_location_to_breakpoint):
651 Update for changes to locations.
652 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
653 breakpoint.
654 (create_breakpoint_sal): Add 'filter' argument.
655 (remove_sal, expand_line_sal_maybe): Remove.
656 (create_breakpoints_sal): Remove 'sals' argument. Handle
657 pre-expanded sals and the filter.
658 (parse_breakpoint_sals): Use decode_line_full.
659 (check_fast_tracepoint_sals): Use get_sal_arch.
660 (create_breakpoint): Create a linespec_sals. Update.
661 (break_range_command): Use decode_line_full. Update.
662 (until_break_command): Update.
663 (clear_command): Update match conditions for linespec.c changes.
664 Use DECODE_LINE_LIST_MODE.
665 (say_where): Update for changes to locations.
666 (bp_location_dtor): Free 'source_file'.
667 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
668 (update_static_tracepoint): Update for changes to locations.
669 (update_breakpoint_locations): Disable ranged breakpoint if too
670 many locations match. Update.
671 (addr_string_to_sals): Use decode_line_full. Resolve all sal
672 PCs.
673 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
674 (decode_line_spec_1): Update. Change argument name to 'flags',
675 change interpretation.
676 * block.h (block_containing_function): Declare.
677 * block.c (block_containing_function): New function.
678 * skip.c (skip_function_command): Update.
679 (skip_re_set): Update.
680 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
681 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
682 * NEWS: Add entry.
683
684 2011-12-06 Tom Tromey <tromey@redhat.com>
685
686 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
687 breakpoint's pspace to be NULL.
688 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
689 * breakpoint.c (init_raw_breakpoint): Conditionally set
690 breakpoint's pspace.
691 (init_breakpoint_sal): Don't set breakpoint's pspace.
692 (prepare_re_set_context): Conditionally switch program space.
693 (addr_string_to_sals): Check executing_startup on location's
694 program space.
695
696 2011-12-06 Tom Tromey <tromey@redhat.com>
697
698 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
699 * breakpoint.c (should_be_inserted): Explicitly check if program
700 space is executing startup.
701 (describe_other_breakpoints): Update.
702 (disable_breakpoints_before_startup): Change executing_startup
703 earlier. Remove loop.
704 (enable_breakpoints_after_startup): Likewise.
705 (init_breakpoint_sal): Don't use bp_startup_disabled.
706 (create_breakpoint): Don't use bp_startup_disabled.
707 (update_global_location_list): Use should_be_inserted.
708 (bkpt_re_set): Update.
709
710 2011-12-06 Tom Tromey <tromey@redhat.com>
711
712 * python/lib/gdb/command/pretty_printers.py
713 (InfoPrettyPrinter.invoke1): Remove extra double quote.
714
715 2011-12-06 Tom Tromey <tromey@redhat.com>
716
717 * NEWS: Add MI news.
718
719 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
720
721 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
722 (S390_LAST_BREAK_REGNUM): Likewise.
723 (S390_SYSTEM_CALL_REGNUM): Likewise.
724 (S390_NUM_REGS): Update.
725
726 (s390_regmap_last_break): Add declaration.
727 (s390x_regmap_last_break): Likewise.
728 (s390_regmap_system_call): Likewise.
729
730 (tdesc_s390_linux32v1): Add declaration.
731 (tdesc_s390_linux32v2): Likewise.
732 (tdesc_s390_linux64v1): Likewise.
733 (tdesc_s390_linux64v2): Likewise.
734 (tdesc_s390x_linux64v1): Likewise.
735 (tdesc_s390x_linux64v2): Likewise.
736
737 * s390-tdep.c: Include new target description files
738 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
739 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
740 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
741 (s390_cannot_store_register): New function.
742 (s390_write_pc): Likewise.
743 (s390_dwarf_regmap): Add fields for new registers.
744 (s390_regmap_gregset): Likewise.
745 (s390x_regmap_gregset): Likewise.
746 (s390_regmap_fpregset): Likewise.
747 (s390_regmap_upper): Likewise.
748 (s390_regmap_last_break): New variable.
749 (s390x_regmap_last_break): Likewise.
750 (s390_regmap_system_call): Likewise.
751 (s390_last_break_regset): Likewise.
752 (s390x_last_break_regset): Likewise.
753 (s390_system_call_regset): Likewise.
754 (s390_upper_regset_sections): Rename to ...
755 (s390_linux64_regset_sections): ... this.
756 (s390_linux32_regset_sections): New variable.
757 (s390x_linux64_regset_sections): Likewise.
758 (s390_linux32v1_regset_sections): Likewise.
759 (s390_linux32v2_regset_sections): Likewise.
760 (s390_linux64v1_regset_sections): Likewise.
761 (s390_linux64v2_regset_sections): Likewise.
762 (s390x_linux64v1_regset_sections): Likewise.
763 (s390x_linux64v2_regset_sections): Likewise.
764 (s390_regset_from_core_section): Handle .reg-s390-last-break and
765 .reg-s390-system-call core file sections.
766 (s390_core_read_description): Check for presence of
767 .reg-s390-last-break and .reg-s390-system-call core file
768 sections and return appropriate target description.
769 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
770 "last_break" and "system_call" in target description. Install
771 appropriate gdbarch_core_regset_sections array.
772 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
773 (_initialize_s390_tdep): Initialize additional target descriptions.
774
775 * s390-nat.c: Include "elf/common.h".
776 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
777 (have_regset_last_break): New static variable.
778 (have_regset_system_call): Likewise.
779 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
780 (s390_native_collect): Likewise.
781 (fetch_regset, store_regset, check_regset): New functions.
782 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
783 and S390_SYSTEM_CALL_REGNUM.
784 (s390_linux_store_inferior_registers): Likewise.
785 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
786 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
787
788 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
789 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
790 (s390-linux32v1-expedite): Define.
791 (s390-linux32v2-expedite): Likewise.
792 (s390-linux64v1-expedite): Likewise.
793 (s390-linux64v2-expedite): Likewise.
794 (s390x-linux64v1-expedite): Likewise.
795 (s390x-linux64v2-expedite): Likewise.
796
797 * features/s390-linux32.xml: Add orig_r2 register.
798 * features/s390-linux64.xml: Likewise.
799 * features/s390x-linux64.xml: Likewise.
800 * features/s390-linux32v1.xml: New file.
801 * features/s390-linux32v2.xml: Likewise.
802 * features/s390-linux64v1.xml: Likewise.
803 * features/s390-linux64v2.xml: Likewise.
804 * features/s390x-linux64v1.xml: Likewise.
805 * features/s390x-linux64v2.xml: Likewise.
806
807 * features/s390-linux32.c: Regenerate.
808 * features/s390-linux64.c: Likewise.
809 * features/s390x-linux64.c: Likewise.
810 * features/s390-linux32v1.c: New generated file.
811 * features/s390-linux32v2.c: Likewise.
812 * features/s390-linux64v1.c: Likewise.
813 * features/s390-linux64v2.c: Likewise.
814 * features/s390x-linux64v1.c: Likewise.
815 * features/s390x-linux64v2.c: Likewise.
816
817 * regformats/s390-linux32.dat: Regenerate.
818 * regformats/s390-linux64.dat: Regenerate.
819 * regformats/s390x-linux64.dat: Regenerate.
820 * regformats/s390-linux32v1.dat: New generated file.
821 * regformats/s390-linux32v2.dat: Likewise.
822 * regformats/s390-linux64v1.dat: Likewise.
823 * regformats/s390-linux64v2.dat: Likewise.
824 * regformats/s390x-linux64v1.dat: Likewise.
825 * regformats/s390x-linux64v2.dat: Likewise.
826
827 2011-12-05 Pedro Alves <pedro@codesourcery.com>
828
829 * linux-nat.c (resume_stopped_resumed_lwps): Call
830 registers_changed.
831
832 2011-12-05 Pedro Alves <pedro@codesourcery.com>
833
834 * breakpoint.c: Include record.h.
835 (breakpoints_always_inserted_mode): Return false when the record
836 target is in use.
837
838 2011-12-05 Pedro Alves <pedro@codesourcery.com>
839
840 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
841 Reinstate perror_with_name call on ptrace error. Remove #if 0.
842 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
843 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
844
845 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
846
847 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
848 `i'(-Wshadow).
849
850 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
851
852 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
853
854 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
855
856 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
857 of `tdep'(-Wshadow).
858
859 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
860
861 Fix compilation --without-expat.
862 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
863 from ...
864 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
865
866 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
867 Jan Kratochvil <jan.kratochvil@redhat.com>
868
869 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
870 * features/library-list-svr4.dtd: New file.
871 * remote.c (PACKET_qXfer_libraries_svr4): New.
872 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
873 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
874 * solib-svr4.c (struct svr4_library_list): New.
875 [HAVE_LIBEXPAT]: Include xml-support.h.
876 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
877 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
878 [HAVE_LIBEXPAT] (svr4_library_list_children)
879 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
880 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
881 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
882 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
883 (svr4_read_so_list): Extend the corruption message by addresses.
884 (svr4_current_sos): New variable library_list, call
885 svr4_current_sos_via_xfer_libraries.
886 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
887
888 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
889
890 PR threads/13448
891 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
892 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
893
894 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
895
896 PR breakpoints/13346
897 * dwarf2read.c (process_psymtab_comp_unit): Set
898 PSYMTABS_ADDRMAP_SUPPORTED.
899 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
900 validity. New field psymtabs_addrmap_supported.
901 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
902 psymtabs_addrmap_supported.
903 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
904 !PSYMTABS_ADDRMAP_SUPPORTED.
905 (dump_psymtab, maintenance_info_psymtabs): Print also
906 psymtabs_addrmap_supported.
907
908 2011-12-01 Doug Evans <dje@google.com>
909
910 * python/py-type.c (type_object_methods): Fix "array" doc string.
911
912 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
913
914 * source.c (print_source_lines_base): Fix missing braces on else
915 clause leading to additional output.
916
917 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
918
919 * s390-nat.c (SUBOFF): Remove.
920 (s390_native_supply, s390_native_collect): New functions.
921 (supply_gregset, supply_fpregset): Use s390_native_supply.
922 (fill_gregset, fill_fpregset): Use s390_native_collect.
923
924 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
925 (s390_unwind_pseudo_register): New function.
926 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
927 registers instead of PC and CC.
928 (s390_backchain_frame_unwind_cache): Likewise.
929 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
930 full GPR pseudos.
931 (s390_trad_frame_prev_register): New function.
932 (s390_frame_prev_register): Use it.
933 (s390_sigtramp_frame_prev_register): Likewise.
934 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
935 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
936 special callback to unwind any pseudo.
937
938 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
939 * features/s390-core64.xml: Likewise.
940 * features/s390x-core64.xml: Likewise.
941 * features/s390-linux32.c: Regenerate.
942 * features/s390-linux64.c: Likewise.
943 * features/s390x-linux64.c: Likewise.
944
945 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
946
947 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
948
949 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
950
951 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
952 instruction. Add more diagnostic output.
953
954 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
955
956 * MAINTAINERS (Write After Approval): Add myself to the list.
957
958 2011-11-29 Sanjoy Das <sdas@igalia.com>
959
960 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
961 (jit_bfd_try_read_symtab): Fix comments.
962
963 2011-11-28 DJ Delorie <dj@redhat.com>
964
965 * NEWS: Mention RL78 simulator.
966
967 2011-11-28 Joel Brobecker <brobecker@adacore.com>
968
969 * symfile.h (struct quick_symbol_functions): Fix the documentation
970 of field map_matching_symbols, as symbols are sorted using
971 strcmp_iw_ordered, not strcmp_iw.
972
973 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
974
975 * symfile.h (struct quick_symbol_functions): Update the
976 documentation for field map_matching_symbols.
977
978 2011-11-28 Joel Brobecker <brobecker@adacore.com>
979
980 * ada-lang.c (compare_names): Fix wrong return value in case
981 string1 starts with the same contents as string2, followed
982 by an underscore that do not start a symbol name suffix.
983
984 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
985
986 PR python/13369
987 PR python/13374
988
989 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
990 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
991 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
992 exceptions.
993 * python/py-type.c (typy_strip_typedefs): Ditto.
994 (typy_legacy_template_argument): Ditto.
995 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
996 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
997
998 2011-11-27 Joel Brobecker <brobecker@acacore.com>
999
1000 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1001 local variable. Avoid use of sprintf_vma.
1002
1003 2011-11-27 Sanjoy Das <sdas@igalia.com>
1004
1005 Fix regression in jit.exp.
1006 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1007 (jit_register_code): Set the jit_objfile_data field to the correct
1008 value.
1009
1010 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1011
1012 * alpha-tdep.c (br_opcode): New.
1013 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1014 (alpha_deal_with_atomic_sequence): New function.
1015 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1016 with alpha_deal_with_atomic_sequence.
1017
1018 2011-11-24 Tristan Gingold <gingold@adacore.com>
1019
1020 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1021 fields. Add oso_sym, end_sym and nbr_syms.
1022 (macho_register_oso): Change interface.
1023 (macho_symtab_add_minsym): New function.
1024 (macho_symtab_read): Rewritten.
1025 (get_archive_prefix_len): Remove trailing blanks.
1026 (oso_el_compare_name): Add comment.
1027 (struct macho_sym_hash_entry): New structure.
1028 (macho_relocate_common_syms): Remove.
1029 (macho_sym_hash_newfunc): New function.
1030 (macho_resolve_oso_sym_with_minsym): Likewise.
1031 (macho_add_oso_symfile): Rewritten.
1032 (macho_symfile_read_all_oso): Remove trailing blanks.
1033 Adjust code to free oso vector.
1034 (macho_symfile_read): Likewise.
1035 Move code to initialize minimal symbol
1036
1037 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1038
1039 * mips-tdep.c (extended_offset): Fix formatting.
1040
1041 2011-11-23 Doug Evans <dje@google.com>
1042
1043 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1044 (dw2_expand_symtabs_with_filename): Ditto.
1045 (dw2_expand_symtabs_matching): Ditto.
1046 (dw2_map_symbol_filenames): Ditto.
1047
1048 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1049
1050 * ada-lang.c (assign_aggregate): Minor reformatting.
1051
1052 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1053
1054 * ada-lang.c (assign_aggregate): Remove declaration of local
1055 variable `i' which is shadowing another variable with the same
1056 name declared in the outer scope.
1057
1058 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1059
1060 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1061 calls throughout this file.
1062
1063 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1064
1065 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1066 FormatMessage.
1067
1068 2011-11-22 Tom Tromey <tromey@redhat.com>
1069
1070 PR mi/8444:
1071 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1072 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1073 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1074 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1075 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1076 (print_it_catch_syscall, print_it_catch_exec)
1077 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1078 (bpstat_print): Add 'kind' argument. Handle
1079 TARGET_WAITKIND_LOADED.
1080 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1081 handle TARGET_WAITKIND_LOADED here.
1082 * breakpoint.h (bpstat_print): Update.
1083
1084 2011-11-22 Tom Tromey <tromey@redhat.com>
1085
1086 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1087
1088 2011-11-22 Tom Tromey <tromey@redhat.com>
1089
1090 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1091 Use static_assert to check the size of
1092 async_reason_string_lookup.
1093 * common/gdb_assert.h (static_assert): New macro.
1094
1095 2011-11-22 Alan Modra <amodra@gmail.com>
1096
1097 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1098 destination calculation. Don't expect >> to sign extend. Don't
1099 add a break if branch lands inside the sequence anywhere.
1100
1101 2011-11-21 Keith Seitz <keiths@redhat.com>
1102
1103 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1104 -var-evaluate-expression of an enumeration and fix expected result.
1105 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1106
1107 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1108
1109 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1110 the case where osdata->items is empty. Rename column names to a
1111 canonical form to avoid problems with unusual column names.
1112
1113 2011-11-21 Yao Qi <yao@codesourcery.com>
1114
1115 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1116
1117 2011-11-20 Stan Shebs <stan@codesourcery.com>
1118
1119 * NEWS: Mention tracepoint additions.
1120 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1121 * breakpoint.c (print_one_breakpoint_location): Identify
1122 tracepoints as such when reporting hit counts, report
1123 trace buffer usage.
1124 (create_tracepoint_from_upload): Copy status info.
1125 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1126 add fields user_name, notes, start_time, stop_time.
1127 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1128 * tracepoint.c (trace_user): New global.
1129 (trace_notes): New global.
1130 (trace_stop_notes): New global.
1131 (start_tracing): Add argument and trace note handling.
1132 (stop_tracing): Ditto.
1133 (trace_start_command): Add notes argument.
1134 (trace_stop_command): Ditto.
1135 (trace_status_command): Report additional status info.
1136 (trace_status_mi): Similarly.
1137 (trace_save): Update, record tracepoint status.
1138 (set_disconnected_tracing): Call target method directly.
1139 (send_disconnected_tracing_value): Remove.
1140 (set_trace_user): New function.
1141 (set_trace_notes): New function.
1142 (set_trace_stop_notes): New function.
1143 (parse_trace_status): Handle additional status.
1144 (parse_tracepoint_status): New function.
1145 (parse_tracepoint_definition): Call it.
1146 (tfile_get_tracepoint_status): New function.
1147 (init_tfile_ops): Use it.
1148 (_initialize_tracepoint): Add new setshows.
1149 * target.h (struct target_ops): New methods to_get_tracepoint_status
1150 and to_set_trace_notes.
1151 (target_get_tracepoint_status): New macro.
1152 (target_set_trace_notes): New macro.
1153 * target.c (update_current_target): Add new methods.
1154 * remote.c (remote_get_tracepoint_status): New function.
1155 (remote_set_trace_notes): New function.
1156 (init_remote_ops): Add them.
1157 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1158 (mi_cmd_trace_stop): Ditto.
1159
1160 2011-11-20 Sanjoy Das <sdas@igalia.com>
1161
1162 * jit.c: Include regcache.h.
1163 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1164 (jit_unwind_reg_set_impl, free_reg_value_impl)
1165 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1166 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1167 (jit_frame_prev_register, jit_dealloc_cache)
1168 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1169 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1170 jit_prepend_unwinder.
1171 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1172
1173 2011-11-20 Sanjoy Das <sdas@igalia.com>
1174
1175 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1176 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1177 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1178 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1179 (finalize_symtab, jit_object_close_impl)
1180 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1181 (free_objfile_data): New functions.
1182 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1183 function.
1184
1185 2011-11-20 Sanjoy Das <sdas@igalia.com>
1186
1187 * jit.c: Include gdb-dlfcn.h.
1188 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1189 (jit_reader_load, jit_reader_load_command)
1190 (jit_reader_unload_command): New functions.
1191 (_initialize_jit): Add commands "jit-reader-load" and
1192 "jit-reader-unload".
1193
1194 2011-11-20 Sanjoy Das <sdas@igalia.com>
1195
1196 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1197 * config.in: Add new #define HAVE_LIBDL.
1198 * configure.ac: Add check for -ldl.
1199 * configure: Re-generated by autoconf.
1200 * gdb-dlfcn.c: New file.
1201 * gdb-dlfcn.h: New file.
1202
1203 2011-11-20 Sanjoy Das <sdas@igalia.com>
1204
1205 * config.in: Add new #defines: JIT_READER_DIR and
1206 JIT_READER_DIR_RELOCATABLE.
1207 * configure.ac: New GDB directory entry for jit-reader-dir.
1208 * configure: Re-generated by autoconf.
1209 * jit.c: New static variable: const char *jit_reader_dir.
1210 (_initialize_jit): Relocate jit_reader_dir.
1211
1212 2011-11-20 Sanjoy Das <sdas@igalia.com>
1213
1214 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1215 $(includedir)/gdb.
1216 * configure.ac: Generate a correct value for TARGET_PTR for
1217 jit-reader.h. Tell configure to generate jit-reader.h from
1218 jit-reader.in.
1219 * configure: Re-generated by autoconf.
1220 * jit-reader.in: New file.
1221 * jit.c: Include jit-reader.h.
1222
1223 2011-11-20 Sanjoy Das <sdas@igalia.com>
1224
1225 * MAINTAINERS (Write After Approval): Add myself to the list.
1226
1227 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1228
1229 * findvar.c (read_frame_register_value): Respect value_offset
1230 of the register value. Remove big-endian special case.
1231
1232 2011-11-18 Tom Tromey <tromey@redhat.com>
1233
1234 PR build/7196:
1235 * remote.c (putpkt_for_catch_errors): New function.
1236 (remote_kill): Use it.
1237
1238 2011-11-18 Yao Qi <yao@codesourcery.com>
1239
1240 * breakpoint.c (create_breakpoint): Produce query message according to
1241 breakpoint's type.
1242 Allocate tracepoint per correct type.
1243 Don't check SALs for pending fast tracepoints.
1244 * tracepoint.c (process_tracepoint_on_disconnect): New.
1245 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1246
1247 2011-11-18 Yao Qi <yao@codesourcery.com>
1248
1249 * breakpoint.c (install_breakpoint): Add one more parameter so that
1250 update_global_location_list is called conditionally.
1251 (create_fork_vfork_event_catchpoint): Update.
1252 (create_syscall_event_catchpoint): Update.
1253 (create_breakpoint_sal): Update.
1254 (create_breakpoint_sal): Update. Call do_cleanups before
1255 install_breakpoint.
1256 * ada-lang.c (create_ada_exception_catchpoint): Update.
1257 * breakpoint.h (install_breakpoint): Update declaration.
1258
1259 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1260
1261 * spu-tdep.c (spu_return_value): Fix handling of
1262 TYPE_CALLING_CONVENTION annotation.
1263
1264 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1265
1266 * skip.c (skip_function_command): Work around uninitialized
1267 variable warning.
1268
1269 2011-11-16 David S. Miller <davem@davemloft.net>
1270
1271 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1272 'tv_usec' to long for printf since these fields have a type which
1273 varies.
1274
1275 2011-11-15 Doug Evans <dje@google.com>
1276
1277 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1278
1279 2011-11-15 Paul Koning <paul_koning@dell.com>
1280
1281 * python/py-type.c (typy_get_composite): New function.
1282 (typy_nonzero): New function.
1283 (typy_values): Rename from typy_fields.
1284 (typy_fields): New function.
1285 (typy_length): Raise exception if not struct, union, or enum type.
1286 (typy_getitem): Ditto.
1287 (typy_has_key): Ditto.
1288 (typy_make_iter): Ditto.
1289
1290 2011-11-15 Doug Evans <dje@google.com>
1291
1292 PR gdb/8367
1293 * NEWS: Mention new parameter basenames-may-differ.
1294 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1295 ! basenames_may_differ.
1296 * psymtab.c (lookup_partial_symtab): Ditto.
1297 * symtab.c (lookup_symtab): Ditto.
1298 (basenames_may_differ): New global.
1299 (_initialize_symtab): New parameter basenames-may-differ.
1300 * symtab.h (basenames_may_differ): Declare.
1301
1302 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1303 Luis Machado <lgustavo@codesourcery.com>
1304
1305 * auxv.c: Include observer.h.
1306 (auxv_inferior_data_cleanup): New.
1307 (invalidate_auxv_cache_inf): New.
1308 (invalidate_auxv_cache): New.
1309 (get_auxv_inferior_data): New.
1310 (auxv_inferior_data): New static global.
1311 (auxv_info): New structure.
1312 (target_auxv_search): Use get_auxv_inferior_data instead of
1313 target_read_alloc and don't free cached buffers.
1314 (fprint_target_auxv): Likewise
1315 (_initialize_auxv): Register per-inferior auxv cache and register
1316 observers to invalidate auxv cache when needed.
1317
1318 2011-11-14 Doug Evans <dje@google.com>
1319
1320 PR gdb/7200 Make "!" an alias for "shell".
1321 * NEWS: Add mention.
1322 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1323 adding "!" command, always add it.
1324 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1325 command of length one.
1326
1327 2011-11-14 Stan Shebs <stan@codesourcery.com>
1328 Kwok Cheung Yeung <kcy@codesourcery.com>
1329
1330 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1331 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1332 the minimum instruction size for fast tracepoints.
1333 * target.h (struct target_ops): Add new method
1334 to_get_min_fast_tracepoint_insn_len.
1335 (target_get_min_fast_tracepoint_insn_len): New.
1336 * target.c (update_current_target): Set up new target operation.
1337 * remote.c (remote_write_bytes_aux): Fix typo.
1338 (remote_get_min_fast_tracepoint_insn_len): New.
1339 (init_remote_ops): Initialize new field.
1340
1341 2011-11-14 Tom Tromey <tromey@redhat.com>
1342
1343 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1344 (encode_actions): Likewise.
1345
1346 2011-11-14 Yao Qi <yao@codesourcery.com>
1347
1348 * remote.c (struct remote_state): <install_in_trace> new field.
1349 (PACKET_InstallInTrace): New enum value.
1350 (remote_install_in_trace_feature): Support InstallInTrace.
1351 (remote_supports_install_in_trace): Likewise.
1352 (remote_protocol_features): Likewise.
1353 (_initialize_remote): Likewise.
1354 (remote_can_download_tracepoint): New.
1355 * target.h (struct target): New field
1356 `to_can_download_tracepoint'.
1357 (target_can_download_tracepoint): New macro.
1358 * target.c (update_current_target): Update.
1359 * breakpoint.h (struct bp_location): Add comment on field
1360 `duplicate'.
1361 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1362 and tracepoint.
1363 (remove_breakpoints): Don't remove tracepoints.
1364 (tracepoint_locations_match ): New.
1365 (breakpoint_locations_match): Call it.
1366 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1367 (download_tracepoint_locations): New.
1368 (update_global_location_list): Call it.
1369 * tracepoint.c (find_matching_tracepoint): Delete.
1370 (find_matching_tracepoint_location): Renamed from
1371 find_matching_tracepoint. Return bp_location rather than
1372 tracepoint.
1373 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1374 tracepoint is found.
1375
1376 2011-11-14 Yao Qi <yao@codesourcery.com>
1377
1378 * target.h (struct target): <to_download_tracepoint> Change type
1379 of parameter from tracepoint to bp_location.
1380 * target.c (update_current_target): Update.
1381 * tracepoint.c (start_tracing): Update.
1382 * remote.c (remote_download_tracepoint): Remove loop for each location
1383 of a tracepoint.
1384
1385 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1386
1387 * i386-nat.c (i386_insert_hw_breakpoint): Call
1388 i386_update_inferior_debug_regs.
1389 (i386_remove_hw_breakpoint): Likewise.
1390
1391 2011-11-14 Yao Qi <yao@codesourcery.com>
1392
1393 * breakpoint.c (init_raw_breakpoint): Call
1394 add_location_to_breakpoint to replace duplicated code.
1395 (add_location_to_breakpoint): Adjust the breakpoint's
1396 address prior to allocating a location.
1397
1398 2011-11-12 Matt Rice <ratmice@gmail.com>
1399
1400 * macrocmd.c (macro_no_macro_info): New function.
1401 (macro_expand_command): Use macro_no_macro_info.
1402 (macro_expand_once_command): Ditto.
1403 (info_macro_command): Add argument processing,
1404 move info_definitions_command here.
1405 (_initialize_macrocmd): Remove info definitions command.
1406 Add arguments to info macro help text.
1407 * NEWS: Replace info definitions command with new info macro options.
1408
1409 2011-11-11 Keith Seitz <keiths@redhat.com>
1410
1411 PR gdb/12843
1412 * linespec.c (locate_first_half): Keep ':' if it looks
1413 like it could be part of a Windows path starting with
1414 a drive letter.
1415
1416 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1417
1418 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1419 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1420
1421 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1422
1423 * target.c (target_waitstatus_to_string): Handle
1424 TARGET_WAITKIND_NO_RESUMED.
1425
1426 2011-11-10 Doug Evans <dje@google.com>
1427
1428 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1429 `need_fullname'.
1430 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1431 (map_partial_symbol_filenames): Ditto. All callers updated.
1432 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1433 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1434 parameter need_fullname.
1435
1436 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1437 * source.c (symtab_to_fullname): Ditto.
1438
1439 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1440 * gdb-demangle.h: ... here. New file.
1441 * demangle.c: #include "gdb-demangle.h".
1442 (_initialize_demangler): Use initialize_file_ftype for prototype.
1443 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1444 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1445 from utils.c
1446 * utils.c: Update. #include "gdb-demangle.h".
1447 * symtab.h (asm_demangle): Delete.
1448 (demangle): Move declaration next to use.
1449 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1450 * dwarf2read.c: #include "gdb-demangle.h".
1451 * gnu-v2-abi.c: Ditto.
1452 * jv-typeprint.c: Ditto.
1453 * mdebugread.c: Ditto.
1454 * p-typeprint.c: Ditto.
1455 * stabsread.c: Ditto.
1456 * printcmd.c: Ditto.
1457 (asm_demangle): Delete declaration.
1458 * tui/tui-stack.c: #include "gdb-demangle.h".
1459
1460 * python/py-type.c (typy_fields_items): Call check_typedef.
1461
1462 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1463
1464 * findvar.c (read_frame_register_value): Read the correct bytes
1465 from registers on big-endian architectures.
1466
1467 2011-11-10 Tom Tromey <tromey@redhat.com>
1468
1469 * procfs.c (load_syscalls): Make a cleanup.
1470 (open_procinfo_files): fd==0 is ok.
1471
1472 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1473
1474 * procfs.c (iterate_over_mappings): Call do_cleanups before
1475 returning.
1476
1477 2011-11-09 Doug Evans <dje@google.com>
1478
1479 * gdbtypes.c (check_typedef): Document that this function can
1480 throw an exception.
1481
1482 2011-11-09 Tom Tromey <tromey@redhat.com>
1483
1484 PR c++/13342:
1485 * valops.c (value_full_object): Return early if real type is
1486 smaller than the enclosing type.
1487
1488 2011-11-08 Yao Qi <yao@codesourcery.com>
1489
1490 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1491
1492 2011-11-08 Meador Inge <meadori@codesourcery.com>
1493
1494 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1495 register when the frame can't be determined.
1496 * arm-tdep.c (arm_analyze_prologue): Ditto.
1497
1498 2011-11-07 Stan Shebs <stan@codesourcery.com>
1499
1500 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1501
1502 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1503
1504 * infrun.c (handle_inferior_event): Minor reformatting.
1505
1506 2011-11-05 Doug Evans <dje@google.com>
1507
1508 * source.c (forget_cached_source_info_for_objfile): Move call to
1509 objfile->sf->qf->forget_cached_source_info outside of
1510 ALL_OBJFILE_SYMTABS loop.
1511 (forget_cached_source_info): Delete unused variable `s'.
1512
1513 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1514
1515 * i386-nat.c (dr_ref_count): Remove unused variable.
1516
1517 2011-11-05 Doug Evans <dje@google.com>
1518
1519 * main.c (captured_main): Set lim_at_start before calling
1520 make_command_stats_cleanup.
1521
1522 2011-11-04 Doug Evans <dje@google.com>
1523
1524 * utils.c: #include "timeval-utils.h".
1525 (cmd_stats): Rename start_time to start_cpu_time.
1526 New member start_wall_time.
1527 (report_command_stats): Report wall time.
1528 (make_command_stats_cleanup): Record start wall time.
1529
1530 2011-11-04 Tom Tromey <tromey@redhat.com>
1531
1532 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1533
1534 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1535
1536 * coff-pe-read.c: Include defs.h before bfd.h.
1537
1538 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1539
1540 PR Python/13345
1541
1542 * python/python.c (python_run_simple_file): Expand tilde in path.
1543
1544 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1545
1546 PR Python/13363
1547
1548 * python/py-type.c (typy_lookup_type): Do not return a type in
1549 an exception handler.
1550
1551 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1552 Eli Zaretskii <eliz@gnu.org>
1553
1554 * linux-nat.c (_initialize_linux_nat): Improve help
1555 for `info proc stat', `info proc status', `info proc cwd',
1556 `info proc cmdline' and `info proc exe'.
1557
1558 2011-11-02 Stan Shebs <stan@codesourcery.com>
1559
1560 String collection for tracepoints.
1561 * NEWS: Mention string collection.
1562 * common/ax.def (tracenz): New bytecode.
1563 * ax-gdb.h (trace_string_kludge): Declare.
1564 * ax-gdb.c: Include valprint.h and c-lang.h.
1565 (trace_string_kludge): New global.
1566 (gen_traced_pop): Add string case.
1567 (agent_command): Add string case.
1568 * tracepoint.h (decode_agent_options): Declare.
1569 * tracepoint.c: Include cli-utils.h.
1570 (decode_agent_options): New function.
1571 (validate_actionline): Call it.
1572 (encode_actions_1): Ditto.
1573 * target.h (struct target_ops): New method to_supports_string_tracing.
1574 (target_supports_string_tracing): New macro.
1575 * target.c (update_current_target): Add to_supports_string_tracing.
1576 * remote.c (struct remote_state): New field string_tracing.
1577 (remote_string_tracing_feature): New function.
1578 (remote_protocol_features): New feature tracenz.
1579 (remote_supports_string_tracing): New function.
1580 (init_remote_ops): Set to_supports_string_tracing.
1581
1582 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1583 Jan Kratochvil <jan.kratochvil@redhat.com>
1584
1585 * linux-nat.c: Include cli/cli-utils.h.
1586 (enum info_proc_what): New.
1587 (linux_nat_info_proc_cmd): Rename to ...
1588 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1589 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1590 status_f and stat_f from WHAT. Throw error on extra parameters.
1591 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1592 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1593 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1594 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1595 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1596 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1597 `info proc cmdline', `info proc exe' and `info proc all' as real
1598 subcommands of `info proc'.
1599
1600 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1601
1602 * Makefile.in: (SFILES): Add skip.c.
1603 (HFILES_NO_SRCDIR): Add skip.h.
1604 (COMMON_OBS): Add skip.o.
1605 * skip.h, skip.c: New.
1606 * breakpoint.h (set_default_breakpoint): Remove.
1607 (get_sal_arch): Declare.
1608 * breakpoint.c: Remove default_breakpoint_valid,
1609 default_breakpoint_address, default_breakpoint_symtab,
1610 default_breakpoint_line, default_breakpoint_pspace variables.
1611 (get_sal_arch): Make public.
1612 (set_default_breakpoint): Remove.
1613 (parse_breakpoint_sals, create_breakpoint, clear_command,
1614 decode_line_spec_1): Remove uses of default_breakpoint variables;
1615 replaced with function calls into stack.c.
1616 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1617 * cli/cli-cmds.c: Add skiplist.
1618 (init_cmd_lists): Initialize skiplist.
1619 (init_cli_cmds): Fix comment (classes of commands appear in
1620 alphabetical order).
1621 * infrun.c (handle_inferior_event): Add check that we don't step into
1622 a function whose pc is marked for skip.
1623 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1624 last_displayed_addr, last_displayed_symtab, last_displayed_line
1625 variables.
1626 (set_last_displayed_sal): New static function.
1627 (print_frame_info): Switch call to set_default_breakpoint to call to
1628 set_last_displayed_sal.
1629 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1630 get_last_displayed_pspace, get_last_displayed_addr,
1631 get_last_displayed_symtab, get_last_displayed_line,
1632 get_last_displayed_sal): New public functions.
1633 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1634 get_last_displayed_pspace, get_last_displayed_addr,
1635 get_last_displayed_symtab, get_last_displayed_line,
1636 get_last_displayed_sal): Declare.
1637
1638 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1639
1640 * MAINTAINERS (Write After Approval): Add myself to the list.
1641
1642 2011-10-29 Yao Qi <yao@codesourcery.com>
1643
1644 * infcmd.c (disconnect_command): Call disconnect_tracing.
1645
1646 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1647
1648 Code cleanup.
1649 * symtab.c (skip_prologue_sal): Code reformatting.
1650
1651 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1652
1653 PR symtab/13208
1654 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1655 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1656 SAI.
1657
1658 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1659
1660 * linux-nat.c (linux_nat_filter_event): Remove `options'
1661 parameter, and dead code that used it. If we're handling a
1662 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1663 in our lwp list, re-add it.
1664 (check_zombie_leaders): New.
1665 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1666 wait for children with WNOHANG, and always wait for all children.
1667 Don't check for no resumed children upfront. Simplify wait loop.
1668 Check for zombie thread group leaders after handling all wait
1669 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1670 unwaited-for children left.
1671 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1672 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1673 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1674 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1675
1676 2011-10-28 Sterling Augustine <saugustine@google.com>
1677
1678 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1679 * symtab.c (free_completion_list): New function.
1680 (do_free_completion_list): Likewise.
1681 (default_make_symbol_completion_list_break_on): New variable
1682 back_to. Call make_cleanup and discard_cleanups.
1683 (make_source_files_completion_list): Likewise.
1684
1685 2011-10-28 Paul Koning <paul_koning@dell.com>
1686
1687 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1688 * NEWS: Mention deep_items.
1689
1690 2011-10-28 Alen Skondro <askondro@gmail.com>
1691
1692 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1693 defined.
1694
1695 2011-10-27 Meador Inge <meadori@codesourcery.com>
1696
1697 * MAINTAINERS (Write After Approval): Add myself to the list.
1698
1699 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1700
1701 * value.h (read_frame_register_value): Add declaration.
1702 * findvar.c (read_frame_register_value): New function.
1703 (value_from_register): Use read_frame_register_value
1704 instead of get_frame_register_value + value_contents_copy
1705 to get value contents.
1706
1707 2011-10-27 Doug Evans <dje@google.com>
1708
1709 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1710 source_script_from_stream if it may have been found on the search path.
1711 * python/py-auto-load.c (source_section_scripts): Pass full path to
1712 source_python_script_for_objfile.
1713 * python/python.c (source_python_script): Delete stream parameter.
1714 All callers updated.
1715 (source_python_script_for_objfile): Ditto.
1716 * python/python-internal.h (source_python_script_for_objfile): Update.
1717 * python/python.h (source_python_script): Update.
1718
1719 2011-10-27 Tom Tromey <tromey@redhat.com>
1720
1721 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1722 (ada_sals_for_line): Remove declarations.
1723
1724 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1725
1726 Move unwind reasons to an external .def file
1727 * frame.c (frame_stop_reason_string): Rewrite using
1728 unwind_stop_reasons.def.
1729 * frame.h (enum unwind_stop_reason): Likewise.
1730 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1731 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1732 constants for bound-checking.
1733 * unwind_stop_reasons.def: New file.
1734 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1735 instead of a distinct value.
1736
1737 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1738
1739 PR python/13331
1740
1741 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1742 (convert_values_to_python): Return on Python tuple allocation
1743 failure. Return NULL on value conversion error.
1744
1745 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1746
1747 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1748 (bppy_set_task): Ditto.
1749 (bppy_delete_breakpoint): Ditto.
1750 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1751 (gdbpy_lookup_global_symbol): Ditto.
1752 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1753 * python/py-frame.c (frapy_is_valid): Ditto.
1754 (frame_info_to_frame_object): Ditto.
1755 * python/py-type.c (typy_lookup_type): Ditto.
1756 (typy_getitem): Ditto.
1757 (typy_has_key): Ditto.
1758 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1759
1760 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1761
1762 * gdbarch.h: Regenerate.
1763
1764 2011-10-26 Meador Inge <meadori@codesourcery.com>
1765
1766 * gdbarch.sh (function_list): Use 'pstring' when printing
1767 'gcore_bfd_target'.
1768 * gdbarch.c: Regenerate.
1769
1770 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1771
1772 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1773 and frame caches if PTID refers to all threads of a process.
1774
1775 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1776
1777 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1778 to create_breakpoint.
1779
1780 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1781
1782 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1783 (ppc_sysv_abi_push_dummy_call): Use it.
1784 (do_ppc_sysv_return_value): Likewise.
1785 (ppc64_sysv_abi_push_dummy_call): Likewise.
1786 (ppc64_sysv_abi_return_value): Likewise.
1787
1788 2011-10-26 Paul Koning <paul_koning@dell.com>
1789
1790 * python/lib/gdb/types.py (deepitems): New function.
1791
1792 2011-10-25 Paul Koning <paul_koning@dell.com>
1793
1794 PR python/13327
1795
1796 * python/py-value.c (value_to_value_object): Remove fetching of
1797 the value if it was lazy.
1798 (valpy_get_is_lazy): New function.
1799 (valpy_fetch_lazy): New function.
1800
1801 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1802
1803 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1804 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1805
1806 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1807
1808 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1809 event, in non-stop, if not stopping, make sure the new lwp has
1810 last_resume_kind set to resume_continue. Assert that when we're
1811 resuming the new lwp, its last_resume_kind is resume_continue.
1812
1813 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1814
1815 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1816 already set when marking the event thread as not executing in
1817 non-stop mode.
1818
1819 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1820
1821 * infrun.c (handle_inferior_event): Add debug output for
1822 TARGET_WAITKIND_NO_HISTORY.
1823
1824 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1825
1826 * NEWS: Move set/show extended-prompt to "New Options". Expand
1827 description. Fix typos.
1828
1829 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1830
1831 PR python/13310
1832
1833 * python/py-param.c (call_doc_function): Correctly deference on
1834 function exit.
1835
1836 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1837
1838 * ada-tasks.c (print_ada_task_info): Fix computation of
1839 number of tasks displayed in command output.
1840
1841 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1842 Ulrich Weigand <uweigand@de.ibm.com>
1843
1844 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1845 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1846 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1847 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1848 gdbarch_unwind_pc.
1849
1850 2011-10-20 Cary Coutant <ccoutant@google.com>
1851
1852 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1853 section to...
1854 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1855 flag. Adjust all callers.
1856 (process_psymtab_comp_unit): Remove adjustment for type section.
1857
1858 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1859
1860 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1861 arguments by adding OBJFILE. Instead of getting objfile from
1862 symbol's symtab, use new argument OBJFILE.
1863 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1864 arguments by adding OBJFILE.
1865 * gdb/dwarf2read.c (new_symbol_full): Change call to
1866 cp_scan_for_anonymous_namespaces to match new signature.
1867 * gdb/stabsread.c (define_symbol): Change call to
1868 cp_scan_for_anonymous_namespaces to match new signature.
1869
1870 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1871
1872 PR python/13308
1873 PR python/13309
1874
1875 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1876 leak.
1877 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1878 leak. Delete unused variables.
1879
1880 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1881
1882 PR python/12656
1883
1884 * python/py-frame.c (frapy_read_var): Use const struct *block.
1885 * python/py-type.c (typy_lookup_typename): Likewise.
1886 (typy_lookup_type): Likewise.
1887 (typy_legacy_template_argument): Likewise.
1888 (typy_template_argument): Likewise.
1889 (gdbpy_lookup_type): Likewise.
1890 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1891 * python/py-block.c (blpy_block_object): Likewise.
1892 (blpy_iter): Likewise.
1893 (blpy_get_start): Likewise.
1894 (blpy_get_end): Likewise.
1895 (blpy_get_function): Likewise.
1896 (blpy_get_superblock): Likewise.
1897 (set_block): Likewise.
1898 (block_to_block_object): Likewise.
1899 (block_object_to_block): Likewise.
1900 (blpy_is_valid): Likewise.
1901 (blpy_get_global_block): New function.
1902 (blpy_get_static_block): New function.
1903 (blpy_is_global): New function.
1904 (blpy_is_static): New function.
1905 * blockframe.c (block_innermost_frame): Likewise.
1906 * valops.c (value_of_variable): Likewise.
1907 * frame.h: Update prototypes.
1908 * python/python-internal.h: Likewise.
1909 * value.h: Likewise.
1910
1911 2011-10-19 Cary Coutant <ccoutant@google.com>
1912
1913 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1914 type_offset field.
1915
1916 2011-10-19 Cary Coutant <ccoutant@google.com>
1917
1918 * dwarf2read.c (peek_abbrev_code): New function.
1919 (dw2_get_file_names): Check for dummy compilation units.
1920 (create_debug_types_hash_table): Likewise.
1921 (process_psymtab_comp_unit): Likewise.
1922 (load_partial_comp_unit): Likewise.
1923 (load_full_comp_unit): Likewise.
1924
1925 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1926
1927 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1928 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1929 pt_phdr if PT_PHDR was found.
1930
1931 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1932
1933 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1934 type or "<unnamed type"> when there is no name assigned.
1935 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1936 avoid a sigint when no name is assigned.
1937
1938 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1939
1940 Revert:
1941 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1942 * dwarf2expr.c (ctx_no_read_reg): New function.
1943 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1944 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1945 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1946 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1947
1948 2011-10-16 Doug Evans <dje@google.com>
1949
1950 * NEWS: Document python gdb.printing.register_pretty_printer's new
1951 `replace' parameter.
1952
1953 2011-10-14 Keith Seitz <keiths@redhat.com>
1954
1955 PR c++/13225
1956 * eval.c (evaluate_subexp_standard): Do not construct
1957 an array of types; pass the value array directly to
1958 find_overload_match.
1959 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1960 (rank_function): Take an array of values instead of types.
1961 (rank_one_type): Add struct value * parameter.
1962 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1963 (rank_function): For each argument, pass the argument's
1964 value to rank_one_type.
1965 (rank_one_type): Add VALUE parameter.
1966 If the parameter type is a pointer and the argument type
1967 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1968 VALUE is zero.
1969 Update all calls to rank_one_type, passing NULL for new
1970 VALUE parameter.
1971 * valarith.c (value_user_defined_cpp_op): Do not construct
1972 an array of types; pass the value array directly to
1973 find_overload_match.
1974 * valops.c (find_overload_method_list): Take an array of
1975 values instead of types.
1976 Save the type of OBJP for later use.
1977 Update calls to find_oload_champ, and find_oload_champ_namespace.
1978 (find_oload_champ_namespace): Take an array of values instead
1979 of types.
1980 (find_oload_champ_namespace_loop): Likewise.
1981 (find_oload_champ): Likewise.
1982 (classify_oload_match): Inspect all arguments
1983 until INCOMPATIBLE is found. Return the worst badness found
1984 otherwise.
1985 (compare_parameters): Update call to rank_one_type.
1986 * value.h (find_overload_match): Take an array of values instead
1987 of types.
1988
1989 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1990
1991 Drop lazy lm_info reading.
1992 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1993 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1994 (lm_info_read): New function.
1995 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1996 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1997 lm_dynamic_from_link_map.
1998 (lm_next, lm_prev, lm_name): Remove.
1999 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2000 initialization incl. read_memory. No longer use lm_name.
2001 (svr4_free_so): Drop lm_info->lm freeing.
2002 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2003 explicit lm_addr and lm initialization.
2004 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2005 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2006 lm_name.
2007
2008 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2009 Paul Pluzhnikov <ppluzhnikov@google.com>
2010
2011 * defs.h (struct so_list): New forward declaration.
2012 (make_cleanup_free_so): New declaration.
2013 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2014 (svr4_free_so): Move the function here from downwards. Handle NULL
2015 so->lm_info.
2016 (svr4_free_library_list): New.
2017 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2018 Use more cleanups. Use new parameter ignore_first instead of
2019 ignore_first_link_map_entry.
2020 (svr4_current_sos): New variable ignore_first, initialize it. New
2021 variable back_to, use it for svr4_free_library_list protection.
2022 (svr4_free_so): Remove - move upwards.
2023 * utils.c: Include solist.h.
2024 (do_free_so, make_cleanup_free_so): New functions.
2025
2026 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2027
2028 Fix internal error regression.
2029 * value.c (value_primitive_field): Handle value_optimized_out. Move
2030 packed bitfields comment.
2031
2032 2011-10-13 Tom Tromey <tromey@redhat.com>
2033
2034 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2035 always released.
2036
2037 2011-10-13 Tom Tromey <tromey@redhat.com>
2038
2039 * python/py-type.c (typy_has_key): Make 'field' const.
2040
2041 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2042
2043 * remote.c (remote_save_trace_data): Invert comparison.
2044
2045 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2046
2047 * tracepoint.c (trace_save_command): Use filename instead of
2048 args when printing.
2049
2050 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2051
2052 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2053 if .size is 0.
2054
2055 2011-10-13 Yao Qi <yao@codesourcery.com>
2056
2057 PR gdb/12703
2058 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2059 whether insn is a 32-bit Thumb-2 instruction.
2060 (thumb_in_function_epilogue_p): Likewise.
2061 (thumb_get_next_pc_raw): Likewise.
2062 (arm_breakpoint_from_pc): Likewise.
2063
2064 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2065
2066 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2067 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2068 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2069 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2070 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2071 zero DATA.
2072 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2073 validity.
2074 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2075 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2076 clear DATA on zero SIZE.
2077
2078 2011-10-12 Doug Evans <dje@google.com>
2079
2080 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2081 header->first_die_offset here. All callers updated.
2082
2083 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2084
2085 Fix compatibility with texinfo versions older than 4.12.
2086 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2087 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2088 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2089 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2090 * configure: Regenerate.
2091 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2092 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2093 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2094
2095 2011-10-12 Gary Benson <gbenson@redhat.com>
2096
2097 * breakpoint.h (pc_at_non_inline_function): Declare.
2098 * breakpoint.c (is_non_inline_function,
2099 pc_at_non_inline_function): New functions.
2100 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2101 if the stop is at a location where functions cannot be inlined.
2102
2103 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2104
2105 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2106 the core wanted them stopped, or if they now have a pending event
2107 to report.
2108 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2109 down to stop_and_resume_callback.
2110 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2111 having new pending events after calling linux_nat_filter_event.
2112
2113 2011-10-11 Sterling Augustine <saugustine@google.com>
2114
2115 * dwarf2read.c: Undo inadvertent changes in previous commit.
2116
2117 2011-10-11 Sterling Augustine <saugustine@google.com>
2118
2119 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2120 logic.
2121
2122 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2123
2124 * symfile.c (separate_debug_file_exists): Fix condition.
2125
2126 2011-10-11 David S. Miller <davem@davemloft.net>
2127
2128 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2129 static.
2130 * regcache.h (regcache_restore): Remove declaration.
2131
2132 * gdbarch.sh: New field 'long_long_align_bit'.
2133 * gdbarch.c, gdbarch.h: Regenerate.
2134 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2135 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2136
2137 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2138
2139 Revert this part of:
2140 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2141 Support @entry in input expressions.
2142 * c-exp.y (ENTRY, unknown_cpp_name): New.
2143 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2144 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2145 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2146 (name_not_typename: ENTRY): New.
2147 (yylex): Recognize ENTRY.
2148
2149 Reimplement @entry in input expressions.
2150 * c-exp.y (ENTRY): New.
2151 (variable: name_not_typename ENTRY): New.
2152 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2153
2154 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2155
2156 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2157 parent and child's pids as soon as we detect a clone event.
2158 Adjust another debug message.
2159
2160 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2161
2162 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2163 not zombie instead of reading the whole file.
2164
2165 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2166
2167 Fix separate debuginfo warning with "remote:" access.
2168 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2169 * symfile.c (get_file_crc): New function with the code moved from ...
2170 (separate_debug_file_exists): ... this function, specifically variables
2171 buffer and count. New variable verified_as_different, set it. Remove
2172 file_crc initialization. Verify also if both files are not the same
2173 manually, if needed.
2174
2175 2011-10-11 Yao Qi <yao@codesourcery.com>
2176
2177 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2178 to get address.
2179
2180 2011-10-10 Doug Evans <dje@google.com>
2181
2182 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2183 libthread_db when we load libpthread or the main symbol file.
2184 (thread_db_inferior_created): New function.
2185 (_initialize_thread_db): Attach inferior_created observer.
2186 * linux-nat.c (linux_child_post_attach): Remove call to
2187 check_for_thread_db.
2188 (linux_child_post_startup_inferior): Ditto.
2189 * objfiles.h (OBJF_MAINLINE): Define.
2190 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2191 allocate_objfile when appropriate.
2192
2193 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2194
2195 PR gdb/13218
2196 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2197 Remove unused variables.
2198 (get_linux_version): Remove function.
2199 (_initialize_arm_linux_nat): Do not call it.
2200
2201 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2202
2203 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2204 new clone lwp if the core asked it to stop. Don't pass on
2205 unexpected signals to the new clone; leave them pending instead.
2206
2207 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2208
2209 * linux-nat.c (resume_lwp): Remove redundant debug output.
2210
2211 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2212
2213 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2214 last_resume_kind before clearing it, and use the copy instead to
2215 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2216 resume_clear_callback in the non-stop path too.
2217
2218 2011-10-09 Yao Qi <yao@codesourcery.com>
2219
2220 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2221 Honor OPTIONS and VAL's type.
2222 (common_val_print, value_print): Update to pass one more parameter.
2223
2224 2011-10-09 Doug Evans <dje@google.com>
2225
2226 Add new "alias" command.
2227 * NEWS: Mention new command.
2228 * command.h (valid_user_defined_cmd_name_p): Declare.
2229 * defs.h (make_cleanup_dyn_string_delete): Declare.
2230 * utils.c: #include "dyn-string.h".
2231 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2232 * cli/cli-cmds.c: #include "dyn-string.h".
2233 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2234 (init_cli_cmds): Add new command.
2235 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2236
2237 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2238
2239 Fix compatibility with older GCCs.
2240 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2241 * stack.c (read_frame_arg): Initialize val_deref.
2242
2243 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2244
2245 Entry values NEWS entries, DWARF disassembly support.
2246 * NEWS: New entry values entry.
2247 (set print entry-values, show print entry-values)
2248 (set debug entry-values, show debug entry-values): New entries.
2249 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2250 indent. Remove variable start. Move header printing out. Respect
2251 INDENT. Support DW_OP_GNU_entry_value.
2252 (locexpr_describe_location_1): Move the header printing here, extend
2253 the disassemble_dwarf_expression passed parameters.
2254
2255 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2256
2257 Display @entry parameter values even for references.
2258 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2259 coerce_ref_if_computed.
2260 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2261 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2262 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2263 existing push_dwarf_reg_entry_value call. Add new detection calling
2264 dwarf_block_to_dwarf_reg_deref. Update the error message.
2265 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2266 * dwarf2expr.h
2267 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2268 parameter deref_size, describe it in the comment.
2269 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2270 (dwarf_block_to_dwarf_reg_deref): New declaration.
2271 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2272 deref_size, describe it in the function comment. New variables
2273 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2274 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2275 describe it in the function comment. Fetch the alternative block
2276 accoring to DEREF_SIZE.
2277 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2278 (entry_data_value_free_closure, entry_data_value_funcs): New.
2279 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2280 outer_val, target_val, val and addr. Try to fetch and create also
2281 referenced value content.
2282 (pieced_value_funcs): NULL value for coerce_ref.
2283 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2284 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2285 coerce_ref_if_computed.
2286 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2287 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2288 * stack.c (read_frame_arg): Compare also dereferenced values.
2289 * value.c (value_computed_funcs): Make the parameter v const, use
2290 value_lval_const for it.
2291 (value_lval_const, coerce_ref_if_computed): New function.
2292 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2293 * value.h (struct lval_funcs): New field coerce_ref.
2294 (value_computed_funcs): Make the parameter v const.
2295 (value_lval_const, coerce_ref_if_computed): New declarations.
2296
2297 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2298
2299 Support @entry in input expressions.
2300 * c-exp.y (ENTRY, unknown_cpp_name): New.
2301 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2302 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2303 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2304 (name_not_typename: ENTRY): New.
2305 (yylex): Recognize ENTRY.
2306 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2307 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2308 Likewise.
2309 * parse.c (operator_length_standard): Likewise.
2310 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2311
2312 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2313
2314 Display referenced values in backtraces.
2315 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2316 * stack.c (print_frame_arg): Likewise.
2317
2318 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2319
2320 Make some lval_funcs methods to default on NULL.
2321 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2322 NULL.
2323 (value_assign): Check if lval_computed write method is NULL.
2324 * value.h (struct lval_funcs): Comment NULL values for read and write
2325 methods.
2326
2327 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2328
2329 Display @entry parameter values (without references).
2330 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2331 New functions.
2332 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2333 New declarations.
2334 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2335 entry record.
2336 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2337 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2338 functions.
2339 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2340 (loclist_read_variable_at_entry): New function.
2341 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2342 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2343 DW_AT_location, call dwarf_block_to_sp_offset for it.
2344 * frame.h (print_entry_values_no, print_entry_values_only)
2345 (print_entry_values_preferred, print_entry_values_if_needed)
2346 (print_entry_values_both, print_entry_values_compact)
2347 (print_entry_values_default, print_entry_values): New declarations.
2348 (struct frame_arg): New field entry_kind.
2349 (read_frame_arg): New parameter entryargp.
2350 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2351 arg->entry_kind. Optionally print the `@entry' suffix.
2352 (list_args_or_locals): New variable entryarg, initialize it.
2353 Initialize also entry_kind of arg and entryarg. Conditionalize
2354 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2355 xfree for entryarg.error.
2356 * stack.c (print_entry_values_no, print_entry_values_only)
2357 (print_entry_values_preferred, print_entry_values_if_needed)
2358 (print_entry_values_both, print_entry_values_compact)
2359 (print_entry_values_default, print_entry_values_choices)
2360 (print_entry_values): New variables.
2361 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2362 print the `@entry' suffix, possibly in combination for
2363 print_entry_values_compact.
2364 (read_frame_arg): New parameter entryargp, new variables entryval,
2365 entryval_error and val_equal. Read in also entryargp, respect
2366 print_entry_values, compare the values using val_equal, fill in also
2367 argp->entry_kind (together with entryargp->entry_kind).
2368 (print_frame_args): New variable entryarg, initialize it.
2369 Conditionalize print_frame_arg for arg, add print_frame_arg for
2370 entryarg. Call xfree for entryarg.error.
2371 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2372 * symtab.h (struct symbol_computed_ops): New field
2373 read_variable_at_entry.
2374
2375 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2376
2377 Code reshuffle.
2378 * frame.h (struct frame_arg): New definition.
2379 (read_frame_arg): New declaration.
2380 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2381 (list_args_or_locals): ... the code here. New variable arg, call
2382 read_frame_arg and list_arg_or_local with it. Unify the
2383 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2384 arg.error.
2385 * stack.c (print_frame_arg): New functiom from the code of
2386 print_frame_args.
2387 (read_frame_arg): New function.
2388 (print_frame_args): Remove variable val. New variable arg, call
2389 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2390
2391 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2392
2393 Protect entry values against self tail calls.
2394 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2395 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2396
2397 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2398
2399 Recognize virtual tail call frames.
2400 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2401 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2402 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2403 * dwarf2-frame-tailcall.c: New file.
2404 * dwarf2-frame-tailcall.h: New file.
2405 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2406 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2407 REGS.PREV only after CIE execution.
2408 (struct dwarf2_frame_cache): New field tailcall_cache.
2409 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2410 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2411 parts, try to find entry_cfa_sp_offset. Call
2412 dwarf2_tailcall_sniffer_first.
2413 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2414 when appropriate.
2415 (dwarf2_frame_dealloc_cache): New function.
2416 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2417 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2418 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2419 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2420 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2421 * dwarf2loc.c (func_addr_to_tail_call_list)
2422 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2423 (call_site_find_chain_1, call_site_find_chain): New.
2424 * dwarf2loc.h (struct call_site_chain): New.
2425 (call_site_find_chain): New declaration.
2426 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2427 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2428 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2429 * stack.c (frame_info): Support also TAILCALL_FRAME.
2430
2431 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2432
2433 Tail call sites reader implementation.
2434 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2435 fill in TYPE_TAIL_CALL_LIST.
2436 * gdbtypes.h (struct func_type): New field tail_call_list.
2437 (struct call_site): New field tail_call_next.
2438 (TYPE_TAIL_CALL_LIST): New definition.
2439
2440 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2441
2442 Implement basic support for DW_TAG_GNU_call_site.
2443 * block.c: Include gdbtypes.h and exceptions.h.
2444 (call_site_for_pc): New function.
2445 * block.h (call_site_for_pc): New declaration.
2446 * defs.h: Include hashtab.h.
2447 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2448 declarations.
2449 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2450 ctx_no_push_dwarf_reg_entry_value.
2451 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2452 (dwarf_block_to_dwarf_reg): New function.
2453 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2454 (ctx_no_push_dwarf_reg_entry_value): New function.
2455 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2456 push_dwarf_reg_entry_value.
2457 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2458 declarations.
2459 * dwarf2loc.c: Include gdbcmd.h.
2460 (dwarf_expr_ctx_funcs): New forward declaration.
2461 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2462 (dwarf_expr_reg_to_entry_parameter)
2463 (dwarf_expr_push_dwarf_reg_entry_value): New.
2464 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2465 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2466 (needs_dwarf_reg_entry_value): New function.
2467 (needs_frame_ctx_funcs): Install it.
2468 (_initialize_dwarf2loc): New function.
2469 * dwarf2loc.h (entry_values_debug): New declaration.
2470 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2471 (read_call_site_scope): New forward declaration.
2472 (process_full_comp_unit): Copy call_site_htab.
2473 (process_die): Support DW_TAG_GNU_call_site.
2474 (read_call_site_scope): New function.
2475 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2476 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2477 (cleanup_htab): Delete.
2478 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2479 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2480 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2481 FIELD_LOC_KIND_DWARF_BLOCK.
2482 * gdbtypes.h (enum field_loc_kind): New entry
2483 FIELD_LOC_KIND_DWARF_BLOCK.
2484 (struct main_type): New loc entry dwarf_block.
2485 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2486 (TYPE_FIELD_DWARF_BLOCK): New.
2487 * python/py-type.c: Include dwarf2loc.h.
2488 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2489 internal_error call on unknown FIELD_LOC_KIND.
2490 * symtab.h (struct symtab): New field call_site_htab.
2491 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2492 (core_addr_hash, core_addr_eq): New functions.
2493
2494 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2495
2496 Code reshuffle.
2497 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2498 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2499 calling_convention under func_stuff there.
2500 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2501 (init_type) <TYPE_CODE_FUNC>: Likewise.
2502 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2503 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2504 * gdbtypes.h (enum type_specific_kind): Change
2505 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2506 (struct main_type) <type_specific>: Change calling_convention to
2507 func_stuff. Move calling_convention to ...
2508 (struct func_type): ... this new struct.
2509 (INIT_FUNC_SPECIFIC): New #define.
2510 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2511
2512 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2513
2514 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2515 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2516 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2517 ctx->ref_addr_size. Handle its invalid value.
2518 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2519 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2520 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2521 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2522 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2523 (dwarf2_per_cu_ref_addr_size): New function.
2524
2525 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2526
2527 Code cleanup.
2528 * dwarf2read.c (per_cu_header_read_in): New function.
2529 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2530 variables cu_header_local and cu_headerp.
2531
2532 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2533
2534 Fix initial language detection with -readnow.
2535 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2536 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2537 searches only for global symbols.
2538
2539 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2540
2541 Fix printed anonymous struct name.
2542 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2543 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2544 (anonymous_struct_prefix): New function.
2545 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2546 (dwarf2_name): Strip for anonymous structs any prefixes.
2547
2548 2011-10-07 Doug Evans <dje@google.com>
2549
2550 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2551 `replace'.
2552
2553 * python/lib/gdb/printing.py: Whitespace cleanup.
2554
2555 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2556 warning.
2557
2558 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2559
2560 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2561 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2562 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2563 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2564 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2565 (arm_linux_remove_watchpoint): Adjust.
2566 * i386-linux-nat.c (i386_linux_dr_set_control)
2567 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2568 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2569 (ia64_linux_remove_watchpoint): Adjust.
2570 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2571 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2572 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2573 (ppc_linux_insert_mask_watchpoint)
2574 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2575 (ppc_linux_remove_watchpoint): Adjust.
2576 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2577 Adjust.
2578
2579 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2580
2581 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2582 (clear_win32_environment): New function for Cygwin to clear out
2583 Win32 environment.
2584 (windows_create_inferior): Prepare new environment from in_env
2585 for Cygwin, too.
2586
2587 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2588
2589 PR python/13264
2590 * python/py-value.c (valpy_call): Check that arguments are
2591 a tuple.
2592 (is_intlike): Remove call to CHECK_TYPEDEF.
2593 (valpy_nonzero): Catch GDB exceptions.
2594 (valpy_absolute): Ditto.
2595 (valpy_lazy_string): Ditto.
2596 (valpy_call): Ditto.
2597 (valpy_get_is_optimized_out): Ditto.
2598 (valpy_long): Ditto.
2599 (valpy_float): Ditto.
2600 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2601 (valpy_richcompare): Ditto.
2602
2603 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2604
2605 * inferior.h (disable_randomization): Declare.
2606 * infrun.c (disable_randomization): New global variable.
2607 (show_disable_randomization): New function.
2608 (set_disable_randomization): Likewise.
2609 (_initialize_infrun): Install set/show disable-randomization
2610 commands.
2611 * linux-nat.c (disable_randomization): Remove.
2612 (show_disable_randomization): Likewise.
2613 (set_disable_randomization): Likewise.
2614 (_initialize_linux_nat): No longer install set/show
2615 disable-randomization commands here.
2616 (linux_nat_supports_disable_randomization): New function.
2617 (linux_nat_add_target): Install it.
2618 * remote.c (PACKET_QDisableRandomization): New enum value.
2619 (remote_protocol_packets): Support QDisableRandomization.
2620 (_initialize_remote): Likewise.
2621 (remote_supports_disable_randomization): New function.
2622 (init_remote_ops): Install it.
2623 (extended_remote_supports_disable_randomization): New function.
2624 (init_extended_remote_ops): Install it.
2625 (extended_remote_disable_randomization): New function.
2626 (extended_remote_create_inferior_1): Call it.
2627 * target.h (struct target_ops): Add to_supports_disable_randomization.
2628 (target_supports_disable_randomization): Add prototype.
2629 * target.c (target_supports_disable_randomization): New function.
2630 (find_default_supports_disable_randomization): Likewise.
2631 (init_dummy_target): Install it.
2632
2633 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2634
2635 Allow Python notification of new object-file loadings.
2636 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2637 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2638 Add build rule for this file.
2639 * python/py-event.h (emit_new_objfile_event): New prototype.
2640 (newobjfile): New Python event emitter.
2641 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2642 Python event registry.
2643 * python/py-inferior.c: Include objfiles.h
2644 (python_new_objfile): New function.
2645 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2646 observers.
2647 * python/py-newobjfileevent.c: New file.
2648 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2649 prototype.
2650 * python/python.c (_initialize_python): Add
2651 gdbpy_initialize_new_objfile_event call.
2652 * NEWS: Add item for new Python event "gdb.newobjfile"
2653
2654 2011-10-05 Tristan Gingold <gingold@adacore.com>
2655
2656 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2657 Extract the ravenscar task name from the symbol for the atcb.
2658
2659 2011-10-04 Paul Koning <paul_koning@dell.com>
2660
2661 * python/py-type.c (typy_make_iter): Add forward declaration.
2662 (typy_fields_items): Use the gdb.Type iterator.
2663
2664 2011-10-04 Paul Koning <paul_koning@dell.com>
2665
2666 * NEWS: Add entry for Python gdb.Type mapping methods.
2667
2668 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2669
2670 PR python/12691: Add the inferior to Python exited event
2671 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2672 to exited_event.
2673 * python/py-event.h (emit_exited_event): Likewise
2674 * python/-inferior.c (python_inferior_exit): Likewise
2675
2676 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2677
2678 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2679 in output of -ada-task-info GDB/MI command.
2680
2681 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2682
2683 * ada-lang.h (struct inferior): Declare.
2684 (print_ada_task_info): Add declaration.
2685 * ada-tasks.c (print_ada_task_info): Make non-static.
2686 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2687 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2688 * mi/mi-main.c: #include "ada-lang.h".
2689 (mi_cmd_list_features): Add "ada-task-info" to the list
2690 of supported features.
2691 (mi_cmd_ada_task_info): New function.
2692
2693 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2694
2695 * python/python.c (python_run_simple_file): New function.
2696 (source_python_script, source_python_script_for_objfile):
2697 Replace call to PyRun_SimpleFile by call to
2698 python_run_simple_file.
2699
2700 2011-10-03 Paul Koning <paul_koning@dell.com>
2701
2702 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2703 (value_to_value_object): Fetch value if it was lazy.
2704
2705 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2706
2707 Code cleanup.
2708 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2709 Rearrange the code for it.
2710
2711 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2712
2713 * breakpoint.c (bkpt_print_recreate): Add call to
2714 print_recreate_thread.
2715
2716 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2717
2718 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2719 PTRACE_GETFDPIC_INTERP): Define.
2720
2721 2011-09-28 Yao Qi <yao@codesourcery.com>
2722
2723 * symfile.c (add_symbol_file_command): Update message on usage.
2724
2725 2011-09-28 Paul Koning <paul_koning@dell.com>
2726
2727 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2728 (typy_length, typy_get, typy_has_key, typy_make_iter)
2729 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2730 (typy_iterator_iter, typy_iterator_iternext)
2731 (typy_iterator_dealloc): New functions to implement standard
2732 Python mapping methods on gdb.Type object.
2733 (gdb.TypeIterator): New Python type.
2734 * python/python-internal.h (gdbpy_iter_kind): New enum.
2735
2736 2011-09-28 David S. Miller <davem@davemloft.net>
2737
2738 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2739 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2740 * sparc-tdep.c (sparc_complex_floating_p): New function.
2741 (sparc32_store_arguments): Handle complex floats.
2742 (sparc32_extract_return_value): Likewise.
2743 (sparc32_store_return_value): Likewise.
2744 (sparc32_stabs_argument_has_addr): Likewise.
2745 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2746 (sparc64_store_floating_fields): Handle complex floats.
2747 (sparc64_store_arguments): Likewise.
2748 (sparc64_store_return_value): Likewise.
2749
2750 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2751
2752 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2753 before the change on 2006-12-09.
2754 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2755 generates the environment block for CreateProcessA, modulo the
2756 Cygwin-specific parts that are not needed here.
2757
2758 2011-09-27 Tristan Gingold <gingold@adacore.com>
2759
2760 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2761 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2762 (darwin_solib_get_all_image_info_addr_at_init): New function.
2763 (darwin_solib_read_all_image_info_addr): Likewise.
2764 (darwin_solib_create_inferior_hook): Use the above two functions.
2765 * darwin-nat.c (darwin_execvp): Renames retval to res.
2766 (darwin_read_write_inferior): Update comment.
2767 (darwin_read_dyld_info): New function.
2768 (darwin_xfer_partial): Handle DYLD_INFO.
2769
2770 2011-09-27 Stan Shebs <stan@codesourcery.com>
2771
2772 Add return address collection for tracepoints.
2773 * tracepoint.c (encode_actions_1): Add case for $_ret.
2774 (validate_actionline): Check for $_ret.
2775 (trace_dump_actions): Ditto.
2776 * ax-gdb.h (gen_trace_for_return_address): Declare.
2777 * ax-gdb.c: Include arch-utils.h.
2778 (gen_trace_for_return_address): New function.
2779 (agent_command): Add return address special case.
2780 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2781 (amd64_gen_return_address): New function.
2782 (amd64_init_abi): Call it.
2783 * i386-tdep.c: Include ax.h and ax-gdb.h.
2784 (i386_gen_return_address): New function.
2785 (i386_init_abi): Call it.
2786 * arch-utils.h (default_gen_return_address): Declare.
2787 * arch-utils.c (default_gen_return_address): New function.
2788 * gdbarch.sh (gen_return_address): New method.
2789 * gdbarch.h, gdbarch.c: Regenerate.
2790
2791 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2792
2793 PR gdb/13079
2794 * i386-tdep.c (i386_frame_align): New.
2795 (i386_gdbarch_init): Use i386_frame_align.
2796
2797 2011-09-23 Yao Qi <yao@codesourcery.com>
2798
2799 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2800 to get address.
2801
2802 2011-09-22 Tristan Gingold <gingold@adacore.com>
2803
2804 * fork-child.c (fork_inferior): Add exec_fun parameter.
2805 Call exec_fun or execvp.
2806 * inferior.h: Adjust prototype.
2807 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2808 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2809 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2810 * procfs.c (procfs_create_inferior): Ditto.
2811 * darwin-nat.c (darwin_execvp): New function.
2812 (darwin_create_inferior): Use it.
2813
2814 2011-09-22 Yao Qi <yao@codesourcery.com>
2815
2816 * infrun.c (context_switch): Print debug message when switching to
2817 a different thread.
2818
2819 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2820
2821 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2822 complex and vector types.
2823 (s390_return_value_convention): Likewise.
2824
2825 (s390_value_from_register): Call check_typedef.
2826 (extend_simple_arg): Likewise.
2827 (alignment_of): Likewise.
2828 (s390_push_dummy_call): Likewise.
2829 (s390_return_value): Likewise.
2830
2831 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2832
2833 * event-top.c (async_disconnect): If an exception is thrown from
2834 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2835 catch_errors.
2836 * top.c (quit_cover): Return void and take no arguments.
2837 * top.h (quit_cover): Update prototype.
2838
2839 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2840
2841 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2842 current_uiout, not uiout.
2843
2844 2011-09-19 Doug Evans <dje@google.com>
2845
2846 * python/py-auto-load.c (source_section_scripts): Fix file
2847 descriptor leak.
2848 * python/python.c (source_python_script_for_objfile): Tweak comments.
2849
2850 2011-09-18 Yao Qi <yao@codesourcery.com>
2851 Ulrich Weigand <ulrich.weigand@linaro.org>
2852
2853 Support displaced stepping for Thumb 16-bit insns.
2854 * arm-tdep.c (THUMB_NOP) Define.
2855 (thumb_copy_unmodified_16bit): New.
2856 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2857 (thumb_copy_alu_reg): New.
2858 (arm_copy_svc): Move some common code to ...
2859 (install_svc): ... here. New.
2860 (thumb_copy_svc): New.
2861 (install_pc_relative): New.
2862 (thumb_copy_pc_relative_16bit): New.
2863 (thumb_decode_pc_relative_16bit): New.
2864 (thumb_copy_16bit_ldr_literal): New.
2865 (thumb_copy_cbnz_cbz): New.
2866 (cleanup_pop_pc_16bit_all): New.
2867 (thumb_copy_pop_pc_16bit): New.
2868 (thumb_process_displaced_16bit_insn): New.
2869 (thumb_process_displaced_32bit_insn): New.
2870 (thumb_process_displaced_insn): process thumb instruction.
2871
2872 Support displaced stepping for Thumb 32-bit insns.
2873 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2874 (thumb2_copy_preload): New.
2875 (thumb2_copy_copro_load_store): New.
2876 (thumb2_copy_b_bl_blx): New.
2877 (thumb2_copy_alu_imm): New.
2878 (thumb2_copy_load_reg_imm): New.
2879 (thumb2_copy_load_literal): New
2880 (thumb2_copy_block_xfer): New.
2881 (thumb_32bit_copy_undef): New.
2882 (thumb_32bit_copy_unpred): New.
2883 (thumb2_decode_ext_reg_ld_st): New.
2884 (thumb2_decode_svc_copro): New.
2885 (decode_thumb_32bit_store_single_data_item): New.
2886 (thumb_copy_pc_relative_32bit): New.
2887 (thumb_decode_pc_relative_32bit): New.
2888 (decode_thumb_32bit_ld_mem_hints): New.
2889 (thumb2_copy_table_branch): New
2890 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2891 instructions.
2892
2893 2011-09-18 Yao Qi <yao@codesourcery.com>
2894
2895 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2896 (install_b_bl_blx): Likewise.
2897
2898 2011-09-17 Yao Qi <yao@codesourcery.com>
2899
2900 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2901 (install_load_store): ... this. New.
2902 Change parameter BYTE to SIZE.
2903 (arm_copy_ldr_str_ldrb_strb): Update caller.
2904 (arm_decode_ld_st_word_ubyte): Update caller.
2905
2906 2011-09-17 Yao Qi <yao@codesourcery.com>
2907
2908 * infrun.c (displaced_step_fixup): Move some code ...
2909 (displaced_step_restore): ... here. New function.
2910 (handle_inferior_event): Cleanup displaced stepping state for both
2911 child and parent when get forked or vforked event.
2912 * regcache.c (get_thread_arch_aspace_regcache): New function.
2913 get_thread_arch_regcache (): Call it.
2914
2915 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2916
2917 * ada-tasks.c (print_ada_task_info): New function, merging
2918 short_task_info and info_tasks together. Reimplement using
2919 ui-out instead of printing to stdout directly. Move the code
2920 building and checking the task list here, instead of leaving it
2921 in info_tasks_command.
2922 (info_task): Move the code building and checking the task
2923 list here, instead of leaving it in info_tasks_command.
2924 (info_tasks_command): Delete code building and checking
2925 the task list - moved elsewhere. Update calls to info_tasks
2926 and info_task.
2927
2928 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2929
2930 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2931
2932 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2933
2934 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2935
2936 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2937
2938 * ada-lang.h (ada_build_task_list): Remove parameter
2939 `warn_if_null'.
2940 * ada-tasks.c (ada_build_task_list): Remove parameter
2941 `warn_if_null'. Adjust implementation and documentation.
2942 (valid_task_id, ada_get_environment_task)
2943 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2944 (info_tasks_command): Adjust implementation.
2945 (task_command): Likewise.
2946 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2947 to ada_build_task_list.
2948
2949 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2950
2951 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2952 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2953 (ada_tasks_inferior_data_handle): New static global.
2954 (get_ada_tasks_inferior_data): New function.
2955 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2956 (ada_get_environment_task, iterate_over_live_ada_tasks)
2957 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2958 Adjust.
2959 (ada_set_current_inferior_known_tasks_addr): New function.
2960 (read_known_tasks, ada_build_task_list, short_task_info)
2961 (info_tasks, info_task, info_tasks_command, task_command_1)
2962 (task_command, ada_task_list_changed): Adjust.
2963 (ada_tasks_invalidate_inferior_data): New function.
2964 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2965 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2966 * ada-lang.h (struct inferior): Add declaration.
2967 (ada_task_list_changed): Update profile.
2968 * remote-wtx-pd.c: #include "inferior.h".
2969 (switch_to_pd_internal): Update call to ada_task_list_changed.
2970
2971 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2972
2973 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2974 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2975 (atcb_fieldno): Delete these static globals.
2976 (struct ada_tasks_pspace_data): New struct.
2977 (ada_tasks_pspace_data_handle): New static global.
2978 (get_ada_tasks_pspace_data): New function.
2979 (ada_tasks_invalidate_pspace_data): New function.
2980 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2981 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2982 (_initialize_tasks): Create this module's per-progspace
2983 data handle.
2984
2985 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2986
2987 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2988
2989 2011-09-16 Tristan Gingold <gingold@adacore.com>
2990
2991 * fork-child.c (fork_inferior): Update comment. Use alloca
2992 instead of xmalloc for argv. Move len and shell_command
2993 declarations in the block where they are used.
2994 Only call execvp. Factorize failure code.
2995
2996 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2997
2998 Code cleanup.
2999 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3000 `exp_element' instead of an element of the same and make the function
3001 static.
3002 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3003 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3004 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3005 Change argument of `write_exp_elt' function call.
3006 Remove extra spaces from comments.
3007 * parser-defs.h (write_exp_elt): Remove prototype.
3008
3009 2011-09-15 Paul Koning <paul_koning@dell.com>
3010
3011 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3012 count of item appended to list.
3013 * python/py-type.c (typy_fields): Likewise.
3014
3015 2011-09-15 Paul Koning <paul_koning@dell.com>
3016
3017 * MAINTAINERS (Write After Approval): Add myself to the list.
3018
3019 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3020
3021 PR threads/12628
3022 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3023 processes with multiple threads.
3024 (inf_has_multiple_thread_cb): New function.
3025 (inf_has_multiple_threads): New function.
3026
3027 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3028
3029 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3030 * python/py-inferior.c (GdbMethods): New Python method definition.
3031
3032 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3033
3034 Handle multiple breakpoint hits in Python interface:
3035 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3036 variable to breakpoints.
3037 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3038 bps instead of single breakpoint. Fix some space typos.
3039 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3040 variable to breakpoints.
3041
3042 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3043
3044 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3045 note if the breakpoint is internal.
3046
3047 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3048
3049 * MAINTAINERS (Write After Approval): Add myself to the list
3050
3051 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3052
3053 * infrun.c (prepare_for_detach, wait_for_inferior)
3054 (fetch_inferior_event): Don't flush the register cache.
3055 * remote.c (struct stop_reply) <regcache>: Add comment.
3056
3057 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3058
3059 Remove excessive DWARF expressions memory duplication.
3060 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3061 for block.data.
3062 (indirect_pieced_value): Remove variable result. Remove variable
3063 back_to and its use for baton.data.
3064 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3065 block.data.
3066 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3067 Update the function comment.
3068
3069 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3070
3071 * inferior.h (ALL_INFERIORS): New.
3072 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3073 for a stopped thread.
3074 (thread_db_find_new_threads): Look for threads in all inferiors.
3075
3076 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3077
3078 * breakpoint.c (update_watchpoint): Handle the case of the
3079 watchpoint to update not being in the breakpoint list yet.
3080 (hw_watchpoint_use_count): New, factored out from
3081 hw_watchpoint_used_count.
3082 (hw_watchpoint_used_count): Rename to ...
3083 (hw_watchpoint_used_count_others): ... this. Add `except'
3084 parameter. Don't count resources of `except'. Use
3085 hw_watchpoint_use_count.
3086
3087 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3088
3089 * gdbthread.h (enum thread_state): Moved here.
3090 (struct thread_info): Rename `executing_' field to `executing' and
3091 `state_' to `state'.
3092 * thread.c (enum thread_state): Moved to gdbthread.h.
3093 (new_thread, add_thread_silent, delete_thread_1)
3094 (any_live_thread_of_process, thread_alive, set_running)
3095 (set_running, is_thread_state, any_running, is_executing)
3096 (set_executing, finish_thread_state, print_thread_info)
3097 (do_captured_thread_select): Adjust.
3098
3099 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3100
3101 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3102 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3103
3104 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3105 Matt Rice <ratmice@gmail.com>
3106
3107 PR gdb/13175
3108
3109 * interps.c (struct interp) <interpreter_out>: Delete field.
3110 (interp_new): Remove the data and uiout parameters and adjust.
3111 (interp_set): Only set the current_uiout from the interpreter's
3112 uiout after initializing the interpreter. Adjust call to
3113 init_proc.
3114 (interp_ui_out): Adjust to call procs->ui_out_proc.
3115 (interp_data, interp_name): New.
3116 * interps.h (interp_init_ftype): Add `self' parameter.
3117 (interp_ui_out_ftype): New typedef.
3118 (struct interp_procs) <ui_out_proc>: New method pointer.
3119 (interp_new): Remove the data and uiout parameters.
3120 (interp_data, interp_name): Declare.
3121 * tui/tui-interp.c (tui_init): Adjust prototype.
3122 (tui_ui_out): New.
3123 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3124 tui_out here. Adjust call to interp_new.
3125 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3126 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3127 (cli_ui_out): New.
3128 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3129 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3130 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3131 Initialize mi->uiout depending on the mi_version as extracted from
3132 the interpreter's name.
3133 (mi_ui_out): New.
3134 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3135 interp_new. Don't allocate the ui_out's of the interpreters here.
3136
3137 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3138
3139 * solib.c (solib_used): New function.
3140 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3141 by another so_list object before freeing it.
3142
3143 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3144
3145 Code cleanup.
3146 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3147 values.
3148
3149 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3150
3151 Code cleanup.
3152 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3153 (amd64_skip_xmm_prologue): ... this new function. Describe its
3154 parameters. No longer use amd64_prologue_line_bug.
3155 * defs.h (producer_is_gcc_ge_4): New declaration.
3156 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3157 (process_full_comp_unit): Update its caller. Remove
3158 amd64_prologue_line_bug initialization.
3159 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3160 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3161
3162 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3163
3164 * linux-nat.h (enum resume_kind): New.
3165 (struct lwp_info) <last_resume_kind>: New field.
3166 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3167 resume_stop on the new lwp.
3168 (add_lwp): Set last_resume_kind as resume_continue by default.
3169 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3170 (resume_lwp): New, factored out from resume_callback. Also check
3171 for pending status in lp->waitstatus.
3172 (resume_callback): Reimplement.
3173 (resume_clear_callback): Set last_resume_kind as resume_stop.
3174 (resume_set_callback): Set last_resume_kind as resume_continue.
3175 (linux_nat_resume, linux_handle_extended_wait): Set
3176 last_resume_kind.
3177 (running_callback): Also check lp->waitstatus for pending events.
3178 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3179 is resume_step.
3180 (stop_and_resume_callback): Don't re-resume if the core wanted the
3181 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3182 using an invalidated pointer.
3183 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3184 SIGSTOPs if the core wanted the LWP to stop.
3185 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3186 wanted the lwp to stop. If the core wanted the lwp to stop, and
3187 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3188 of TARGET_SIGNAL_STOP.
3189 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3190 here. Instead, signal the lwp, and set the last_resume_kind to
3191 resume_stop.
3192
3193 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3194
3195 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3196 -1 (error), if the lwp exits right after attaching.
3197
3198 2011-09-08 Doug Evans <dje@google.com>
3199
3200 * py-cmd.c: Some minor formatting fixes.
3201 (gdbpy_parse_command_name): Rename text arg to name, make const.
3202 All callers updated.
3203 * python-internal.h (gdbpy_parse_command_name): Update.
3204
3205 * cli/cli-decode.c (add_cmd): Add comment.
3206
3207 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3208
3209 PR breakpoints/12435
3210 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3211 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3212 * dwarf2read.c (process_full_comp_unit): Initialize
3213 amd64_prologue_line_bug.
3214 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3215
3216 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3217
3218 Fix TUI screen corruption.
3219 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3220 batch_flag.
3221
3222 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3223
3224 * findvar.c (read_var_value): Never return NULL, throw an error
3225 instead. Update the function comment. State symbol name in the error
3226 messages.
3227 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3228 read_var_value.
3229 * stack.c (print_frame_args): Likewise.
3230 * valops.c (value_of_variable): Likewise.
3231
3232 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3233
3234 * stack.c (print_frame_args): New variable except. Wrap
3235 read_var_value and common_val_print into TRY_CATCH.
3236
3237 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3238
3239 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3240 caller to value_of_this.
3241 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3242 Twice.
3243 * valops.c (value_of_this): Remove parameter complain and variable ret.
3244 Update function comment. Never return NULL by this code.
3245 (value_of_this_silent): New function.
3246 * value.h (value_of_this): Remove parameter complain.
3247 (value_of_this_silent): New declaration.
3248
3249 2011-09-07 Yao Qi <yao@codesourcery.com>
3250
3251 * gdbthread.h (struct thread_info): Remove fields
3252 `stepping_through_solib_after_catch' and
3253 `stepping_through_solib_catchpoints'.
3254 * infrun.c (init_thread_stepping_state): Update.
3255 (process_event_stop_test, currently_stepping): Update.
3256 (currently_stepping_or_nexting_callback): Update.
3257
3258 2011-09-07 Yao Qi <yao@codesourcery.com>
3259
3260 * gdbthread.h (struct thread_info): Comment on field
3261 `step_after_step_resume_breakpoint'.
3262
3263 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3264
3265 * remote.c (remote_console_output): Reindent.
3266
3267 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3268
3269 * frame.c (has_stack_frames): Check for currently selected
3270 traceframe.
3271
3272 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3273
3274 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3275 (set_async_annotation_level, set_async_prompt, pop_prompt)
3276 (push_prompt, new_async_prompt): Delete declarations.
3277 * top.h (get_prompt, set_prompt): Change prototype.
3278 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3279 declarations.
3280 * top.c (command_loop):
3281 (top_prompt): New global.
3282 (get_prefix, set_prefix, get_suffix, ): Delete.
3283 (get_prompt, set_prompt): Rewrite.
3284 (show_new_async_prompt): Rename to ...
3285 (show_prompt): ... this.
3286 (init_main): Adjust. Don't handle --annotate=2 here.
3287 * event-top.c (new_async_prompt): Delete.
3288 (the_prompts): Delete.
3289 (more_to_come): Make static.
3290 (display_gdb_prompt): Use top_level_prompt() to compute the top
3291 level prompt, and don't notify the before_prompt observers
3292 directly here. Always trick readline into not trying to display
3293 the prompt if sync_execution and displaying the primary prompt.
3294 If displaying a local/secondary prompt, always show it, even if
3295 sync_execution is set.
3296 (change_annotation_level): Delete.
3297 (top_level_prompt): New, based on change_annotation_level.
3298 (push_prompt, pop_prompt): Delete.
3299 (async_disable_stdin): No longer pushes prompt.
3300 (command_line_handler): No longer pushes or pops prompt. If more
3301 input is expected, call display_gdb_prompt with an explicit empty
3302 prompt.
3303 (async_stop_sig): Adjust.
3304 (set_async_annotation_level, set_async_prompt): Delete.
3305 * python/python.c (before_prompt_hook): Adjust.
3306
3307 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3308
3309 PR cli/13110
3310
3311 * infrun.c (fetch_inferior_event): Check if there's a selected
3312 thread before checking if the selected thread is executing.
3313
3314 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3315
3316 * inf-loop.c (execute_command): Don't check if the current thread
3317 if running before synchronously waiting for command completion.
3318 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3319 here.
3320 (normal_stop): Call async_enable_stdin here.
3321 * inf-loop.c (inferior_event_handler): Don't call
3322 async_enable_stdin, nor handle "set exec-done-display" here.
3323
3324 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3325
3326 GDB 7.3.1 released.
3327
3328 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3329
3330 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3331
3332 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3333
3334 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3335
3336 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3337
3338 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3339
3340 2011-09-02 Matt Rice <ratmice@gmail.com>
3341
3342 PR gdb/10720
3343 * event-top.c (cli_command_loop): Replace readline setup with
3344 direct call to display_gdb_prompt.
3345 (display_gdb_prompt): Do not call observer mechanism during
3346 synchronous execution.
3347
3348 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3349
3350 * linux-nat.c (in_pid_list_p): New.
3351 (linux_record_stopped_pid): Delete.
3352 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3353 already attached to the LWP. Return an indication if so.
3354 (linux_nat_filter_event): Adjust.
3355 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3356 returning an indication to ignore this thread.
3357
3358 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3359
3360 * top.c: Include interps.h.
3361 (execute_command): If the target can async, but the interpreter is
3362 in sync mode, synchronously wait for the command to finish before
3363 returning.
3364 (execute_command_to_string): Force the interpreter to sync mode.
3365 * infrun.c: Include interps.h.
3366 (fetch_inferior_event): Don't restore the prompt yet if the
3367 interpreter is in sync mode.
3368 * interps.c (interpreter_async): New global.
3369 * interps.h (interpreter_async): Declare.
3370 * inf-loop.c: Include interps.h.
3371 (inferior_event_handler): Don't print the language change or run
3372 breakpoint commands yet if the interpreter in is sync mode.
3373 * main.c (captured_command_loop): Flip the interpreter to async
3374 mode.
3375 * cli/cli-script.c: Include interps.h.
3376 (execute_user_command, while_command, if_command): Force the
3377 interpreter to sync mode.
3378 * python/python.c: Include interps.h.
3379 (python_command, execute_gdb_command): Force the interpreter to
3380 sync mode.
3381
3382 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3383
3384 * value.c (show_convenience): Catch errors thrown while printing
3385 each internal variable.
3386 * infrun.c (validate_siginfo_access): New function.
3387 (siginfo_value_read, siginfo_value_write): Call it.
3388
3389 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3390
3391 Revert:
3392 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3393 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3394 attribute.
3395
3396 2011-08-29 Yao Qi <yao@codesourcery.com>
3397
3398 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3399 (cmp_name): New.
3400 (enable_break2): Update caller.
3401 * solib-frv.c (bfd_lookup_symbol): Removed.
3402 (cmp_name): New.
3403 (enable_break2): Update caller.
3404 * solib-pa64.c (bfd_lookup_symbol): Removed.
3405 (cmp_name): New.
3406 * solib-svr4.c (bfd_lookup_symbol): Removed.
3407 (cmp_name_and_sec_flags): New.
3408 (enable_break): Update caller.
3409 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3410 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3411 (gdb_bfd_lookup_symbol): New.
3412 * solib.h: Functions declarations.
3413
3414 2011-08-29 Yao Qi <yao@codesourcery.com>
3415
3416 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3417 and solib-dsbt.o.
3418
3419 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3420
3421 Fix TUI stepi on code without symbols.
3422 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3423 current PC instead.
3424
3425 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3426
3427 Code cleanup.
3428 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3429 and the static keyword.
3430 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3431 Make prefix an array.
3432 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3433 * mi/mi-main.c (get_register): Remove stb initialization and the static
3434 keyword.
3435
3436 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3437
3438 Code cleanup - make mi_opt const.
3439 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3440 opts const.
3441 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3442 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3443 (mi_cmd_env_dir): Likewise.
3444 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3445 (mi_cmd_target_file_put): Likewise.
3446 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3447 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3448 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3449 (mi_valid_noargs): Make opts const.
3450 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3451 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3452 (mi_cmd_data_read_memory): Likewise.
3453 (mi_cmd_data_read_memory_bytes): Likewise.
3454 (mi_cmd_data_write_memory): Likewise.
3455
3456 2011-08-26 Matt Rice <ratmice@gmail.com>
3457
3458 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3459 bcache_xmalloc, replace bcache_xmalloc with call to
3460 psymbol_bcache_init for psymbol_cache.
3461 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3462
3463 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3464
3465 * inf-loop.c (inferior_event_handler): Add exception_print in
3466 INF_EXEC_COMPLETE.
3467
3468 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3469
3470 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3471 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3472 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3473 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3474 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3475 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3476 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3477 * infrun.c (fetch_inferior_event): Call
3478 make_bpstat_clear_actions_cleanup.
3479 * top.c (execute_command): New variable cleanup_if_error, call
3480 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3481 * utils.c (do_bpstat_clear_actions_cleanup)
3482 (make_bpstat_clear_actions_cleanup): New functions.
3483
3484 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3485
3486 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3487 either the parent or the child forks. Rename a couple locals.
3488
3489 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3490
3491 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3492 library call. Avoid reading the `status' local if all waitpid
3493 calls failed.
3494
3495 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3496
3497 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3498 opening /proc/PID/task always succeeds.
3499
3500 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3501
3502 * linespec.c (symtab_from_filename): Check for the end of string.
3503
3504 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3505
3506 PR mi/11912
3507 * varobj.c (cplus_describe_child): Add the keyword
3508 'class' to the output of the method when dealing
3509 with a cast to a base class.
3510
3511 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3512
3513 No functionality change.
3514 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3515 function comment a reference, new variables tp and bs, move here code
3516 from throw_exception.
3517 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3518 describe it in the comment.
3519 * exceptions.c (throw_exception): Remove variable tp, move the code for
3520 bpstat_clear_actions to bpstat_clear_actions.
3521
3522 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3523
3524 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3525 * linux-nat.c: Include linux-procfs.h.
3526 (linux_proc_get_tgid): Move to ...
3527 * common/linux-procfs.c: ... here. New file.
3528 * common/linux-procfs.h: New file.
3529 * linux-thread-db.c: Include linux-procfs.h.
3530 * Makefile.in: Update dependencies.
3531 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3532 * config/arm/linux.mh: Likewise.
3533 * config/i386/linux.mh: Likewise.
3534 * config/i386/linux64.mh: Likewise.
3535 * config/ia64/linux.mh: Likewise.
3536 * config/m32r/linux.mh: Likewise.
3537 * config/m68k/linux.mh: Likewise.
3538 * config/mips/linux.mh: Likewise.
3539 * config/pa/linux.mh: Likewise.
3540 * config/pa/linux.mh: Likewise.
3541 * config/powerpc/linux.mh: Likewise.
3542 * config/powerpc/ppc64-linux.mh: Likewise.
3543 * config/powerpc/spu-linux.mh: Likewise.
3544 * config/sparc/linux.mh: Likewise.
3545 * config/sparc/linux64.mh: Likewise.
3546 * config/xtensa/linux.mh: Likewise.
3547
3548 2011-08-24 Hui Zhu <teawater@gmail.com>
3549
3550 * tracepoint.c (cond_string_is_same): New function.
3551 (find_matching_tracepoint): Add condition check
3552 by cond_string_is_same.
3553
3554 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3555
3556 Fix build error in Darwin port.
3557 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3558
3559 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3560
3561 Code cleanup.
3562 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3563 (command_line_is_silent): New function.
3564 (bpstat_do_actions_1): No longer use commands_left, use
3565 command_line_is_silent for commands.
3566 (bpstat_alloc): Remove clearing of commands_left.
3567 (bpstat_stop_status): Remove initialization of commands_left, use
3568 command_line_is_silent.
3569 * breakpoint.h (struct bpstats): Remove commands_left.
3570
3571 2011-08-18 Keith Seitz <keiths@redhat.com>
3572
3573 PR c++/12266
3574 * cp-name-parser.y (struct demangle_info): Remove unused
3575 member PREV.
3576 (d_grab): Likewise.
3577 (allocate_info): Change return type to struct demangle_info *.
3578 Always allocate a new demangle_info.
3579 Remove unused PREV pointer.
3580 (cp_new_demangle_parse_info): New function.
3581 (cp_demangled_name_parse_free): New function.
3582 (do_demangled_name_parse_free_cleanup): New function.
3583 (make_cleanup_cp_demangled_name_parse_free): New function.
3584 (cp_demangled_name_to_comp): Change return type to
3585 struct demangle_parse_info *.
3586 Allocate a new storage for each call.
3587 (main): Update usage for cp_demangled_name_to_comp
3588 API change.
3589 * cp-support.h (struct demangle_parse_info): New structure.
3590 (cp_demangled_name_to_comp): Update API change for
3591 return type.
3592 (cp_new_demangle_parse_info): Declare.
3593 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3594 (cp_demangled_name_parse_free): Declare.
3595 * cp-support.c (cp_canonicalize_string): Update API
3596 change for cp_demangled_name_to_comp.
3597 (mangled_name_to_comp): Likewise.
3598 Return struct demangle_parse_info, too.
3599 (cp_class_name_from_physname): Update mangled_name_to_comp
3600 API change.
3601 (method_name_from_physname): Likewise.
3602 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3603 (cp_remove_params): Likewise.
3604 * python/py-type.c (typy_legacy_template_argument): Likewise.
3605
3606 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3607 (cp_merge_demangle_parse_infos): Declare.
3608 * cp-support.c (ignore_typedefs): New file global.
3609 (copy_string_to_obstack): New function.
3610 (inspect_type): New function.
3611 (replace_typedefs): New function.
3612 (replace_typedefs_qualified_name): New function.
3613 (cp_canonicalize_string_no_typedefs): New function.
3614 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3615 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3616 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3617 instead of cp_canonicalize_string.
3618 (find_method): Likewise.
3619 (decode_compound): Before looking up the name, call
3620 cp_canonicalize_string_no_typedefs.
3621 (decode_variable): Likewise.
3622
3623 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3624 Tom Tromey <tromey@redhat.com>
3625 Matt Rice <ratmice@gmail.com>
3626
3627 * python/lib/gdb/prompt.py: New file.
3628 * python/lib/gdb/command/prompt.py: New file.
3629 * NEWS: Document set extended-prompt and gdb.prompt library
3630
3631 2011-08-16 Yao Qi <yao@codesourcery.com>
3632
3633 * tic6x-linux-tdep.c: Move const arrays definition from here...
3634 * tic6x-tdep.c: to here ...
3635
3636 2011-08-14 Yao Qi <yao@codesourcery.com>
3637
3638 * NEWS: New port to Texas Instruments TMS320C6x.
3639
3640 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3641 Bernd Schmidt <bernds@codesourcery.com>
3642 Yao Qi <yao@codesourcery.com>
3643
3644 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3645 * solib-dsbt.c: New file. Support DSBT shared object.
3646 * tic6x-linux-tdep.c: New file.
3647 * tic6x-tdep.c: New file.
3648 * tic6x-tdep.h: New file.
3649
3650 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3651 Yao Qi <yao@codesourcery.com>
3652
3653 * remote.c (PACKET_qXfer_fdpic): New enum value.
3654 (remote_protocol_features): Add qXfer:fdpic:read packet.
3655 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3656 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3657 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3658
3659 2011-08-14 Yao Qi <yao@codesourcery.com>
3660
3661 Target description for tic6x.
3662 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3663 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3664 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3665 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3666 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3667 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3668 * features/tic6x-c64xp-linux.xml: New.
3669 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3670 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3671 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3672 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3673 * regformats/tic6x-c64xp.dat,
3674 regformats/tic6x-c62x-linux.dat: Generated.
3675 * regformats/tic6x-c64x-linux.dat,
3676 regformats/tic6x-c64xp-linux.dat: Generated.
3677 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3678 features/tic6x-*.c files.
3679 Add regformats/tic6x-*.dat files.
3680
3681 2011-08-12 Doug Evans <dje@google.com>
3682
3683 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3684 * python/py-symbol.c (sympy_get_type): New function.
3685 (symbol_object_getset): Add "type".
3686
3687 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3688
3689 PR tui/13073
3690
3691 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3692 empty name.
3693 (tui_show_register_group): Don't store a byte buffer in the data
3694 element's value.
3695 (tui_register_format): Skip registers with an empty name.
3696 (tui_get_register): Store a struct value in the data element's
3697 value field instead of a byte buffer holding the raw register
3698 contents. Account for optimized-out and unavailable registers
3699 when comparing register contents.
3700
3701 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3702
3703 * printcmd.c (current_display_number): Update comment.
3704 (disable_current_display_cleanup): Delete.
3705 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3706 catch errors thrown while evaluating and printing the display.
3707
3708 2011-08-09 Tom Tromey <tromey@redhat.com>
3709
3710 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3711
3712 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3713
3714 * elfread.c (elf_symtab_read): Rework comments.
3715 * maint.c (maintenance_command): Ditto.
3716 * somread.c (som_symtab_read): Ditto.
3717 * solib.c (solib_find, solib_map_sections, update_solib_list)
3718 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3719 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3720 (sharedlibrary_command, no_shared_libraries): Ditto.
3721 * solib-irix.c (locate_base, disable_break, enable_break)
3722 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3723 (irix_current_sos, irix_open_symbol_file_object)
3724 (irix_special_symbol_handling): Ditto.
3725 * solib-sunos.c (locate_base, first_link_map_member)
3726 (sunos_current_sos, disable_break, enable_break)
3727 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3728 Ditto.
3729 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3730 (open_symbol_file_object, svr4_current_sos, enable_break)
3731 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3732 Ditto.
3733 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3734 (frv_current_sos, enable_break, frv_special_symbol_handling)
3735 (frv_solib_create_inferior_hook): Ditto.
3736 * solist.h (struct target_so_ops): Extend the comments of the
3737 special_symbol_handling, current_sos and open_symbol_file_object
3738 methods.
3739
3740 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3741
3742 * python/lib/gdb/__init__.py: Auto-load files in command and
3743 function directories.
3744 * python/python.c (finish_python_initialization): Use
3745 os.path.join.
3746 * python/lib/gdb/command/pretty_printers.py: Self register
3747 command.
3748 * NEWS: Document auto-loading.
3749
3750 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3751
3752 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3753 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3754 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3755
3756 2011-08-08 Tom Tromey <tromey@redhat.com>
3757
3758 * breakpoint.c (clean_up_filters): Remove.
3759 (catch_syscall_split_args): Use VEC_cleanup.
3760
3761 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3762
3763 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3764 (main): Uncomment "Demangling error\n".
3765
3766 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3767
3768 * solib-target.c (segment_attributes): Make them static.
3769 (section_attributes, library_children, library_attributes): Likewise.
3770 (library_list_children, library_list_attributes): Likesise.
3771 (library_list_elements): Likewise.
3772
3773 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3774
3775 * exceptions.c (throw_exception): Don't disable the current
3776 display.
3777 * printcmd.c (disable_current_display_cleanup): New function.
3778 (do_one_display): Install a cleanup to disable the current display
3779 if doing the display throws.
3780
3781 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3782
3783 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3784 initialization of the tp_new member to the corresponding
3785 gdbpy_initialize_* function.
3786 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3787 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3788 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3789 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3790 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3791
3792 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3793
3794 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3795 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3796 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3797 references to current_uiout.
3798
3799 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3800
3801 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3802 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3803 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3804 * top.c (gdb_readline_wrapper): Adjust.
3805 * tui/tui-interp.c (tui_command_loop):
3806 (_initialize_tui_interp): Don't install it.
3807
3808 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3809
3810 * ui-out.h (uiout): Rename to ...
3811 (current_uiout): ... this.
3812 * ui-out.c (uiout): Rename to ...
3813 (current_uiout): ... this.
3814 * ada-lang.c (print_it_exception, print_one_exception)
3815 (print_mention_exception): Adjust.
3816 * breakpoint.c (watchpoint_check): Adjust.
3817 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3818 (default_collect_info, watchpoints_info, print_one_catch_fork)
3819 (print_one_catch_vfork, print_one_catch_syscall)
3820 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3821 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3822 (print_it_watchpoint, print_mention_watchpoint)
3823 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3824 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3825 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3826 (bkpt_print_mention, momentary_bkpt_print_it)
3827 (tracepoint_print_mention, update_static_tracepoint)
3828 (tracepoints_info, save_breakpoints): Adjust.
3829 * cli-out.c (field_separator): Adjust.
3830 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3831 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3832 * frame.c (get_current_frame): Adjust.
3833 * infcmd.c (run_command_1, print_return_value): Adjust.
3834 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3835 * infrun.c (print_end_stepping_range_reason): Adjust.
3836 (print_signal_exited_reason, print_exited_reason): Adjust.
3837 (print_signal_received_reason, print_no_history_reason): Adjust.
3838 * interps.c (interp_set): Adjust.
3839 * osdata.c (info_osdata_command): Adjust.
3840 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3841 * remote-fileio.c (remote_fileio_request): Adjust.
3842 * remote.c (show_remote_cmd): Adjust.
3843 * solib.c (info_sharedlibrary_command): Adjust.
3844 * source.c (print_source_lines_base): Adjust.
3845 * stack.c (print_stack_frame): Adjust.
3846 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3847 * symfile-mem.c (add_vsyscall_page): Adjust.
3848 * symfile.c (load_progress, generic_load)
3849 (print_transfer_performance): Adjust.
3850 * thread.c (info_threads_command, restore_selected_frame)
3851 (thread_command): Adjust.
3852 * top.c (make_cleanup_restore_ui_file): Adjust.
3853 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3854 (print_one_static_tracepoint_marker): Adjust.
3855 * cli/cli-cmds.c (print_disassembly): Adjust.
3856 * cli/cli-decode.c (print_doc_line): Adjust.
3857 * cli/cli-interp.c (safe_execute_command): Adjust.
3858 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3859 (handle_redirections): Adjust.
3860 * cli/cli-script.c (show_user_1): Adjust.
3861 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3862 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3863 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3864 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3865 (mi_cmd_env_dir): Adjust.
3866 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3867 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3868 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3869 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3870 (list_args_or_locals): Adjust.
3871 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3872 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3873 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3874 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3875 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3876 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3877 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3878 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3879 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3880 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3881 (list_available_thread_groups, mi_cmd_list_thread_groups)
3882 (mi_cmd_data_list_register_names)
3883 (mi_cmd_data_list_changed_registers)
3884 (mi_cmd_data_list_register_values, get_register)
3885 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3886 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3887 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3888 (mi_execute_command, mi_load_progress): Adjust.
3889 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3890 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3891 Adjust.
3892 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3893 * tui/tui-interp.c (tui_command_loop): Adjust.
3894 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3895
3896 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3897
3898 * exceptions.c (struct catcher): Remove saved_uiout field.
3899 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3900 no longer save/resvore the global ui_out builder.
3901 (catch_exceptions_with_msg): Save/override/restore the global
3902 ui_out builder manually instead of relying on TRY_CATCH to do it.
3903 (catch_errors): Save/restore the global ui_out builder manually
3904 instead of relying on TRY_CATCH to do it.
3905 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3906 parameter.
3907 (TRY_CATCH): Adjust.
3908 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3909 the global ui_out builder manually instead of relying on TRY_CATCH
3910 to do it.
3911
3912 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3913
3914 * breakpoint.c (update_global_location_list): Ensure
3915 invariant 'first loc marked not duplicated and inserted,
3916 following locs marked duplicated/not inserted' is respected
3917 for multiple locations at the same address.
3918 (unduplicated_should_be_inserted) New function.
3919 (swap_insertion) New function.
3920
3921 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3922
3923 * stack.c (print_frame_arguments_choices): Comment typo fix.
3924
3925 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3926
3927 Revert:
3928 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3929 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3930 argument. Update callers.
3931
3932 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3933
3934 PR gdb/13045
3935 * doublest.c (convert_doublest_to_floatformat): Pass correct
3936 mantissa length to put_field.
3937
3938 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3939
3940 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3941 exception_print code path.
3942 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3943 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3944 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3945
3946 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3947
3948 Code cleanup.
3949 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3950 Remove, merge them into ...
3951 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3952 variable args and its initialization.
3953 (struct print_args_args, print_args_stub): Remove, merge them into
3954 print_frame.
3955 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3956 them into ...
3957 (do_gdb_disassembly): ... here. Remove variable args and its
3958 initialization.
3959 (print_frame): Remove variable args and its initialization, new
3960 variable gdbarch and numargs (from print_args_stub), inline here
3961 print_args_stub with a TRY_CATCH.
3962 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3963 them into ...
3964 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3965 New variable e, remove variable btargs and its initialization.
3966
3967 2011-08-01 Tristan Gingold <gingold@adacore.com>
3968
3969 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3970
3971 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3972
3973 * breakpoint.c (insert_bp_location): Document return value.
3974 (insert_breakpoint_locations): Fix documentation.
3975 (remove_breakpoints): Add documentation.
3976
3977 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3978
3979 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3980 argument. Update callers.
3981
3982 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3983
3984 * stack.c (print_frame_info): Comment typo fix.
3985
3986 2011-07-29 Sterling Augustine <saugustine@google.com>
3987
3988 * MAINTAINERS (Write After Approval): Add myself to the list.
3989
3990 2011-07-29 Tom Tromey <tromey@redhat.com>
3991
3992 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3993 (library_list_start_segment): Update.
3994 (library_list_start_section): Update.
3995
3996 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3997
3998 * varobj.c (value_get_print_value): Move hint check later into the
3999 function. Comment function. Free thevalue before reusing it.
4000
4001 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4002 Pedro Alves <pedro@codesourcery.com>
4003
4004 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4005 value_one.
4006 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4007 Assert the result kind.
4008 * value.h (value_one): Remove parameter lv.
4009
4010 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4011
4012 Fix crash on lval_computed values.
4013 * valops.c (value_zero): Use not_lval for lval_computed.
4014
4015 2011-07-27 Tom Tromey <tromey@redhat.com>
4016
4017 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4018 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4019
4020 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4021
4022 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4023 "ptype" by their typedefs difference.
4024
4025 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4026
4027 * dwarf2expr.c (ctx_no_read_reg): New function.
4028 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4029 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4030 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4031 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4032
4033 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4034
4035 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4036 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4037 file.
4038 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4039 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4040 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4041 (ctx_no_get_base_type): Move the functions here.
4042 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4043 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4044 (ctx_no_get_base_type): New declarations.
4045
4046 2011-07-27 Tom Tromey <tromey@redhat.com>
4047
4048 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4049 entries.
4050 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4051 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4052
4053 2011-07-26 Sterling Augustine <saugustine@google.com>
4054
4055 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4056 ULONGEST.
4057 (dump_bfd_file): Likewise.
4058
4059 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4060
4061 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4062 (remote_hw_watchpoint_length_limit): New variable.
4063 (_initialize_remote) add set,show cmds for this new variable.
4064 * gdb.texinfo: document these new commands.
4065 * NEWS: Mention these new commands.
4066
4067 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4068
4069 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4070 true for software watchpoints.
4071
4072 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4073
4074 GDB 7.3 released.
4075
4076 2011-07-26 Tom Tromey <tromey@redhat.com>
4077
4078 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4079 * dwarf2read.c (read_indirect_string_at_offset): New function.
4080 (read_indirect_string): Use it.
4081 (dwarf_decode_macro_bytes): New function, taken from
4082 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4083 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4084 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4085 New functions.
4086 (struct dwarf2_per_objfile) <macro>: New field.
4087 (dwarf2_elf_names): Add .debug_macro.
4088 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4089 (dwarf2_locate_sections): Handle new section.
4090 (read_file_scope): Handle DW_AT_GNU_macros.
4091 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4092
4093 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4094
4095 * NEWS: Mention dcache configuration.
4096 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4097 (dcache_size, dcache_line_size): New variables.
4098 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4099 (struct dcache_block): Make it expandable.
4100 (struct dcache_struct): New field.
4101 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4102 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4103 (dcache_poke_byte, dcache_print_line): Adjust.
4104 (set_dcache_size, set_dcache_line_size): New functions.
4105 (set_dcache_command, show_dcache_command): New functions.
4106 (_initialize_dcache): Add new commands.
4107
4108 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4109
4110 * progspace.h (struct program_space): Add solib_add_generation.
4111 * infcmd.c (post_create_inferior): Only call solib_add if not
4112 already done.
4113 * solib.c (solib_add): Increment solib_add_generation.
4114
4115 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4116
4117 Fix implicit pointer offsets.
4118 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4119 ptr.OFFSET.
4120
4121 2011-07-25 Tom Tromey <tromey@redhat.com>
4122
4123 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4124 const.
4125 (ada_exception_sal): Make 'ops' const.
4126 (ada_decode_exception_location): Likewise.
4127 (ada_decode_assert_location): Likewise.
4128 (catch_assert_command): Update.
4129 (catch_ada_exception_command): Update.
4130 (create_ada_exception_catchpoint): Make 'ops' const.
4131 * breakpoint.c (set_raw_breakpoint_without_location)
4132 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4133 const.
4134 (create_internal_breakpoint): Update.
4135 (init_raw_breakpoint_without_location): Make 'ops' const.
4136 (init_raw_breakpoint, init_catchpoint)
4137 (create_fork_vfork_event_catchpoint)
4138 (create_syscall_event_catchpoint, init_breakpoint_sal)
4139 (create_breakpoint_sal, create_breakpoints_sal)
4140 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4141 * breakpoint.h (struct breakpoint) <ops>: Now const.
4142 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4143 const.
4144
4145 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4146
4147 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4148
4149 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4150
4151 * breakpoint.h (print_recreate_thread): Declare.
4152 (struct breakpoint): Move step_count, pass_count,
4153 number_on_target, static_trace_marker_id,
4154 static_trace_marker_id_idx ...
4155 (struct tracepoint): ... to this new struct.
4156 (get_tracepoint, get_tracepoint_by_number_on_target)
4157 (get_tracepoint_by_number): Change return type to struct
4158 tracepoint pointer.
4159 * breakpoint.c (is_tracepoint_type): New, factored out from
4160 is_tracepoint.
4161 (is_tracepoint): Adjust.
4162 (print_one_breakpoint_location): Cast to struct tracepoint as
4163 necessary, and adjust.
4164 (print_recreate_catch_fork, print_recreate_catch_vfork)
4165 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4166 print_recreate_thread.
4167 (init_breakpoint_sal): New, factored out from
4168 create_breakpoint_sal.
4169 (create_breakpoint_sal): Reimplement.
4170 (create_breakpoint): Allocate a struct tracecepoint if the caller
4171 wanted a tracepoint. Use init_breakpoint_sal and
4172 install_breakpoint.
4173 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4174 (print_recreate_masked_watchpoint)
4175 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4176 (tracepoint_print_one_detail): Adjust.
4177 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4178 Dump the pass count here.
4179 (update_static_tracepoint): Adjust.
4180 (addr_string_to_sals): Adjust.
4181 (create_tracepoint_from_upload): Adjust. Change return type to
4182 struct tracepoint pointer.
4183 (trace_pass_set_count): Change parameter type to struct tracepoint
4184 pointer, and adjust.
4185 (trace_pass_command): Adjust.
4186 (get_tracepoint, get_tracepoint_by_number_on_target)
4187 (get_tracepoint_by_number): Change return type to struct
4188 tracepoint pointer, and adjust.
4189 (print_recreate_thread): New, factored out from save_breakpoints.
4190 (save_breakpoints): Don't print thread and task and passcount
4191 recreation here.
4192 * remote.c (remote_download_tracepoint): Adjust.
4193 * tracepoint.c (trace_actions_command, validate_actionline)
4194 (start_tracing, tfind_1, trace_find_tracepoint_command)
4195 (trace_dump_command): Adjust.
4196 (find_matching_tracepoint): Change return type to struct
4197 tracepoint pointer, and adjust.
4198 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4199 (tfile_trace_find, tfile_fetch_registers): Adjust.
4200 * tracepoint.h (create_tracepoint_from_upload): Change return type
4201 to struct tracepoint pointer.
4202 * ada-lang.c (print_recreate_exception): Call
4203 print_recreate_thread.
4204 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4205
4206 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4207
4208 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4209 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4210 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4211 watchpoint_thread, watchpoint_triggered ...
4212 (struct watchpoint): ... to this new struct.
4213 (is_watchpoint): Declare.
4214 (install_breakpoint): Add new `internal' parameter.
4215 * breakpoint.c (is_watchpoint): Delete declaration.
4216 (set_breakpoint_condition): Handle watchpoints.
4217 (is_watchpoint): Make public.
4218 (watchpoint_in_thread_scope): Change parameter type to struct
4219 watchpoint.
4220 (watchpoint_del_at_next_stop): Change parameter type to struct
4221 watchpoint. Remove assertion. Adjust.
4222 (update_watchpoint): Ditto.
4223 (insert_breakpoints, breakpoint_init_inferior)
4224 (watchpoints_triggered, watchpoint_check)
4225 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4226 (bpstat_stop_status, print_one_breakpoint_location)
4227 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4228 to struct watchpoint as necessary, and adjust.
4229 (install_breakpoint): Add `internal' argument. If true, don't
4230 mention the new breakpoint. Use set_breakpoint_number.
4231 (create_fork_vfork_event_catchpoint)
4232 (create_syscall_event_catchpoint): Adjust.
4233 (dtor_watchpoint): New.
4234 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4235 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4236 (print_it_watchpoint, print_mention_watchpoint)
4237 (print_recreate_watchpoint, insert_masked_watchpoint)
4238 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4239 (print_one_detail_masked_watchpoint)
4240 (print_mention_masked_watchpoint)
4241 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4242 necessary, and adjust.
4243 (watch_command_1): Allocate and initialize a struct watchpoint
4244 instead of a struct breakpoint. Use install_breakpoint.
4245 (catch_exec_command_1): Adjust.
4246 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4247 fields.
4248 (delete_breakpoint, enable_breakpoint_disp)
4249 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4250 as necessary, and adjust.
4251 (initialize_breakpoint_ops): Install dtor_watchpoint as
4252 watchpoints' dtor method.
4253 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4254 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4255 to struct watchpoint as necessary, and adjust.
4256
4257 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4258
4259 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4260 the the base class ops table.
4261 (catch_exception_breakpoint_ops)
4262 (catch_exception_unhandled_breakpoint_ops)
4263 (catch_assert_breakpoint_ops): Don't statically initialize.
4264 (initialize_ada_catchpoint_ops): New.
4265 (_initialize_ada_language): Call it.
4266 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4267 (bkpt_breakpoint_ops): Forward declare.
4268 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4269 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4270 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4271 (masked_watchpoint_breakpoint_ops)
4272 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4273 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4274 base class ops table.
4275 (null_re_set, null_check_status, null_works_in_software_mode)
4276 (null_resources_needed, null_print_one_detail): Delete.
4277 (bkpt_dtor): Rename to ...
4278 (base_breakpoint_dtor): ... this. Make static.
4279 (bkpt_allocate_location): Rename to ...
4280 (base_breakpoint_allocate_location): ... this. Make static.
4281 (base_breakpoint_re_set): New.
4282 (internal_error_pure_virtual_called): New.
4283 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4284 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4285 (base_breakpoint_works_in_software_mode)
4286 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4287 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4288 (base_breakpoint_print_recreate): New functions.
4289 (base_breakpoint_ops): New global.
4290 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4291 (bkpt_breakpoint_hit): Make static.
4292 (bkpt_check_status): Delete.
4293 (bkpt_resources_needed): Make static.
4294 (bkpt_works_in_software_mode): Delete.
4295 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4296 static.
4297 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4298 (momentary_breakpoint_ops): Don't statically initialize.
4299 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4300 Delete.
4301 (tracepoint_insert_location, tracepoint_remove_location)
4302 (tracepoint_check_status, tracepoint_works_in_software_mode)
4303 (tracepoint_print_it): Delete.
4304 (tracepoint_breakpoint_ops): Don't statically initialize.
4305 (initialize_breakpoint_ops): New.
4306 (_initialize_breakpoint): Call it.
4307 * breakpoint.h (null_re_set, null_works_in_software_mode)
4308 (null_resources_needed, null_check_status, null_print_one_detail):
4309 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4310 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4311 (bkpt_check_status, bkpt_resources_needed)
4312 (bkpt_works_in_software_mode, bkpt_print_it)
4313 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4314 Delete declarations.
4315 (initialize_breakpoint_ops): Declare.
4316
4317 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4318
4319 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4320 (momentary_bkpt_print_it): Simplify.
4321
4322 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4323
4324 Split internal, momentary and user breakpoints breakpoint_ops
4325 tables.
4326
4327 * breakpoint.c (internal_breakpoint_ops)
4328 (momentary_breakpoint_ops): Forward declare.
4329 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4330 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4331 (create_overlay_event_breakpoint)
4332 (create_std_terminate_master_breakpoint)
4333 (create_exception_master_breakpoint): Create breakpoints with
4334 internal_breakpoint_ops vtable.
4335 (set_longjmp_breakpoint): Create momentary breakpoints with
4336 momentary_breakpoint_ops vtable, using
4337 momentary_breakpoint_from_master.
4338 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4339 (create_solib_event_breakpoint): Create breakpoints with
4340 internal_breakpoint_ops vtable.
4341 (set_momentary_breakpoint): Create breakpoints with
4342 momentary_breakpoint_ops vtable.
4343 (momentary_breakpoint_from_master): New, factored out from
4344 clone_momentary_breakpoint.
4345 (clone_momentary_breakpoint): Adjust.
4346 (watch_command_1): Create scope breakpoints with
4347 momentary_breakpoint_ops vtable.
4348 (bkpt_re_set): Remove handling of internal and momentary
4349 breakpoints.
4350 (bkpt_print_mention, bkpt_print_recreate): New.
4351 (bkpt_breakpoint_ops): Adjust.
4352 (internal_bkpt_re_set, internal_bkpt_check_status)
4353 (internal_bkpt_print_it, internal_bkpt_print_mention)
4354 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4355 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4356 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4357 (momentary_bkpt_print_recreate): New.
4358 (momentary_breakpoint_ops): New.
4359
4360 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4361
4362 Implement most breakpoint_ops methods for all breakpoint types,
4363 and move the default handlings to the proper callbacks.
4364
4365 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4366 works_in_software_mode method.
4367 (insert_bp_location): Go through breakpoint_ops->insert_location
4368 for software and hardware watchpoints.
4369 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4370 breakpoint_ops.
4371 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4372 for software and hardware watchpoints.
4373 (print_it_typical): Delete.
4374 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4375 method.
4376 (watchpoint_check): Adjust comment.
4377 (bpstat_check_location): Simply always call the breakpoint's
4378 breakpoint_hit method.
4379 (bpstat_stop_status): Always call the breakpoint's check_status
4380 method. Remove special cases for watchpoints and internal event
4381 breakpoints from here (moved to the check_status implementations).
4382 (print_one_breakpoint_location): Assume b->ops is never NULL.
4383 Remove static tracepoint marker id printing from here (moved to
4384 the print_one_detail callback implementation of tracepoints).
4385 (init_bp_location): Assert OPS is never NULL.
4386 (allocate_bp_location): Always call the breakpoint's
4387 allocate_location method, and remove the default code from here.
4388 (free_bp_location): Always call the location's dtor method, and
4389 remove the default code from here.
4390 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4391 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4392 parameter. Pass it down.
4393 (set_raw_breakpoint): Ditto.
4394 (print_it_catch_fork): Adjust to take a bpstat as argument.
4395 (catch_fork_breakpoint_ops): Install methods.
4396 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4397 (catch_vfork_breakpoint_ops): Install methods.
4398 (dtor_catch_syscall): Call the base dtor.
4399 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4400 (catch_syscall_breakpoint_ops): Install methods.
4401 (dtor_catch_exec): Call the base dtor.
4402 (print_it_catch_exec): Adjust to take a bpstat as argument.
4403 (catch_exec_breakpoint_ops): Install methods.
4404 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4405 the breakpoint's resources_needed method, and remove the default
4406 code from here.
4407 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4408 breakpoint_ops.
4409 (clone_momentary_breakpoint): Clone the original's ops.
4410 (mention): Always call the breakpoint's print_mention method, and
4411 remove the default code from here.
4412 (create_breakpoint_sal): Adjust to pass the ops to
4413 set_raw_breakpoint rather than setting it manually.
4414 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4415 ops to set_raw_breakpoint_without_location rather than setting it
4416 manually.
4417 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4418 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4419 (ranged_breakpoint_ops): Install methods.
4420 (break_range_command): Adjust to pass the ops to
4421 set_raw_breakpoint rather than setting it manually.
4422 (re_set_watchpoint, breakpoint_hit_watchpoint)
4423 (check_status_watchpoint, resources_needed_watchpoint)
4424 (works_in_software_mode_watchpoint, print_it_watchpoint)
4425 (print_mention_watchpoint, print_recreate_watchpoint): New
4426 functions.
4427 (watchpoint_breakpoint_ops): Install new methods.
4428 (print_it_masked_watchpoint): New function.
4429 (masked_watchpoint_breakpoint_ops): Install new methods.
4430 (watch_command_1): Adjust to pass the right breakpoint_ops to
4431 set_raw_breakpoint_without_location rather than setting it
4432 manually later. Record the current pspace.
4433 (print_it_exception_catchpoint): Adjust to take a bpstat as
4434 argument.
4435 (gnu_v3_exception_catchpoint_ops): Install new methods.
4436 (say_where): New function.
4437 (null_re_set, null_check_status, null_works_in_software_mode)
4438 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4439 New functions.
4440 (bp_location_ops): New global.
4441 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4442 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4443 (bkpt_check_status, bkpt_resources_needed)
4444 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4445 (bkpt_print_recreate): New functions.
4446 (bkpt_breakpoint_ops): New global.
4447 (tracepoint_re_set, tracepoint_insert_location)
4448 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4449 (tracepoint_check_status, tracepoint_works_in_software_mode)
4450 (tracepoint_print_it, tracepoint_print_one_detail)
4451 (tracepoint_print_mention, tracepoint_print_recreate): New
4452 functions.
4453 (tracepoint_breakpoint_ops): New global.
4454 (delete_breakpoint): Always call the breakpoint's dtor method, and
4455 remove the default handling from here.
4456 (breakpoint_re_set_default): Make static.
4457 (breakpoint_re_set_one): Always call the breakpoints re_set
4458 method, and remove the default handling from here.
4459 (trace_command, ftrace_command, strace_command)
4460 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4461 to create_breakpoint.
4462 (save_breakpoints): Always call the breakpoint's print_recreate
4463 method, and remove the default handling from here.
4464
4465 * ada-lang.c (dtor_exception): Call the base dtor.
4466 (re_set_exception): Call the base method.
4467 (print_it_exception, print_it_catch_exception): Adjust to take a
4468 bpstat as argument.
4469 (catch_exception_breakpoint_ops): Install methods.
4470 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4471 argument.
4472 (catch_exception_unhandled_breakpoint_ops): Install methods.
4473 (print_it_catch_assert): Adjust to take a bpstat as argument.
4474 (catch_assert_breakpoint_ops): Install methods.
4475
4476 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4477 to take a bpstat as argument.
4478 (enum print_stop_action): Add describing comments to each enum
4479 value.
4480 (breakpoint_re_set_default): Delete declaration.
4481 (null_re_set, null_works_in_software_mode, null_resources_needed)
4482 (null_check_status, null_print_one_detail): Declare.
4483 (bkpt_breakpoint_ops): Declare.
4484 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4485 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4486 (bkpt_check_status, bkpt_resources_needed)
4487 (bkpt_works_in_software_mode, bkpt_print_it)
4488 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4489 Declare.
4490
4491 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4492 bkpt_breakpoint_ops.
4493 * python/py-breakpoint.c (bppy_init): Ditto.
4494
4495 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4496
4497 * MAINTAINERS (Write After Approval): Add myself to the list.
4498
4499 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4500
4501 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4502
4503 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4504
4505 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4506 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4507 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4508 adjust.
4509 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4510 (struct i386_debug_reg_state): New.
4511 (i386_init_dregs): New.
4512 (dr_mirror): New.
4513 (i386_cleanup_dregs): Use i386_init_dregs.
4514 (i386_show_dr): Add state parameter and adjust.
4515 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4516 the inferior here.
4517 (i386_remove_aligned_watchpoint): Likewise.
4518 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4519 (i386_update_inferior_debug_regs): New.
4520 (i386_insert_watchpoint): Work on a local mirror of the debug
4521 registers, and only update the inferior on success.
4522 (i386_remove_watchpoint): Ditto.
4523 (i386_region_ok_for_watchpoint): Adjust.
4524 (i386_stopped_data_address): Adjust.
4525 (i386_insert_hw_breakpoint): Adjust.
4526 (i386_remove_hw_breakpoint): Adjust.
4527
4528 2011-07-22 Tom Tromey <tromey@redhat.com>
4529
4530 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4531 from amd64_pseudo_register_read. Change arguments. Call
4532 mark_value_bytes_unavailable when needed.
4533 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4534 set_gdbarch_pseudo_register_read.
4535 * sentinel-frame.c (sentinel_frame_prev_register): Use
4536 regcache_cooked_read_value.
4537 * regcache.h (regcache_cooked_read_value): Declare.
4538 * regcache.c (regcache_cooked_read_value): New function.
4539 (regcache_cooked_read): Call
4540 gdbarch_pseudo_register_read_value if available.
4541 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4542 (i386_pseudo_register_read): Remove.
4543 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4544 i386_pseudo_register_read. Change arguments. Call
4545 mark_value_bytes_unavailable when needed.
4546 (i386_pseudo_register_read_value): New function.
4547 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4548 not set_gdbarch_pseudo_register_read.
4549 * gdbarch.sh (pseudo_register_read_value): New method.
4550 * gdbarch.c, gdbarch.h: Rebuild.
4551 * findvar.c (value_from_register): Call get_frame_register_value.
4552
4553 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4554
4555 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4556 get_prefix.
4557 (display_gdb_prompt): Likewise.
4558 (change_annotation_level): Likewise.
4559 (push_prompt): Likewise.
4560 (pop_prompt): Likewise.
4561 (handle_stop_sig): Use get_prompt with a level.
4562 * top.c (command_loop): Use get_prompt with a level.
4563 (set_async_annotation_level): Use set_prompt with a level.
4564 (get_prefix): New function.
4565 (set_prefix): Ditto.
4566 (set_suffix): Ditto.
4567 (get_suffix): Ditto.
4568 (get_prompt): Accept a level argument.
4569 (set_prompt): Accept a level argument. Free old prompts. Set
4570 new_async_prompt if level is 0.
4571 (init_main): Use set_prompt with a level. Do not set
4572 new_async_prompt.
4573 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4574 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4575 Modify set_prompt, get_prompt to account for levels.
4576 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4577 level.
4578 * python/python.c (before_prompt_hook): Use set_prompt.
4579
4580 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4581
4582 * defs.h: Add guard against inclusion in gdbserver.
4583 (struct ptid, ptid_t): Move to common/ptid.h.
4584 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4585 xsnprintf, internal_error): Move to common/common-utils.h.
4586 (nomem): Delete.
4587 * gdb_assert.h: Move into common/ sub-directory.
4588 * gdb_locale.h: Ditto.
4589 * gdb_dirent.h: Ditto.
4590 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4591 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4592 Move into common/ptid.h.
4593 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4594 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4595 Change nomem to malloc_failure.
4596 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4597 * utils.c (nomem): Rename to malloc_failure.
4598 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4599 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4600 (gdb_buildargv): Change nomem to malloc_failure.
4601 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4602 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4603 ptid_is_pid): Move into common/ptid.c.
4604 (initialize_infrun): Delete initialization of null_ptid and
4605 minus_one_ptid.
4606 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4607 linux_common_xfer_osdata.
4608 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4609 common/ptid.c and common/buffer.c.
4610 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4611 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4612 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4613 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4614 rules.
4615 * common/gdb_assert.h: New.
4616 * common/gdb_dirent.h: New.
4617 * common/gdb_locale.h: New.
4618 * common/buffer.c: New.
4619 * common/buffer.h: New.
4620 * common/ptid.c: New.
4621 * common/ptid.h: New.
4622 * common/xml-utils.c: New.
4623 * common/xml-utils.h: New.
4624 * common/common-utils.c: New.
4625 * common/common-utils.h: New.
4626 * common/linux-osdata.c: New.
4627 * common/linux-osdata.h: New.
4628 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4629 * config/arm/linux.mh (NATDEPFILES): Ditto.
4630 * config/i386/linux.mh (NATDEPFILES): Ditto.
4631 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4632 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4633 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4634 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4635 * config/mips/linux.mh (NATDEPFILES): Ditto.
4636 * config/pa/linux.mh (NATDEPFILES): Ditto.
4637 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4638 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4639 * config/s390/s390.mh (NATDEPFILES): Ditto.
4640 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4641 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4642 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4643
4644 2011-07-21 Matt Rice <ratmice@gmail.com>
4645
4646 * NEWS: Add info macros and info definitions commands.
4647
4648 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4649
4650 * NEWS: Document Python prompt substitution hook.
4651
4652 2011-07-18 Matt Rice <ratmice@gmail.com>
4653
4654 PR macros/12999
4655 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4656 * macrotab.c (foreach_macro): Ditto.
4657 (foreach_macro_in_scope): Ditto.
4658 * macrocmd.c (print_macro_callback): New function.
4659 (info_macro_command): Move some code to print_macro_definition.
4660 (print_macro_definition): New function.
4661 (print_one_macro): Add new arguments to callback.
4662 (info_definitions_command): New function.
4663 (info_macros_command): Ditto.
4664 (_initialize_macrocmd): Add info macros and info definitions commands.
4665 * symtab.c (add_macro_name): Add new arguments to callback.
4666
4667 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4668 Tom Tromey <tromey@redhat.com>
4669
4670 * top.c (set_prompt): Rewrite to free previous prompt, free
4671 asynch_new_prompt and set both on new prompts.
4672 * event-top.c (display_gdb_prompt): Add prompt substitution
4673 logic.
4674 * python/python.c (before_prompt_hook): New function.
4675
4676 2011-07-20 Matt Rice <ratmice@gmail.com>
4677
4678 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4679 arguments to store_unsigned_integer.
4680
4681 2011-07-20 Tom Tromey <tromey@redhat.com>
4682
4683 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4684 in some declaration-only cases.
4685
4686 2011-07-18 Tom Tromey <tromey@redhat.com>
4687
4688 PR symtab/12984:
4689 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4690 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4691 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4692 <debug_type_section>: New field.
4693 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4694 (load_cu): Use appropriate section.
4695 (create_signatured_type_table_from_index): Add 'section'
4696 argument.
4697 (dwarf2_read_index): Only allow a single .debug_types section.
4698 (dw2_get_file_names): Use appropriate section.
4699 (read_type_comp_unit_head): Add 'section' argument.
4700 (create_debug_types_hash_table): Loop over all .debug_types
4701 sections.
4702 (init_cu_die_reader): Use appropriate section.
4703 (process_psymtab_comp_unit, load_partial_comp_unit)
4704 (load_full_comp_unit, read_die_and_children, find_partial_die)
4705 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4706 (lookup_signatured_type_at_offset): Add 'section' argument.
4707 (read_signatured_type_at_offset): Add 'sect' argument.
4708 (read_signatured_type): Use appropriate section.
4709 (set_die_type, get_die_type_at_offset): Update.
4710 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4711 VEC.
4712 (write_psymtabs_to_index): Don't allow index with more than one
4713 .debug_types section.
4714
4715 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4716
4717 Fix crash if referenced CU is aged out.
4718 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4719 xfree of block.data.
4720 (indirect_pieced_value): New variable back_to, use to for xfree of
4721 baton.data.
4722 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4723 block.data.
4724 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4725 (load_cu): New function from ...
4726 (dw2_do_instantiate_symtab): ... the code here ...
4727 (process_full_comp_unit): ... and here.
4728 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4729 retval.data.
4730
4731 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4732
4733 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4734 type.
4735
4736 2011-07-19 Gary Benson <gbenson@redhat.com>
4737
4738 * infrun.c (struct execution_control_state): New member
4739 stop_func_filled_in.
4740 (clear_stop_func, fill_in_stop_func): New functions.
4741 (handle_inferior_event): Call clear_stop_func rather than
4742 manipulating the execution control state directly.
4743 Call fill_in_stop_func lazily as required rather than
4744 directly calling find_pc_partial_function in all cases.
4745
4746 2011-07-18 Tom Tromey <tromey@redhat.com>
4747
4748 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4749 checking for variable-sized array.
4750
4751 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4752
4753 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4754 of supported languages.
4755 * varobj.c: Add top definitions and basic implementation of the
4756 following callbacks: ada_number_of_children, ada_name_of_variable,
4757 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4758 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4759 (languages): Register Ada-specific callbacks.
4760 (variable_language): Add the Ada case in the language setter switch.
4761
4762 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4763
4764 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4765
4766 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4767
4768 Code cleanup.
4769 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4770 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4771 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4772 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4773 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4774 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4775 (struct dwarf_expr_context_funcs): New, move here methods from ...
4776 (struct dwarf_expr_context): ... here. New fields funcs.
4777 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4778 (dwarf_expr_ctx_funcs): New.
4779 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4780 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4781 (needs_frame_ctx_funcs): New.
4782 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4783
4784 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4785
4786 * MAINTAINERS (Write After Approval): Add myself to the list.
4787
4788 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4789
4790 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4791 that CIE pointer of an FDE really points to a CIE .
4792
4793 2011-07-15 Hui Zhu <teawater@gmail.com>
4794
4795 * remote.c (remote_get_trace_status): Add comments.
4796
4797 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4798
4799 Code cleanup - constify struct lval_funcs.
4800 * dwarf2loc.c (pieced_value_funcs): Make it const.
4801 * infrun.c (siginfo_value_funcs): Likewise.
4802 * opencl-lang.c (opencl_value_funcs): Likewise.
4803 * valops.c (value_assign, value_ind): Make the funcs variable const.
4804 * value.c (struct value): Make location.computed.funcs target const.
4805 Rearrange the comments.
4806 (allocate_computed_value): Make the funcs parameter target const.
4807 (value_computed_funcs): Return the funcs target const.
4808 (value_free, value_copy, set_value_component_location): Make the funcs
4809 variable const.
4810 * value.h (allocate_computed_value): Make the funcs parameter target
4811 const.
4812 (value_computed_funcs): Return the funcs target const.
4813 * windows-tdep.c (tlb_value_funcs): Make it const.
4814
4815 2011-07-14 Hui Zhu <teawater@gmail.com>
4816
4817 * remote.c (remote_get_trace_status): Initialize p.
4818
4819 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4820
4821 Work around kgdb.
4822 * remote.c (remote_get_trace_status): New variable ex. Put
4823 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4824
4825 2011-07-13 Tom Tromey <tromey@redhat.com>
4826
4827 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4828 value_from_contents for final conversion.
4829
4830 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4831
4832 Code cleanup.
4833 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4834 Indent prototypes so they do not get into tags.
4835
4836 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4837
4838 Code cleanup making also optimized out values lazy.
4839 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4840 allocate_optimized_out_value. Twice.
4841 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4842 * findvar.c (read_var_value): Likewise.
4843 * value.c (allocate_optimized_out_value): New function.
4844 * value.h (allocate_optimized_out_value): New declaration.
4845
4846 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4847
4848 Fix occasional crash of CTRL-C during DWARF read in.
4849 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4850
4851 2011-07-11 Tom Tromey <tromey@redhat.com>
4852
4853 * regcache.c (struct regcache_descr): Fix typo.
4854 * i387-tdep.c (i387_supply_xsave): Fix typo.
4855
4856 2011-07-11 Tom Tromey <tromey@redhat.com>
4857
4858 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4859 (read_file_scope, read_type_unit_scope): Use it.
4860
4861 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4862
4863 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4864 `int'.
4865
4866 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4867
4868 PR python/12438
4869 * python/python.c: Set gdbpy_should_print_stack default to off.
4870 (set_python): Deprecate maint set python print-stack to
4871 class_deprecate.
4872 (_initialize_python): Deprecate maint set/show python print-stack.
4873 Add new prefix command, python. Add new setting, print-backtrace.
4874 * NEWS: Document set python print-stack. Document default change.
4875
4876 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4877
4878 * python/py-inferior.c (infpy_dealloc): New function.
4879 (inferior_to_inferior_object): Return a new object, or a
4880 new reference to the existing object.
4881 (find_thread_object): Cleanup references to inferior.
4882 (delete_thread_object): Ditto.
4883 * python/py-infthread.c (create_thread_object): Do not increment
4884 inferior reference count.
4885
4886 2011-07-08 Tom Tromey <tromey@redhat.com>
4887
4888 * dwarf2loc.c (locexpr_regname): New function.
4889 (locexpr_describe_location_piece): Use it.
4890 (disassemble_dwarf_expression): Add per_cu argument. Use
4891 locexpr_regname.
4892 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4893 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4894 New cases.
4895 (locexpr_describe_location_1): Add per_cu argument.
4896 (locexpr_describe_location): Update.
4897 (loclist_describe_location): Update.
4898
4899 2011-07-08 Tom Tromey <tromey@redhat.com>
4900
4901 * dwarf2expr.c (execute_stack_op): Add QUIT.
4902
4903 2011-07-07 Hui Zhu <teawater@gmail.com>
4904
4905 Revert:
4906 2011-07-06 Hui Zhu <teawater@gmail.com>
4907 * remote.c (remote_start_remote): Add TRY_CATCH for
4908 remote_get_trace_status.
4909 * tracepoint.c (disconnect_tracing): Ditto.
4910
4911 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4912
4913 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4914 variables as signed, not unsigned.
4915
4916 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4917
4918 * jit.c (jit_inferior_init): Reformat forward declaration.
4919
4920 2011-07-06 Matt Rice <ratmice@gmail.com>
4921
4922 * MAINTAINERS (Write After Approval): Add myself to the list.
4923
4924 2011-07-06 Hui Zhu <teawater@gmail.com>
4925
4926 * remote.c (remote_start_remote): Add TRY_CATCH for
4927 remote_get_trace_status.
4928 * tracepoint.c (disconnect_tracing): Ditto.
4929
4930 2011-07-05 Tom Tromey <tromey@redhat.com>
4931
4932 * symtab.c (operator_chars): Now static.
4933 * linespec.c (operator_chars): Don't declare.
4934
4935 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4936
4937 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4938
4939 2011-07-05 Tom Tromey <tromey@redhat.com>
4940
4941 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4942 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4943 (TYPE_CPLUS_REALLY_JAVA): New macro.
4944 * dwarf2read.c (process_structure_scope): Set
4945 TYPE_CPLUS_REALLY_JAVA.
4946
4947 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4948
4949 * ada-lang.c: Fix typos.
4950 * amd64-tdep.c: Likewise.
4951 * breakpoint.c: Likewise.
4952 * cli/cli-decode.c: Likewise.
4953 * findcmd.c: Likewise.
4954 * inline-frame.c: Likewise.
4955 * mi/mi-main.c: Likewise.
4956 * minsyms.c: Likewise.
4957 * monitor.c: Likewise.
4958 * monitor.h: Likewise.
4959 * prologue-value.c: Likewise.
4960 * reverse.c: Likewise.
4961 * s390-tdep.c: Likewise.
4962
4963 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4964
4965 * jit.c (jit_inferior_init): Forward declare.
4966 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4967
4968 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4969
4970 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4971
4972 2011-07-04 Tristan Gingold <gingold@adacore.com>
4973
4974 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4975 (tcb_fieldno): Add activation_link field.
4976 (get_known_tasks_addr): Moved and rewritten.
4977 (get_tcb_types_info): Set activation_link field.
4978 (read_known_tasks_array): Add parameter. Rewritten.
4979 (read_known_tasks_list): New function.
4980 (read_known_tasks): New function.
4981 (ada_build_task_list): Call read_known_tasks instead of
4982 read_known_tasks_array.
4983 * ravenscar-thread.c: Add first_task_name constant.
4984 (has_ravenscar_runtime): Check for task list too.
4985
4986 2011-07-04 Tristan Gingold <gingold@adacore.com>
4987
4988 * ada-tasks.c: Renames fieldno to actb_fieldno.
4989 (ada_get_task_number): Indentation.
4990 (get_tcb_types_info): Remove all parameters. Write directly
4991 the globals.
4992 (ptid_from_atcb_common): Adjust.
4993 (read_atcb): Adjust.
4994
4995 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4996
4997 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4998
4999 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5000
5001 * ui-out.c (ui_out_field_core_addr): Mention that the function
5002 description is in the header file.
5003 * ui-out.h (ui_out_field_core_addr): Document function.
5004
5005 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5006
5007 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5008 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5009
5010 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5011
5012 * symtab.c (expand_line_sal): Remove empty line.
5013
5014 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
5015
5016 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5017 same way as ELFOSABI_NONE.
5018 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5019
5020 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5021
5022 * breakpoint.c: Fix typos in comments.
5023 * linespec.c: Likewise.
5024 * symtab.c: Likewise.
5025
5026 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5027
5028 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5029 section in separate object files.
5030
5031 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5032
5033 Fix false GCC warning.
5034 * linespec.c (decode_line_1): Initialize values.
5035
5036 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5037
5038 * linespec.c (find_method): Accept the function type automatically only
5039 if it was specified with parameter types.
5040
5041 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5042
5043 Stop on first linespec terminator instead of eating what we can.
5044 * linespec.c (is_linespec_boundary): New function.
5045 (name_end): Remove function.
5046 (keep_name_info): New parameter on_boundary, replace the body.
5047 (decode_line_1): Provide the parameter to keep_name_info.
5048 (decode_compound): Likewise. Drop the trailing java return type
5049 handling. Twice.
5050
5051 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5052
5053 Fall back linespec to minimal symbols.
5054 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5055 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5056 (find_method, symbol_found): Change error to cplusplus_error.
5057
5058 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5059
5060 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5061
5062 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5063 Tom Tromey <tromey@redhat.com>
5064
5065 * dwarf2read.c (check_physname): New variable.
5066 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5067 (show_check_physname): New function.
5068 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5069
5070 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5071
5072 * machoread.c (macho_symfile_read): Delete OBE comment.
5073
5074 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5075
5076 * machoread.c (struct macho_oso_data): Delete.
5077 (current_oso): Delete.
5078 (macho_relocate_common_syms): New function, mostly extracted
5079 out of
5080 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5081 Remove code that sets and unset current_oso.
5082 (macho_symfile_relocate): Delete handling of common symbols,
5083 now moved to macho_relocate_common_syms.
5084
5085 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5086
5087 * darwin-nat.c (darwin_ptrace): Add documentation.
5088 Set errno to zero before calling ptrace. If ptrace returns
5089 -1 and errno is zero, then change then return zero.
5090 (darwin_kill_inferior): Issue a warning instead of triggering
5091 a failed assertion when the PT_KILL ptrace operations returned
5092 nonzero.
5093
5094 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5095
5096 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5097 only when inf->private->no_ptrace.
5098
5099 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5100
5101 * ada-lang.c (print_it_exception): Print temporary catchpoints
5102 as "Temporary catchpoint".
5103 (print_mention_exception): Likewise.
5104
5105 2011-07-01 Tom Tromey <tromey@redhat.com>
5106
5107 * jv-lang.c (java_language_defn): Use java_printchar,
5108 java_printstr.
5109 (java_get_encoding): New function.
5110 (java_emit_char): Use generic_emit_char.
5111 (java_printchar): New function.
5112 (java_printstr): Likewise.
5113
5114 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5115
5116 * ada-typeprint.c (print_record_type): If unable to decode
5117 the name of the parent type, use the encoded name.
5118
5119 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5120
5121 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5122 pointer to constrained packed array type output.
5123 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5124 packed array output.
5125
5126 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5127
5128 * ada-typeprint.c (print_array_type): removed if condition on show
5129 being negative for bounds printing.
5130
5131 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5132
5133 * ada-lang.c (ada_identical_enum_types_p): New function.
5134 (symbols_are_identical_enums): New function.
5135 (remove_extra_symbols): Do nothing if NSYMS < 2.
5136 Use symbols_are_identical_enums.
5137
5138 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5139
5140 * ada-valprint.c (ada_value_print): Handle typedefs.
5141
5142 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5143
5144 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5145
5146 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5147
5148 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5149 (decode_constrained_packed_array): Likewise.
5150 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5151
5152 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5153
5154 * ada-exp.y (convert_char_literal): Handle typedef types.
5155
5156 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5157
5158 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5159
5160 2011-06-30 Tom Tromey <tromey@redhat.com>
5161
5162 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5163 * valops.c (find_overload_match): Call do_cleanups on early exit
5164 path.
5165 * solib.c (solib_find): Call do_cleanups on early exit path.
5166
5167 2011-06-30 Tom Tromey <tromey@redhat.com>
5168
5169 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5170 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5171 return paths. Defer final do_cleanups until last return.
5172 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5173 early return.
5174
5175 2011-06-30 Tom Tromey <tromey@redhat.com>
5176
5177 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5178
5179 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5180
5181 * MAINTAINERS (Write After Approval): Add myself to the list.
5182
5183 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5184
5185 Disable epilogue unwinders on recent GCCs.
5186 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5187 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5188 * dwarf2read.c (process_full_comp_unit): Initialize
5189 EPILOGUE_UNWIND_VALID.
5190 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5191 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5192 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5193
5194 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5195
5196 Code cleanup - reformatting.
5197 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5198 (producer_is_gcc_ge_4): ... here, change the return value.
5199 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5200 interpretation.
5201
5202 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5203
5204 Fix non-only rename list for Fortran modules import.
5205 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5206 cp_add_using_directive caller.
5207 (cp_add_using_directive): New parameter excludes, describe it. New
5208 variables ix and param. Compare if also excludes match. Allocate NEW
5209 with variable size, initialize EXCLUDES there.
5210 (cp_lookup_symbol_imports): New variable excludep, test
5211 current->EXCLUDES with it.
5212 * cp-support.h: Include vec.h.
5213 (struct using_direct): New field excludes, describe it.
5214 (DEF_VEC_P (const_char_ptr)): New.
5215 (cp_add_using_directive): New parameter excludes.
5216 * defs.h (const_char_ptr): New typedef.
5217 * dwarf2read.c (read_import_statement): New variables child_die,
5218 excludes and cleanups, read in excludes.
5219 (read_namespace): Adjust the cp_add_using_directive caller.
5220
5221 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5222
5223 Code cleanup.
5224 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5225 negative comparisons.
5226
5227 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5228
5229 * mi/mi-main.c (mi_cmd_list_features): Emit
5230 breakpoint-notifications.
5231
5232 2011-06-29 Tom Tromey <tromey@redhat.com>
5233
5234 PR fortran/10036:
5235 * valprint.h (generic_emit_char, generic_printstr): Declare.
5236 * valprint.c (wchar_printable, append_string_as_wide)
5237 (print_wchar): Move from c-lang.c.
5238 (generic_emit_char): New function; mostly taken from c_emit_char.
5239 (generic_printstr): New function; mostly taken from c_printstr.
5240 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5241 represented as arrays.
5242 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5243 type.
5244 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5245 identically to TYPE_CODE_INT.
5246 * f-lang.c (f_get_encoding): New function.
5247 (f_emit_char): Use generic_emit_char.
5248 (f_printchar): Replace comment.
5249 (f_printstr): Use generic_printstr.
5250 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5251 "character" types specially.
5252 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5253 for Fortran.
5254 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5255 Move to valprint.c
5256 (c_emit_char): Call generic_emit_char.
5257 (c_printstr): Call generic_printstr.
5258
5259 2011-06-29 Gary Benson <gbenson@redhat.com>
5260
5261 * breakpoint.c (bpstat_what): Removed duplicated case.
5262
5263 2011-06-28 Tom Tromey <tromey@redhat.com>
5264
5265 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5266
5267 2011-06-27 Tom Tromey <tromey@redhat.com>
5268
5269 * valops.c (find_overload_match): Call do_cleanups before early
5270 return.
5271 * top.c (execute_command): Call do_cleanups before early return.
5272 (command_loop): Likewise.
5273 * stack.c (backtrace_command): Make a null cleanup early. Don't
5274 conditionally call do_cleanups.
5275 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5276 TRY_CATCH.
5277 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5278 so cleanups are always run.
5279 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5280 * findcmd.c (parse_find_args): Call do_cleanups on early return
5281 path.
5282 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5283 Don't conditionally call do_cleanups.
5284 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5285 later.
5286
5287 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5288
5289 * MAINTAINERS (Write After Approval): Use default email address.
5290
5291 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5292
5293 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5294
5295 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5296
5297 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5298 saved_regs_mask and copied_regs_mask fields.
5299 (sparc_record_save_insn): New prototype.
5300 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5301 (sparc_record_save_insn): New function.
5302 (sparc_analyze_prologue): Add head comment. Recognize store insns
5303 of call-saved registers. Use OFFSET consistently. Recognize flat
5304 frames and cache their settings.
5305 (sparc32_skip_prologue): Handle flat frames.
5306 (sparc_frame_cache): Add frame_offset to the base address.
5307 (sparc32_frame_cache): Adjust to new frame description.
5308 (sparc32_frame_prev_register): Likewise.
5309 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5310 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5311 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5312 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5313 frame by calling sparc_record_save_insn.
5314 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5315 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5316 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5317
5318 2011-06-27 Tristan Gingold <gingold@adacore.com>
5319
5320 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5321 field by map_addr and map_len.
5322 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5323 (munmap_section_buffer): Likewise.
5324
5325 2011-06-24 Tom Tromey <tromey@redhat.com>
5326
5327 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5328 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5329 * python/python.c (gdbpy_parameter): Make 'arg' const.
5330 (execute_gdb_command): Likewise.
5331 (gdbpy_decode_line): Likewise. Copy it.
5332 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5333 (gdbpy_write): Make 'arg' const.
5334 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5335 const.
5336 (gdbpy_lookup_type): Likewise.
5337 * python/py-prettyprint.c (print_children): Make 'name' const.
5338 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5339 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5340 Py_ssize_t.
5341 * python/py-function.c (fnpy_init): Make 'name' const.
5342 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5343 (gdbpy_string_to_argv): Make 'input' const.
5344 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5345 it.
5346 * gdbtypes.h (lookup_typename): Update.
5347 * gdbtypes.c (lookup_typename): Make 'name' const.
5348 (lookup_struct): Likewise.
5349 (lookup_union): Likewise.
5350 (lookup_enum): Likewise.
5351
5352 2011-06-24 Tom Tromey <tromey@redhat.com>
5353
5354 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5355 gdb_thread_db.h. Move all common/ entries to be together.
5356 (TAGS): Don't depend on DEPFILES.
5357
5358 2011-06-23 Yao Qi <yao@codesourcery.com>
5359
5360 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5361 * remote.c (remote_start_remote): ... here.
5362 * monitor.c (monitor_open): ... here.
5363
5364 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5365
5366 * gdbtypes.c (append_composite_type_field_aligned): Fix
5367 calculation of bit position based on alignment.
5368
5369 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5370
5371 * breakpoint.c (bpstat_stop_status): Call the check_status
5372 breakpoint_ops method.
5373 (print_one_breakpoint_location): Also print the condition for Ada
5374 exception catchpoints.
5375 (allocate_bp_location): New, factored out from
5376 allocate_bp_location.
5377 (allocate_bp_location): Adjust. Call the owner breakpoint's
5378 allocate_location method, if there is one.
5379 (free_bp_location): Call the locations's dtor method, if there is
5380 one.
5381 (init_raw_breakpoint_without_location): New breakpoint_ops
5382 parameter. Use it.
5383 (set_raw_breakpoint_without_location): Adjust.
5384 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5385 (set_raw_breakpoint): Adjust.
5386 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5387 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5388 re_set and check_status methods.
5389 (init_catchpoint): Don't memset, initialize thread, addr_string
5390 and enable_state. Pass the ops down to init_raw_breakpoint.
5391 (install_catchpoint): Rename to ...
5392 (install_breakpoint): ... this, and make extern.
5393 (create_fork_vfork_event_catchpoint): Adjust.
5394 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5395 re_set and check_status methods.
5396 (create_syscall_event_catchpoint): Adjust.
5397 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5398 (masked_watchpoint_breakpoint_ops): Install NULL
5399 allocate_location, re_set and check_status methods.
5400 (catch_exec_command_1): Adjust.
5401 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5402 re_set and check_status methods.
5403 (create_ada_exception_breakpoint): Rename to ...
5404 (init_ada_exception_breakpoint): ... this. Add a struct
5405 breakpoint parameter, and delete the exp_string, cond_string and
5406 cond parameters. Use init_raw_breakpoint, and don't install or
5407 mention the breakpoint yet. Don't clear breakpoint fields that
5408 init_raw_breakpoint already clears.
5409 (re_set_breakpoint): Delete, split into ...
5410 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5411 functions.
5412 (breakpoint_re_set_one): Call the breakpoint's
5413 breakpoint_ops->re_set implementation, if there's one. Adjust.
5414 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5415 (struct bp_location_ops): New type.
5416 (struct bp_location): New field `ops'.
5417 (struct breakpoint_ops): New `allocate_location', `re_set' and
5418 `check_status' fields. Make `breakpoint_hit''s description match
5419 reality.
5420 (init_bp_location): Declare.
5421 (breakpoint_re_set_default): Declare.
5422 (create_ada_exception_breakpoint): Rename to ...
5423 (init_ada_exception_breakpoint): ... this. Add a struct
5424 breakpoint parameter, and delete the exp_string, cond_string and
5425 cond parameters.
5426 (install_breakpoint): Declare.
5427 * ada-lang.c: Include exceptions.h.
5428 <Ada exceptions description>: Update.
5429 (struct ada_catchpoint_location): New type.
5430 (ada_catchpoint_location_dtor): New function.
5431 (ada_catchpoint_location_ops): New global.
5432 (ada_catchpoint): New type.
5433 (create_excep_cond_exprs): New function.
5434 (dtor_exception, allocate_location_exception, re_set_exception)
5435 (should_stop_exception, check_status_exception): New functions.
5436 (print_one_exception, print_mention_exception)
5437 (print_recreate_exception): Adjust.
5438 (dtor_catch_exception, allocate_location_catch_exception)
5439 (re_set_catch_exception, check_status_catch_exception): New
5440 functions.
5441 (catch_exception_breakpoint_ops): Install them.
5442 (dtor_catch_exception_unhandled)
5443 (allocate_location_catch_exception_unhandled)
5444 (re_set_catch_exception_unhandled)
5445 (check_status_catch_exception_unhandled): New functions.
5446 (catch_exception_unhandled_breakpoint_ops): Install them.
5447 (dtor_catch_assert, allocate_location_catch_assert)
5448 (re_set_catch_assert, check_status_catch_assert): New functions.
5449 (catch_assert_breakpoint_ops): Install them.
5450 (ada_exception_catchpoint_p): Delete.
5451 (catch_ada_exception_command_split)
5452 (ada_exception_catchpoint_cond_string): Rename exp_string
5453 parameter to excep_string. Adjust.
5454 (ada_parse_catchpoint_condition): Delete.
5455 (ada_exception_sal): Rename the exp_string parameter to
5456 excep_string. Delete the cond_string and cond parameters.
5457 Adjust.
5458 (ada_decode_exception_location): Rename the exp_string parameter
5459 to excep_string. Delete the cond_string and cond parameters.
5460 Adjust.
5461 (create_ada_exception_catchpoint): New function.
5462 (catch_ada_exception_command, ada_decode_assert_location)
5463 (catch_assert_command): Adjust.
5464 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5465
5466 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5467
5468 * ada-lang.c: Include arch-utils.h.
5469 (ada_decode_exception_location): Make static.
5470 (catch_ada_exception_command): Moved here from breakpoint.c.
5471 (ada_decode_assert_location): Make static.
5472 (catch_assert_command): Moved here from breakpoint.c.
5473 (_initialize_ada_lang): Install the exception and assert
5474 catchpoint commands here.
5475 * ada-lang.h (ada_decode_exception_location)
5476 (ada_decode_assert_location): Delete declarations.
5477 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5478 breakpoint.h.
5479 (create_ada_exception_breakpoint): Make extern.
5480 (catch_ada_exception_command, catch_assert_command): Moved to
5481 ada-lang.c.
5482 (add_catch_command): Make extern.
5483 (_initilize_breakpoint): Don't install the exception and assert
5484 catchpoint commands here.
5485 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5486 breakpoint.c
5487 (add_catch_command, create_ada_exception_breakpoint): Declare.
5488
5489 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5490
5491 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5492 the breakpoint to the breakpoint chain here.
5493 (set_raw_breakpoint_without_location): Add the breakpoint to the
5494 breakpoint chain here.
5495 (init_raw_breakpoint): Adjust comments.
5496 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5497 here.
5498 (init_catchpoint): Don't set the catchpoint's breakpoint number
5499 here.
5500 (install_catchpoint): New function.
5501 (create_fork_vfork_event_catchpoint)
5502 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5503 use install_catchpoint.
5504
5505 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5506
5507 * breakpoint.c (create_catchpoint_without_mention)
5508 (create_catchpoint): Delete.
5509
5510 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5511
5512 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5513 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5514 reference to exec_pathname.
5515 (struct exec_catchpoint): New type.
5516 (dtor_catch_exec): New function.
5517 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5518 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5519 (catch_exec_command_1): Adjust to use init_catchpoint.
5520 (delete_breakpoint): Remove reference to exec_pathname.
5521
5522 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5523
5524 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5525 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5526 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5527 reference to syscalls_to_be_caught.
5528 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5529 NULL `dtor'.
5530 (struct syscall_catchpoint): New type.
5531 (dtor_catch_syscall): New function.
5532 (insert_catch_syscall, remove_catch_syscall)
5533 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5534 (print_recreate_catch_syscall): Adjust.
5535 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5536 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5537 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5538 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5539 (masked_watchpoint_breakpoint_ops)
5540 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5541 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5542 there is one. Remove references to syscalls_to_be_caught.
5543 (catching_syscall_number): Adjust.
5544 * ada-lang.c (catch_exception_breakpoint_ops)
5545 (catch_exception_unhandled_breakpoint_ops)
5546 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5547
5548 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5549
5550 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5551 field.
5552 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5553 reference to forked_inferior_pid.
5554 (struct fork_catchpoint): New type.
5555 (breakpoint_hit_catch_fork, print_it_catch_fork)
5556 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5557 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5558 (create_fork_vfork_event_catchpoint): Adjust to use
5559 init_catchpoint.
5560
5561 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5562
5563 * breakpoint.c (add_to_breakpoint_chain)
5564 (init_raw_breakpoint_without_location): New functions, factored
5565 out from ...
5566 (set_raw_breakpoint_without_location): ... this one.
5567 (init_raw_breakpoint): New function, factored out from
5568 set_raw_breakpoint and adjusted to use
5569 init_raw_breakpoint_without_location.
5570 (set_raw_breakpoint): Adjust.
5571 (init_catchpoint): New function, factored out from
5572 create_catchpoint_without_mention and adjusted to use
5573 init_raw_breakpoint.
5574 (create_catchpoint_without_mention): Adjust.
5575
5576 2011-06-22 Tom Tromey <tromey@redhat.com>
5577
5578 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5579 argument of 0 specially.
5580
5581 2011-06-22 Yao Qi <yao@codesourcery.com>
5582
5583 * infrun.c (handle_inferior_event): Remove write-only local variable
5584 `sw_single_step_trap_p'.
5585
5586 2011-06-20 Tom Tromey <tromey@redhat.com>
5587
5588 * symtab.c (lookup_language_this): End loop if block is NULL.
5589
5590 2011-06-17 Tom Tromey <tromey@redhat.com>
5591
5592 * valops.c (value_of_this): Use lookup_language_this.
5593 * symtab.h (lookup_language_this): Declare.
5594 * symtab.c (lookup_language_this): New function.
5595 (lookup_symbol_aux): Use lookup_language_this.
5596 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5597
5598 2011-06-17 Tom Tromey <tromey@redhat.com>
5599
5600 * value.h (value_of_this): Update.
5601 (value_of_local): Remove.
5602 * valops.c (value_of_this): Rename from value_of_local. Change
5603 parameters.
5604 * p-exp.y (exp): Update.
5605 (variable): Likewise.
5606 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5607
5608 2011-06-17 Tom Tromey <tromey@redhat.com>
5609
5610 * valops.c (value_of_local): Complain if NAME is NULL.
5611 * std-operator.def (OP_OBJC_SELF): Remove.
5612 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5613 * objc-exp.y (name_not_typename): Use OP_THIS.
5614 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5615 name for "this".
5616 <OP_OBJC_SELF>: Remove.
5617 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5618
5619 2011-06-16 Tristan Gingold <gingold@adacore.com>
5620
5621 * python/py-events.h (gdb_py_events): Make it extern.
5622 * python/py-evtregistry.c (gdb_py_events): Declare.
5623
5624 2011-06-16 Hui Zhu <teawater@gmail.com>
5625
5626 * remote.c (remote_trace_set_readonly_regions): Add check for
5627 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5628 output warning.
5629
5630 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5631
5632 * arm-linux-tdep.c: Include "auxv.h".
5633 (AT_HWCAP): Define.
5634 (ARM_LINUX_SIZEOF_VFP): Define.
5635 (arm_linux_supply_vfp): New function.
5636 (arm_linux_collect_vfp): Likewise.
5637 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5638 (arm_linux_fpa_regset_sections): New variable.
5639 (arm_linux_vfp_regset_sections): Likewise.
5640 (arm_linux_core_read_description): New function.
5641 (arm_linux_init_abi): Install arm_linux_core_read_description and
5642 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5643 appropriate for the architecture.
5644 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5645 (tdesc_arm_with_m): Declare.
5646 (tdesc_arm_with_iwmmxt): Likewise.
5647 (tdesc_arm_with_vfpv2): Likewise.
5648 (tdesc_arm_with_vfpv3): Likewise.
5649 (tdesc_arm_with_neon): Likewise.
5650 * arm-linux-nat.c: Move features/*.c includes ...
5651 * arm-tdep.c: ... here.
5652 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5653 target description data structures ...
5654 * arm-tdep.c (_initialize_arm_tdep): ... here.
5655 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5656 HWCAP_VFPv3D16): Move definitions ...
5657 * arm-linux-tdep.h: ... here.
5658
5659 2011-06-15 Hui Zhu <teawater@gmail.com>
5660
5661 * remote.c (remote_trace_set_readonly_regions): Add a check for
5662 target_buf_size.
5663
5664 2011-06-14 Tom Tromey <tromey@redhat.com>
5665
5666 * coffread.c (coffread_objfile): Rename from current_objfile.
5667 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5668 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5669
5670 2011-06-14 Tom Tromey <tromey@redhat.com>
5671
5672 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5673 (class_symtab): Remove.
5674 (jv_dynamics_progspace_key): New global.
5675 (jv_per_objfile_free): Reset program space data. Update assert.
5676 Don't clear globals.
5677 (get_dynamics_objfile): Use and set program space data.
5678 (get_java_class_symtab): Use get_dynamics_objfile.
5679 (add_class_symbol): Likewise.
5680 (java_link_class_type): Likewise.
5681 (java_object_type, jv_clear_object_type, set_java_object_type):
5682 Remove.
5683 (get_java_object_type): Update. Don't cache result.
5684 (is_object_type): Don't call set_java_object_type.
5685 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5686 initialize jv_dynamics_progspace_key.
5687
5688 2011-06-14 Tom Tromey <tromey@redhat.com>
5689
5690 * symtab.h (current_objfile): Don't declare.
5691 * objfiles.h (current_objfile): Don't declare.
5692 * objfiles.c (current_objfile): Remove.
5693 * mdebugread.c (current_objfile): New file-scope global.
5694 * dbxread.c (current_objfile): New file-scope global.
5695 * coffread.c (current_objfile): New file-scope global.
5696
5697 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5698
5699 * top.h (line): Rename to ...
5700 (saved_command_line): ... this.
5701 (linesize): Rename to ...
5702 (saved_command_line_size): ... this.
5703 * top.c (line): Rename to ...
5704 (saved_command_line): ... this.
5705 (linesize): Rename to ...
5706 (saved_command_line_size): ... this.
5707 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5708 * event-top.c (command_line_handler): Adjust.
5709 * main.c (captured_main): Adjust.
5710
5711 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5712
5713 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5714 get_frame_func instead of get_frame_pc to determine the code
5715 address used to construct the frame ID.
5716 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5717 (i386_epilogue_frame_this_id): Likewise.
5718 (i386_epilogue_frame_prev_register): New function.
5719 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5720 (i386_stack_tramp_frame_sniffer): Fix coding style.
5721 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5722 (i386_gdbarch_init): Fix comments.
5723
5724 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5725
5726 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5727 instruction when walking back through the instruction stream.
5728
5729 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5730
5731 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5732 fullname parameters order.
5733
5734 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5735
5736 Code cleanup.
5737 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5738 for fun.
5739 * psymtab.c (map_symbol_filenames_psymtab)
5740 (map_partial_symbol_filenames): Likewise.
5741 * psymtab.h: Include symfile.h.
5742 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5743 * symfile.h (symbol_filename_ftype): New.
5744 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5745 map_symbol_filenames, clarify more the naming in comment.
5746
5747 2011-06-07 Doug Evans <dje@google.com>
5748
5749 * cc-with-index.sh: Fix typos in comment.
5750 Look for ../../gdb, for fullname.exp.
5751
5752 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5753 Pedro Alves <pedro@codesourcery.com>
5754
5755 * cli/cli-cmds.c (shell_escape): Use waitpid.
5756 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5757
5758 2011-06-07 Tristan Gingold <gingold@adacore.com>
5759
5760 * xcoffread.c (dwarf2_xcoff_names): New variable.
5761 (aix_process_linenos): Add a guard.
5762 (xcoff_symfile_finish): Free dwarf2.
5763 (xcoff_initial_scan): Add dwarf2 support.
5764
5765 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5766
5767 * infcall.c (run_inferior_call): Don't mask async. Instead force
5768 a synchronous wait, if the target can async.
5769
5770 * target.h (struct target_ops): Delete to_async_mask.
5771 (target_async_mask): Delete.
5772 * target.c (update_current_target): Delete references to to_async_mask.
5773 * linux-nat.c (linux_nat_async_mask_value): Delete.
5774 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5775 to linux_nat_async_mask_value.
5776 (linux_nat_async_mask): Delete.
5777 (linux_nat_async, linux_nat_close): Remove references to
5778 linux_nat_async_mask_value.
5779 * record.c (record_async_mask_value): Delete.
5780 (record_async): Remove references to record_async_mask_value.
5781 (record_async_mask): Delete.
5782 (record_can_async_p, record_is_async_p): Remove references to
5783 record_async_mask_value.
5784 (init_record_ops, init_record_core_ops): Remove references to
5785 record_async_mask.
5786 * remote.c (remote_async_mask_value): Delete.
5787 (init_remote_ops): Remove reference to remote_async_mask.
5788 (remote_can_async_p, remote_is_async_p): Remove references to
5789 remote_async_mask_value.
5790 (remote_async): Remove references to remote_async_mask_value.
5791 (remote_async_mask): Delete.
5792
5793 * infrun.c (fetch_inferior_event): Don't claim registers changed
5794 if the current thread is already not executing.
5795
5796 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5797
5798 From Stephen Kitt <steve@sk2.org>
5799 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5800 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5801
5802 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5803
5804 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5805 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5806
5807 2011-06-03 Tom Tromey <tromey@redhat.com>
5808
5809 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5810 code fields.
5811 * python/py-exitedevent.c (create_exited_event_object): Change
5812 type of 'exit_code'. Optionally add exit_code attribute.
5813 (emit_exited_event): Change type of 'exit_code'.
5814 * python/py-event.h (emit_exited_event): Update.
5815 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5816 * infrun.c (handle_inferior_event): Set exit code fields on
5817 inferior.
5818 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5819 fields.
5820 * inferior.c (exit_inferior_1): Initialize new fields.
5821
5822 2011-06-03 Tom Tromey <tromey@redhat.com>
5823
5824 * dwarf2expr.c (get_signed_type): New function.
5825 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5826
5827 2011-06-02 Keith Seitz <keiths@redhat.com>
5828
5829 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5830
5831 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5832
5833 * top.h (simplified_command_loop): Delete declaration.
5834
5835 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5836
5837 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5838 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5839
5840 2011-06-01 Yao Qi <yao@codesourcery.com>
5841
5842 * objfiles.h (obj_section_addr): Update reference to objfile from
5843 `abfd' to `obfd'.
5844 (obj_section_endaddr): Likewise.
5845
5846 2011-06-01 Daniel Jacobowitz <drow@false.org>
5847
5848 * MAINTAINERS: Update my email address and affiliation. Also
5849 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5850
5851 2010-05-31 Keith Seitz <keiths@redhat.com>
5852
5853 PR c++/12750
5854 * linespec.c (get_search_block): New function.
5855 (find_methods): Add FILE_SYMTATB parameter and use it and
5856 get_search_block to pass an appropriate block to
5857 lookup_symbol_in_namespace.
5858 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5859 Check if *ARGPTR starts with a filename first.
5860 If it does, call locate_first_half again to locate the next
5861 "first half" of the linespec.
5862 Pass FILE_SYMTATB to decode_objc and decode_compound.
5863 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5864 (locate_first_half): Stop on the first colon seen.
5865 (decode_compound): Add FILE_SYMTAB parameter.
5866 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5867 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5868 get_search_block with lookup_symbol.
5869 (find_method): Add FILE_SYMTAB parameter and pass it to
5870 find_methods.
5871 (decode_objc): Use get_search_block.
5872
5873 2010-05-31 Keith Seitz <keiths@redhat.com>
5874
5875 PR symtab/12704
5876 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5877 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5878 and CP_ANONYMOUS_NAMESPACE_LEN.
5879 (cp_is_anonymous): Likewise.
5880 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5881 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5882 * dwarf2read.c (namespace_name): Likewise.
5883 (fixup_partial_die): Likewise.
5884 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5885 seen in the input, keep it.
5886
5887 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5888
5889 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5890 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5891 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5892 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5893 * remote.c (_initialize_remote): Register
5894 async_remote_interrupt_twice directly as
5895 sigint_remote_twice_token event.
5896
5897 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5898
5899 * target.h (enum inferior_event_type): Delete INF_ERROR.
5900 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5901
5902 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5903
5904 * interps.c (interp_set): Don't cancel continuations.
5905
5906 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5907
5908 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5909
5910 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5911
5912 * continuations.h (continuation_ftype): Add `err' parameter.
5913 Document parameters.
5914 (do_all_continuations, do_all_continuations_thread)
5915 (do_all_intermediate_continuations)
5916 (do_all_intermediate_continuations_thread)
5917 (do_all_inferior_continuations): Add `err' parameter.
5918 * continuations.c (do_my_continuations_1, do_my_continuations)
5919 (do_all_inferior_continuations, do_all_continuations_ptid)
5920 (do_all_continuations_thread_callback)
5921 (do_all_continuations_thread, do_all_continuations)
5922 (do_all_intermediate_continuations_thread_callback)
5923 (do_all_intermediate_continuations_thread)
5924 (do_all_intermediate_continuations): Add `err' parameter, and pass
5925 it down all the way to the continuations proper.
5926 * inf-loop.c (inferior_event_handler): If fetching an inferior
5927 event throws an error, don't pop the target, and still call the
5928 continuations, but with `err' set. Adjust all other continuation
5929 calls.
5930 * breakpoint.c (until_break_command_continuation): Add `err'
5931 parameter.
5932 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5933 issue another step if `err' is set.
5934 (struct until_next_continuation_args): New.
5935 (until_next_continuation): Add `err' parameter. Adjust.
5936 (until_next_command): Adjust.
5937 (struct finish_command_continuation_args): Add `thread' field.
5938 (finish_command_continuation): Add `err' parameter. Handle it.
5939 (finish_forward): Adjust.
5940 (attach_command_continuation): Add `err' parameter. Handle it.
5941 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5942 cancel the continuations.
5943 * interps.c (interp_set): Adjust to cancel the continuations.
5944 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5945 continuations rather than discarding.
5946 (free_thread): Don't clear thread inferior resources here.
5947 (delete_thread_1): Do it here instead. And do it before removing
5948 the thread from the threads list. Tag the thread as exited before
5949 clearing thread inferior resources.
5950
5951 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5952
5953 * infcall.c (call_function_by_hand): Rephrase error message.
5954
5955 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5956
5957 * defs.h (struct thread_info, struct inferior): Delete forward
5958 declarations.
5959 * breakpoint.h (struct thread_info): New forward declaration.
5960 * observer.sh (struct inferior): New forward declaration.
5961 * python/python-internal.h (struct inferior): New forward
5962 declaration.
5963
5964 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5965
5966 * defs.h (struct continuation, continuation_ftype)
5967 (continuation_free_arg_ftype, add_continuation)
5968 (do_all_continuations, do_all_continuations_thread)
5969 (discard_all_continuations, discard_all_continuations_thread)
5970 (add_intermediate_continuation, do_all_intermediate_continuations)
5971 (do_all_intermediate_continuations_thread)
5972 (discard_all_intermediate_continuations)
5973 (discard_all_intermediate_continuations_thread)
5974 (add_inferior_continuation, do_all_inferior_continuations)
5975 (discard_all_inferior_continuations): Move to ...
5976 * continuations.h: ... this new file.
5977 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5978 infcmd.c, inferior.c, infrun.c, interps.c: Include
5979 continuations.h.
5980
5981 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5982 Doug Evans <dje@google.com>
5983
5984 Fix PR 10970, PR 12702.
5985 * linux-nat.c (linux_lwp_is_zombie): New function.
5986 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5987 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5988
5989 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5990
5991 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5992 typedefs.
5993 (add_continuation, add_intermediate_continuation)
5994 (add_inferior_continuation): Use them.
5995 * continuations.c (struct continuation): Use them.
5996 (make_continuation_ftype): Delete.
5997 (make_continuation, add_inferior_continuation, add_continuation)
5998 (add_intermediate_continuation): Use continuation_ftype and
5999 continuation_free_arg_ftype. Rename parameters to shorter names.
6000
6001 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6002
6003 * continuations.c (make_continuation): Make it return void.
6004 (do_my_continuations): Rename to ...
6005 (do_my_continuations_1): ... this. Remove old_chain parameter and
6006 adjust.
6007 (do_my_continuations): New.
6008 (discard_my_continuations): Rename to ...
6009 (discard_my_continuations_1): ... this. Remove old_chain
6010 parameter and adjust.
6011 (discard_my_continuations): New.
6012 (add_inferior_continuation): Simplify.
6013 (do_all_inferior_continuations): Reimplement on top
6014 do_my_continuations.
6015 (discard_all_inferior_continuations): Simplify.
6016 (add_continuation): Simplify.
6017 (do_all_continuations_ptid): Simplify.
6018 (discard_all_continuations_thread_callback): Simplify.
6019 (add_intermediate_continuation): Simplify.
6020 (discard_all_intermediate_continuations_thread_callback):
6021 Simplify.
6022
6023 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6024
6025 * utils.c (struct continuation, add_continuation)
6026 (add_inferior_continuation)
6027 (do_all_inferior_continuations, discard_all_inferior_continuations)
6028 (restore_thread_cleanup, do_all_continuations_ptid)
6029 (do_all_continuations_thread_callback)
6030 (do_all_continuations_thread, do_all_continuations)
6031 (discard_all_continuations_thread_callback)
6032 (discard_all_continuations_thread, discard_all_continuations)
6033 (add_intermediate_continuation)
6034 (do_all_intermediate_continuations_thread_callback)
6035 (do_all_intermediate_continuations_thread)
6036 (do_all_intermediate_continuations)
6037 (discard_all_intermediate_continuations_thread_callback)
6038 (discard_all_intermediate_continuations_thread)
6039 (discard_all_intermediate_continuations): Move to ...
6040 * continuations.c: ... this new file, and adjust to no longer
6041 implement continuations on top of cleanups.
6042 * Makefile.in (SFILES): Add continuations.c.
6043 (COMMON_OBS): Add continuations.o.
6044
6045 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6046
6047 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6048 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6049 Internal error on invalid values.
6050 * reverse.c: Don't handle EXEC_ERROR.
6051 * mi/mi-main.c: Don't handle EXEC_ERROR.
6052
6053 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6054
6055 * record.c: Include event-loop.h, inf-loop.h.
6056 (record_beneath_to_async): New global.
6057 (tmp_to_async): New global.
6058 (record_async_inferior_event_token): New global.
6059 (record_open_1): Don't error out if async is enabled.
6060 (record_open): Handle to_async. Create an async event source in
6061 the event loop.
6062 (record_close): Delete the async event source.
6063 (record_resumed): New global.
6064 (record_execution_dir): New global.
6065 (record_resume, record_core_resume): Set them. Register the
6066 target on the event loop.
6067 (record_wait): Rename to ...
6068 (record_wait_1): ... this. Add more debug output. Handle
6069 TARGET_WNOHANG, and the target beneath returning
6070 TARGET_WAITKIND_IGNORE.
6071 (record_wait): Reimplement on top of record_wait_1.
6072 (record_async_mask_value): New global.
6073 (record_async, record_async_mask, record_can_async_p)
6074 (record_is_async_p, record_execution_direction): New functions.
6075 (init_record_ops, init_record_core_ops): Install new methods.
6076 * infrun.c (fetch_inferior_event): Temporarily switch the global
6077 execution direction to the direction the target was going.
6078 (execution_direction): Change type to int.
6079 * target.c (default_execution_direction): New function.
6080 (update_current_target): Inherit and de_fault
6081 to_execution_direction.
6082 * target.h (struct target_ops) <to_execution_direction>: New
6083 field.
6084 (target_execution_direction): New macro.
6085 * inferior.h (execution_direction): Change type to int.
6086
6087 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6088
6089 * infcall.c (call_function_by_hand): Don't allow calling functions
6090 in reverse execution mode.
6091
6092 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6093
6094 * infcmd.c (finish_command): Allow async finish in reverse.
6095
6096 2011-05-26 Yao Qi <yao@codesourcery.com>
6097
6098 * gdb_thread_db.h: Delete. Move to ...
6099 * common/gdb_thread_db.h: ... here.
6100
6101 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6102
6103 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6104 function's entry point instead of a manually managed momentary
6105 breakpoint, and only ever issue one proceed call.
6106 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6107 doing a reverse-finish, switch to stepi mode, to do another step.
6108 (insert_step_resume_breakpoint_at_sal): Make public.
6109 (normal_stop): No need to save function value return registers if
6110 going reverse.
6111 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6112
6113 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6114
6115 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6116 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6117 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6118 at the end.
6119 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6120 step-resume breakpoints.
6121 (print_it_typical): Handle bp_hp_step_resume.
6122 (bpstat_what): Ditto.
6123 (bptype_string): Ditto.
6124 (print_one_breakpoint_location): Ditto.
6125 (allocate_bp_location): Ditto.
6126 (mention): Ditto.
6127 (breakpoint_re_set_one): Ditto.
6128 * infrun.c (handle_inferior_event): Adjust. Split
6129 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6130 BPSTAT_WHAT_HP_STEP_RESUME.
6131 (insert_step_resume_breakpoint_at_sal): Rename to ...
6132 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6133 parameter. Handle it.
6134 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6135 insert_step_resume_breakpoint_at_sal_1.
6136 (insert_step_resume_breakpoint_at_frame): Rename to ...
6137 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6138 set a high-priority step-resume breakpoint.
6139 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6140 (insert_step_resume_breakpoint_at_caller): Ditto.
6141
6142 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6143
6144 * breakpoint.c (iterate_over_related_breakpoints): New.
6145 (do_map_delete_breakpoint): New.
6146 (delete_command): Pass do_map_delete_breakpoint to
6147 map_breakpoint_numbers.
6148 (do_disable_breakpoint): New.
6149 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6150 breakpoints.
6151 (do_enable_breakpoint): Rename to ...
6152 (enable_breakpoint_disp): ... this.
6153 (enable_breakpoint): Adjust.
6154 (do_enable_breakpoint): New.
6155 (enable_once_breakpoint): Delete.
6156 (do_map_enable_breakpoint): New.
6157 (do_map_enable_once_breakpoint): New.
6158 (enable_once_command, enable_delete_command)
6159 (delete_trace_command): Iterate over the breakpoint's related
6160 breakpoints.
6161
6162 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6163
6164 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6165 for ALPHA_ZERO_REGNUM.
6166 (alpha_supply_int_regs): Explicitly supply zero as the value for
6167 ALPHA_ZERO_REGNUM in the register cache.
6168 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6169
6170 2011-05-26 Yao Qi <yao@codesourcery.com>
6171
6172 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6173
6174 2011-05-26 Tristan Gingold <gingold@adacore.com>
6175
6176 * symfile.h (struct dwarf2_section_names): New type.
6177 (struct dwarf2_debug_sections): New type.
6178 (dwarf2_has_info): Add parameter.
6179 * dwarf2read.c (dwarf2_elf_names): New variable.
6180 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6181 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6182 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6183 (dwarf2_has_info): Add names parameter. Pass names
6184 to dwarf2_locate_sections.
6185 (section_is_p): Rewrite using the names parameter.
6186 (dwarf2_locate_sections): Use section names from the names parameter.
6187 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6188 * elfread.c (read_psyms): Ditto.
6189 * machoread.c (macho_symfile_read): Ditto.
6190
6191 2011-05-25 Andreas Schwab <schwab@redhat.com>
6192
6193 PR gdb/8677
6194 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6195
6196 2011-05-24 Keith Seitz <keiths@redhat.com>
6197
6198 PR breakpoint/12803
6199 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6200 (decode_compound): Unconditionally call keep_name_info.
6201
6202 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6203
6204 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6205 scope, clear its command list.
6206 (map_breakpoint_numbers): Don't walk the related breakpoints list
6207 of each breakpoint.
6208
6209 2011-05-24 Tom Tromey <tromey@redhat.com>
6210
6211 * MAINTAINERS: Move Jim Blandy to past maintainers.
6212
6213 2011-05-24 Tristan Gingold <gingold@adacore.com>
6214
6215 * symfile.h (enum dwarf2_section_enum): New type.
6216 (dwarf2_get_section_info): New prototype.
6217 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6218 section_name by sect. Use a switch to select the info.
6219 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6220 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6221
6222 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6223
6224 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6225 shared library event breakpoint if there's no execution.
6226
6227 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6228
6229 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6230 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6231
6232 2011-05-23 Tom Tromey <tromey@redhat.com>
6233
6234 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6235 NULL.
6236
6237 2011-05-23 Doug Evans <dje@google.com>
6238
6239 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6240 entry for RuntimeError to doc string.
6241
6242 2011-05-23 Jerome Guitton <guitton@adacore.com>
6243
6244 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6245 sequence for probing loops.
6246
6247 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6248
6249 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6250 comment.
6251
6252 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6253
6254 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6255 zero as the value for %g0 in the register cache.
6256 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6257 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6258
6259 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6260
6261 * infrun.c (proceed): Set previous_inferior_ptid here.
6262 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6263 inferior_ptid, not null_ptid.
6264 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6265 (fetch_inferior_event): Nor here.
6266
6267 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6268
6269 * inf-loop.c (inferior_event_handler): Only output a message if
6270 verbose.
6271
6272 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6273
6274 * MAINTAINERS: Update my e-mail address.
6275
6276 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6277
6278 * infrun.c (proceed): Switch the inferior event loop to
6279 INF_EXEC_COMPLETE if the target refused to resume from a
6280 vfork/fork.
6281
6282 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6283
6284 * infcmd.c: Include "inf-loop.h".
6285 (step_once): When stepping into an inline subroutine, pretend the
6286 target has run. If the target can async, switch the inferior
6287 event loop to INF_EXEC_COMPLETE.
6288 * inferior.h (user_visible_resume_ptid): Declare.
6289 * infrun.c (user_visible_resume_ptid): New function, factored out
6290 from `resume'.
6291 (resume): Use it.
6292 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6293 that the current thread is running. Merge async and sync
6294 branches.
6295
6296 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6297
6298 * infcmd.c (step_1): Simplify synchronous case.
6299
6300 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6301
6302 * tracepoint.c: Include exceptions.h.
6303 (TFILE_PID): Move higher in file.
6304 (tfile_open): Delay pushing the tfile target until we're assured
6305 the tfile header is present in the file. Wrap reading the initial
6306 newline-terminated lines in TRY_CATCH. Pop the target if the
6307 initial setup failed. Add the tfile's thread immediately
6308 aftwards, before any non-essential setup. Don't skip
6309 post_create_inferior if there are no traceframes present in the
6310 file.
6311 (tfile_close): Remove redundant check for null before xfree call.
6312 (tfile_thread_alive): New function.
6313 (init_tfile_ops): Register it as to_thread_alive callback.
6314
6315 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6316
6317 * tracepoint.c (tfile_open): Delete #if 0'd code.
6318
6319 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6320
6321 Fix -readnow for -gdwarf-4 unused type units.
6322 * dwarf2read.c (struct signatured_type): Remove the field offset.
6323 (create_signatured_type_table_from_index): Remove its initialization.
6324 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6325 instead. Add a complaint call.
6326 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6327 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6328 (lookup_signatured_type_at_offset, read_signatured_type)
6329 (write_one_signatured_type): Update the field for per_cu.
6330
6331 2011-05-19 Tom Tromey <tromey@redhat.com>
6332
6333 * python/py-inferior.c (python_inferior_exit): Use
6334 target_gdbarch.
6335 (python_on_resume): Likewise.
6336
6337 2011-05-19 Matt Rice <ratmice@gmail.com>
6338
6339 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6340
6341 2011-05-19 Hui Zhu <teawater@gmail.com>
6342
6343 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6344
6345 2011-05-19 Hui Zhu <teawater@gmail.com>
6346
6347 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6348
6349 2011-05-18 Tom Tromey <tromey@redhat.com>
6350
6351 * dwarf2read.c (dwarf2_add_field): Constify.
6352 * value.c (value_static_field): Constify.
6353 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6354 Now const.
6355 * ax-gdb.c (gen_static_field): Constify
6356
6357 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6358
6359 * linux-nat.c (kill_callback): Use SIGKILL first.
6360
6361 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6362
6363 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6364
6365 2011-05-18 Tom Tromey <tromey@redhat.com>
6366
6367 * value.c (value_fn_field): Constify.
6368 * symtab.c (gdb_mangle_name): Constify.
6369 * stabsread.c (update_method_name_from_physname): Make 'physname'
6370 argument const.
6371 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6372 const. Use explicit fputc_filtered loop.
6373 (pascal_type_print_base): Constify.
6374 * p-lang.h (pascal_type_print_method_args): Update.
6375 * linespec.c (add_matching_methods): Constify.
6376 (add_constructors): Likewise.
6377 * jv-typeprint.c (java_type_print_base): Constify.
6378 * gdbtypes.h (struct cplus_struct_type)
6379 <fn_fieldlist.fn_field.physname>: Now const.
6380 * dwarf2read.c (compute_delayed_physnames): Constify.
6381 (dwarf2_add_member_fn): Likewise.
6382 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6383
6384 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6385
6386 * infrun.c (resume): Mention which is the current thread, and its
6387 current PC in debug output.
6388 (prepare_to_proceed): Mention the thread switching in debug
6389 output.
6390
6391 2011-05-18 Tom Tromey <tromey@redhat.com>
6392
6393 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6394 path check. Use xmalloc and cleanups.
6395 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6396
6397 2011-05-17 Tom Tromey <tromey@redhat.com>
6398
6399 * cp-valprint.c (cp_print_value_fields): Catch errors from
6400 value_static_field.
6401
6402 2011-05-17 Tom Tromey <tromey@redhat.com>
6403
6404 * dwarf2read.c (dwarf2_get_die_type): Call
6405 get_die_type_at_offset.
6406 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6407 get_base_type function.
6408
6409 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6410
6411 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6412 trap_expected.
6413
6414 2011-05-16 Doug Evans <dje@google.com>
6415
6416 * python/py-auto-load.c (source_section_scripts): Mention objfile
6417 name in warning.
6418
6419 2011-05-15 Doug Evans <dje@google.com>
6420
6421 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6422 (try_thread_db_load_from_pdir): Call it. If unable to find
6423 libthread_db in directory of libpthread, see if we're looking at
6424 the separate-debug-info copy.
6425
6426 * python/py-autoload.c (print_script): Print "Missing" instead of
6427 "No" for missing scripts.
6428 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6429
6430 2011-05-13 Doug Evans <dje@google.com>
6431
6432 * ui-file.c (stdio_file_write_async_safe): Add comment.
6433
6434 2011-05-14 Hui Zhu <teawater@gmail.com>
6435
6436 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6437
6438 2011-05-13 Doug Evans <dje@google.com>
6439
6440 Support $pdir and $sdir in libthread-db-search-path.
6441 * NEWS: Mention $sdir,$pdir.
6442 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6443 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6444 (try_thread_db_load_from_sdir): New function.
6445 (try_thread_db_load_from_dir): New function.
6446 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6447 system directories if search of libthread-db-search-path fails,
6448 that is now done via $sdir.
6449 (has_libpthread): New function.
6450 (thread_db_load): Remove search for libthread_db in directory of
6451 libpthread, that is now done via $pdir.
6452
6453 * NEWS: Mention "info auto-load-scripts".
6454 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6455 script_not_found_warning_printed.
6456 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6457 all callers updated. Initialize script_not_found_warning_printed.
6458 (get_auto_load_pspace_data_for_loading): New function.
6459 (maybe_add_script): New function.
6460 (source_section_scripts): Simplify. Only print one warning regardless
6461 of the number of auto-load scripts not found.
6462 (clear_section_scripts): Clear script_not_found_warning_printed.
6463 (auto_load_objfile_script): Record script in hash table.
6464 (count_matching_scripts): New function.
6465 (maybe_print_script): Renamed from maybe_print_section_script, all
6466 callers updated. Rewrite to use ui_out_*.
6467 (info_auto_load_scripts): Renamed from
6468 maintenance_print_section_scripts, all callers updated.
6469 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6470 renamed as "info auto-load-scripts".
6471
6472 2011-05-13 Tom Tromey <tromey@redhat.com>
6473
6474 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6475 (read_sleb128): Likewise.
6476
6477 2011-05-13 Tom Tromey <tromey@redhat.com>
6478
6479 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6480 offset display.
6481
6482 2011-05-13 Doug Evans <dje@google.com>
6483
6484 * linux-nat.c (debug_linux_nat_async): Delete.
6485 Replace all references to use debug_linux_nat instead.
6486 (show_debug_linux_nat_async): Delete.
6487 (sigchld_handler): Call ui_file_write_async_safe instead of
6488 fprintf_unfiltered.
6489 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6490 * ui-file.c (struct ui_file): New member to_write_async_safe.
6491 (null_file_write_async_safe): New function.
6492 (ui_file_write_async_safe): New function.
6493 (set_ui_file_write_async_safe): New function.
6494 (ui_file_new): Initialize to_write_async_safe.
6495 (stdio_file_write_async_safe): New function.
6496 (struct stdio_file): New member fd.
6497 (stdio_file_new): Initialize to_write_async_safe, fd.
6498 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6499 fileno.
6500 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6501 (set_ui_file_write_async_safe): Declare.
6502 (ui_file_write_async_safe): Declare.
6503
6504 2011-05-13 Tom Tromey <tromey@redhat.com>
6505
6506 * utils.c (do_value_free): New function.
6507 (make_cleanup_value_free): Likewise.
6508 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6509 freeing correctly.
6510 (dwarf2_loc_desc_needs_frame): Call
6511 make_cleanup_value_free_to_mark.
6512 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6513 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6514 value_free_to_mark.
6515 (new_dwarf_expr_context): Don't call value_mark.
6516 * dwarf2-frame.c (execute_stack_op): Call
6517 make_cleanup_value_free_to_mark.
6518 * defs.h (make_cleanup_value_free): Declare.
6519
6520 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6521
6522 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6523 prepare_execute_command.
6524 * top.c (prepare_execute_command): Return cleanup.
6525 (execute_command): Use cleanup from prepare_execute_command.
6526 * top.h (prepare_execute_command): Change prototype to return
6527 cleanup.
6528 * defs.h (struct value): Add opaque declaration.
6529 (make_cleanup_value_free_to_mark): Add prototype.
6530 * utils.c (do_value_free_to_mark): New function.
6531 (make_cleanup_value_free_to_mark): Likewise.
6532
6533 2011-05-12 Tom Tromey <tromey@redhat.com>
6534
6535 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6536 cast left-hand-side to unsigned.
6537
6538 2011-05-12 Tom Tromey <tromey@redhat.com>
6539
6540 PR gdb/12617:
6541 * value.h (value_from_contents): Declare.
6542 * value.c (value_from_contents): New function.
6543 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6544 (dwarf2_get_die_type): New function.
6545 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6546 (allocate_piece_closure): Acquire reference to values.
6547 (read_pieced_value): Update for value-based expressions.
6548 (write_pieced_value): Likewise.
6549 (free_pieced_value_closure): Call value_free as needed.
6550 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6551 Update for value-based expressions.
6552 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6553 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6554 <get_base_type>: New field.
6555 (struct dwarf_expr_piece) <v.value>: Change type.
6556 <v.regno>: New field.
6557 (struct dwarf_expr_context) <mark>: New field.
6558 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6559 (dwarf_expr_pop, dwarf_expr_push): Remove.
6560 (dwarf_expr_push_address): Declare.
6561 * dwarf2expr.c (dwarf_arch_cookie): New global.
6562 (struct dwarf_gdbarch_types): New.
6563 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6564 functions.
6565 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6566 static.
6567 (dwarf_expr_push_address): New function.
6568 (dwarf_expr_pop): Now static.
6569 (dwarf_expr_fetch): Change return type.
6570 (dwarf_require_integral): New function.
6571 (dwarf_expr_fetch): Simplify.
6572 (add_piece): Update.
6573 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6574 functions.
6575 (execute_stack_op) <sign_ext>: Remove.
6576 Use values for DWARF stack.
6577 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6578 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6579 New cases.
6580 (_initialize_dwarf2expr): New function.
6581 (add_piece): Update.
6582 (new_dwarf_expr_context): Set new field.
6583 (free_dwarf_expr_context): Call value_free_to_mark.
6584 * dwarf2-frame.c (no_base_type): New function.
6585 (execute_stack_op): Set get_base_type field. Update.
6586
6587 2011-05-12 Tom Tromey <tromey@redhat.com>
6588
6589 * dwarf2read.c (read_common_block): Fix formatting.
6590
6591 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6592
6593 * breakpoint.c (disable_breakpoint): Disable all locations
6594 associated with a tracepoint on target if a trace experiment is
6595 running.
6596 (disable_command): Disable a specific tracepoint location on target if
6597 a trace experiment is running.
6598 (do_enable_breakpoint): Enable all locations associated with a
6599 tracepoint on target if a trace experiment is running.
6600 (enable_command) Enable a specific tracepoint location on target if a
6601 trace experiment is running.
6602 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6603 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6604 to_disable_tracepoint.
6605 * target.h: Add declaration of struct bp_location.
6606 (struct target_ops): Add new functions
6607 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6608 to_disable_tracepoint to target operations.
6609 (target_supports_enable_disable_tracepoint): New macro.
6610 (target_enable_tracepoint): New macro.
6611 (target_disable_tracepoint): New macro.
6612 * remote.c (struct remote_state): Add new field.
6613 (remote_enable_disable_tracepoint_feature): New.
6614 (remote_protocol_features): Add new entry.
6615 (remote_supports_enable_disable_tracepoint): New.
6616 (remote_enable_tracepoint): New.
6617 (remote_disable_tracepoint): New.
6618 (init_remote_ops): Add remote_enable_tracepoint,
6619 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6620 to remote operations.
6621 * tracepoint.c (start_tracing): Allow tracing to start without any
6622 tracepoints enabled with just a warning if they can be re-enabled
6623 later.
6624 * NEWS: Add news item for the new behaviour of the enable and disable
6625 GDB commands when applied to tracepoints.
6626 Add news items for the new remote packets QTEnable and QTDisable.
6627
6628 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6629
6630 * config.in: Regenerate.
6631 * configure: Regenerate.
6632 * configure.ac <--with-system-readline> (for readline_echoing_p):
6633 Remove the test.
6634 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6635 (tui_old_rl_echoing_p): ... here.
6636 (tui_setup_io): Rename extern declaration readline_echoing_p to
6637 _rl_echoing_p. Adjust assignments for the both renames.
6638
6639 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6640
6641 * symtab.c (lookup_symtab): Run cleanup before returning.
6642
6643 2011-05-11 Tom Tromey <tromey@redhat.com>
6644
6645 * dwarf2read.c (handle_data_member_location): New function.
6646 (dwarf2_add_field): Use it.
6647 (read_common_block): Likewise.
6648
6649 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6650
6651 Make addrs->SECTINDEX always defined.
6652 * symfile.c (relative_addr_info_to_section_offsets): Check for
6653 SECTINDEX -1, not for zero ADDR.
6654 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6655 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6656 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6657 on its validity.
6658
6659 2011-05-10 Doug Evans <dje@google.com>
6660
6661 * linux-thread-db.c: Whitespace cleanup.
6662 (try_thread_db_load_1): Fix comment.
6663
6664 * linux-thread-db.c (set_libthread_db_search_path): New function.
6665 (_initialize_thread_db): Add setter for libthread-db-search-path.
6666
6667 2011-05-09 Doug Evans <dje@google.com>
6668
6669 * NEWS: Mention --with-iconv-bin.
6670 * configure.ac: New option --with-iconv-bin.
6671 * configure: Regenerate.
6672 * config.in: Regenerate.
6673 * defs.h (relocate_gdb_directory): Declare.
6674 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6675 removed progname parameter, and exported. All callers updated.
6676 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6677
6678 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6679 adding missing call to restore_child_signals_mask.
6680
6681 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6682
6683 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6684 parameter.
6685 * infrun.c (proceed, start_remote): Adjust.
6686 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6687 and adjust to not handle it.
6688 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6689 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6690 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6691 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6692 * windows-nat.c (do_initial_windows_stuff): Adjust.
6693 * infcmd.c (attach_command): Adjust.
6694 (notice_new_inferior): Adjust.
6695
6696 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6697
6698 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6699 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6700 * spu-tdep.c (op_selb): Use correct value.
6701
6702 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6703
6704 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6705 "parent" parameter to symbol_file_add_from_bfd call.
6706
6707 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6708 Thiago Jung Bauermann <bauerman@br.ibm.com>
6709
6710 Implement support for PowerPC BookE masked watchpoints.
6711 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6712 section.
6713 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6714 method. Initialize to NULL in all existing breakpoint_ops instances.
6715 (struct breakpoint) <hw_wp_mask>: New field.
6716 * breakpoint.c (is_masked_watchpoint): Add prototype.
6717 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6718 breakpoint's breakpoint_ops.works_in_software_mode if available.
6719 (watchpoints_triggered): Handle the case of a hardware masked
6720 watchpoint trigger.
6721 (watchpoint_check): Likewise.
6722 (works_in_software_mode_watchpoint): New function.
6723 (insert_masked_watchpoint, remove_masked_watchpoint)
6724 (resources_needed_masked_watchpoint)
6725 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6726 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6727 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6728 functions.
6729 (masked_watchpoint_breakpoint_ops): New structure.
6730 (watch_command_1): Check for the existence of the `mask' parameter.
6731 Set b->ops according to the type of hardware watchpoint being created.
6732 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6733 (ppc_linux_remove_mask_watchpoint)
6734 (ppc_linux_masked_watch_num_registers): New functions.
6735 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6736 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6737 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6738 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6739 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6740 (target_masked_watch_num_registers): New functions.
6741 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6742 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6743 methods.
6744 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6745 (target_masked_watch_num_registers): Add prototypes.
6746
6747 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6748
6749 PR 12573
6750 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6751 (producer_is_gcc_ge_4_0): New function.
6752 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6753 symtab->language code.
6754 (var_decode_location): Set cu->has_loclist.
6755 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6756 skip. Intialize force_skip from locations_valid. Move the prologue
6757 skipping code into two passes.
6758 * symtab.h (struct symtab): Make the primary field a bitfield. New
6759 field locations_valid.
6760
6761 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6762
6763 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6764 (classify_inner_name): Call cp_lookup_nested_type with
6765 yylval.tsym.type.
6766 * cp-namespace.c (cp_lookup_nested_type): New variable
6767 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6768 type_name_no_tag_or_error with saved_parent_type.
6769 * dwarf2read.c (load_partial_dies): Read in any children of
6770 DW_TAG_typedef with complaint in such case.
6771 * gdbtypes.c (type_name_no_tag_or_error): New function.
6772 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6773 * valops.c (destructor_name_p): New comment for parameter type. Remove
6774 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6775 * value.h (destructor_name_p): Remove type const.
6776
6777 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6778
6779 * symtab.c (compare_symbol_name): New function.
6780 (completion_list_add_name, expand_partial_symbol_name): Call it,
6781 remove the variable ncmp.
6782 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6783 gdb_assert it.
6784
6785 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6786
6787 Demote to sw watchpoint only in update_watchpoint.
6788 * breakpoint.c (update_watchpoint): Change between software and
6789 hardware watchpoint for all kinds of watchpoints, not just
6790 read/write ones. Determine b->exact value here instead of
6791 in watch_command_1. Error out if there are not enough resources
6792 for a read or access hardware watchpoint.
6793 (watch_command_1): Remove logic of checking whether there are
6794 enough resources available, since update_watchpoint will do that
6795 work now. Don't set b->exact here. Catch exceptions thrown by
6796 update_watchpoint and delete the watchpoint.
6797 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6798 Use target_exact_watchpoints instead.
6799 (delete_breakpoint): Notify observers only if deleted watchpoint
6800 has a breakpoint number assigned to it.
6801
6802 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6803
6804 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6805
6806 2011-05-05 Jerome Guitton <guitton@adacore.com>
6807
6808 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6809 New functions.
6810 (i386_stack_tramp_frame_unwind): New static global.
6811 (i386_match_pattern): New function, extracted from i386_match_insn.
6812 (i386_match_insn): Use i386_match_pattern.
6813 (i386_match_insn_block): New function.
6814 (i386_tramp_chain_in_reg_insns)
6815 (i386_tramp_chain_on_stack_insns): New static variables.
6816 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6817 of unwinders.
6818
6819 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6820
6821 * configure.host (xscale*): Don't handle target.
6822 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6823 handle targets.
6824
6825 2011-05-04 Yao Qi <yao@codesourcery.com>
6826
6827 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6828
6829 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6830
6831 Revert:
6832 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6833 | * elfread.c (elf_symtab_read): Stop memory leak.
6834
6835 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6836
6837 * nto-tdep.c (nto_target): Replace deprecated call to
6838 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6839
6840 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6841
6842 Fix false GCC warning.
6843 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6844
6845 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6846
6847 * breakpoint.c (update_watchpoint): Move code to change
6848 the enable state of breakpoint from here ...
6849 (do_enable_breakpoint): ... to here.
6850
6851 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6852
6853 * valprint.c (val_print_array_elements): Fixed poor performance
6854 of printing very large arrays with repeat_count_threshold set
6855 to unlimited. New comment.
6856
6857 2011-04-29 Tom Tromey <tromey@redhat.com>
6858
6859 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6860 (mi_parse): Likewise.
6861 * breakpoint.c (break_range_command): Use sizeof char*, not
6862 char**.
6863 (create_breakpoint): Likewise.
6864 (parse_breakpoint_sals): Likewise.
6865
6866 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6867
6868 * linux-nat.c (linux_child_remove_fork_catchpoint)
6869 (linux_child_remove_vfork_catchpoint)
6870 (linux_child_remove_exec_catchpoint): New functions.
6871 (linux_target_install_ops): Install them.
6872
6873 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6874
6875 PR mi/12531
6876
6877 * varobj.c (install_default_visualizer): Do not install a
6878 visualizer if the varobj is CPLUS_FAKE_CHILD.
6879 (construct_visualizer): Likewise.
6880
6881 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6882
6883 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6884 case insensitive comparison.
6885
6886 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6887
6888 * infrun.c (proceed): Revert previous change.
6889 (resume): Instead, handle the case of signal delivery while stepping
6890 off a breakpoint location here, and only if software single-stepping
6891 is used. Handle nested signals.
6892
6893 2011-04-28 Yao Qi <yao@codesourcery.com>
6894
6895 * arm-tdep.c (copy_unmodified): Rename to ...
6896 (arm_copy_unmodified): .. this. New.
6897 (copy_preload): Move common part to ...
6898 (install_preload): .. this. New.
6899 (arm_copy_preload): New.
6900 (copy_preload_reg): Move common part to ...
6901 (install_preload_reg): ... this. New.
6902 (arm_copy_preload_reg): New.
6903 (copy_b_bl_blx): Move common part to ...
6904 (install_b_bl_blx): .. this. New.
6905 (arm_copy_b_bl_blx): New.
6906 (copy_bx_blx_reg): Move common part to ...
6907 (install_bx_blx_reg): ... this. New.
6908 (arm_copy_bx_blx_reg): New.
6909 (copy_alu_reg): Move common part to ...
6910 (install_alu_reg): ... this. New.
6911 (arm_copy_alu_reg): New.
6912 (copy_alu_shifted_reg): Move common part to ...
6913 (install_alu_shifted_reg): ... this. New.
6914 (copy_ldr_str_ldrb_strb): Move common part to ...
6915 (install_ldr_str_ldrb_strb): ... this. New.
6916 (arm_copy_ldr_str_ldrb_strb): New.
6917 (copy_copro_load_store): Move some common part to ...
6918 (install_copy_copro_load_store): ... this. New.
6919 (arm_copy_copro_load_store): New.
6920 (copy_svc): Delete.
6921 (arm_copy_svc): Renamed from copy_svc.
6922 (copy_undef): Delete.
6923 (arm_copy_undef): Renamed from copy_undef.
6924 (decode_ext_reg_ld_st): Delete.
6925 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6926 (decode_svc_copro): Delete.
6927 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6928 (copy_copro_load_store, copy_alu_imm): update callers.
6929 (copy_extra_ld_st, copy_block_xfer): Likewise.
6930 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6931 (decode_miscellaneous, decode_dp_misc): Likewise.
6932 (decode_ld_st_word_ubyte, decode_media): Likewise.
6933 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6934 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6935 (decode_unconditional, decode_miscellaneous): Likewise.
6936 (decode_media, decode_b_bl_ldmstm): Likewise.
6937 (arm_process_displaced_insn): Likewise..
6938 (decode_misc_memhint_neon): Delete.
6939 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6940 (decode_miscellaneous): Delete.
6941 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6942 (decode_dp_misc): Delete.
6943 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6944 (decode_ld_st_word_ubyte): Delete.
6945 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6946 (decode_media): Delete.
6947 (arm_decode_media): Renamed from decode_media.
6948 (decode_b_bl_ldmstm): Delete.
6949 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6950 (decode_ext_reg_ld_st): Delete.
6951 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6952 (decode_unconditional): Delete.
6953 (arm_decode_unconditional): Renamed from decode_unconditional.
6954
6955 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6956
6957 Case insensitive lookups implementation.
6958 * dwarf2read.c: Include ctype.h.
6959 (struct mapped_index): New field version.
6960 (mapped_index_string_hash): New parameter index_version. New comment
6961 for it. Call tolower appropriately.
6962 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6963 Choose the right index version for mapped_index_string_hash.
6964 (dwarf2_read_index): Support also the index version 5. Initialize the
6965 new struct mapped_index field version.
6966 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6967 (find_slot): Explain the version needs. Pass INT_MAX for the new
6968 parameter.
6969 (write_psymtabs_to_index): Produce version 5.
6970 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6971 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6972 * psymtab.c (lookup_partial_symbol): Find the
6973 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6974 entries.
6975 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6976 NAME lowercasing.
6977 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6978 (completion_list_add_name): New variable ncmp, initialize it, use it.
6979 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6980 * utils.c (strcmp_iw): Support case_sensitive_off.
6981 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6982 New function comment part. New variables saved_string1,
6983 saved_string2 and case_pass. Add a proper second pass.
6984
6985 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6986
6987 Replace re_comp/re_exec by regcomp/regexec.
6988 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6989 (search_symbols_name_matches): Use them, use regexec.
6990 (search_symbols): New variable retval_chain, adjust the use of
6991 old_chain against it. Replace re_comp by regcomp. Use the new struct
6992 search_symbols_data fields, use regexec instead of re_exec.
6993
6994 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6995
6996 Format the code for the next patch.
6997 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6998 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6999 New variables c1 and c2.
7000
7001 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7002
7003 * infrun.c (proceed): Do not single-step into signal delivery
7004 when stepping off a breakpoint location.
7005 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7006 (insert_step_resume_breakpoint_at_caller): Likewise.
7007 (insert_step_resume_breakpoint_at_sal): Likewise.
7008 (insert_longjmp_resume_breakpoint): Likewise.
7009
7010 2011-04-27 Yao Qi <yao@codesourcery.com>
7011
7012 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7013
7014 2011-04-27 Joel Brobecker <brobecker@adacore.com>
7015
7016 * procfs.c (procfs_pass_signals): Fix advance declaration.
7017
7018 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7019
7020 * target.h (struct target_ops): Remove to_notice_signals;
7021 add to_pass_signals.
7022 (target_notice_signals): Remove.
7023 (target_pass_signals): Add prototype.
7024 * target.c (update_current_target): Remove to_notice_signals;
7025 mention to_pass_signals.
7026 (target_pass_signals): New function.
7027 (debug_to_notice_signals): Remove.
7028 (setup_target_debug): Do not install debug_to_notice_signals.
7029
7030 * infrun.c (signal_pass): New global.
7031 (resume): Call target_pass_signals.
7032 (handle_inferior_event): Report all signals while stepping over
7033 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7034 are re-inserted when stepping over a signal handler.
7035 (signal_cache_update): New function.
7036 (signal_stop_update): Call it.
7037 (signal_print_update): Likewise.
7038 (signal_pass_update): Likewise.
7039 (handle_command): Call signal_cache_update and target_pass_signals
7040 instead of target_notice_signals.
7041 (_initialize_infrun): Initialize signal_pass.
7042
7043 * linux-nat.c (pass_mask): New global.
7044 (linux_nat_pass_signals): New function.
7045 (linux_nat_create_inferior): Report all signals initially.
7046 (linux_nat_attach): Likewise.
7047 (linux_nat_resume): Use pass_mask to decide whether to directly
7048 handle an inferior signal.
7049 (linux_nat_wait_1): Likewise.
7050 (linux_nat_add_target): Install to_pass_signals callback.
7051
7052 * nto-procfs.c (notice_signals): Remove.
7053 (procfs_resume): Do not call notice_signals.
7054 (procfs_notice_signals): Remove.
7055 (procfs_pass_signals): New function.
7056 (init_procfs_ops): Install to_pass_signals callback instead of
7057 to_notice_signals callback.
7058 (_initialize_procfs): Report all signals initially.
7059
7060 * procfs.c (procfs_notice_signals): Remove.
7061 (procfs_pass_signals): New function.
7062 (procfs_target): Install to_pass_signals callback instead of
7063 to_notice_signals callback.
7064 (register_gdb_signals): Remove.
7065 (procfs_debug_inferior): Report all signals initially.
7066 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7067
7068 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7069 parameters; use them instead of calling signal_..._state routines.
7070 (remote_notice_signals): Remove.
7071 (remote_start_remote): Report all signals initially.
7072 (remote_resume): Do not call remote_pass_signals.
7073 (_initialize_remote): Install to_pass_signals callback instead of
7074 to_notice_signals callback.
7075
7076 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7077
7078 * breakpoint.c (user_settable_breakpoint): Delete.
7079 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7080 (delete_command): Check user_breakpoint_p instead of looking at
7081 the breakpoint's type.
7082 (disable_command): Ditto.
7083 (enable_command): Ditto.
7084 (delete_trace_command): Use user_breakpoint_p instead of looking
7085 at the breakpoint number directly. When checking if there are
7086 user visible tracepoints, in order to know whether to ask the user
7087 for confirmation, check whether the breakpoint is actually a
7088 tracepoint.
7089
7090 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7091
7092 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7093 compilation.
7094
7095 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7096
7097 MI breakpoint notifications.
7098
7099 * annotate.c (breakpoint_changed): Adjust parameter type.
7100 * breakpoint.c (set_breakpoint_condition): Adjust to change
7101 in breakpoint_modified type.
7102 (breakpoint_set_commands): Likewise.
7103 (do_map_commands_command): Likewise.
7104 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7105 changed after bumping hit count.
7106 (bpstat_stop_status): Likewise.
7107 (print_one_breakpoint_location): Don't wrap in tuple here.
7108 (print_one_breakpoint): Always print individual locations.
7109 For locations, use unnamed tuple.
7110 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7111 has changed.
7112 (create_catchpoint, create_syscall_event_catchpoint): Call
7113 breakpoint_created obsever.
7114 (mention): Don't call breakpoint_created observer.
7115 (create_breakpoint_sal): Call breakpoint_created observer.
7116 (create_breakpoint, watch_command_1): Likewise.
7117 (create_ada_exception_breakpoint): Likewise.
7118 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7119 (locations_are_equal): New.
7120 (update_breakpoint_locations): If locations were changed, notify.
7121 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7122 Call breakpoint_modified observer.
7123
7124 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7125 (mi_cmd_break_insert): Don't set observers for modify and delete.
7126 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7127 (mi_breakpoint_created, mi_breakpoint_deleted)
7128 (mi_breakpoint_modified): New.
7129 (mi_interpreter_init): Hook the above.
7130 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7131 while -break-* commands are executing.
7132 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7133 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7134 (mi_redirect): New.
7135 (mi_ui_out_impl): Hook in mi_redirect.
7136 (mi_field_skip): True to the name, skip the field, don't output
7137 a field with an empty value.
7138
7139 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7140 (gdbpy_breakpoint_deleted): Adjust.
7141 * tui/tui-hooks.c (tui_event_create_breakpoint)
7142 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7143
7144 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7145
7146 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7147 (procfs_remove_hw_watchpoint): Likewise.
7148
7149 2011-04-26 Michael Walle <michael@walle.cc>
7150
7151 * remote.c (remote_start_remote): Ack packet after sending the
7152 interrupt sequence.
7153
7154 2011-04-26 Yao Qi <yao@codesourcery.com>
7155
7156 * linux-nat.c: Move common macros to ...
7157 Include linux-ptrace.h.
7158 * common/linux-ptrace.h: ... here. New.
7159
7160 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7161
7162 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7163 !objfile_has_partial_symbols. New comment.
7164 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7165 SYM_READ_PSYMBOLS is not present. Extend the comment.
7166 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7167
7168 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7169
7170 * defs.h (ENUM_BITFIELD): Remove.
7171
7172 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7173 Eli Zaretskii <eliz@gnu.org>
7174
7175 * NEWS: Document the new gdbserver --once option.
7176
7177 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7178
7179 * MAINTAINERS: Update my email address.
7180
7181 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7182
7183 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7184 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7185 function call if __STDC_ISO_10646__ macro is defined.
7186 (intermediate_encoding): New prototype.
7187 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7188 to generate compile time error for unsupported gdb_wchar_t size.
7189 (ENDIAN_SUFFIX): New macro.
7190 (intermediate_encoding): New function.
7191
7192 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7193
7194 * ada-lang.c (struct add_partial_datum): Update the comment for
7195 expand_partial_symbol_name.
7196 (ada_add_partial_symbol_completions): Rename to ...
7197 (ada_expand_partial_symbol_name): ... here, change return type, update
7198 function comment, call symbol_completion_match instead of
7199 symbol_completion_add.
7200 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7201 and ada_expand_partial_symbol_name.
7202 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7203 FILE_MATCHER.
7204 (dw2_map_symbol_names): Remove.
7205 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7206 * psymtab.c (map_symbol_names_psymtab): Remove.
7207 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7208 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7209 order.
7210 (psym_functions): Unlist map_symbol_names_psymtab.
7211 (map_partial_symbol_names): Rename to ...
7212 (expand_partial_symbol_names): ... here, change the FUN type, call
7213 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7214 * psymtab.h (map_partial_symbol_names): Rename to ...
7215 (expand_partial_symbol_names): ... here, change the FUN type.
7216 * symfile.h (struct quick_symbol_functions): Update the description of
7217 expand_symtabs_matching. Remove map_symbol_names.
7218 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7219 (struct add_name_data): Update the comment for
7220 expand_partial_symbol_name.
7221 (add_partial_symbol_name): Rename to ...
7222 (expand_partial_symbol_name): ... here. Replace
7223 completion_list_add_name call by strncmp.
7224 (default_make_symbol_completion_list_break_on): Use now
7225 expand_partial_symbol_names and expand_partial_symbol_name.
7226 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7227
7228 2011-04-20 Tom Tromey <tromey@redhat.com>
7229
7230 * dwarf2read.c (save_gdb_index_command): Replace format
7231 documentation with a pointer to the manual.
7232
7233 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7234
7235 * regcache.c: Include remote.h.
7236 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7237 (regcache_dump): Handle regcache_dump_remote.
7238 (maintenance_print_remote_registers): New function.
7239 (_initialize_regcache): Install "maint print remote-registers"
7240 command.
7241 * remote.c (map_regcache_remote_table): New function, factored out
7242 from ...
7243 (init_remote_state): ... here.
7244 (remote_register_number_and_offset): New.
7245 * remote.h (remote_register_number_and_offset): Declare.
7246
7247 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7248
7249 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7250 null_ptid, assume and allow a NULL address space, instead of
7251 asking the target for the ptid's address space.
7252 * infrun.c (ptid_is_pid): Remove assertion.
7253
7254 2011-04-19 Tom Tromey <tromey@redhat.com>
7255
7256 * windows-tdep.c (windows_xfer_shared_library):
7257 * windows-nat.c (get_module_name, windows_make_so):
7258 * v850-tdep.c (v850_handle_pushm):
7259 * utils.c (null_cleanup, gdb_realpath):
7260 * ui-out.c (get_next_header):
7261 * tracepoint.c (clear_traceframe_info):
7262 * symtab.c (lookup_symtab):
7263 * serial.h (struct serial_ops):
7264 * mipsread.c (read_alphacoff_dynamic_symtab):
7265 * infcmd.c (print_return_value):
7266 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7267 * f-exp.y (parse_number):
7268 * exceptions.c (catch_exceptions):
7269 * dummy-frame.c (dummy_frame_this_id):
7270 * defs.h (struct cleanup):
7271 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7272 * arm-tdep.c (arm_push_dummy_call):
7273 * amd64-tdep.h (amd64_collect_xsave):
7274 * amd64-tdep.c (amd64_collect_xsave):
7275 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7276 * README (typing): Remove duplicate words.
7277 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7278 * infrun.c (siginfo_value_read): Fix typo.
7279 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7280 * top.c (source_line_number): Add comma.
7281
7282 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7283
7284 * thread.c (any_live_thread_of_process): Prioritize threads
7285 that are not executing.
7286 * gdbthread.h (any_live_thread_of_process): Update comment
7287 as per above change.
7288
7289 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7290
7291 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7292 (scan_xcoff_symtab): Likewise.
7293
7294 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7295
7296 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7297 inside if clause.
7298
7299 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7300 Pedro Alves <pedro@codesourcery.com>
7301
7302 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7303 variables to simplify code and avoid == operator at end of
7304 line as this is against GNU coding standards.
7305
7306 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7307
7308 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7309 lm_name to name_lm to avoid conflict with lm_name function.
7310
7311 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7312
7313 ARI fixes: Use only lowercase function name for static functions.
7314 * nto-tdep.c (LM_ADDR): Rename to...
7315 (lm_addr): New function name.
7316 (nto_relocate_section_addresses): Adapt to change above.
7317 * solib-sunos.c (LM_ADDR): Rename to...
7318 (lm_addr): New function name.
7319 (LM_NEXT): Rename to...
7320 (lm_next): New function name.
7321 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7322 function name changes above.
7323 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7324 (lm_addr_from_link_map): New function name.
7325 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7326 (has_lm_dynamic_from_link_map): New function name.
7327 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7328 (lm_dynamic_from_link_map): New function name.
7329 (LM_ADDR_CHECK): Rename to...
7330 (lm_addr_check): New function name.
7331 (LM_NEXT): Rename to...
7332 (lm_next): New function name.
7333 (LM_PREV): Rename to...
7334 (lm_prev): New function name.
7335 (LM_NAME): Rename to...
7336 (lm_name): New function name.
7337 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7338 (ignore_first_link_map_entry): New function name.
7339 (svr4_keep_data_in_core): Adapt to function name changes above.
7340 (svr4_current_sos): Likewise.
7341 (enable_break): Likewise.
7342 (svr4_relocate_section_addresses): Likewise.
7343
7344 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7345
7346 ARI cleanup.
7347 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7348 sprintf. Simplify code and avoid loosing memory.
7349 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7350 (call0_frame_cache): Remove && operator from end of line.
7351
7352 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7353
7354 Fix libraries displacement if they change whether they were prelinked.
7355 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7356 does not match. Comment why.
7357
7358 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7359
7360 * corelow.c: Include wrapper.h.
7361 (core_open): Call now gdb_target_find_new_threads.
7362 * wrapper.c: Include target.h.
7363 (gdb_target_find_new_threads): New.
7364 * wrapper.h (gdb_target_find_new_threads): New declaration.
7365
7366 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7367
7368 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7369 even if !TARGET_HAS_EXECUTION.
7370
7371 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7372
7373 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7374 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7375 bfd_get_synthetic_symtab.
7376 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7377 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7378 parameter parent, remove the call to add_separate_debug_objfile.
7379 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7380 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7381 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7382 parent, new comment for it, call add_separate_debug_objfile for it.
7383 (symbol_file_add_separate): Pass objfile as the parameter parent,
7384 remove the call to add_separate_debug_objfile.
7385 (symbol_file_add_from_bfd): New parameter parent, pass it.
7386 (symbol_file_add): Pass NULL to the new parameter parent.
7387 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7388
7389 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7390
7391 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7392 BSF_SYNTHETIC.
7393
7394 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7395
7396 Fix Python access to inlined frames.
7397 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7398 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7399
7400 2011-04-15 Tom Tromey <tromey@redhat.com>
7401
7402 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7403
7404 2011-04-15 Gary Benson <gbenson@redhat.com>
7405
7406 * MAINTAINERS: Add myself to write-after-approval section.
7407
7408 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7409
7410 * remote-sim.c (sim_command_completer): New function.
7411 (_initialize_remote_sim): Set completer to sim_command_completer.
7412
7413 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7414
7415 * breakpoint.c (print_exception_catchpoint): Rename to ...
7416 (print_it_exception_catchpoint): ... this.
7417 (gnu_v3_exception_catchpoint_ops): Update with new name
7418 for print_it_exception_catchpoint.
7419
7420 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7421
7422 * MAINTAINERS: Add myself for write after approval privileges.
7423
7424 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7425
7426 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7427
7428 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7429
7430 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7431
7432 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7433
7434 * breakpoint.c (save_breakpoints): Verify whether
7435 breakpoint_ops.print_recreate is defined before calling it.
7436
7437 2011-04-11 Gary Benson <gbenson@redhat.com>
7438
7439 Fix failure with --enable-maintainer-mode.
7440 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7441
7442 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7443
7444 Code cleanup.
7445 * symtab.c (search_symbols): Reorder the KIND description in the
7446 function comment. Remove the unused 4th element of types, types2,
7447 types3 and types4. New gdb_assert on KIND.
7448 (symtab_symbol_info): Remove the unused 4th element of classnames.
7449 New gdb_assert on KIND.
7450 * symtab.h (enum search_domain): New warning in the enum comment.
7451 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7452 TYPES_DOMAIN.
7453
7454 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7455
7456 Fix crash of gdb save-index on a STABS file.
7457 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7458 PSYMTABS_ADDRMAP.
7459
7460 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7461
7462 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7463 * dwarf2read.c: Include ctype.h.
7464 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7465 functions.
7466 (dwarf2_add_field): Fix new_field->accessibility by calling
7467 dwarf2_default_access_attribute. Restructure setting accessibility
7468 vs. virtuality.
7469 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7470 is_private and is_protected by calling
7471 dwarf2_default_access_attribute.
7472
7473 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7474
7475 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7476 to the initialization.
7477
7478 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7479
7480 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7481 initalization.
7482
7483 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7484
7485 Remove support for old Cygwin 1.5 versions.
7486 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7487 function on old Cygwin version.
7488 * windows-nat.c: Remove cygwin version check and always define
7489 __USEWIDE for Cygwin compilation.
7490
7491 2011-04-07 Yao Qi <yao@codesourcery.com>
7492
7493 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7494 and TO.
7495 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7496 (arm_copy_svc): Remove parameters INSN and TO.
7497 (decode_svc_copro): Update caller.
7498 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7499 from function pointer `copy_svc_os'.
7500
7501 2011-04-07 Yao Qi <yao@codesourcery.com>
7502
7503 * arm-tdep.c (cleanup_branch): Set a correct return address in
7504 LR for ARM and Thumb.
7505
7506 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7507
7508 Code cleanup.
7509 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7510 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7511 in the function comment, a new note on values compatibility.
7512 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7513 * symtab.h (SYMBOL_HASH_NEXT): New.
7514
7515 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7516
7517 * ppc-linux-nat.c (check_condition): Add len output parameter.
7518 Set it based on the memory region referenced in the condition
7519 expression. Update all callers.
7520
7521 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7522
7523 Fix crash regression on systems featuring .gdb_index.
7524 * objfiles.c (free_objfile): Move the
7525 forget_cached_source_info_for_objfile call earlier. Comment it.
7526 Extend the comment for objfile_free_data.
7527
7528 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7529
7530 Fix regression of displaying the debug format.
7531 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7532 subfile.
7533
7534 2011-04-04 Tom Tromey <tromey@redhat.com>
7535
7536 * cli/cli-interp.c (struct captured_execute_command_args):
7537 Remove.
7538 (do_captured_execute_command): Remove.
7539 (safe_execute_command): Use TRY_CATCH.
7540 * cli/cli-script.c (struct wrapped_read_command_file_args):
7541 Remove.
7542 (wrapped_read_command_file): Remove.
7543 (script_from_file): Use TRY_CATCH.
7544 * exceptions.c (catch_exception): Remove.
7545 * exceptions.h (catch_exception): Remove.
7546 (deprecated_throw_reason): Update comment.
7547 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7548 argument to 'context'.
7549 (mi_execute_command): Use TRY_CATCH.
7550 * remote.c (struct start_remote_args): Remove.
7551 (remote_start_remote): Update; change arguments.
7552 (remote_open_1): Use TRY_CATCH.
7553
7554 2011-04-04 Tom Tromey <tromey@redhat.com>
7555
7556 * tracepoint.c (scope_info): Update.
7557 * symtab.c (decode_line_spec): Update.
7558 * python/python.c (gdbpy_decode_line): Update.
7559 * linespec.h (decode_line_1): Update.
7560 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7561 (decode_compound, find_method, symtab_from_filename)
7562 (decode_variable): Likewise.
7563 * cli/cli-cmds.c (edit_command): Update.
7564 (list_command): Update.
7565 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7566 argument.
7567 (create_breakpoint): Update.
7568 (until_break_command): Update.
7569 (addr_string_to_sals): Update.
7570 (decode_line_spec_1): Update.
7571
7572 2011-04-04 Tom Tromey <tromey@redhat.com>
7573
7574 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7575 (do_captured_parse_breakpoint): Remove.
7576 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7577 Use TRY_CATCH directly.
7578
7579 2011-04-04 Tom Tromey <tromey@redhat.com>
7580
7581 * symtab.h (free_symtab): Remove.
7582 (forget_cached_source_info_for_objfile): Declare.
7583 * symmisc.c (free_symtab): Remove.
7584 * source.c (forget_cached_source_info_for_objfile): New function.
7585 (forget_cached_source_info): Use it.
7586 * objfiles.c (free_objfile): Simplify check before calling
7587 clear_current_source_symtab_and_line. Call
7588 forget_cached_source_info_for_objfile.
7589
7590 2011-04-04 Tom Tromey <tromey@redhat.com>
7591
7592 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7593 (new_symtab): Don't set `free_code' on symtab.
7594 (new_linetable): Properly handle size==0.
7595 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7596 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7597 free_func.
7598 * jv-lang.c (struct jv_per_objfile_data): New.
7599 (jv_per_objfile_free): Free the data.
7600 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7601 (get_java_class_symtab): Set the `dict' field on the
7602 jv_per_objfile_data.
7603 (free_class_block): Remove.
7604 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7605 the symtab.
7606
7607 2011-04-04 Tom Tromey <tromey@redhat.com>
7608
7609 * symfile.c (reread_symbols): Update.
7610 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7611 field.
7612 * objfiles.c (allocate_objfile): Update.
7613 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7614 declare.
7615 * cp-namespace.c (lookup_symbol_file): Don't call
7616 lookup_possible_namespace_symbol.
7617 (initialize_namespace_symtab, get_possible_namespace_block)
7618 (free_namespace_block, cp_check_possible_namespace_symbols)
7619 (check_possible_namespace_symbols_loop)
7620 (check_one_possible_namespace_symbol)
7621 (lookup_possible_namespace_symbol): Remove.
7622 (maintenance_cplus_namespace): Replace with notice.
7623 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7624
7625 2011-04-04 Tom Tromey <tromey@redhat.com>
7626
7627 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7628 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7629 * symmisc.c (free_symtab): Don't free debugformat.
7630 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7631 (record_debugformat, record_producer): Document.
7632 * buildsym.c (end_symtab): Don't save debugformat and producer
7633 names on obstack.
7634 (end_symtab): Don't free debugformat and producer fields.
7635 (record_debugformat): Don't call xstrdup.
7636 (record_producer): Likewise.
7637
7638 2011-04-04 Tom Tromey <tromey@redhat.com>
7639
7640 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7641 (source_line_charpos, source_charpos_line): Remove.
7642
7643 2011-04-04 Tom Tromey <tromey@redhat.com>
7644
7645 * symtab.h (domain_enum): Split in two...
7646 (enum search_domain): New.
7647 (search_symbols): Update.
7648 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7649 redundant declarations.
7650 (search_symbols): Change 'kind' argument to search_domain.
7651 Update.
7652 (print_symbol_info): Likewise.
7653 (symtab_symbol_info): Likewise.
7654 * symfile.h (struct quick_symbol_functions)
7655 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7656 <expand_symtabs_matching>: Likewise.
7657 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7658 (expand_symtabs_matching_via_partial): Update.
7659 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7660 (dw2_expand_symtabs_for_function): Update.
7661 * block.h: Moved anonymous enum...
7662 * defs.h (enum block_enum): ... here. Now named.
7663
7664 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7665
7666 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7667 * version.in: Bump version to 7.3.50.20110403-cvs.
7668
7669 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7670
7671 * NEWS: Create a new section for the next release branch.
7672 Rename the section of the current branch, now that it has
7673 been cut.
7674
7675 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7676
7677 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7678 for "fpscr" in target description.
7679
7680 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7681
7682 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7683 initialize it. Delay HASH initialization. Strip the part after open
7684 parenthesis for languages with qualifiers. Call do_cleanups.
7685
7686 2011-04-01 Tom Tromey <tromey@redhat.com>
7687
7688 * utils.c (report_command_stats): Don't print `-' for negative
7689 number.
7690
7691 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7692
7693 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7694 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7695 typedefs.
7696
7697 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7698
7699 * breakpoint.h (bpdisp_text): Add declaration.
7700 * breakpoint.c (bpdisp_text): Make non-static.
7701 * ada-lang.c: #include "mi/mi-common.h".
7702 (print_it_exception): Rewrite to improve GDB/MI output.
7703
7704 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7705
7706 * arm-tdep.h (struct address_space): Add forward declaration.
7707
7708 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7709
7710 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7711 * arm-tdep.c (arm_override_mode): New global.
7712 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7713 execution mode heuristics.
7714 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7715 second single-step breakpoint if needed, using
7716 arm_insert_single_step_breakpoint.
7717 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7718 ARM execution mode, do not call thumb_get_next_pc_raw.
7719 (arm_get_next_pc): Encode execution mode in return value. Call
7720 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7721 (arm_insert_single_step_breakpoint): New function.
7722 (arm_software_single_step): Call it.
7723 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7724 argument to return execution mode of sigreturn target.
7725 (arm_linux_syscall_next_pc): Use it.
7726 (arm_linux_copy_svc): Update call.
7727 (arm_linux_software_single_step): Call
7728 arm_insert_single_step_breakpoint.
7729
7730 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7731
7732 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7733 the comment.
7734
7735 2011-03-31 Tom Tromey <tromey@redhat.com>
7736
7737 * varobj.c (update_dynamic_varobj_children): Properly handle
7738 errors from iterator.
7739
7740 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7741
7742 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7743 struct linkage name twice.
7744
7745 2011-03-31 Tom Tromey <tromey@redhat.com>
7746
7747 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7748 missing ">" to message.
7749
7750 2011-03-31 Tom Tromey <tromey@redhat.com>
7751
7752 * varobj.c (instantiate_pretty_printer): Remove duplicate
7753 'return'.
7754
7755 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7756
7757 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7758 if neither saved value nor register available (e.g. signal frame).
7759
7760 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7761
7762 * macroexp.c (expand): Avoid uninitialized variable
7763 compiler warning.
7764
7765 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7766
7767 * breakpoint.c (break_range_command): Fix typo in comment.
7768
7769 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7770 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7771
7772 Implement support for PowerPC BookE ranged breakpoints.
7773 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7774 * breakpoint.h (struct bp_target_info) <length>: New member
7775 variable.
7776 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7777 instead of struct breakpoint as argument, and also add ASPACE
7778 and BP_ADDR arguments. Update all callers.
7779 (struct breakpoint_ops) <print_one_detail>: New method.
7780 (struct breakpoint) <addr_string_range_end>: New member variable.
7781 * breakpoint.c (breakpoint_location_address_match): Add function
7782 prototype.
7783 (insert_bp_location): Set bl->target_info.length.
7784 (breakpoint_here_p): Call breakpoint_location_address_match.
7785 (moribund_breakpoint_here_p): Likewise.
7786 (regular_breakpoint_inserted_here_p): Likewise.
7787 (breakpoint_thread_match): Likewise.
7788 (bpstat_stop_status): Likewise.
7789 (bpstat_check_location): Move call to
7790 breakpoint_ops.breakpoint_hit to the top.
7791 (print_one_breakpoint_location): Call
7792 breakpoint_ops.print_one_detail if available.
7793 (breakpoint_address_match_range): New function.
7794 (breakpoint_location_address_match): Likewise.
7795 (breakpoint_locations_match): Compare the length field of the
7796 locations too.
7797 (hw_breakpoint_used_count): Count resources used by all locations
7798 in a breakpoint, and use breakpoint_ops.resources_needed if
7799 available.
7800 (breakpoint_hit_ranged_breakpoint): New function.
7801 (resources_needed_ranged_breakpoint): Likewise.
7802 (print_it_ranged_breakpoint): Likewise.
7803 (print_one_ranged_breakpoint): Likewise.
7804 (print_one_detail_ranged_breakpoint): Likewise.
7805 (print_mention_ranged_breakpoint): Likewise.
7806 (print_recreate_ranged_breakpoint): Likewise.
7807 (ranged_breakpoint_ops): New structure.
7808 (find_breakpoint_range_end): New function.
7809 (break_range_command): Likewise.
7810 (delete_breakpoint): Free addr_string_range_end.
7811 (update_breakpoint_locations): Add SALS_END argument. Update
7812 all callers. Calculate breakpoint length if a non-zero SALS_END
7813 is given. Call breakpoint_locations_match instead of
7814 breakpoint_address_match.
7815 (reset_breakpoint): Find SaL of the end of the range if B is a
7816 ranged breakpoint.
7817 (_initialize_breakpoint): Register break-range command.
7818 * defs.h (print_core_address): Add function prototype.
7819 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7820 function.
7821 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7822 (ppc_linux_remove_hw_breakpoint): Likewise.
7823 (_initialize_ppc_linux_nat): Initialize
7824 to_ranged_break_num_registers.
7825 * target.c (update_current_target): Add comment about
7826 to_ranged_break_num_registers.
7827 (target_ranged_break_num_registers): New function.
7828 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7829 New method.
7830 (target_ranged_break_num_registers): Add function prototype.
7831 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7832 * utils.c (print_core_address): ... here.
7833
7834 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7835
7836 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7837 variable compiler warning.
7838
7839 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7840
7841 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7842 code from here ...
7843 (re_set_breakpoint): ... to here ...
7844 (addr_string_to_sals): ... and here.
7845
7846 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7847
7848 * Makefile.in (SFILES): Add missing C sources.
7849 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7850 Add missing headers.
7851
7852 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7853
7854 * .gitignore: New file.
7855
7856 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7857
7858 * NEWS: Mention new cfi device simulation.
7859
7860 2011-03-29 Tom Tromey <tromey@redhat.com>
7861
7862 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7863 otherwise anonymous types.
7864 (dwarf2_name): Likewise.
7865 * valops.c (value_struct_elt_for_reference): Refine artificial
7866 type logic. Call error if j==-1.
7867
7868 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7869
7870 Fix false GCC warning.
7871 * infcall.c (find_function_addr): Initialize funaddr.
7872
7873 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7874
7875 Fix mingw compilation with --enable-targets=all.
7876 * remote-mips.c (gdb_usleep.h): Include header.
7877 (mips_enter_debug): Use gdb_usleep instead of sleep.
7878
7879 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7880
7881 Support resolution of STT_GNU_IFUNC via breakpoints.
7882 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7883 bp_gnu_ifunc_resolver_return.
7884 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7885 the loop. Support bp_gnu_ifunc_resolver and
7886 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7887 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7888 breakpoints.
7889 (bptype_string, print_one_breakpoint_location): Support
7890 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7891 (user_settable_breakpoint): Return true also for
7892 bp_gnu_ifunc_resolver.
7893 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7894 bp_gnu_ifunc_resolver_return.
7895 (set_breakpoint_location_function): New parameter explicit_loc,
7896 describe it. Call find_pc_partial_function_gnu_ifunc with new
7897 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7898 EXPLICIT_LOC is not set.
7899 (set_raw_breakpoint): Set EXPLICIT_LOC for
7900 set_breakpoint_location_function.
7901 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7902 set_breakpoint_location_function.
7903 (mention): Support bp_gnu_ifunc_resolver and
7904 bp_gnu_ifunc_resolver_return.
7905 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7906 set_breakpoint_location_function.
7907 (update_breakpoint_locations): Remove static.
7908 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7909 bp_gnu_ifunc_resolver_return.
7910 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7911 bp_gnu_ifunc_resolver_return.
7912 (update_breakpoint_locations): New declaration.
7913 * elfread.c: Include gdbthread.h and regcache.h.
7914 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7915 functions.
7916 (elf_gnu_ifunc_fns): Install them.
7917 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7918 (stub_gnu_ifunc_resolver_return_stop): New functions.
7919 (stub_gnu_ifunc_fns): Install them.
7920 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7921 and gnu_ifunc_resolver_return_stop.
7922 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7923
7924 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7925
7926 STT_GNU_IFUNC reader implementation.
7927 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7928 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7929 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7930 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7931 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7932 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7933 (elf_gnu_ifunc_resolve_addr): New.
7934 (elf_symfile_read): Call elf_rel_plt_read.
7935 (elf_gnu_ifunc_fns): New.
7936 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7937 Install elf_gnu_ifunc_fns.
7938 * infcall.c (find_function_return_type): New function.
7939 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7940 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7941 (stub_gnu_ifunc_resolve_name): New functions.
7942 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7943 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7944 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7945
7946 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7947
7948 Code cleanup for later STT_GNU_IFUNC support.
7949 * infcall.c (find_function_addr): Remove variable code, use explicit
7950 dereferences for it. Move VALUE_TYPE initialization later.
7951
7952 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7953
7954 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7955 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7956 (clear_pc_function_cache): Clear it.
7957 (find_pc_partial_function): Rename to ...
7958 (find_pc_partial_function_gnu_ifunc): ... this function. New
7959 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7960 (find_pc_partial_function): New wrapper for this function.
7961 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7962
7963 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7964
7965 GDB internal type support for STT_GNU_IFUNC.
7966 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7967 (elf_symtab_read): Set mst_text_gnu_ifunc for
7968 BSF_GNU_INDIRECT_FUNCTION.
7969 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7970 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7971 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7972 nodebug_got_plt_symbol.
7973 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7974 (TYPE_GNU_IFUNC): New.
7975 (struct main_type): New field flag_gnu_ifunc.
7976 (struct builtin_type): New field builtin_func_func.
7977 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7978 nodebug_got_plt_symbol.
7979 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7980 (in_gnu_ifunc_stub): New.
7981 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7982 mst_text_gnu_ifunc.
7983 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7984 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7985 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7986 in_gnu_ifunc_stub.
7987 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7988 * symtab.c (search_symbols): Likewise.
7989 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7990 and mst_slot_got_plt.
7991 (in_gnu_ifunc_stub): New declaration.
7992
7993 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7994
7995 Support a ring of related breakpoints.
7996 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7997 other functions, add gdb_assert.
7998 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7999 watchpoint_del_at_next_stop.
8000 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8001 (bpstat_stop_status): Handle ring in related_breakpoint.
8002 (set_raw_breakpoint_without_location): Initialize ring in
8003 related_breakpoint.
8004 (delete_breakpoint): Handle ring in related_breakpoint, use
8005 watchpoint_del_at_next_stop.
8006 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8007
8008 2011-03-28 Tom Tromey <tromey@redhat.com>
8009
8010 PR symtab/12441:
8011 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8012 with `language_minimal'.
8013
8014 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8015
8016 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8017 instead of checking for STT_ARM_TFUNC symbol type.
8018
8019 2011-03-25 Tom Tromey <tromey@redhat.com>
8020
8021 * linespec.c (symbol_found): Restore line-based result for
8022 non-LOC_LABEL symbols.
8023
8024 2011-03-25 Kai Tietz <ktietz@redhat.com>
8025
8026 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8027 instead of strcmp for comparison.
8028 (tui_source_is_displayed): Likewise.
8029 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8030
8031 2011-03-24 Mark Wielaard <mjw@redhat.com>
8032
8033 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8034 complaint.
8035 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8036 (find_partial_die_in_comp_unit): Likewise in comment.
8037 (read_attribute_value): Likewise.
8038 (lookup_die_type): Likewise.
8039 (dwarf_form_name): Likewise.
8040 (dump_die_shallow): Likewise.
8041 (follow_die_ref_or_sig): Likewise.
8042
8043 2011-03-24 Tom Tromey <tromey@redhat.com>
8044
8045 PR breakpoints/11816:
8046 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8047 (decode_compound): Update.
8048 (find_function_symbol): New function.
8049 (decode_dollar): Update.
8050 (decode_label): Add 'function_symbol' parameter. Handle
8051 function-relative labels.
8052 (decode_variable): Update.
8053 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8054 not its line. Set `special_display' and canonical name for
8055 labels.
8056
8057 2011-03-24 Tom Tromey <tromey@redhat.com>
8058
8059 * linespec.h (struct linespec_result) <special_display>: New
8060 field.
8061 * breakpoint.h (struct breakpoint) <display_canonical>: New
8062 field.
8063 * breakpoint.c (print_breakpoint_location): Respect
8064 display_canonical.
8065 (create_breakpoint_sal): Add 'display_canonical' parameter.
8066 (create_breakpoints_sal): Update.
8067 (create_breakpoint): Update.
8068
8069 2011-03-24 Tom Tromey <tromey@redhat.com>
8070
8071 * symtab.c (decode_line_spec): Update.
8072 * linespec.c (build_canonical_line_spec): Change type of
8073 'canonical'.
8074 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8075 (find_method, decode_all_digits, decode_dollar, decode_label)
8076 (symbol_found): Likewise.
8077 (init_linespec_result): New function.
8078 * breakpoint.c (struct captured_parse_breakpoint_args)
8079 <canonical_p>: New field, replaces addr_string_p.
8080 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8081 'addr_string'.
8082 (parse_breakpoint_sals): Likewise.
8083 (do_captured_parse_breakpoint): Update.
8084 (create_breakpoint): Use struct linespec_result.
8085 (until_break_command): Update.
8086 (breakpoint_re_set_one): Update.
8087 (decode_line_spec_1): Update.
8088 * linespec.h (struct linespec_result): New.
8089 (init_linespec_result): Declare.
8090
8091 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8092
8093 * regcache.c (regcache_raw_read): If the target didn't supply a
8094 given raw register, mark it as unavailable.
8095
8096 2011-03-23 Kai Tietz <ktietz@redhat.com>
8097
8098 * breakpoint.c (clear_command): Use filename_cmp
8099 instead of strcmp for comparison.
8100 * buildsym.c (watch_main_source_file_lossage): Likewise.
8101 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8102 checking just for slash.
8103 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8104 strrchr and filename_cmp instead of strcmp for filenames.
8105 (add_old_header_file): Use filename_cmp
8106 instead of strcmp for comparison.
8107 * exec.c (exec_set_section_address): Likewise.
8108 * macrotab.c (macro_lookup_inclusion): Likewise.
8109 (macro_lookup_inclusion): Likewise.
8110 * elfread.c (_initialize_elfread): Likewise.
8111 (elfstab_offset_sections): Likewise.
8112 (elfstab_offset_sections): Use lbasename instead of
8113 strrchr.
8114 * mdebugread.c (parse_partial_symbols): Likewise.
8115 (arse_partial_symbols): Use filename_(n)cmp instead of
8116 str(n)cmp for comparison.
8117 * minsyms.c (lookup_minimal_symbol): Likewise.
8118 * psymtab.c (read_psymtabs_with_filename): Likewise.
8119 * solib.c (solib_read_symbols): Likewise.
8120 (reload_shared_libraries_1): Likewise.
8121 * symmisc.c (maintenance_print_symbols): Likewise.
8122 * symfile.c (separate_debug_file_exists): Likewise.
8123 (reread_symbols): Likewise.
8124 (find_separate_debug_file_by_debuglink): Likewise.
8125 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8126 * source.c (add_path): Likewise.
8127 * symtab.c (filename_seen): Likewise.
8128 (file_matches): Likewise.
8129 (print_symbol_info): Likewise.
8130 (maybe_add_partial_symtab_filename): Likewise.
8131 (make_source_files_completion_list): Likewise.
8132 * xml-syscall.c (init_sysinfo): Likewise.
8133 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8134 IS_DIR_SEPARATOR for checking for trailing path separator.
8135
8136 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8137
8138 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8139 label abort_expression.
8140 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8141 DWARF_VALUE_OPTIMIZED_OUT.
8142
8143 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8144
8145 Code cleanup.
8146 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8147 to linkage_name. Invert its value. Update the function comment.
8148 (c_type_print_varspec_suffix): Invert it at the caller.
8149 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8150
8151 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8152
8153 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8154 errors when reading the `stop_pc'.
8155 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8156 get_frame_pc.
8157
8158 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8159
8160 * NEWS: Document gdb.Write stream keyword.
8161
8162 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8163
8164 Revert:
8165 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8166 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8167 (dwarf2_add_field): Fix new_field->accessibility for
8168 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8169
8170 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8171
8172 PR python/12183
8173
8174 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8175 other error classes. Do not print stack trace.
8176
8177 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8178
8179 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8180 (dwarf2_add_field): Fix new_field->accessibility for
8181 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8182
8183 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8184
8185 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8186 encountering a load via a non-SP register.
8187
8188 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8189
8190 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8191 field in returned unwinder.
8192
8193 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8194
8195 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8196
8197 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8198
8199 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8200 of xmalloc.
8201
8202 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8203
8204 * frame.c (frame_unwind_register): Throw an error if unwinding the
8205 register failed.
8206 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8207 an unwind stop reason.
8208 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8209 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8210 UNWIND_UNAVAILABLE>: New.
8211 * inline-frame.c (inline_frame_unwind): Install
8212 default_frame_unwind_stop_reason.
8213 * frame-unwind.c: Include "exceptions.h".
8214 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8215 (default_frame_unwind_stop_reason): New.
8216 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8217 (default_frame_unwind_stop_reason): Declare.
8218 (struct frame_unwind) <stop_reason>: New function pointer.
8219
8220 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8221 * dwarf2-frame.c: Include exceptions.h.
8222 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8223 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8224 computing the CFA. If such an error was thrown, set
8225 unavailable_retaddr.
8226 (dwarf2_frame_unwind_stop_reason): New.
8227 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8228 unavailable.
8229 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8230 (dwarf2_signal_frame_unwind): Ditto.
8231
8232 * amd64-tdep.c: Include "exceptions.h".
8233 (struct amd64_frame_cache): New field "base_p".
8234 (amd64_init_frame_cache): Clear it.
8235 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8236 Avoid reading registers with functions that throw if the register
8237 is not necessary to compute the frame base.
8238 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8239 swallowing NOT_AVAILABLE_ERROR.
8240 (amd64_frame_unwind_stop_reason): New.
8241 (amd64_frame_this_id): Don't build a frame id if the frame base
8242 was unavailable.
8243 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8244 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8245 base_p if the frame base was computable.
8246 (amd64_sigtramp_frame_unwind_stop_reason): New.
8247 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8248 frame base was unavailable.
8249 (amd64_sigtramp_frame_unwind): Install
8250 amd64_sigtramp_frame_unwind_stop_reason.
8251 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8252 base_p if the frame base was computable.
8253 (amd64_epilogue_frame_unwind_stop_reason): New.
8254 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8255 frame base was unavailable.
8256 (amd64_epilogue_frame_unwind): Install
8257 amd64_epilogue_frame_unwind_stop_reason.
8258 * i386-tdep.c: Include "exceptions.h".
8259 (struct i386_frame_cache): New field "base_p".
8260 (i386_init_frame_cache): Clear it.
8261 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8262 Avoid reading registers with functions that throw if the register
8263 is not necessary to compute the frame base.
8264 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8265 swallowing NOT_AVAILABLE_ERROR.
8266 (i386_frame_unwind_stop_reason): New.
8267 (i386_frame_this_id): Don't build a frame id if the frame base was
8268 unavailable.
8269 (i386_frame_prev_register): Handle unavailable SP.
8270 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8271 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8272 base_p if the frame base was computable.
8273 (i386_epilogue_frame_unwind_stop_reason): New.
8274 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8275 base was unavailable.
8276 (i386_epilogue_frame_unwind): Install
8277 i386_epilogue_frame_unwind_stop_reason.
8278 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8279 base_p if the frame base was computable.
8280 (i386_sigtramp_frame_unwind_stop_reason): New.
8281 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8282 base was unavailable.
8283 (i386_sigtramp_frame_unwind): Install
8284 i386_sigtramp_frame_unwind_stop_reason.
8285 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8286 type's size, not the register's.
8287 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8288
8289 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8290 default_frame_unwind_stop_reason.
8291 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8292 (alpha_heuristic_frame_unwind): Ditto.
8293 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8294 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8295 * avr-tdep.c (avr_frame_unwind): Ditto.
8296 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8297 Ditto.
8298 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8299 * frv-tdep.c (frv_frame_unwind): Ditto.
8300 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8301 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8302 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8303 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8304 (hppa_stub_frame_unwind): Ditto.
8305 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8306 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8307 (ia64_libunwind_frame_unwind)
8308 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8309 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8310 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8311 * m32c-tdep.c (m32c_unwind): Ditto.
8312 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8313 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8314 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8315 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8316 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8317 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8318 * mep-tdep.c (mep_frame_unwind): Ditto.
8319 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8320 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8321 (mips_stub_frame_unwind): Ditto.
8322 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8323 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8324 * mt-tdep.c (mt_frame_unwind): Ditto.
8325 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8326 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8327 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8328 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8329 (s390_sigtramp_frame_unwind): Ditto.
8330 * score-tdep.c (score_prologue_unwind): Ditto.
8331 * sh-tdep.c (sh_frame_unwind): Ditto.
8332 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8333 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8334 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8335 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8336 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8337 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8338 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8339 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8340 (sparc64obsd_trapframe_unwind): Ditto.
8341 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8342 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8343 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8344 * v850-tdep.c (v850_frame_unwind): Ditto.
8345 * vax-tdep.c (vax_frame_unwind): Ditto.
8346 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8347 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8348 * xtensa-tdep.c (xtensa_unwind): Ditto.
8349
8350 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8351
8352 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8353 there's always a frame. Use get_frame_pc_if_available instead of
8354 get_frame_pc, and if there's no PC available, don't look up a
8355 symtab.
8356
8357 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8358
8359 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8360 unavailable PC.
8361
8362 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8363
8364 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8365 gracefully.
8366
8367 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8368
8369 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8370 * frame.c (frame_unwind_caller_pc_if_available): New.
8371 * stack.c (frame_info): Handle unavailable PC.
8372
8373 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8374
8375 * frame.c (frame_unwind_pc): Rename to ...
8376 (frame_unwind_pc_if_available): ... this. New `pc' output
8377 parameter. Change return type to int. Gracefully handle
8378 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8379 happened, or 1 otherwise.
8380 (frame_unwind_pc): Reimplement on top of
8381 frame_unwind_pc_if_available.
8382 (get_frame_func): Rename to ...
8383 (get_frame_func_if_available): New `pc' output parameter. Change
8384 return type to int. Gracefully handle the PC not being available.
8385 (get_frame_func): Reimplement on top of
8386 get_frame_func_if_available.
8387 (select_frame): Handle the PC being unavailable.
8388 (get_prev_frame): Handle the PC being unavailable.
8389 (get_frame_pc_if_available): New.
8390 (get_frame_address_in_block_if_available): New.
8391 (find_frame_sal): Handle the frame PC not being available.
8392 * frame.h (get_frame_pc_if_available): Declare.
8393 (get_frame_address_in_block_if_available): Declare.
8394 (get_frame_func_if_available): Declare.
8395 * stack.c (print_frame_info): Handle the PC being unavailable.
8396 (find_frame_funname): Ditto.
8397 (print_frame): Handle the PC being unavailable.
8398 (get_frame_language): Ditto.
8399 * blockframe.c (get_frame_block): Ditto.
8400 * macroscope.c (default_macro_scope): Ditto.
8401 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8402
8403 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8404
8405 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8406 NOT_AVAILABLE_ERROR when evaluating the location expression.
8407
8408 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8409
8410 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8411 returning that the register piece is unavailable/optimized out.
8412 (write_pieced_value): Handle get_frame_register_bytes returning
8413 that the register piece is unavailable/optimized out when doing a
8414 read-modify write of a bitfield.
8415 * findvar.c (value_from_register): Handle get_frame_register_bytes
8416 returning that the register piece is unavailable/optimized out.
8417 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8418 and `unavailablep'. Throw error on bad debug info. Use
8419 frame_register instead of frame_register_read, to fill in the new
8420 arguments.
8421 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8422 and `unavailablep'.
8423 * valops.c: (value_assign): Adjust, and handle
8424 get_frame_register_bytes failing.
8425 * spu-tdep.c: Include exceptions.h.
8426 (spu_software_single_step): Adjust, and handle
8427 get_frame_register_bytes failing.
8428 (spu_get_longjmp_target): Ditto.
8429 * gdbarch.sh (register_to_value): Change to return int. New
8430 parameters `optimizedp' and `unavailablep'.
8431 * gdbarch.h, gdbarch.c: Regenerate.
8432 * i386-tdep.c (i386_register_to_value): Adjust to new
8433 gdbarch_register_to_value interface.
8434 * i387-tdep.c (i387_register_to_value): Ditto.
8435 * i387-tdep.h (i387_register_to_value): Ditto.
8436 * alpha-tdep.c (alpha_register_to_value): Ditto.
8437 * ia64-tdep.c (ia64_register_to_value): Ditto.
8438 * m68k-tdep.c (m68k_register_to_value): Ditto.
8439 * mips-tdep.c (mips_register_to_value): Ditto.
8440 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8441
8442 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8443
8444 * findvar.c (value_of_register): Mark the value as unavailable, if
8445 the register is unavailable.
8446 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8447 (frame_register): New `unavailablep' parameter.
8448 (frame_register_read): Update comment.
8449 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8450 Set it if the register is unavailable. If the register is
8451 unavailable, clear the output buffer.
8452 (frame_register): New `unavailablep' parameter. Pass it down.
8453 (frame_unwind_register): Adjust.
8454 (put_frame_register): Adjust.
8455 (frame_register_read): Adjust. Also return false if the register
8456 is not available.
8457 (frame_register_unwind_location): Adjust.
8458 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8459 is unavailable, mark the value accordingly.
8460 * stack.c (frame_info): Handle unavailable registers.
8461
8462 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8463
8464 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8465 simplify, using regcache_cooked_read.
8466
8467 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8468
8469 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8470 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8471 (regcache_raw_read_unsigned, regcache_raw_read_part)
8472 (regcache_cooked_read, regcache_cooked_read_signed)
8473 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8474 (regcache_cooked_read_ftype): Change return to enum
8475 register_status.
8476 * regcache.c: Include exceptions.h
8477 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8478 (do_cooked_read): Change return to enum register_status. Always
8479 forward to regcache_cooked_read.
8480 (regcache_raw_read): Change return to enum register_status. If
8481 the register is not REG_VALID, memset the buffer. Return the
8482 register's status.
8483 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8484 return the register's status.
8485 (regcache_raw_read_unsigned): Ditto.
8486 (regcache_cooked_read): Change return to enum register_status.
8487 Assert that with read-only regcaches, the register's status must
8488 be known. If the regcache is read-only, and the register is not
8489 REG_VALID, memset the buffer. Return the register's status.
8490 (regcache_cooked_read_signed): Change return to enum
8491 register_status. Handle non-REG_VALID registers and return the
8492 register's status.
8493 (regcache_cooked_read_unsigned): Change return to enum
8494 register_status. Handle non-REG_VALID registers and return the
8495 register's status.
8496 (regcache_xfer_part, regcache_raw_read_part)
8497 (regcache_cooked_read_part): Change return to enum
8498 register_status. Return the register's status.
8499 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8500 unavailable.
8501 (regcache_dump): Handle unavailable cooked registers.
8502 * frame.c (do_frame_register_read): Adjust interface to match
8503 regcache_cooked_read_ftype.
8504 * gdbarch.sh (pseudo_register_read): Change return to enum
8505 register_status.
8506 * gdbarch.h, gdbarch.c: Regenerate.
8507
8508 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8509 register_status.
8510 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8511 register_status. If reading a raw register indicates the raw
8512 register is not valid, return the raw register's status,
8513 otherwise, return REG_VALID.
8514 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8515 register_status. Handle non-REG_VALID raw registers and return
8516 the register's status.
8517 * arm-tdep.c (arm_neon_quad_read)
8518 (arm_pseudo_read): Change return to enum register_status. Handle
8519 non-REG_VALID raw registers and return the register's status.
8520 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8521 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8522 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8523 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8524 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8525 register_status.
8526 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8527 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8528 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8529 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8530 (m32c_pseudo_register_read): Change return to enum
8531 register_status. Adjust.
8532 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8533 enum register_status. Return the register's status.
8534 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8535 register_status. Return the register's status.
8536 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8537 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8538 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8539 * rs6000-tdep.c (move_ev_register_func): New typedef.
8540 (e500_move_ev_register): Use it. Change return to enum
8541 register_status. Return the register's status.
8542 (do_regcache_raw_read): New function.
8543 (do_regcache_raw_write): New function.
8544 (e500_pseudo_register_read): Change return to enum
8545 register_status. Return the register's status. Use
8546 do_regcache_raw_read.
8547 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8548 (dfp_pseudo_register_read): Change return to enum register_status.
8549 Return the register's status.
8550 (vsx_pseudo_register_read): Ditto.
8551 (efpr_pseudo_register_read): Ditto.
8552 (rs6000_pseudo_register_read): Ditto.
8553 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8554 register_status. Return the register's status.
8555 * sh64-tdep.c (pseudo_register_read_portions): New function.
8556 (sh64_pseudo_register_read): Change return to enum
8557 register_status. Use pseudo_register_read_portions. Return the
8558 register's status.
8559 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8560 register_status. Return the register's status.
8561 * sh-tdep.c (pseudo_register_read_portions): New function.
8562 (sh_pseudo_register_read): Change return to enum register_status.
8563 Use pseudo_register_read_portions. Return the register's status.
8564 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8565 enum register_status. Return the register's status.
8566 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8567 * spu-tdep.c (spu_pseudo_register_read_spu)
8568 (spu_pseudo_register_read): Ditto.
8569 * xtensa-tdep.c (xtensa_register_read_masked)
8570 (xtensa_pseudo_register_read): Ditto.
8571 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8572
8573 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8574
8575 * python/py-value.c (valpy_getitem): Fix formatting of error function
8576 call.
8577
8578 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8579
8580 ARI fixes: Add missing internationalization markups throughout
8581 C source files.
8582 * darwin-nat-info.c: Ditto.
8583 * record.c: Ditto.
8584 * remote.c: Ditto.
8585 * mi/mi-main.c: Ditto.
8586
8587 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8588
8589 ARI fixes: Add missing internationalization markups throughout
8590 yacc files.
8591 * c-exp.y: Ditto.
8592 * cp-name-parser.y: Ditto.
8593 * f-exp.y: Ditto.
8594 * m2-exp.y: Ditto.
8595 * objc-exp.y: Ditto.
8596 * p-exp.y: Ditto.
8597
8598 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8599
8600 ARI fixes: Messages should have no trailing new lines.
8601 * darwin-nat.c (mach_check_error): Remove trailing new line from
8602 warning function call message.
8603 * record.c (bfdcore_read): Idem for error call.
8604
8605 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8606
8607 * common/signals.c (target_signal_from_host): Add _ markup to error
8608 function call message.
8609 (target_signal_to_host): Add _ markup and remove trailing new line
8610 from warning call message.
8611 (target_signal_from_command): Add _ markup to error function call
8612 message.
8613
8614 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8615
8616 PR python/12149
8617
8618 * python/python.c (gdbpy_write): Accept a stream argument and
8619 operate to the appropriate stream.
8620 (gdbpy_flush): Likewise.
8621 (_initialize_python): Add stream constants.
8622 (finish_python_initialization): Add GdbOutputErrorFile class.
8623
8624 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8625
8626 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8627
8628 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8629
8630 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8631 to store_signed_integer. Add debug message when relocating CALL
8632 instructions. Fix formatting of debug message.
8633 * i386-tdep.c (i386_relocate_instruction): Ditto.
8634
8635 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8636
8637 * target.h (struct target_ops): Remove to_lookup_symbol field.
8638 (target_lookup_symbol): Delete macro.
8639 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8640 (update_current_target, setup_target_debug): Remove handling
8641 of to_lookup_symbol target_ops field.
8642 * ada-tasks.c (get_known_tasks_addr): Remove use of
8643 target_lookup_symbol.
8644 * coffread.c (coff_symtab_read): Likewise.
8645 * dbxread.c (read_dbx_symtab): Ditto.
8646
8647 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8648
8649 PR gdb/12116:
8650 * configure.ac: Add getthrds declaration check.
8651 * configure, config.in: Regenerate.
8652 * aix-thread.c (getthrds): Declare only if not already declared
8653 in procinfo.h. More declaration out of get_signaled_thread to
8654 global scope.
8655
8656 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8657
8658 * python/py-symtab.c: Populate symtab_object_methods,
8659 sal_object_methods.
8660 (stpy_is_valid): New function.
8661 (salpy_is_valid): Ditto.
8662 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8663 (sympy_is_valid): New function.
8664 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8665 (objfpy_is_valid): New function.
8666 * python/py-inferior.c: Populate inferior_object_methods.
8667 (infpy_is_valid): New function.
8668 * python/py-infthread.c: Populate thread_object_methods.
8669 (thpy_is_valid): New function.
8670 * python/py-block.c: Declare block_object_methods. Populate. Declare
8671 block_iterator_object_methods. Populate.
8672 (blpy_is_valid): New function.
8673 (blpy_iter_is_valid): Ditto.
8674
8675 2011-03-16 Keith Seitz <keiths@redhat.com>
8676
8677 * linespec.c (find_methods): Canonicalize NAME before looking
8678 up the symbol.
8679 (name_end): New function.
8680 (keep_name_info): New function.
8681 (decode_line_1): Use keep_name_info.
8682 (decode_compound): Likewise.
8683 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8684 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8685
8686 PR c++/12273
8687 * linespec.c (locate_first_half): Keep overload information, too.
8688 (decode_compound): Use a string to represent break characters
8689 to escape the loop.
8690 If P points to a break character, do not increment it.
8691 For C++ and Java, keep overload information and relevant keywords.
8692 If we cannot find a symbol, search the minimal symbols.
8693
8694 PR c++/11734
8695 * linespec.c (decode_compound): Rename SAVED_ARG to
8696 THE_REAL_SAVED_ARG.
8697 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8698 single-quotes.
8699 Pass a valid block to lookup_symbol.
8700 (lookup_prefix_sym): Likewise.
8701 (find_method): Construct search name based on SYM_CLASS instead
8702 of SAVED_ARG.
8703 * psymtab.c (lookup_partial_symbol): Add language parameter.
8704 (lookup_symbol_aux_psymtabs): Likewise.
8705 Don't assume that the psymtab we found was the right one. Search
8706 for the desired symbol in the symtab to be certain.
8707 (psymtab_search_name): New function.
8708 (lookup_partial_symbol): Use psymtab_search_name.
8709 Add language parameter.
8710 (read_symtabs_for_function): Add language parameter and pass to
8711 lookup_partial_symbol.
8712 (find_symbol_file_from_partial): Likewise.
8713
8714 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8715
8716 PR gdb/12528
8717 * dwarf2read.c (noop_record_line): New function.
8718 (dwarf_decode_lines): Ignore line tables for GCd functions.
8719
8720 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8721
8722 Fix ARI warnings about new lines at the end of messages, which
8723 are unneeded as there is a new line added at the end of the message
8724 automatically.
8725 * darwin-nat.c (darwin_stop_inferior): Ditto.
8726 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8727 * dfp.c (decimal_to_number): Ditto.
8728 * exec.c (print_section_info): Ditto.
8729 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8730 * osdata.c (get_osdata): Ditto.
8731 * record.c (bfdcore_write): Ditto.
8732 * remote-mips.c (mips_readchar): Ditto.
8733 * remote.c (read_ptid): Ditto.
8734 * ser-mingw.c (ser_windows_raw): Ditto.
8735 * tracepoint.c (add_local_symbols): Ditto.
8736 * windows-nat.c (fake_create_process): Ditto.
8737
8738 2011-03-16 Tom Tromey <tromey@redhat.com>
8739
8740 * tracepoint.c (stop_tracing): Don't declare.
8741 * event-top.c (after_char_processing_hook): Add `(void)'.
8742
8743 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8744
8745 * NEWS: Add Parameter sub-classing description.
8746
8747 2011-03-16 Kai Tietz <ktietz@redhat.com>
8748
8749 * MAINTAINERS: Update my e-mail address.
8750
8751 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8752
8753 * MAINTAINERS: Add myself for write after approval privileges.
8754
8755 2011-03-15 Michael Snyder <msnyder@vmware.com>
8756
8757 * frame.c (find_frame_sal): Assert sym is not null.
8758
8759 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8760
8761 * objc-lang.c (selectors_info): Check strchr for null result.
8762
8763 * stabsread.c (define_symbol): Guard against bad stabstring input.
8764
8765 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8766
8767 Remove trailing spaces and tabulations from pascal language
8768 support sources.
8769 p-exp.y: Ditto.
8770 p-lang.c: Ditto.
8771 p-lang.h: Ditto.
8772 p-valprint.c: Ditto.
8773
8774 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8775
8776 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8777 than LOW. Comment it.
8778 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8779 HIGHPC not strictly higher than LOWPC.
8780
8781 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8782
8783 Fix formatting of function declarations returning a pointer in
8784 previous commit.
8785 * varobj.c (varobj_add_child): Ditto.
8786 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8787 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8788
8789 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8790
8791 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8792 for the "generic" vector ABI used with GCC 4.3 and later.
8793 (ppc64_sysv_abi_return_value): Likewise.
8794
8795 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8796
8797 * infcall.c (call_function_by_hand): Function return value is
8798 always a non_lval, even when using struct_return.
8799
8800 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8801
8802 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8803 (map_display_numbers): New.
8804 (do_delete_display): New.
8805 (undisplay_command): Use map_display_numbers.
8806 (do_enable_disable_display): New.
8807 (enable_disable_display_command): New function.
8808 (enable_display): Delete.
8809 (enable_display_command): New.
8810 (disable_display_command): Reimplement.
8811 (_initialize_printcmd): Adjust "enable display" command to use
8812 `enable_display_command' as callback.
8813
8814 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8815
8816 * NEWS: Add Python breakpoint 'stop' operation.
8817
8818 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8819
8820 * NEWS: Delete duplicate entry. Fix typo.
8821
8822 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8823
8824 Fix ARI warning about function names in first column.
8825 Put prototype declaration on same line as return type.
8826 * objc-exp.y: Ditto.
8827 * p-exp.y: Ditto.
8828 * python/py-stopevent.h: Ditto.
8829 For long function names, split parameters to
8830 allow function name on same line as return type.
8831 * solib-pa64.c: Ditto.
8832 * varobj.c: Ditto.
8833 * varobj.h: Ditto.
8834 For long function declaration, use single line.
8835 * hppa-tdep.h: Ditto.
8836 * inferior.h: Ditto.
8837
8838 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8839
8840 * python/python.h: Declare gdbpy_should_stop and
8841 gdbpy_breakpoint_has_py_cond.
8842 * python/python.c: Add python.h to includes. Remove python.h from
8843 HAVE_PYTHON definition
8844 (gdbpy_should_stop): New dummy function.
8845 (gdbpy_breakpoint_has_py_cond): New dummy function.
8846 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8847 sub-classing capabilities.
8848 (gdbpy_should_stop): New function.
8849 (gdbpy_breakpoint_has_py_cond): New function.
8850 (local_setattro): New function.
8851 * breakpoint.c (condition_command): Add check for Python 'stop'
8852 operation.
8853 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8854 operation function as part of stop/continue tests.
8855
8856 2011-03-14 Tom Tromey <tromey@redhat.com>
8857
8858 PR gdb/12576:
8859 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8860 (needs_frame_dwarf_call): Likewise.
8861
8862 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8863
8864 Fix ARI warning about functions without parameters that do not
8865 use (void).
8866 * breakpoint.c (all_tracepoints): Replace () by (void).
8867 * f-exp.y (match_string_literal): Ditto.
8868 (yylex): Ditto.
8869 * m2-exp.y (yylex): Ditto.
8870 * mep-tdep.c (current_me_module): Ditto.
8871 (current_options): Ditto.
8872 (current_cop_data_bus_width): Ditto.
8873 (current_cr_names): Ditto.
8874 (current_cr_is_float): Ditto.
8875 (current_ccr_names): Ditto.
8876 * objc-exp.y (yylex): Ditto.
8877 * p-exp.y (yylex): Ditto.
8878 * remote.c (send_interrupt_sequence): Ditto.
8879 * tracepoint.c (current_trace_status): Ditto.
8880 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8881 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8882
8883 2011-03-11 Michael Snyder <msnyder@vmware.com>
8884
8885 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8886 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8887 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8888 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8889 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8890
8891 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8892 (delete_async_event_handler): Ditto.
8893
8894 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8895
8896 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8897
8898 * top.c (set_verbose): Assert showcmd was found.
8899
8900 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8901
8902 * xtensa-tdep.c (warning_once): Correct style issues.
8903
8904 2011-03-11 Yao Qi <yao@codesourcery.com>
8905
8906 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8907
8908 2011-03-11 Andreas Schwab <schwab@redhat.com>
8909
8910 * common/aclocal.m4: Remove.
8911
8912 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8913
8914 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8915 (xtensa_write_register, xtensa_read_register): Likewise.
8916 (xtensa_hextochar): Removed.
8917 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8918
8919 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8920
8921 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8922 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8923 (xtensa_alloc_frame_cache): Add initialization for new fields.
8924 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8925 (warning_once): New function.
8926 (xtensa_insn_kind): New item c0opc_and.
8927 (call0_classify_opcode): Add the case for AND instruction.
8928 (call0_track_op): Change arguments. New local variable litbase.
8929 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8930 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8931 in the prologue.
8932 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8933 (call0_analyze_prologue): Update the comments. Change arguments.
8934 Add the variety of updates to handle extended prologues, which now can
8935 conduct dynamic stack adjustments.
8936 (call0_frame_cache): Likewise.
8937 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8938 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8939
8940 2011-03-10 Michael Snyder <msnyder@vmware.com>
8941
8942 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8943 (cmd_qtframe): Ditto.
8944 (cmd_qtbuffer): Ditto.
8945 (cmd_bigqtbuffer): Ditto.
8946
8947 2011-03-10 Tom Tromey <tromey@redhat.com>
8948
8949 * tracepoint.c (trace_actions_command): Update.
8950 * thread.c (thread_apply_command): Update.
8951 * reverse.c (delete_bookmark_command): Update.
8952 (bookmarks_info): Update.
8953 * printcmd.c (undisplay_command): Update.
8954 * memattr.c (mem_enable_command): Update.
8955 (mem_disable_command): Update.
8956 (mem_delete_command): Update.
8957 * inferior.c (detach_inferior_command): Update.
8958 (kill_inferior_command): Update.
8959 (remove_inferior_command): Update.
8960 * cli/cli-utils.h (struct get_number_or_range_state): New.
8961 (init_number_or_range): Declare.
8962 (get_number_or_range): Update.
8963 * cli/cli-utils.c (init_number_or_range): New function.
8964 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8965 static variables.
8966 (number_is_in_list): Update.
8967 * breakpoint.h (get_tracepoint_by_number): Update.
8968 * breakpoint.c (map_breakpoint_numbers): Update for change to
8969 get_number_or_range.
8970 (find_location_by_number): Use get_number, not
8971 get_number_or_range.
8972 (trace_pass_set_count): New function.
8973 (trace_pass_command): Update for change to get_number_or_range.
8974 Rework loop logic.
8975 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8976 'state' parameter.
8977
8978 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8979
8980 * python/py-param.c (add_setshow_generic): Add set/show callback
8981 parameters. Register Python object context.
8982 (get_show_value): New function.
8983 (get_set_value): New function.
8984 (call_doc_function): New function.
8985 (get_doc_string): Move behind get_show_value/get_set_value.
8986
8987 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8988
8989 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8990
8991 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8992
8993 * xtensa-tdep.c (xtensa_read_register): Add comment.
8994 (xtensa_write_register): Likewise.
8995 (xtensa_hextochar): Add comment and update to match coding conventions.
8996 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8997 (execute_l32e, execute_s32e, execute_code): Update comments.
8998 (xtensa_exception_handler_t): Update to match coding conventions.
8999 (xtensa_insn_kind): Likewise.
9000
9001 2011-03-09 Michael Snyder <msnyder@vmware.com>
9002
9003 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9004
9005 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9006
9007 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9008
9009 2011-03-09 Tom Tromey <tromey@redhat.com>
9010
9011 * thread.c (restore_selected_frame): Handle frame_level == -1.
9012 (make_cleanup_restore_current_thread): Use
9013 get_selected_frame_if_set.
9014 * frame.h (get_selected_frame_if_set): Declare.
9015 * frame.c (get_selected_frame_if_set): New function.
9016
9017 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9018
9019 * cli/cli-cmds.c (shell_escape): Use lbasename.
9020 * coffread.c (coff_start_symtab): Constify parameter.
9021 (complete_symtab): Constify `name' parameter.
9022 (coff_symtab_read): Constify `filestring' local.
9023 (coff_getfilename): Constify return and `result' local.
9024 Use lbasename.
9025 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9026 * linux-fork.c (info_checkpoints_command): Use lbasename.
9027 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9028 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9029 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9030 * procfs.c (procfs_make_note_section): Use lbasename.
9031 * tui/tui-io.c (printable_part): Constity return and parameter.
9032 Use lbasename.
9033 (print_filename): Constify parameters, and local `s'.
9034 (tui_rl_display_match_list): Constify local `temp'.
9035
9036 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9037
9038 Revert:
9039 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9040 Fix DWARF-3+ DW_AT_accessibility default assumption.
9041 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9042 cu->header.version >= 3.
9043
9044 2011-03-09 Yao Qi <yao@codesourcery.com>
9045
9046 * common/Makefile.in: Remove.
9047 * common/configure: Remove.
9048 * common/configure.ac: Remove.
9049
9050 2011-03-09 Yao Qi <yao@codesourcery.com>
9051
9052 Revert:
9053 2011-02-11 Yao Qi <yao@codesourcery.com>
9054
9055 * common/Makefile.in: Add copyright header.
9056
9057 2011-02-11 Yao Qi <yao@codesourcery.com>
9058
9059 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9060 libcommon.a.
9061 * configure.ac: Add common to sub dir.
9062 * configure: Regenerate.
9063
9064 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9065
9066 * xtensa-tdep.c (call0_ret): New function.
9067 (xtensa_skip_prologue): Speed up analysis.
9068
9069 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9070
9071 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9072 while executing MI command -data-list-changed-registers.
9073
9074 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9075
9076 * xtensa-tdep.c (xtensa_read_register): New function.
9077 (xtensa_write_register): New function.
9078 (xtensa_find_register_by_name): New function.
9079 (xtensa_windowed_frame_cache): Update comments in type description.
9080 (xtensa_frame_cache): Likewise.
9081 (xtensa_window_interrupt_insn): New function.
9082 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9083 (xtensa_insn_kind): Add new instructions.
9084 (rwx_special_register): New function.
9085 (call0_classify_opcode): Add new instructions to the analysis.
9086 (a0_saved, a7_saved, a11_saved): New variables.
9087 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9088 (execute_l32e): New function.
9089 (execute_s32e): New function.
9090 (xtensa_exception_handler_t): New type.
9091 (execute_code): New function.
9092 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9093 analysis for Xtensa Window Exception handlers.
9094
9095 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9096
9097 * xtensa-tdep.c (TX_PS): New.
9098 (windowing_enabled): Update to count for Call0 ABI.
9099 (xtensa_hextochar): New.
9100 (xtensa_init_reggroups): Make algorithm generic.
9101 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9102
9103 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9104
9105 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9106
9107 2011-03-08 Michael Snyder <msnyder@vmware.com>
9108
9109 * i386-tdep.c (i386_follow_jump): Check return value of
9110 target_read_memory.
9111 (i386_analyze_struct_return): Ditto.
9112 (i386_skip_probe): Ditto.
9113 (i386_match_insn): Ditto.
9114 (i386_skip_noop): Ditto.
9115 (i386_analyze_frame_setup): Ditto.
9116 (i386_analyze_register_saves): Ditto.
9117 (i386_skip_prologue): Ditto.
9118 (i386_skip_main_prologue): Ditto.
9119
9120 * target.c (read_whatever_is_readable): Fix memory leak.
9121
9122 * i386-tdep.c (i386_process_record): Document fall through.
9123
9124 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9125
9126 Fix DWARF-3+ DW_AT_accessibility default assumption.
9127 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9128 cu->header.version >= 3.
9129
9130 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9131
9132 * remote.c (remote_check_symbols): Skip if the target has no
9133 execution.
9134
9135 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9136
9137 * target.c (read_whatever_is_readable): Reformat comment,
9138 with a minor typo fix. Minor reformatting of the code.
9139
9140 2011-03-08 Yao Qi <yao@codesourcery.com>
9141
9142 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9143 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9144 Use cached result instead of calling displaced_in_arm_mode again.
9145 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9146 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9147 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9148 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9149 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9150 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9151 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9152 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9153 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9154 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9155 (arm_catch_kernel_helper_return): Likewise.
9156 * gdb/arm-tdep.h : Update function declarations.
9157
9158 2011-03-07 Michael Snyder <msnyder@vmware.com>
9159
9160 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9161
9162 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9163
9164 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9165
9166 * elfread.c (elf_symtab_read): Stop memory leak.
9167
9168 * main.c (captured_main): Fix memory leak.
9169
9170 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9171
9172 * ada-lang.c (compare_names): Call is_name_suffix with string1
9173 instead of string2.
9174
9175 2011-03-07 Tom Tromey <tromey@redhat.com>
9176
9177 * xcoffread.c (xcoff_sym_fns): Update.
9178 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9179 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9180 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9181 (symbol_file_add_with_addrs_or_offsets): Likewise.
9182 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9183 * somread.c (som_sym_fns): Update.
9184 * psymtab.h (require_partial_symbols): Declare.
9185 * psymtab.c (require_partial_symbols): New function.
9186 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9187 (ALL_OBJFILE_PSYMTABS): Undef.
9188 (ALL_PSYMTABS): Move from psympriv.h.
9189 (lookup_partial_symtab, find_pc_sect_psymtab)
9190 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9191 (find_last_source_symtab_from_partial)
9192 (forget_cached_source_info_partial)
9193 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9194 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9195 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9196 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9197 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9198 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9199 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9200 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9201 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9202 psymtabs.
9203 * mipsread.c (ecoff_sym_fns): Update.
9204 * machoread.c (macho_sym_fns): Update.
9205 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9206 (read_psyms): New function.
9207 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9208 (elf_sym_fns_lazy_psyms): New global.
9209 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9210 dwarf2_build_psymtabs.
9211 * dbxread.c (aout_sym_fns): Update.
9212 * coffread.c (coff_sym_fns): Update.
9213
9214 2011-03-07 Tom Tromey <tromey@redhat.com>
9215
9216 * infrun.c (print_exited_reason): Include inferior id and pid in
9217 message.
9218
9219 2011-03-07 Tom Tromey <tromey@redhat.com>
9220
9221 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9222 parameter.
9223 (target_has_execution_1): Update.
9224 (target_has_execution_current): Declare.
9225 (target_has_execution): Call target_has_execution_current.
9226 (default_child_has_execution): Update.
9227 * target.c (default_child_has_execution): Add 'the_ptid'
9228 parameter.
9229 (target_has_execution_1): Likewise.
9230 (target_has_execution_current): New function.
9231 (add_target): Update.
9232 (init_dummy_target): Update.
9233 * remote-m32r-sdi.c (m32r_has_execution): New function.
9234 (init_m32r_ops): Use it.
9235 * record.c (record_core_has_execution): Now static. Add
9236 'the_ptid' parameter.
9237 * inferior.c (have_live_inferiors): Don't save current thread.
9238 Use target_has_execution_1.
9239
9240 2011-03-07 Yao Qi <yao@codesourcery.com>
9241
9242 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9243
9244 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9245
9246 * elfread.c (elf_symtab_read): Minor reformatting.
9247
9248 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9249
9250 * objc-lang.c (selectors_info): Minor reformatting.
9251
9252 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9253
9254 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9255
9256 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9257 Michael Snyder <msnyder@vmware.com>
9258
9259 * ada-valprint.c (ada_val_print_array): Move the declaration of
9260 "byte_order" and "elttype" inside the block where these variables
9261 are actually used. Remove some special handling for the case
9262 where "elttype" and "eltlen" are null. Replace by a comment
9263 and a couple of assertion checks.
9264
9265 2011-03-05 Michael Snyder <msnyder@vmware.com>
9266
9267 * source.c (add_path): Replace semicolon at end of block.
9268 * dwarf2expr.c (execute_stack_op): Ditto.
9269
9270 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9271
9272 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9273 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9274 (bfin-*-*): Likewise.
9275
9276 2011-03-05 Michael Snyder <msnyder@vmware.com>
9277
9278 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9279 * mdebugread.c (parse_symbol): Ditto.
9280 * parse.c (parse_exp_in_context): Ditto.
9281 * source.c (add_path): Ditto.
9282 * utils.c (gnu_debuglink_crc32): Ditto.
9283 * varobj.c (variable_language): Ditto.
9284
9285 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9286
9287 2011-03-04 Michael Snyder <msnyder@vmware.com>
9288
9289 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9290
9291 * symfile.c (simple_overlay_update): Check for null return value
9292 from lookup_minimal_symbol.
9293
9294 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9295
9296 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9297
9298 * eval.c (parse_and_eval_address_1): Remove function.
9299 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9300 instead of parse_and_eval_address_1.
9301 * value.h (parse_and_eval_address_1): Remove prototype.
9302
9303 2011-03-04 Michael Snyder <msnyder@vmware.com>
9304
9305 * remote.c (putpkt_binary): Document that case stmt falls through.
9306
9307 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9308
9309 * breakpointc (print_it_typical): Move NULL check from here...
9310 (print_bp_stop_message): ... to here.
9311
9312 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9313
9314 * breakpoint.c (enable_command): Use break instead of continue,
9315 and fill in a missing break.
9316 (disable_command): Ditto.
9317
9318 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9319
9320 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9321 (terminal_save_ours): Remove misleading comment.
9322 (inflow_inferior_data_cleanup): Free ttystate.
9323 (inflow_inferior_exit): Likewise.
9324 (copy_terminal_info): Copy ttystate.
9325
9326 * serial.c (serial_copy_tty_state): New function.
9327 * serial.h (serial_copy_tty_state): Add prototype.
9328 (struct serial_ops): Add copy_tty_state callback.
9329 * ser-base.c (ser_base_copy_tty_state): New function.
9330 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9331 * ser-go32.c (dos_copy_tty_state): New function.
9332 (dos_ops): Install copy_tty_state callback.
9333 * ser-mingw.c (_initialize_ser_windows): Likewise.
9334 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9335 * ser-unix.c (hardwire_copy_tty_state): New function.
9336 (_initialize_ser_hardwire): Install it.
9337
9338 2011-03-04 Michael Snyder <msnyder@vmware.com>
9339
9340 * breakpoint.c (create_breakpoint): Add missing break statement.
9341
9342 Reverting this patch:
9343 * infcall.c (call_function_by_hand): Add break statements for lint.
9344
9345 Reverting this patch:
9346 * cli/cli-script.c (script_from_file): Add break for lint.
9347
9348 2011-03-04 Michael Snyder <msnyder@vmware.com>
9349
9350 * solib.c (reload_shared_libraries_1): Close memory leak.
9351
9352 2011-03-03 Tom Tromey <tromey@redhat.com>
9353
9354 PR gdb/12538:
9355 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9356 DW_STRING is NULL.
9357
9358 2011-03-03 Michael Snyder <msnyder@vmware.com>
9359
9360 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9361 fields of struct 'st' to zero.
9362
9363 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9364 sal.pspace before calling set_current_source_symtab_and_line.
9365
9366 2011-03-03 Yao Qi <yao@codesourcery.com>
9367
9368 * Makefile.in (configure-common): Remove. Let Makefile
9369 in dir common to rebuild itself.
9370 (common/Makefile): Likewise.
9371
9372 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9373
9374 * utils.c (parse_escape): Add i18n markup in error message.
9375
9376 2011-03-03 Yao Qi <yao@codesourcery.com>
9377
9378 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9379 ARM_PC_REGNUM.
9380 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9381 (displaced_write_reg, displaced_read_reg): Likewise.
9382 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9383 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9384 (cleanup_branch): Replace magic number 14 and 15 with
9385 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9386
9387 2011-03-02 Michael Snyder <msnyder@vmware.com>
9388
9389 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9390
9391 * cli/cli-script.c (script_from_file): Add break for lint.
9392
9393 * mdebugread.c (parse_partial_symbols): Fix indent.
9394
9395 * target-descriptions.c (tdesc_gdb_type): No need to call
9396 xstrdup, callee saves a copy.
9397
9398 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9399
9400 * infcall.c (call_function_by_hand): Add break statements for lint.
9401
9402 * utils.c (parse_escape): Escape the escape char.
9403
9404 * python/py-inferior.c (build_inferior_list): Error out if
9405 PyList_Append fails.
9406 (gdbpy_inferiors): Error out if build_inferior_list fails.
9407
9408 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9409 a function call.
9410
9411 * record.c (record_restore): Move printf to before error return.
9412
9413 2011-03-02 Yao Qi <yao@codesourcery.com>
9414
9415 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9416 is_thumb and insn_size.
9417 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9418 on both ARM and Thumb mode.
9419 (arm_process_displaced_insn): Set is_thumb and insn_size.
9420 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9421 (arm_displaced_step_fixup): Likewise.
9422
9423 2011-03-01 Michael Snyder <msnyder@vmware.com>
9424
9425 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9426
9427 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9428
9429 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9430
9431 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9432
9433 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9434 with xmalloc.
9435
9436 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9437 which shadows function parameter.
9438
9439 * tracepoint.c (create_tsv_from_upload): Superfluous call
9440 to xstrdup. Callee already calls xstrdup.
9441
9442 * linespec.c (decode_line_1): Remove unnecessary null check.
9443
9444 * tracepoint.c (scope_info): Fix mem leak, remove underused
9445 variable.
9446
9447 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9448 superfluous null check.
9449
9450 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9451 (value_of_builtin_frame_fp_reg): Ditto.
9452
9453 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9454
9455 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9456 be null.
9457
9458 * linespec.c (decode_line_1): Check for null before dereference.
9459
9460 * reverse.c (record_restore): Move null-check to before pointer
9461 dereference.
9462
9463 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9464
9465 * objc-lang.c (selectors_info): Add explanitory comment.
9466 (classes_info): Ditto.
9467
9468 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9469
9470 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9471 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9472 versions of the trampoline. Handle Thumb vs. ARM addresses.
9473 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9474 (arm_linux_init_abi): Install it.
9475 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9476 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9477
9478 2011-02-28 Michael Snyder <msnyder@vmware.com>
9479
9480 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9481 a little bigger, to avoid possibility of an overflow.
9482
9483 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9484 buffers a little bigger, to avoid possibility of an overflow.
9485
9486 * coffread.c (coff_getfilename): Add check to avoid overflow.
9487
9488 * objc-lang.c (selectors_info): Add a small safety margin to
9489 avoid overflow.
9490 (classes_info): Error out on too long REGEXP.
9491
9492 * infrun.c (handle_inferior_event): Remove unused function call.
9493
9494 * fork-child.c (fork_inferior): Remove ifdef'd code and
9495 unused variable.
9496
9497 * linux-thread-db.c (attach_thread): Discard unused value.
9498
9499 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9500
9501 * remote.c (remote_get_noisy_reply): Discard unused value.
9502 (remote_vcont_resume): Ditto.
9503 (remote_stop_ns): Ditto.
9504
9505 * linespec.c (decode_objc): Delete unused variable.
9506
9507 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9508
9509 * dwarf2read.c (add_partial_symbol): Discard unused values.
9510 (read_base_type): Delete unused variable.
9511
9512 * dbxread.c (read_dbx_symtab): Discard unused value.
9513
9514 * eval.c (evaluate_subexp_standard): Delete unused variable,
9515 and discard unused values.
9516
9517 * infcmd.c (_initialize_infcmd): Discard unused values.
9518
9519 * stabsread.c (rs6000_builtin_type): Missing break statement.
9520
9521 * dbxread.c (process_one_symbol): Discard unused value.
9522
9523 * coffread.c (coff_end_symtab): Delete unused variable.
9524
9525 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9526 (dwarf2_add_typedef): Delete unused variable.
9527 (read_namespace): Ditto.
9528 (dwarf_decode_macros): Ditto.
9529
9530 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9531
9532 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9533
9534 * p-valprint.c (pascal_val_print): Discard unused value.
9535
9536 * utils.c (nquery): Call va_end before return;
9537 (yquery): Ditto.
9538 (query): Ditto.
9539
9540 * proc-service.c (ps_plog): Call va_end before return.
9541
9542 2011-02-28 Tom Tromey <tromey@redhat.com>
9543
9544 * python/python.c (gdbpy_value_cst): New global.
9545 (_initialize_python): Initialize it.
9546 * python/python-internal.h (gdbpy_value_cst): Declare.
9547 * python/py-value.c (convert_value_from_python): Use
9548 gdbpy_value_cst.
9549
9550 2011-02-28 Michael Snyder <msnyder@vmware.com>
9551
9552 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9553
9554 * breakpoint.c (catch_syscall_completer): Free malloced list.
9555
9556 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9557
9558 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9559 (lval_func_check_synthetic_pointer): Ditto.
9560 (lval_func_free_closure): Fix use-after-free.
9561
9562 2011-02-28 Tom Tromey <tromey@redhat.com>
9563
9564 * psymtab.c (expand_partial_symbol_tables): Use
9565 ALL_OBJFILE_PSYMTABS.
9566
9567 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9568
9569 * objc-lang.c (selectors_info): Error on too long REGEXP.
9570
9571 2011-02-28 Michael Snyder <msnyder@vmware.com>
9572
9573 * python/py-param.c (set_parameter_value): Add missing
9574 break statement.
9575
9576 * linux-record.c (record_linux_system_call): Add missing
9577 break statement.
9578
9579 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9580
9581 * breakpoint.c (print_one_breakpoint_location): Remove unused
9582 argument PRINT_ADDRESS_BITS. Update callers.
9583 (print_one_breakpoint): Likewise.
9584
9585 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9586
9587 * breakpoint.c (wrap_indent_at_field): New function.
9588 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9589 Allocate ui_stream locally instead of using STB argument.
9590 (print_one_breakpoint_location): Update call.
9591 * ui-out.c (ui_out_query_field): New function.
9592 * ui-out.h (ui_out_query_field): Add prototype.
9593
9594 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9595
9596 From Michael Snyder <msnyder@vmware.com>
9597 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9598
9599 2011-02-27 Michael Snyder <msnyder@vmware.com>
9600
9601 * objc-lang.c (selectors_info): Prevent string overrun.
9602
9603 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9604 error in strncpy.
9605
9606 * symtab.c (rbreak_command): Move variable 'file_name' to
9607 outer scope.
9608
9609 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9610 param with a local variable of the same name.
9611
9612 2011-02-27 Michael Snyder <msnyder@vmware.com>
9613
9614 * value.c (value_from_history_ref): New function.
9615 * value.h (value_from_history_ref): Export.
9616 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9617 to parse value history references.
9618 * cli/cli-utils.h (get_number_trailer): Update comment.
9619
9620 2011-02-27 Michael Snyder <msnyder@vmware.com>
9621
9622 * inferior.c (detach_inferior_command): Use get_number_or_range.
9623 (kill_inferior_command): Ditto.
9624 (remove_inferior_command): Ditto.
9625 (initialize_inferiors): Make command names plural.
9626 Update help strings.
9627
9628 2011-02-27 Michael Snyder <msnyder@vmware.com>
9629
9630 * darwin-nat-info.c: Fix comment typo.
9631 * dwarf2expr.h: Ditto.
9632 * fbsd-nat.c: Ditto.
9633 * fbsd-nat.h: Ditto.
9634 * frame-unwind.h: Ditto.
9635 * frame.h: Ditto.
9636 * hppa-hpux-tdep.c: Ditto.
9637 * i386-linux-nat.c: Ditto.
9638 * linux-nat.c: Ditto.
9639 * nbsd-nat.c: Ditto.
9640 * nbsd-nat.h: Ditto.
9641 * ppc-linux-tdep.c: Ditto.
9642 * serial.c: Ditto.
9643 * ui-file.h: Ditto.
9644 * tui/tui-winsource.c: Ditto.
9645
9646 2011-02-26 Michael Snyder <msnyder@vmware.com>
9647
9648 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9649
9650 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9651
9652 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9653 with a local variable of the same name.
9654
9655 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9656 param with a local variable of the same name.
9657 (i387_supply_xsave): Ditto.
9658
9659 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9660 that it does not shadow a function parameter.
9661
9662 * i386-nat.c (i386_length_and_rw_bits): Document that case
9663 statement is meant to fall through.
9664
9665 * expprint.c (dump_subexp_body_standard): Document that case
9666 statement is meant to fall through.
9667
9668 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9669 dead if statement. Condition can't be false.
9670
9671 2011-02-25 Michael Snyder <msnyder@vmware.com>
9672
9673 * arm-tdep.c: Fix typos in comments.
9674 * bsd-uthread.c: Ditto.
9675 * completer.c: Ditto.
9676 * corelow.c: Ditto.
9677 * cp-namespace.c: Ditto.
9678 * cp-support.c: Ditto.
9679 * cris-tdep.c: Ditto.
9680 * dbxread.c: Ditto.
9681 * dwarf2read.c: Ditto.
9682 * frame.h: Ditto.
9683 * gdbtypes.h: Ditto.
9684 * inferior.h: Ditto.
9685 * mdebugread.c: Ditto.
9686 * mips-tdep.c: Ditto.
9687 * ppc-linux-nat.c: Ditto.
9688 * ppc-linux-tdep.c: Ditto.
9689 * printcmd.c: Ditto.
9690 * sol-thread.c: Ditto.
9691 * solib-frv.c: Ditto.
9692 * solist.h: Ditto.
9693 * sparc64-tdep.c: Ditto.
9694 * spu-tdep.c: Ditto.
9695 * stabsread.c: Ditto.
9696 * symfile.c: Ditto.
9697 * valops.c: Ditto.
9698 * varobj.c: Ditto.
9699 * vax-nat.c: Ditto.
9700 * python/py-block.c: Ditto.
9701 * python/py-symbol.c: Ditto.
9702 * python/py-symtab.c: Ditto.
9703 * python/py-value.c: Ditto.
9704 * tui/tui-win.c: Ditto.
9705
9706 2011-02-25 Michael Snyder <msnyder@vmware.com>
9707
9708 * inferior.c (print_inferior): Accept a string instead of an int
9709 for requested_inferiors, and use get_number_or_range to parse it.
9710 (info_inferiors_command): Pass args string to print_inferior.
9711 (initialize_inferiors): Change help string for info inferiors.
9712 * inferior.h (print_inferior): Export prototype change.
9713
9714 2011-02-25 Tom Tromey <tromey@redhat.com>
9715
9716 * common/ax.def (invalid2): Set to 0x31.
9717
9718 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9719
9720 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9721 L and plongest.
9722 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9723 use L and plongest.
9724 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9725
9726 2011-02-24 Michael Snyder <msnyder@vmware.com>
9727
9728 * Makefile.in (clean): Make clean should remove generated files
9729 observer.h and observer.inc.
9730
9731 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9732
9733 Revert the following patch (not approved yet):
9734 2011-02-21 Hui Zhu <teawater@gmail.com>
9735 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9736 * ax-gdb.c (gen_printf_expr_callback): New function.
9737 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9738 * ax-general.c (ax_memcpy): New function.
9739 (ax_print): Handle "printf".
9740 (ax_reqs): Ditto.
9741 * ax.h (ax_memcpy): Forward declare.
9742 * common/ax.def (invalid2): Removed.
9743 (printf): New entry.
9744 * printcmd.c (printcmd.h): New include.
9745 (string_printf): New function.
9746 (ui_printf): Removed.
9747 (printf_command): Remove static. Call string_printf.
9748 (eval_command): Call string_printf.
9749 * printcmd.h: New file.
9750 * tracepoint.c (validate_actionline,
9751 encode_actions_1): handle printf_command.
9752
9753 2011-02-23 Tom Tromey <tromey@redhat.com>
9754
9755 * ax-general.c (ax_pick): Add missing newline.
9756
9757 2011-02-23 Michael Snyder <msnyder@vmware.com>
9758
9759 * breakpoint.c (breakpoint_1): Change first argument from an int
9760 to a char pointer, so that the function now accepts a list of
9761 breakpoints rather than just one. Use new function
9762 'number_is_in_list' to implement.
9763 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9764 (watchpoints_info): Ditto.
9765 (tracepoints_info): Ditto.
9766 (maintenance_info_breakpoints): Ditto.
9767 (_initialize_breakpoint): Update help strings to reflect the fact
9768 that these functions can now take more than one argument.
9769 * cli/cli-utils.c (number_is_in_list): New function.
9770 * cli/cli-utils.h (number_is_in_list): Export.
9771
9772 2011-02-23 Michael Snyder <msnyder@vmware.com>
9773
9774 * memattr.c (mem_enable_command): Use get_number_or_range.
9775 (mem_disable_command): Ditto.
9776 (mem_delete_command): Ditto.
9777 (_initialize_mem): Tweak usage message to reflect multiple
9778 arguments.
9779
9780 2011-02-22 Doug Evans <dje@google.com>
9781
9782 Add gdb.lookup_global_symbol python function.
9783 * NEWS: Add entry.
9784 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9785 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9786 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9787
9788 2011-02-22 Tom Tromey <tromey@redhat.com>
9789
9790 * language.c (language_class_name_from_physname): Rename
9791 'curr_language' argument to 'lang'; use in body.
9792
9793 2011-02-22 Michael Snyder <msnyder@vmware.com>
9794
9795 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9796
9797 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9798
9799 * frame-unwind.h: Fix comment to mention the this frame, not the
9800 next.
9801
9802 2011-02-22 Tom Tromey <tromey@redhat.com>
9803
9804 * symfile.c (auto_solib_limit): Remove.
9805 * symfile.h (auto_solib_limit): Remove.
9806
9807 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9808
9809 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9810
9811 2011-02-21 Michael Snyder <msnyder@vmware.com>
9812
9813 * gdbthread.h (print_thread_info): Change prototype.
9814 * thread.c (print_thread_info): Accept char* instead of int for
9815 requested_threads argument. Use new function number_is_in_list
9816 to determine which threads to list.
9817 (info_threads_command): Pass char* to print_thread_info.
9818 * cli/cli-utils.c (number_is_in_list): New function.
9819 * cli/cli-utils.h (number_is_in_list): Export.
9820 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9821 print_thread_info.
9822 (print_one_inferior): Ditto.
9823 (mi_cmd_list_thread_groups): Ditto.
9824
9825 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9826
9827 * common/Makefile.in (CFLAGS): New.
9828 (COMPILE): Add $(CFLAGS).
9829
9830 2011-02-21 Tom Tromey <tromey@redhat.com>
9831
9832 * breakpoint.c (catch_syscall_command_1): Fix typo.
9833
9834 2011-02-21 Tom Tromey <tromey@redhat.com>
9835
9836 * reverse.c: Include cli-utils.h.
9837 * printcmd.c: Include cli-utils.h.
9838 (string_printf): Use skip_spaces.
9839 * cli/cli-utils.h: New file.
9840 * cli/cli-utils.c: New file.
9841 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9842 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9843 * breakpoint.h (get_number, get_number_or_range): Move to
9844 cli-utils.h.
9845 * breakpoint.c: Include cli-utils.h.
9846 (get_number_trailer, get_number, get_number_or_range)
9847 (ep_skip_leading_whitespace): Move to cli-utils.c.
9848 (create_breakpoint_sal, find_condition_and_thread)
9849 (decode_static_tracepoint_spec, watch_command_1)
9850 (watch_maybe_just_location, ep_parse_optional_if_clause)
9851 (catch_fork_command_1, catch_exec_command_1)
9852 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9853 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9854 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9855 (HFILES_NO_SRCDIR): Add cli-utils.h.
9856 (cli-utils.o): New target.
9857
9858 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9859
9860 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9861 before calling discard_all_inferiors.
9862
9863 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9864
9865 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9866 (struct builtin_opencl_type): Remove.
9867 (builtin_opencl_type): Change return type to "struct type **".
9868 (lookup_opencl_vector_type): Update caller.
9869 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9870 (build_opencl_types): Install plain array of "struct type *"
9871 instead of "struct builtin_opencl_type".
9872
9873 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9874 Ulrich Weigand <uweigand@de.ibm.com>
9875
9876 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9877 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9878 (struct arm_linux_hwbp_cap): New type.
9879 (arm_linux_get_hwbp_cap): New function.
9880 (arm_linux_get_hw_breakpoint_count): Likewise.
9881 (arm_linux_get_hw_watchpoint_count): Likewise.
9882 (arm_linux_can_use_hw_breakpoint): Likewise.
9883 (arm_hwbp_type): New type.
9884 (arm_hwbp_control_t): Likewise.
9885 (struct arm_linux_hw_breakpoint): Likewise.
9886 (struct arm_linux_thread_points): Likewise.
9887 (arm_threads): New global variable.
9888 (arm_linux_find_breakpoints_by_tid): New function.
9889 (arm_hwbp_control_initialize): Likewise.
9890 (arm_hwbp_control_is_enabled): Likewise.
9891 (arm_hwbp_control_disable): Likewise.
9892 (arm_linux_hw_breakpoint_initialize): Likewise.
9893 (arm_linux_get_hwbp_type): Likewise.
9894 (arm_linux_hw_watchpoint_initialize): Likewise.
9895 (arm_linux_hw_breakpoint_equal): Likewise.
9896 (arm_linux_insert_hw_breakpoint1): Likewise.
9897 (arm_linux_remove_hw_breakpoint1): Likewise.
9898 (arm_linux_insert_hw_breakpoint): Likewise.
9899 (arm_linux_remove_hw_breakpoint): Likewise.
9900 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9901 (arm_linux_insert_watchpoint): Likewise.
9902 (arm_linux_remove_watchpoint): Likewise.
9903 (arm_linux_stopped_data_address): Likewise.
9904 (arm_linux_stopped_by_watchpoint): Likewise.
9905 (arm_linux_watchpoint_addr_within_range): Likewise.
9906 (arm_linux_new_thread): Likewise.
9907 (arm_linux_thread_exit): Likewise.
9908 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9909 related target callbacks. Register arm_linux_new_thread and
9910 arm_linux_thread_exit.
9911 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9912 * arm-tdep.c (arm_pc_is_thumb): Make global.
9913 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9914
9915 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9916
9917 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9918 per-frame locations while within a function epilogue.
9919
9920 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9921
9922 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9923 to GNU coding standards.
9924
9925 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9926
9927 Allow use of mingw native on Windows 95 OS.
9928 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9929 (ser_windows_close): Only call CancelIo if function exists.
9930 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9931 to check for existence of CancelIo function in kernel32 DLL.
9932
9933 2011-02-21 Hui Zhu <teawater@gmail.com>
9934
9935 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9936 * ax-gdb.c (gen_printf_expr_callback): New function.
9937 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9938 * ax-general.c (ax_memcpy): New function.
9939 (ax_print): Handle "printf".
9940 (ax_reqs): Ditto.
9941 * ax.h (ax_memcpy): Forward declare.
9942 * common/ax.def (invalid2): Removed.
9943 (printf): New entry.
9944 * printcmd.c (printcmd.h): New include.
9945 (string_printf): New function.
9946 (ui_printf): Removed.
9947 (printf_command): Remove static. Call string_printf.
9948 (eval_command): Call string_printf.
9949 * printcmd.h: New file.
9950 * tracepoint.c (validate_actionline,
9951 encode_actions_1): handle printf_command.
9952
9953 2011-02-19 Michael Snyder <msnyder@vmware.com>
9954
9955 * reverse.c (delete_one_bookmark): Argument is now bookmark
9956 id rather than pointer to bookmark struct.
9957 (delete_bookmark_command): Use get_number_or_range.
9958 (goto_bookmark_command): Parse with get_number instead of strtoul.
9959 (bookmark_1): New function. Print info for one bookmark.
9960 (bookmarks_info): Use get_number_or_range and bookmark_1.
9961
9962 2011-02-18 Michael Snyder <msnyder@vmware.com>
9963
9964 * thread.c (info_threads_command): Re-implement using
9965 get_number_or_range.
9966 (thread_apply_command): Ditto.
9967
9968 2011-02-18 Tom Tromey <tromey@redhat.com>
9969
9970 * common/ax.def: New file.
9971 * ax.h (enum agent_op): Use ax.def.
9972 * ax-general.c (aop_map): Use ax.def.
9973
9974 2011-02-18 Tom Tromey <tromey@redhat.com>
9975
9976 * ax-general.c (aop_map): Add pick and rot.
9977 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9978 <DW_OP_rot>: Implement.
9979 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9980 (ax_pick): Declare.
9981 * ax-general.c (ax_pick): New function.
9982
9983 2011-02-18 Tom Tromey <tromey@redhat.com>
9984
9985 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9986
9987 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9988 Tom Tromey <tromey@redhat.com>
9989
9990 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9991 make_symbol_overload_list_block with NULL BLOCK.
9992 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9993
9994 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9995
9996 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9997 * breakpoint.h (get_number_or_range): Declare.
9998 * printcmd.c (ALL_DISPLAYS): Declare.
9999 (delete_display): Reimplement taking a display pointer.
10000 (undisplay_command): Accept a range of displays to delete, using
10001 get_number_or_range.
10002
10003 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10004
10005 * c-valprint.c (c_val_print): Add embedded_offset to address
10006 for arrays of unspecified length.
10007 * p-valprint.c (pascal_val_print): Likewise.
10008
10009 2011-02-18 Yao Qi <yao@codesourcery.com>
10010
10011 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10012 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10013 (thumb_process_displaced_insn): New.
10014 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10015 call to arm_process_displaced_insn.
10016 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10017
10018 2011-02-17 Tom Tromey <tromey@redhat.com>
10019
10020 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10021 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10022 compile_dwarf_to_ax. No longer static. Call
10023 dwarf2_compile_cfa_to_ax.
10024 (locexpr_tracepoint_var_ref): Update.
10025 (loclist_tracepoint_var_ref): Update.
10026 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10027 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10028 argument; add 'gdbarch' and 'pc'.
10029 (dwarf2_compile_cfa_to_ax): New function.
10030 (dwarf2_frame_cache): Update.
10031
10032 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10033
10034 * ada-lang.c (ada_type_of_array): Fix the size of the array
10035 in the case of an unconstrained packed array.
10036
10037 2011-02-17 Yao Qi <yao@codesourcery.com>
10038
10039 * common/Makefile.in: Add more targets for make.
10040
10041 2011-02-16 Tom Tromey <tromey@redhat.com>
10042
10043 * dwarf2loc.c (unimplemented): Fix typo.
10044
10045 2011-02-16 Tom Tromey <tromey@redhat.com>
10046
10047 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10048 (compile_dwarf_to_ax) <default>: Use unimplemented.
10049 <DW_OP_deref>: Update.
10050 (disassemble_dwarf_expression): Update.
10051 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10052 (decode_locdesc): Update.
10053 * dwarf2expr.h (dwarf_stack_op_name): Update.
10054
10055 2011-02-16 Tom Tromey <tromey@redhat.com>
10056
10057 * ax.h (struct aop_map) <name>: Now const.
10058
10059 2011-02-16 Tom Tromey <tromey@redhat.com>
10060
10061 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10062 than axs_rvalue.
10063
10064 2011-02-16 Yao Qi <yao@codesourcery.com>
10065
10066 * infrun.c (get_displaced_step_closure_by_addr): New.
10067 * inferior.h: Declare it.
10068 * arm-tdep.c: (arm_pc_is_thumb): Call
10069 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10070 returns non-NULL.
10071
10072 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10073 Jan Kratochvil <jan.kratochvil@redhat.com>
10074
10075 gdb/
10076 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10077
10078 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10079 Jan Kratochvil <jan.kratochvil@redhat.com>
10080
10081 * value.c (value_contents_copy_raw): Extend describing comment.
10082 Assert that the destination contents we're overwriting are wholly
10083 available.
10084 (value_contents_copy): Extend describing comment.
10085
10086 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10087 Jan Kratochvil <jan.kratochvil@redhat.com>
10088
10089 * value.c (value_available_contents_eq): Remove redundant local
10090 variables. Fix available contents comparision.
10091 * value.h (value_available_contents_eq): Extend describing
10092 comment.
10093
10094 2011-02-16 Yao Qi <yao@codesourcery.com>
10095
10096 * thread.c (info_threads_command): Add missing i18n markup and remove
10097 trailing newline.
10098
10099 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10100
10101 * breakpoint.c (longjmp_names): New variable.
10102 (struct breakpoint_objfile_data): New type.
10103 (breakpoint_objfile_key): New variable.
10104 (msym_not_found): New variable.
10105 (msym_not_found_p): New predicate.
10106 (get_breakpoint_objfile_data): New function.
10107 (create_overlay_event_breakpoint): Check per-objfile cache for
10108 symbols first.
10109 (create_longjmp_master_breakpoint): Likewise.
10110 (create_std_terminate_master_breakpoint): Likewise.
10111 (create_exception_master_breakpoint): Likewise.
10112 (_initialize_breakpoint): Register per-objfile data key.
10113
10114 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10115
10116 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10117 parameter value.
10118 (create_longjmp_master_breakpoint): Loop over longjmp names.
10119 (create_std_terminate_master_breakpoint): Const-propagate parameter
10120 value.
10121 (update_breakpoints_after_exec): Adjust.
10122 (breakpoint_re_set): Adjust.
10123
10124 2011-02-15 Michael Snyder <msnyder@vmware.com>
10125
10126 * thread.c (info_threads_command): Process arg as thread id,
10127 or list of thread ids.
10128 (thread_find_command): New command.
10129 (_initialize_thread): Document argument for info threads.
10130 Document 'thread find' command.
10131 * NEWS: Document new command "thread find".
10132
10133 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10134
10135 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10136 * aclocal.m4: Regenerated with aclocal-1.11.1.
10137 * common/configure: Regenerate with autoconf-2.64.
10138
10139 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10140
10141 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10142 bool data type to a size of one byte.
10143
10144 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10145 Jan Kratochvil <jan.kratochvil@redhat.com>
10146
10147 * target.c (memory_xfer_live_readonly_partial): Document where to
10148 look for interface description.
10149
10150 2011-02-15 Yao Qi <yao@codesourcery.com>
10151
10152 PR tdep/12352
10153 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10154 order to store PC value on stack instead of text section.
10155
10156 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10157
10158 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10159 the EFP register set size.
10160 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10161 data from the VMX register.
10162 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10163 and write data from/to the VMX register.
10164
10165 2011-02-14 Michael Snyder <msnyder@vmware.com>
10166
10167 * command.h (enum command_class): New class 'no_set_class', for
10168 "show" commands without a corresponding "set" command.
10169 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10170 * copying.c (_initialize_copying): Ditto for "show copying" and
10171 "show warranty".
10172 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10173 "show version".
10174 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10175 which there is no corresponding "set" command (eg. "show copying").
10176
10177 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10178 Jan Kratochvil <jan.kratochvil@redhat.com>
10179
10180 * exec.c (section_table_available_memory): Change `len' parameter
10181 type to ULONGEST.
10182 * exec.h (section_table_available_memory): Ditto.
10183 * value.h (read_value_memory): Rename the `offset' parameter to
10184 `embedded_offset'.
10185
10186 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10187 Jan Kratochvil <jan.kratochvil@redhat.com>
10188
10189 * memrange.c (compare_mem_ranges): Mention sort order in
10190 describing comment.
10191 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10192 * tracepoint.c (traceframe_available_memory): Extend comment to
10193 mention what happens to RESULT when the target does not support
10194 the query.
10195
10196 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10197 Jan Kratochvil <jan.kratochvil@redhat.com>
10198
10199 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10200 range.
10201
10202 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10203
10204 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10205 No longer handle NULL values.
10206
10207 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10208
10209 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10210 * value.c: Include "exceptions.h".
10211 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10212 generic error.
10213 * cp-abi.c: Include gdb_assert.h.
10214 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10215 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10216 errors.
10217 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10218 parameters. No longer returns -1 on error.
10219 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10220 `val' parameters.
10221 * cp-valprint.c: Include exceptions.h.
10222 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10223 the baseclass_offset. Handle unavailable base classes. Use
10224 val_print_invalid_address.
10225 * p-valprint.c: Include exceptions.h.
10226 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10227 when fetching the baseclass_offset. No longer expect
10228 baseclass_offset returning -1. Handle unavailable base classes.
10229 Use val_print_invalid_address.
10230 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10231 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10232 `embedded_offset' and `val' parameters. Adjust.
10233 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10234 parameter, and change its type to gdb_byte pointer. Add
10235 `embedded_offset' and `val' parameters. Adjust. No longer expect
10236 baseclass_offset returning -1.
10237 (value_dynamic_cast): Use value_contents_for_printing rather than
10238 value_contents. Adjust.
10239 (search_struct_field): No longer expect baseclass_offset returning
10240 -1.
10241 (search_struct_method): If reading memory from the target is
10242 necessary, wrap it in a new value to pass to baseclass_offset. No
10243 longer expect baseclass_offset returning -1.
10244 (find_method_list): No longer expect baseclass_offset returning
10245 -1. Use value_contents_for_printing rather than value_contents.
10246 * valprint.c (val_print_invalid_address): New function.
10247 * valprint.h (val_print_invalid_address): Declare.
10248 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10249 and `val' parameters. No longer expect baseclass_offset returning
10250 -1. Adjust.
10251 * gnu-v2-abi.c: Include "exceptions.h".
10252 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10253 parameters. Handle unavailable memory. Recurse through
10254 gnuv2_baseclass_offset directly, rather than through
10255 baseclass_offset. No longer returns -1 on not found, instead
10256 throw an error.
10257 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10258 `val' parameters. Adjust.
10259
10260 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10261
10262 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10263 almost but not quite adjacent.
10264
10265 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10266
10267 * value.h (value_entirely_available): Declare.
10268 * value.c (value_entirely_available): New function.
10269 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10270 real type if the pointer is unavailable.
10271
10272 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10273
10274 * valops.c (value_repeat): Use read_value_memory instead of
10275 read_memory.
10276
10277 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10278
10279 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10280 * value.c (value_contents_copy_raw, value_contents_copy): New
10281 functions.
10282 (value_primitive_field): Use value_contents_copy_raw instead of
10283 memcpy.
10284 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10285 memcpy.
10286 (value_array, value_slice): Ditto.
10287 * valarith.c (value_subscripted_rvalue): Use
10288 value_contents_copy_raw instead of memcpy.
10289
10290 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10291
10292 <unavailable> references.
10293
10294 * valops.c (get_value_at): Use value_from_contents_and_address,
10295 avoiding read_memory.
10296
10297 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10298
10299 * c-valprint.c (c_val_print): Print a string with unavailable
10300 contents as an array.
10301
10302 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10303
10304 * value.h (unpack_bits_as_long): Delete declaration.
10305 (unpack_value_bits_as_long): Declare.
10306 (unpack_value_field_as_long): Declare.
10307 (value_field_bitfield): Declare.
10308 * value.c (unpack_bits_as_long): Rename to...
10309 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10310 value parameters. Return the extracted result in a new output
10311 parameter. If the value contents are unavailable, return false,
10312 otherwise return true.
10313 (unpack_value_bits_as_long): New.
10314 (unpack_field_as_long): Rename to...
10315 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10316 Add embedded_offset and value parameters. Return the extracted
10317 result in a new output parameter. If the value contents are
10318 unavailable, return false, otherwise return true.
10319 (unpack_value_field_as_long): New.
10320 (unpack_field_as_long_1): New.
10321 (unpack_field_as_long): Reimplement as wrapper around
10322 unpack_value_field_as_long_1.
10323 (value_field_bitfield): New function.
10324 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10325 unpack_value_bits_as_long. Mark the value as unavailable, if it
10326 is unavailable.
10327 * jv-valprint.c (java_print_value_fields): Use
10328 value_field_bitfield.
10329 * p-valprint.c (pascal_object_print_value_fields): Use
10330 value_field_bitfield.
10331 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10332
10333 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10334
10335 * value.c (get_internalvar_integer): Also return the int value of
10336 TYPE_CODE_INT INTERNALVAR_VALUE values.
10337 (set_internalvar): Don't special case TYPE_CODE_INT.
10338
10339 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10340
10341 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10342 INTERNALVAR_POINTER.
10343 <pointer>: Delete.
10344 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10345 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10346 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10347
10348 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10349
10350 * value.h (value_available_contents_eq): Declare.
10351 * value.c (find_first_range_overlap): New function.
10352 (value_available_contents_eq): New function.
10353 * valprint.c (val_print_array_elements): Use
10354 value_available_contents_eq.
10355 * ada-valprint.c (val_print_packed_array_elements): Use
10356 value_available_contents_eq.
10357 * jv-valprint.c (java_value_print): Use
10358 value_available_contents_eq.
10359
10360 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10361
10362 * target.c (target_read_live_memory): New function.
10363 (memory_xfer_live_readonly_partial): New.
10364 (memory_xfer_partial): If reading from a traceframe, fallback to
10365 reading unavailable read-only memory from read-only regions of
10366 live target memory.
10367 * tracepoint.c (disconnect_tracing): Adjust.
10368 (set_current_traceframe): New, factored out from
10369 set_traceframe_number.
10370 (set_traceframe_number): Reimplement to only change the traceframe
10371 number on the GDB side.
10372 (do_restore_current_traceframe_cleanup): Adjust.
10373 (make_cleanup_restore_traceframe_number): New.
10374 (cur_traceframe_number): New global.
10375 (tfile_open): Set cur_traceframe_number to no traceframe.
10376 (set_tfile_traceframe): New function.
10377 (tfile_trace_find): If looking up a traceframe using any method
10378 other than by number, make sure the current tfile traceframe
10379 matches gdb's current traceframe. Update the current tfile
10380 traceframe if the lookup succeeded.
10381 (tfile_fetch_registers, tfile_xfer_partial)
10382 (tfile_get_trace_state_variable_value): Make sure the remote
10383 traceframe matches gdb's current traceframe.
10384 * remote.c (remote_traceframe_number): New global.
10385 (remote_open_1): Set it to -1.
10386 (set_remote_traceframe): New function.
10387 (remote_fetch_registers, remote_store_registers)
10388 (remote_xfer_memory, remote_xfer_partial)
10389 (remote_get_trace_state_variable_value): Make sure the remote
10390 traceframe matches gdb's current traceframe.
10391 (remote_trace_find): If looking up a traceframe using any method
10392 other than by number, make sure the current remote traceframe
10393 matches gdb's current traceframe. Update the current remote
10394 traceframe if the lookup succeeded.
10395 * infrun.c (fetch_inferior_event): Adjust.
10396 * tracepoint.h (set_current_traceframe): Declare.
10397 (get_traceframe_number, set_traceframe_number): Add describing
10398 comments.
10399
10400 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10401
10402 Mark pieces of values as unavailable if the corresponding memory
10403 is unavailable.
10404
10405 * valops.c: Include tracepoint.h.
10406 (value_fetch_lazy): Use read_value_memory.
10407 (read_value_memory): New.
10408 * value.h (read_value_memory): Declare.
10409 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10410 * exec.c (section_table_available_memory): New function.
10411 * exec.h (section_table_available_memory): Declare.
10412
10413 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10414
10415 * Makefile.in (SFILES): Add memrange.c.
10416 (HFILES_NO_SRCDIR): Add memrange.h.
10417 (COMMON_OBS): Add memrange.o.
10418 * memrange.c: New file.
10419 * memrange.h: New file.
10420 * tracepoint.c: Include memrange.h.
10421 (struct mem_range): Delete.
10422 (mem_range_s): Delete.
10423 (traceframe_available_memory): New function.
10424 * tracepoint.h (traceframe_available_memory): Declare.
10425
10426 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10427
10428 * target.h (struct traceframe_info): Forward declare.
10429 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10430 (struct target_ops) <to_traceframe_info>: New field.
10431 (target_traceframe_info): New.
10432 * target.c (update_current_target): Inherit and default
10433 to_traceframe_info.
10434 * remote.c (PACKET_qXfer_traceframe_info): New.
10435 (remote_protocol_features): Register qXfer:traceframe-info:read.
10436 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10437 (remote_traceframe_info): New.
10438 (init_remote_ops): Install it.
10439 (_initialize_remote): Install "set/show remote traceframe-info"
10440 commands.
10441 * tracepoint.h (parse_traceframe_info): Declare.
10442 * tracepoint.c (struct mem_range): New.
10443 (mem_range_s): New typedef.
10444 (struct traceframe_info): New.
10445 (traceframe_info): New global.
10446 (free_traceframe_info): New function.
10447 (clear_traceframe_info): New function.
10448 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10449 info.
10450 (build_traceframe_info): New function.
10451 (tfile_traceframe_info): New function.
10452 (init_tfile_ops): Install tfile_traceframe_info.
10453 (traceframe_info_start_memory, free_result): New functions.
10454 (memory_attributes, traceframe_info_elements): New globals.
10455 (parse_traceframe_info, get_traceframe_info): New functions.
10456 * features/traceframe-info.dtd: New file.
10457 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10458
10459 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10460
10461 Base support for <unavailable> value contents.
10462
10463 * value.h (value_bytes_available): Declare.
10464 (mark_value_bytes_unavailable): Declare.
10465 * value.c (struct range): New struct.
10466 (range_s): New typedef.
10467 (ranges_overlap): New function.
10468 (range_lessthan): New function.
10469 (ranges_contain_p): New function.
10470 (struct value) <unavailable>: New field.
10471 (value_bytes_available): New function.
10472 (mark_value_bytes_unavailable): New function.
10473 (require_not_optimized_out): Constify parameter.
10474 (require_available): New function.
10475 (value_contents_all, value_contents): Require all bytes be
10476 available.
10477 (value_free): Free `unavailable'.
10478 (value_copy): Copy `unavailable'.
10479 * valprint.h (val_print_unavailable): Declare.
10480 * valprint.c (valprint_check_validity): Rename `offset' parameter
10481 to `embedded_offset'. If printing a scalar, check whether the
10482 value chunk is available.
10483 (val_print_unavailable): New.
10484 (val_print_scalar_formatted): Check whether the value is
10485 available.
10486 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10487 pretty-printing unavailable values.
10488
10489 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10490
10491 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10492 * c-typeprint.c (c_type_print_args): Update the function comment. New
10493 variable param_type, initialize it. Remove const/volatile qualifiers
10494 for language_cplus and !show_artificial. Use param_type.
10495
10496 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10497
10498 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10499 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10500 * symtab.h (struct symtab) <next>: Comment extension.
10501
10502 2011-02-12 Yao Qi <yao@codesourcery.com>
10503
10504 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10505
10506 2011-02-11 Yao Qi <yao@codesourcery.com>
10507
10508 * common/Makefile.in: Add copyright header.
10509
10510 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10511
10512 * infrun.c (proceed): Move switching out and in of tfind mode from
10513 here ...
10514 (fetch_inferior_event): ... to here.
10515
10516 2011-02-11 Yao Qi <yao@codesourcery.com>
10517
10518 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10519 libcommon.a.
10520 * configure.ac: Add common to sub dir.
10521 * configure: Regenerate.
10522
10523 2011-02-11 Yao Qi <yao@codesourcery.com>
10524
10525 Build libcommon.a.
10526
10527 * common/Makefile.in: New.
10528 * common/configure.ac: New.
10529 * common/aclocal.m4: New.
10530 * common/configure: Generate.
10531
10532 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10533
10534 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10535 side of the parenthesis.
10536
10537 Merge from GCC:
10538 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10539 * vec.h (VEC_block_remove): Fix comment.
10540
10541 2011-02-08 Michael Snyder <msnyder@vmware.com>
10542
10543 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10544
10545 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10546
10547 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10548 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10549 psubd and paddd.
10550
10551 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10552
10553 PR 12361.
10554 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10555 phsubsw.
10556 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10557 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10558
10559 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10560
10561 * dwarf2read.c (read_subroutine_type): Set special calling
10562 convention flag for functions compiled by IBM XL C for OpenCL.
10563 * ppc-sysv-tdep.c: Include "dwarf2.h"
10564 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10565 calling convention.
10566 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10567 IBM OpenCL vector types calling convention.
10568 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10569 (ppc_sysv_abi_broken_return_value): Likewise.
10570 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10571 types calling convention.
10572 (ppc64_sysv_abi_return_value): Likewise.
10573 * spu-tdep.c: Include "dwarf2.h"
10574 (spu_return_value): Implement IBM OpenCL vector types calling
10575 convention.
10576
10577 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10578
10579 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10580 correct ABI for AltiVec vector arguments.
10581
10582 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10583
10584 * valprint.c (val_print): Extend comment.
10585 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10586 interface explanation to val_print.
10587 (ada_val_print_array): Adjust comment to current interface.
10588 (print_field_values): Adjust comment to current interface.
10589 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10590 explanation to val_print.
10591 * f-valprint.c (f_val_print): Ditto.
10592 * jv-valprint.c (java_val_print): Ditto.
10593 * m2-valprint.c (m2_val_print): Ditto.
10594 * p-valprint.c (pascal_val_print): Ditto.
10595
10596 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10597
10598 * breakpoint.c (parse_breakpoint_sals): Fix description.
10599
10600 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10601 Oguz Kayral <oguzkayral@gmail.com>
10602
10603 * python/py-inferior.c (python_on_normal_stop): New function.
10604 (python_on_resume): New function.
10605 (python_inferior_exit): New function.
10606 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10607 inferior_exit observers.
10608 * python/py-evtregistry.c: New file.
10609 * python/py-threadevent.c : New file.
10610 * python/py-event.c: New file.
10611 * python/py-evts.c: New file.
10612 * python/py-continueevent.c: New file.
10613 * python/py-bpevent.c: New file.
10614 * python/py-signalevent.c: New file.
10615 * python/py-exetiedevent.c: New file.
10616 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10617 Move struct breakpoint_object from here...
10618 * python/python-internal.h: ... to here.
10619 * python/py-event.h: New file.
10620 * python/py-events.h: New file.
10621 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10622 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10623 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10624 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10625 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10626 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10627 Add build rules for all the above.
10628
10629 2011-02-04 Tom Tromey <tromey@redhat.com>
10630
10631 * dwarf2read.c (dwarf2_section_empty_p): New function.
10632 (dwarf2_read_section): Use dwarf2_section_empty_p.
10633 (dwarf2_section_size): New function.
10634 (dwarf2_get_section_info): Unconditionally read section.
10635 (dwarf2_read_index): Use dwarf2_section_empty_p.
10636 (partial_read_comp_unit_head): Use dwarf2_section_size.
10637 (dwarf2_symbol_mark_computed): Likewise.
10638
10639 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10640
10641 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10642
10643 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10644
10645 * mips-linux-tdep.c: Include xml-syscall.h.
10646 (mips_linux_get_syscall_number): New function.
10647 (mips_linux_init_abi): Add calls to
10648 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10649 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10650 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10651 * syscalls/mips-n32-linux.xml: New file.
10652 * syscalls/mips-n64-linux.xml: New file.
10653 * syscalls/mips-o32-linux.xml: New file.
10654
10655 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10656
10657 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10658 Complain about inverted range entries.
10659 (dwarf2_record_block_ranges): Likewise.
10660
10661 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10662
10663 Fix some typos.
10664 * breakpoint.c (update_watchpoint): Fix name of the
10665 update_global_location_list function.
10666 (print_one_breakpoint): Fix typo.
10667 (_initialize_breakpoint): Remove extra space in hbreak help
10668 string.
10669 * breakpoint.h (struct bp_location) <length>: Fix field
10670 description.
10671
10672 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10673
10674 * regcache.c (registers_changed_ptid): Don't explictly always
10675 clear `current_regcache'. Only clear current_thread_ptid and
10676 current_thread_arch when PTID matches. Only reinit the frame
10677 cache if PTID matches the current inferior_ptid. Move alloca(0)
10678 call to ...
10679 (registers_changed): ... here.
10680
10681 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10682
10683 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10684 starts with __stack_chk_guard as stack guard symbol.
10685
10686 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10687
10688 * disasm.c (compare_lines): Handle the end of sequence markers
10689 within the line table to better support disassembling over
10690 compilation unit boundaries.
10691
10692 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10693
10694 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10695 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10696 implementation even if no symbols are available.
10697 (thumb_analyze_prologue): Update call to skip_prologue_function.
10698 (arm_analyze_prologue): Likewise.
10699
10700 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10701
10702 * arm-tdep.c: Include "observer.h".
10703 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10704 (arm_exidx_data_key): New static variable.
10705 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10706 (struct arm_exidx_data): Likewise.
10707 (arm_exidx_data_free): New function.
10708 (arm_compare_exidx_entries): Likewise.
10709 (arm_obj_section_from_vma): Likewise.
10710 (arm_exidx_new_objfile): Likewise.
10711 (arm_find_exidx_entry): Likewise.
10712 (arm_exidx_fill_cache): Likewise.
10713 (arm_exidx_unwind_sniffer): Likewise.
10714 (arm_exidx_unwind): New global variable.
10715 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10716 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10717 observer. Register arm_exidx_data_key as objfile data.
10718
10719 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10720
10721 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10722 due to accessing uninitialized variable. Fix indentation.
10723
10724 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10725
10726 * c-valprint.c (c_value_print): When doing virtual base pointer
10727 adjustment, create a new value with adjusted contents rather than
10728 changing the contents of the value being printed (and getting it
10729 wrong).
10730
10731 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10732
10733 * xml-support.c (xml_find_attribute): New.
10734 (xinclude_start_include): Use it.
10735 * xml-support.h (xml_find_attribute): Declare.
10736 * memory-map.c (memory_map_start_memory)
10737 (memory_map_start_property): Use xml_find_attribute.
10738 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10739 xml_find_attribute.
10740 * remote.c (start_thread): Use xml_find_attribute.
10741 * solib-target.c (library_list_start_segment)
10742 (library_list_start_section, library_list_start_library)
10743 (library_list_start_list): Use xml_find_attribute.
10744 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10745 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10746 (tdesc_start_field): Use xml_find_attribute.
10747
10748 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10749
10750 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10751 (BUILD_OCL_VTYPES): Update.
10752
10753 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10754
10755 * configure.ac: Work around non-GNU sed limitation when computing
10756 python version number.
10757 * configure: Regenerate.
10758
10759 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10760
10761 Fix debug printing of TYPE_INSTANCE.
10762 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10763 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10764
10765 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10766
10767 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10768 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10769 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10770 * ada-operator.inc: Rename the file to ...
10771 * ada-operator.def: ... here, wrap all the entries by macro OP.
10772 * expprint.c (op_name_standard): Remove all the entries. Include
10773 "std-operator.def" instead.
10774 * expression.h (enum exp_opcode): Include "std-operator.def" and
10775 "ada-operator.def". Move all the entries ...
10776 * std-operator.def: ... here, wrap all the entries by macro OP.
10777
10778 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10779
10780 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10781 * breakpoint.c (remove_jit_event_breakpoints): New function.
10782 * jit.c (jit_descriptor_addr): Delete.
10783 (registering_code): Delete.
10784 (clear_int): Delete.
10785 (jit_inferior_data): New variable.
10786 (struct jit_inferior_data): New type.
10787 (get_jit_inferior_data): New function.
10788 (jit_inferior_data_cleanup): New function.
10789 (jit_read_descriptor): Adjust.
10790 (jit_register_code): Adjust.
10791 (jit_breakpoint_re_set_internal): New function; move code here ...
10792 (jit_inferior_init): ... from here.
10793 (jit_breakpoint_re_set): Adjust.
10794 (jit_reset_inferior_data_and_breakpoints): New function.
10795 (jit_inferior_created_observer): Adjust.
10796 (jit_inferior_exit_hook): Adjust.
10797 (jit_executable_changed_observer): New function.
10798 (jit_event_handler): Adjust.
10799 (_initialize_jit): Adjust.
10800
10801 2011-01-31 Michael Snyder <msnyder@vmware.com>
10802
10803 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10804 line.
10805
10806 2011-01-31 Tom Tromey <tromey@redhat.com>
10807
10808 PR python/12216:
10809 * python/python.c (execute_gdb_command): Call
10810 prevent_dont_repeat.
10811 * top.c (suppress_dont_repeat): New global.
10812 (dont_repeat): Use it.
10813 (prevent_dont_repeat): New function.
10814 * command.h (prevent_dont_repeat): Declare.
10815
10816 2011-01-31 Tom Tromey <tromey@redhat.com>
10817
10818 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10819 * python/py-breakpoint.c (bppy_set_silent): Use
10820 breakpoint_set_silent.
10821 (bppy_set_thread): Use breakpoint_set_thread.
10822 (bppy_set_task): Use breakpoint_set_task.
10823 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10824 (breakpoint_set_task): Declare.
10825 (make_breakpoint_silent): Remove.
10826 * breakpoint.c (breakpoint_set_silent): New function.
10827 (breakpoint_set_thread): Likewise.
10828 (breakpoint_set_task): Likewise.
10829 (make_breakpoint_silent): Remove.
10830
10831 2011-01-31 Tom Tromey <tromey@redhat.com>
10832
10833 * breakpoint.h (user_breakpoint_p): Declare.
10834 * breakpoint.c (user_breakpoint_p): New function.
10835 (breakpoint_1): Use it.
10836 (save_breakpoints): Likewise.
10837
10838 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10839
10840 * configure.ac: Add handling of Python distribution on Windows.
10841 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10842 sysconfig variables are not defined, then do not use them.
10843 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10844 instead. On Windows, return all paths using forward-slashes
10845 rather than backslashes.
10846
10847 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10848
10849 * configure.ac: Remove fallback behavior for building
10850 against Python. Remove tweaking of Python include path.
10851 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10852 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10853 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10854 Always restore CPPFLAGS and LIBS after linking test.
10855 * configure: Regenerated.
10856 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10857 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10858 * python/python-internal.h: Adjust includes of Python .h files.
10859
10860 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10861
10862 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10863 in error message.
10864
10865 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10866
10867 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10868 value test.
10869
10870 2011-01-31 Yao Qi <yao@codesourcery.com>
10871
10872 * arm-linux-nat.c: Update calls to regcache_register_status
10873 instead of regcache_valid_p.
10874 * aix-thread.c: Likewise.
10875 * i386gnu-nat.c: Likewise.
10876
10877 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10878
10879 Fix crash.
10880 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10881 touching TYPE_FIELD_ARTIFICIAL.
10882
10883 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10884
10885 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10886 Committers.
10887
10888 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10889
10890 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10891 selected, don't try iterating over the traceframe's blocks.
10892 (tfile_has_stack): If there's no traceframe selected, then there's
10893 no stack.
10894 (tfile_has_registers): If there's no traceframe selected, then
10895 there's no registers.
10896
10897 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10898
10899 * target.c (memory_xfer_partial): No need to restore shadows if we
10900 haven't read anything.
10901
10902 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10903
10904 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10905 and val_print_scalar_formatted.
10906
10907 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10908
10909 * tracepoint.c (tfile_read): New.
10910 (tfile_open): Use it.
10911 (tfile_get_traceframe_address): Use it.
10912 (tfile_trace_find): Use it.
10913 (walk_blocks_callback_func): New typedef.
10914 (match_blocktype): New function.
10915 (traceframe_walk_blocks): New function.
10916 (traceframe_find_block_type): New function.
10917 (tfile_fetch_registers, tfile_xfer_partial)
10918 (tfile_get_trace_state_variable_value): Use
10919 traceframe_find_block_type and tfile_read.
10920
10921 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10922
10923 * remote-mips.c: Add internationalization mark ups. Remove
10924 trailing \n from already marked up strings.
10925
10926 2011-01-26 Tom Tromey <tromey@redhat.com>
10927
10928 * python/py-prettyprint.c (print_string_repr): Clear
10929 'addressprint' option when calling val_print_string.
10930 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10931 option when calling val_print_string.
10932
10933 2011-01-26 Tom Tromey <tromey@redhat.com>
10934
10935 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10936 GDB_PY_LL_ARG.
10937 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10938 macros.
10939 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10940 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10941 (gdb_py_long_as_ulongest): New defines.
10942 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10943 (gdb_py_int_as_long): Declare.
10944 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10945 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10946 (valpy_long): Add comment.
10947 * python/py-utils.c (get_addr_from_python): Use
10948 gdb_py_long_as_ulongest. Handle overflow properly.
10949 (gdb_py_object_from_longest): New function.
10950 (gdb_py_object_from_ulongest): Likewise.
10951 (gdb_py_int_as_long): Likewise.
10952 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10953 * python/py-symtab.c (salpy_get_pc): Use
10954 gdb_py_long_from_ulongest.
10955 (salpy_get_line): Use PyInt_FromLong.
10956 * python/py-param.c (set_parameter_value): Use
10957 gdb_py_int_as_long.
10958 * python/py-lazy-string.c (stpy_get_address): Use
10959 gdb_py_long_from_ulongest.
10960 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10961 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10962 * python/py-breakpoint.c (bppy_set_thread): Use
10963 gdb_py_int_as_long.
10964 (bppy_set_task): Likewise.
10965 (bppy_set_ignore_count): Likewise.
10966 (bppy_set_hit_count): Likewise.
10967 * python/py-block.c (blpy_get_start): Use
10968 gdb_py_object_from_ulongest.
10969 (blpy_get_end): Likewise.
10970 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10971
10972 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10973
10974 PR/symtab 11766:
10975 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10976 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10977 equality test for objfile, initialize addr_low if needed.
10978
10979 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10980
10981 * tui/tui-regs.c (tui_register_format): Remove dead code.
10982
10983 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10984
10985 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10986 instead of print_scalar_formatted.
10987 (print_scalar_formatted): Don't handle 's' format strings here,
10988 and add an assertion that we never see such format here.
10989 * valprint.h (val_print_scalar_formatted): Declare.
10990 * valprint.c (val_print_scalar_formatted): New.
10991 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10992 instead of print_scalar_formatted.
10993 * jv-valprint.c (java_val_print): Ditto.
10994 * p-valprint.c (pascal_val_print): Ditto.
10995 * ada-valprint.c (ada_val_print_1): Ditto.
10996 * f-valprint.c (f_val_print): Ditto.
10997 * infcmd.c (registers_info): Ditto.
10998 * m2-valprint.c (m2_val_print): Ditto.
10999
11000 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11001
11002 * m2-valprint.c (print_unbounded_array): Pass
11003 value_contents_for_printing rather than value_contents, to
11004 m2_print_array_contents. Also pass in the value.
11005
11006 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11007
11008 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11009 (save_gdb_index_command): Switch to .gdb_index version 4.
11010
11011 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11012
11013 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11014 than frame_register, and always pass a valid value to val_print.
11015
11016 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11017
11018 Centralize printing "<optimized out>".
11019
11020 * valprint.h (val_print_optimized_out): Declare.
11021 * cp-valprint.c (cp_print_value_fields): Use
11022 val_print_optimized_out.
11023 * jv-valprint.c (java_print_value_fields): Ditto.
11024 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11025 * printcmd.c (print_formatted): Ditto.
11026 * valprint.c (valprint_check_validity): Ditto.
11027 (value_check_printable): Ditto.
11028 (val_print_optimized_out): New.
11029
11030 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11031
11032 * infcmd.c (default_print_registers_info): Allocate values so to
11033 never pass a NULL value to val_print.
11034
11035 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11036
11037 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11038 boolean. Make sure to always pass a value that matches the
11039 contents buffer to callees. Preserve `address' for following
11040 iterations.
11041 * value.c (value_contents_for_printing_const): New.
11042 (value_address): Constify value argument.
11043 * value.h (value_contents_for_printing_const): Declare.
11044 (value_address): Constify value argument.
11045
11046 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11047
11048 * regcache.c (struct regcache_descr): Rename
11049 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11050 and sizeof_cooked_register_valid_p to
11051 sizeof_cooked_register_status.
11052 (init_regcache_descr): Adjust.
11053 (struct regcache): Rename register_valid_p field to
11054 register_status.
11055 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11056 (do_cooked_read): Adjust.
11057 (regcache_valid_p): Rename to ...
11058 (regcache_register_status): ... this. Adjust.
11059 (regcache_invalidate): Adjust.
11060 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11061 Adjust.
11062 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11063 as unavailable, not valid.
11064 (regcache_dump): Adjust.
11065 * regcache.h (enum register_status): New.
11066 (regcache_register_status): Declare.
11067 (regcache_invalidate): Delete declaration.
11068 * corelow.c (get_core_registers): Adjust.
11069 * tracepoint.c (tfile_fetch_registers): Adjust.
11070 * trad-frame.c (REG_VALUE): Rename to ...
11071 (TF_REG_VALUE): ... this.
11072 (REG_UNKNOWN): Rename to ...
11073 (TF_REG_UNKNOWN): ... this.
11074 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11075 * mi/mi-main.c (register_changed_p): Adjust.
11076
11077 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11078
11079 * regcache.c (struct regcache_descr): Remove outdated comment.
11080 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11081 overallocate hack.
11082 (regcache_xmalloc): Rename to ...
11083 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11084 Allocate the regcache type accordingly.
11085 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11086 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11087 cooked registers, not raw.
11088 (regcache_dup_no_passthrough): Delete.
11089 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11090 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11091 mention obsolete write_register_bytes.
11092 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11093
11094 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11095
11096 Stop remote_read_bytes from handling partial reads itself.
11097
11098 * remote-fileio.c: Include target.h.
11099 (remote_fileio_write_bytes): Delete.
11100 (remote_fileio_func_open, remote_fileio_func_write)
11101 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11102 target_read_memory.
11103 (remote_fileio_func_stat): Use target_read_memory and
11104 target_write_memory.
11105 (remote_fileio_func_gettimeofday): Use target_write_memory.
11106 (remote_fileio_func_system): Use target_read_memory.
11107 * remote.c (remote_write_bytes): Make it static.
11108 (remote_read_bytes): Don't handle partial reads here.
11109 * remote.h (remote_read_bytes): Delete declaration.
11110
11111 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11112
11113 Simplify XML parsing a bit.
11114
11115 * xml-support.h (gdb_xml_parse_quick): Declare.
11116 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11117 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11118 parameter.
11119 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11120 gdb_xml_create_parser_and_cleanup_1.
11121 (gdb_xml_parse_quick): New.
11122 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11123 * osdata.c (osdata_parse): Ditto.
11124 * remote.c (remote_threads_info): Ditto.
11125 * solib-target.c (solib_target_parse_libraries): Ditto.
11126 * xml-syscall.c (syscall_parse_xml): Ditto.
11127 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11128
11129 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11130
11131 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11132 with remote-mips.o added to gdb_target_obs.
11133 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11134
11135 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11136
11137 * ada-valprint.c (val_print_packed_array_elements): Pass the
11138 correct struct value to val_print.
11139 (ada_val_print_1): Ditto.
11140
11141 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11142
11143 Don't lose embedded_offset in printing routines throughout.
11144
11145 * valprint.h (val_print_array_elements): Change prototype.
11146 * valprint.c (val_print_array_elements): Add `embedded_offset'
11147 parameter, and adjust to pass it down to val_print, while passing
11148 `valaddr' or `address' unmodified. Take embedded_offset into
11149 account when checking repetitions.
11150 * c-valprint.c (c_val_print): Pass embedded_offset to
11151 val_print_array_elements instead of adjusting `valaddr' and
11152 `address'.
11153 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11154 embedded_offset to val_print_array_elements instead of adjusting
11155 `valaddr'.
11156 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11157 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11158 val_print_array_elements and pascal_object_print_value_fields
11159 instead of adjusting `valaddr'.
11160 (pascal_object_print_value_fields): Add `offset' parameter, and
11161 adjust to use it.
11162 (pascal_object_print_value): Add `offset' parameter, and adjust to
11163 use it.
11164 (pascal_object_print_static_field): Use
11165 value_contents_for_printing/value_embedded_offset, rather than
11166 value_contents.
11167 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11168 parameter, and adjust to use it. Use
11169 value_contents_for_printing/value_embedded_offset, rather than
11170 value_contents.
11171 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11172 (ada_val_print_array): Add `offset' parameter, and adjust to use
11173 it.
11174 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11175 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11176 Instead work with offsets. Use
11177 value_contents_for_printing/value_embedded_offset, rather than
11178 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11179 and use value_from_pointer to extract a target pointer, rather
11180 than value_from_longest.
11181 (print_variant_part): Add `offset' parameter. Replace
11182 `outer_valaddr' parameter by a new `outer_offset' parameter.
11183 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11184 (ada_value_print): Use
11185 value_contents_for_printing/value_embedded_offset, rather than
11186 value_contents.
11187 (print_record): Add `offset' parameter, and adjust to pass it
11188 down.
11189 (print_field_values): Add `offset' parameter. Replace
11190 `outer_valaddr' parameter by a new `outer_offset' parameter.
11191 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11192 Use value_contents_for_printing/value_embedded_offset, rather than
11193 value_contents.
11194 * d-valprint.c (dynamic_array_type): Use
11195 value_contents_for_printing/value_embedded_offset, rather than
11196 value_contents.
11197 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11198 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11199 (java_print_value_fields): Take `offset' into account. Don't
11200 re-adjust `valaddr'. Instead pass down adjusted offsets.
11201 (java_val_print): Take `embedded_offset' into account. Pass it to
11202 java_print_value_fields.
11203 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11204 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11205 down adjusted offsets.
11206 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11207 (f_val_print): Take `embedded_offset' into account.
11208
11209 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11210
11211 * inflow.c: Include "gdbcmd.h".
11212 (interactive_mode): New static global, moved here from top.c.
11213 (show_interactive_mode): New function, moved here from top.c.
11214 use gdb_has_a_terminal instead of input_from_terminal_p to
11215 determine the current mode.
11216 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11217 setting.
11218 (_initialize_inflow): Add the "set/show interactive-mode"
11219 commands. Moved here from top.c, after having adjusted slightly
11220 the help text.
11221 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11222 to inflow.c.
11223 (input_from_terminal_p): Remove handling of "interactive-mode"
11224 setting, moved to infow.c.
11225 (init_main): Remove creation of the "set/show interactive-mode"
11226 commands, moved to inflow.c.
11227
11228 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11229
11230 * NEWS: Add entry for native ia64-hpux support.
11231
11232 2011-01-19 Tom Tromey <tromey@redhat.com>
11233
11234 PR mi/8618:
11235 * thread.c (free_thread): Free 'name'.
11236 (print_thread_info): Emit thread name. Change CLI output.
11237 (thread_name_command): New function.
11238 (do_captured_thread_select): Emit newline.
11239 (_initialize_thread): Register 'thread name' command.
11240 * target.h (struct target_ops) <to_thread_name>: New field.
11241 (target_thread_name): New macro.
11242 * target.c (update_current_target): Handle to_thread_name.
11243 * python/py-infthread.c (thpy_get_name): New function.
11244 (thpy_set_name): Likewise.
11245 (thread_object_getset): Add "name".
11246 * linux-nat.c (linux_nat_thread_name): New function.
11247 (linux_nat_add_target): Set to_thread_name.
11248 * gdbthread.h (struct thread_info) <name>: New field.
11249
11250 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11251
11252 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11253 (ada_val_print_1): Likewise.
11254
11255 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11256
11257 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11258 upper limit address is not greater than the function end address
11259 when the upper limit could not be computed using the debugging
11260 info.
11261
11262 2011-01-17 Tom Tromey <tromey@redhat.com>
11263
11264 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11265 get_regcomp_error.
11266 * utils.c: Include gdb_regex.h.
11267 (do_regfree_cleanup): New function.
11268 (make_regfree_cleanup): Likewise.
11269 (get_regcomp_error): Likewise.
11270 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11271
11272 2011-01-17 Tom Tromey <tromey@redhat.com>
11273
11274 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11275 re_compile_fastmap.
11276
11277 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11278
11279 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11280 for internal variables.
11281 (last_was_structop): New static variable.
11282 (COMPLETE): New token.
11283 (field_exp): New rule to group all '.' suffix handling.
11284 Add mark_struct_expression calls when approriate to be able
11285 to correctly find fields for completion.
11286 (yylex): Adapt to handle field completion and set INTVAR when
11287 required.
11288
11289 2011-01-14 Yao Qi <yao@codesourcery.com>
11290
11291 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11292 save_reggroup, restore_reggroup and all_reggroup.
11293
11294 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11295
11296 * ada-valprint. (ada_printchar): Use the correct type length
11297 in call to ada_emit_char.
11298 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11299
11300 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11301
11302 * solib-som.h (hpux_major_release): Declare variable here.
11303 * solib-som.c: Remove <sys/utsname.h> header.
11304 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11305 (hpux_major_release): Make global, change default value to
11306 DEFAULT_HPUX_MAJOR_RELEASE.
11307 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11308 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11309 Add "solib-som.h" header.
11310 (set_hpux_major_release): New function.
11311 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11312
11313 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11314
11315 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11316
11317 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11318
11319 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11320 new-line at end of warning message.
11321 (ia64_hpux_store_register): Remove trailing new-line at end of
11322 error message.
11323 * ia64-hpux-tdep.c: Rephrase comment.
11324 * solib-ia64-hpux.c (struct dld_info): Change type of field
11325 dld_flags from "long long" to ULONGEST.
11326
11327 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11328
11329 * target.h (deprecated_child_ops): Delete declaration.
11330 * target.c (deprecated_child_ops): Delete definition.
11331
11332 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11333
11334 * Makefile.in (hpux-thread.o): Delete rule.
11335 * configure.ac: Don't check for HPUX DCE threads support.
11336 * configure, config.in: Regenerate.
11337 * hppa-hpux-nat.c (child_suppress_run): Delete.
11338 (hppa_hpux_child_can_run): Delete.
11339 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11340 * hpux-thread.c: Delete.
11341
11342 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11343
11344 * hpux-thread.c (hpux_pid_to_str): Delete.
11345
11346 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11347
11348 * ada-valprint.c (ada_emit_char): Remove strange code.
11349 Check that c is <= UCHAR_MAX before passing it to isascii.
11350 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11351
11352 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11353
11354 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11355 to the case where instream is stdin.
11356
11357 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11358
11359 * ia64-tdep.h (struct regcache): Forward declare.
11360 (struct ia64_infcall_ops): New struct type.
11361 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11362 and "infcall_ops".
11363 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11364 Renames ia64_find_global_pointer.
11365 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11366 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11367 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11368 methods.
11369 (ia64_infcall_ops): New static global constant.
11370 (ia64_gdbarch_init): Set tdep->infcall_ops.
11371 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11372 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11373 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11374 (ia64_hpux_dummy_code): New static global constant.
11375 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11376 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11377 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11378 New function.
11379 (ia64_hpux_infcall_ops): New static global constant.
11380 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11381 for inferior function calls to work properly on ia64-hpux.
11382
11383 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11384
11385 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11386 * ia64-tdep.h (struct frame_info): forward declaration.
11387 (struct gdbarch_tdep): Add field size_of_register_frame.
11388 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11389 to determine the size of the register frame.
11390 (ia64_size_of_register_frame): New function.
11391 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11392 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11393 (IA64_HPUX_UREG_REASON): New macro.
11394 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11395 New functions.
11396 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11397 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11398 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11399 objects.
11400
11401 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11402
11403 Add support for ia64-hpux.
11404 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11405 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11406
11407 * configure.host: Add handling for ia64-hpux hosts. Add associated
11408 floatformats.
11409 * configure.tgt: Add handling for ia64-hpux targets.
11410 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11411 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11412 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11413
11414 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11415
11416 [ttrace] Compute thread list immediately after attach.
11417 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11418 New subprogram.
11419 (inf_ttrace_attach): Use it.
11420
11421 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11422
11423 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11424 if we could not determine the frame's function address. Instead,
11425 use the frame's PC, and then continue.
11426
11427 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11428
11429 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11430 not already defined.
11431
11432 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11433
11434 * ia64-tdep.c (ia64_struct_type_p): New function.
11435 (ia64_extract_return_value): Handle integral values that are
11436 less than 8 bytes long.
11437 (ia64_push_dummy_call): Likewise.
11438
11439 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11440
11441 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11442 floatformat_ia64_ext.
11443 (floatformat_ia64_ext_big): New static const.
11444 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11445
11446 2011-01-12 Tom Tromey <tromey@redhat.com>
11447
11448 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11449 messages.
11450 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11451 (mi_cmd_thread_list_ids): Likewise.
11452 (mi_cmd_data_list_changed_registers): Likewise.
11453 (mi_cmd_data_list_register_values): Likewise.
11454 (mi_cmd_data_write_register_values): Likewise.
11455 (mi_cmd_data_evaluate_expression): Likewise.
11456 (mi_cmd_data_read_memory): Likewise.
11457 (mi_cmd_data_read_memory_bytes): Likewise.
11458 (mi_cmd_data_write_memory): Likewise.
11459 (mi_cmd_enable_timings): Likewise.
11460 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11461 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11462 (mi_cmd_var_delete): Likewise.
11463 (mi_cmd_var_set_format): Likewise.
11464 (mi_cmd_var_show_format): Likewise.
11465 (mi_cmd_var_info_num_children): Likewise.
11466 (mi_cmd_var_list_children): Likewise.
11467 (mi_cmd_var_info_type): Likewise.
11468 (mi_cmd_var_info_expression): Likewise.
11469 (mi_cmd_var_show_attributes): Likewise.
11470 (mi_cmd_var_assign): Likewise.
11471 (mi_cmd_var_update): Likewise.
11472 (mi_cmd_enable_pretty_printing): Likewise.
11473 (mi_cmd_var_set_update_range): Likewise.
11474 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11475 messages.
11476 (mi_cmd_target_file_put): Likewise.
11477 (mi_cmd_target_file_delete): Likewise.
11478 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11479 messages.
11480 (mi_cmd_stack_info_depth): Likewise.
11481 (mi_cmd_stack_list_locals): Likewise.
11482 (mi_cmd_stack_list_args): Likewise.
11483 (mi_cmd_stack_select_frame): Likewise.
11484 (mi_cmd_stack_select_frame): Likewise.
11485 (mi_cmd_stack_info_frame): Likewise.
11486 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11487 messages.
11488 (mi_cmd_file_list_exec_source_files): Likewise.
11489 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11490 (mi_cmd_env_cd): Likewise.
11491 (mi_cmd_env_path): Likewise.
11492 (mi_cmd_env_dir): Likewise.
11493 (mi_cmd_inferior_tty_show): Likewise.
11494 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11495 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11496 (mi_cmd_break_watch): Likewise.
11497
11498 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11499
11500 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11501 (ppc_linux_insert_hw_breakpoint): Likewise.
11502 (ppc_linux_remove_hw_breakpoint): Likewise.
11503 (ppc_linux_insert_watchpoint): Likewise.
11504
11505 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11506 Jan Kratochvil <jan.kratochvil@redhat.com>
11507
11508 PR fortran/11104 and DWARF unbound arrays detection.
11509 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11510 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11511 unspecified upper bound.
11512 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11513 variables array_size_array, tmp_type and offset_item. New variable
11514 array. Remove call to f77_get_upperbound. New variables array_type
11515 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11516 the final call to deprecated_set_value_type.
11517
11518 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11519
11520 Make value allocations more lazy.
11521 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11522 instead of allocate_value and set_value_lazy when possible.
11523 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11524 instead of allocate_value and set_value_lazy.
11525 * findvar.c (value_of_register_lazy): Likewise.
11526 (read_var_value): Remove V preallocation, call just check_typedef in
11527 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11528 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11529 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11530 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11531 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11532 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11533 the end, remove set_value_lazy there.
11534 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11535 instead of allocate_value and set_value_lazy when possible.
11536 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11537 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11538 of allocate_value and set_value_lazy.
11539 (value_from_contents_and_address): Use allocate_value_lazy instead of
11540 allocate_value and set_value_lazy when possible.
11541
11542 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11543
11544 * disasm.c (dump_insns): Support dumping opcodes for MI.
11545 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11546 dumping of instruction opcodes.
11547
11548 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11549
11550 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11551 appropiately.
11552
11553 2011-01-11 Tom Tromey <tromey@redhat.com>
11554
11555 * thread.c (do_captured_thread_select): Emit newline before
11556 printing frame.
11557
11558 2011-01-11 Michael Snyder <msnyder@vmware.com>
11559
11560 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11561 * score-tdep.c: Ditto.
11562 * score-tdep.h: Ditto.
11563 * ser-base.c: Ditto.
11564 * ser-go32.c: Ditto.
11565 * serial.c: Ditto.
11566 * serial.h: Ditto.
11567 * ser-mingw.c: Ditto.
11568 * ser-pipe.c: Ditto.
11569 * ser-tcp.c: Ditto.
11570 * ser-unix.c: Ditto.
11571 * sh64-tdep.c: Ditto.
11572 * shnbsd-nat.c: Ditto.
11573 * sh-tdep.c: Ditto.
11574 * sh-tdep.h: Ditto.
11575 * solib.c: Ditto.
11576 * solib-darwin.c: Ditto.
11577 * solib-frv.c: Ditto.
11578 * solib.h: Ditto.
11579 * solib-irix.c: Ditto.
11580 * solib-osf.c: Ditto.
11581 * solib-pa64.c: Ditto.
11582 * solib-som.c: Ditto.
11583 * solib-spu.c: Ditto.
11584 * solib-sunos.c: Ditto.
11585 * solib-svr4.c: Ditto.
11586 * solist.h: Ditto.
11587 * sol-thread.c: Ditto.
11588 * somread.c: Ditto.
11589 * source.c: Ditto.
11590 * source.h: Ditto.
11591 * sparc64-linux-tdep.c: Ditto.
11592 * sparc64-tdep.c: Ditto.
11593 * sparc-linux-nat.c: Ditto.
11594 * sparc-linux-tdep.c: Ditto.
11595 * sparc-sol2-nat.c: Ditto.
11596 * sparc-sol2-tdep.c: Ditto.
11597 * sparc-tdep.c: Ditto.
11598 * sparc-tdep.h: Ditto.
11599 * spu-tdep.c: Ditto.
11600 * stabsread.c: Ditto.
11601 * stabsread.h: Ditto.
11602 * stack.c: Ditto.
11603 * symfile.c: Ditto.
11604 * symfile.h: Ditto.
11605 * symmisc.c: Ditto.
11606 * symtab.c: Ditto.
11607 * symtab.h: Ditto.
11608 * target.c: Ditto.
11609 * target-descriptions.c: Ditto.
11610 * target-descriptions.h: Ditto.
11611 * target.h: Ditto.
11612 * target-memory.c: Ditto.
11613 * terminal.h: Ditto.
11614 * thread.c: Ditto.
11615 * top.c: Ditto.
11616 * tracepoint.c: Ditto.
11617 * tracepoint.h: Ditto.
11618 * trad-frame.h: Ditto.
11619 * typeprint.c: Ditto.
11620
11621 2011-01-11 Michael Snyder <msnyder@vmware.com>
11622
11623 * ui-file.c: Comment cleanup, mostly periods and spaces.
11624 * ui-file.h: Ditto.
11625 * ui-out.c: Ditto.
11626 * ui-out.h: Ditto.
11627 * utils.c: Ditto.
11628 * v850-tdep.c: Ditto.
11629 * valarith.c: Ditto.
11630 * valops.c: Ditto.
11631 * valprint.c: Ditto.
11632 * valprint.h: Ditto.
11633 * value.c: Ditto.
11634 * value.h: Ditto.
11635 * varobj.c: Ditto.
11636 * varobj.h: Ditto.
11637 * vax-tdep.c: Ditto.
11638 * vec.c: Ditto.
11639 * vec.h: Ditto.
11640 * version.h: Ditto.
11641 * windows-nat.c: Ditto.
11642 * windows-tdep.c: Ditto.
11643 * xcoffread.c: Ditto.
11644 * xcoffsolib.c: Ditto.
11645 * xml-support.c: Ditto.
11646 * xstormy16-tdep.c: Ditto.
11647 * xtensa-tdep.c: Ditto.
11648 * xtensa-tdep.h: Ditto.
11649
11650 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11651
11652 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11653 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11654
11655 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11656 Thiago Jung Bauermann <bauerman@br.ibm.com>
11657
11658 Implement support for PowerPC BookE ranged watchpoints.
11659 * breakpoint.h
11660 (struct breakpoint_ops) <resources_needed>: New method.
11661 Initialize to NULL in all existing breakpoint_ops instances.
11662 (struct breakpoint) <exact>: New field.
11663 (target_exact_watchpoints): Declare external global.
11664 * breakpoint.c (target_exact_watchpoints): New global flag.
11665 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11666 b->enable_state to bp_enabled before calling
11667 hw_watchpoint_used_count.
11668 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11669 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11670 if available.
11671 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11672 if the watchpoint is exact.
11673 (resources_needed_watchpoint): New function.
11674 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11675 (watch_command_1): Set b->exact if the user asked for an exact
11676 watchpoint and one can be set.
11677 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11678 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11679 the user asks for an exact watchpoint and one can be set. Return
11680 number of needed debug registers to watch the expression.
11681 * gdbtypes.c (is_scalar_type): New function, based on
11682 valprint.c:scalar_type_p.
11683 (is_scalar_type_recursive): New function.
11684 * gdbtypes.h (is_scalar_type_recursive): Declare.
11685 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11686 handle regions when ranged watchpoints are available.
11687 (create_watchpoint_request): New function.
11688 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11689 create_watchpoint_request.
11690 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11691 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11692 `set powerpc' and `show powerpc' commands.
11693 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11694 Mention documentation comment in the target macro.
11695 (target_region_ok_for_hw_watchpoint): Document return value.
11696
11697 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11698
11699 * breakpoint.c (update_watchpoint): Decide on using a software or
11700 hardware watchpoint after the bp_locations are created.
11701
11702 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11703
11704 Convert hardware watchpoints to use breakpoint_ops.
11705 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11706 <insert_location>: ... this. Return int instead of void.
11707 Accept pointer to struct bp_location instead of pointer to
11708 struct breakpoint. Adapt all implementations.
11709 (breakpoint_ops) <remove>: Rename to...
11710 <remove_location>: ... this. Accept pointer to struct bp_location
11711 instead of pointer to struct breakpoint. Adapt all implementations.
11712 * breakpoint.c (insert_catchpoint): Delete function.
11713 (insert_bp_location): Call the watchpoint or catchpoint's
11714 breakpoint_ops.insert method.
11715 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11716 breakpoint_ops.remove method.
11717 (insert_watchpoint, remove_watchpoint): New functions.
11718 (watchpoint_breakpoint_ops): New structure.
11719 (watch_command_1): Initialize the OPS field.
11720 * inf-child.c (inf_child_insert_fork_catchpoint)
11721 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11722 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11723 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11724 Delete functions.
11725 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11726 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11727 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11728 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11729 * target.c (update_current_target): Change default implementation of
11730 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11731 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11732 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11733 to_set_syscall_catchpoint to return_one.
11734 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11735 (debug_to_insert_exec_catchpoint): Report return value.
11736 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11737 (to_insert_exec_catchpoint): Change declaration to return int instead
11738 of void.
11739
11740 2011-01-11 Michael Snyder <msnyder@vmware.com>
11741
11742 * arm-tdep.c: Internationalization.
11743 * c-lang.c: Ditto.
11744 * charset.c: Ditto.
11745 * fork-child.c: Ditto.
11746 * nto-procfs.c: Ditto.
11747 * ppc-sysv-tdep.c: Ditto.
11748 * procfs.c: Ditto.
11749 * remote-mips.c: Ditto.
11750 * remote.c: Ditto.
11751 * rs6000-nat.c: Ditto.
11752 * rs6000-tdep.c: Ditto.
11753 * target.c: Ditto.
11754 * valops.c: Ditto.
11755 * value.c: Ditto.
11756 * xml-support.c: Ditto.
11757 * mi/mi-cmd-break.c: Ditto.
11758 * mi/mi-cmd-var.c: Ditto.
11759 * mi/mi-interp.c: Ditto.
11760 * mi/mi-main.c: Ditto.
11761
11762 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11763
11764 * remote-sim.c (gdbsim_store_register): Update API to
11765 sim_store_register to check more error conditions.
11766
11767 2011-01-10 Michael Snyder <msnyder@vmware.com>
11768
11769 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11770 * nto-tdep.c: Ditto.
11771 * nto-tdep.h: Ditto.
11772 * objc-exp.y: Ditto.
11773 * objc-lang.c: Ditto.
11774 * objfiles.c: Ditto.
11775 * objfiles.h: Ditto.
11776 * observer.c: Ditto.
11777 * opencl-lang.c: Ditto.
11778 * osabi.c: Ditto.
11779 * parse.c: Ditto.
11780 * parser-defs.h: Ditto.
11781 * p-exp.y: Ditto.
11782 * p-lang.c: Ditto.
11783 * posix-hdep.c: Ditto.
11784 * ppcbug-rom.c: Ditto.
11785 * ppc-linux-nat.c: Ditto.
11786 * ppc-linux-tdep.c: Ditto.
11787 * ppc-linux-tdep.h: Ditto.
11788 * ppcnbsd-tdep.c: Ditto.
11789 * ppcobsd-tdep.c: Ditto.
11790 * ppcobsd-tdep.h: Ditto.
11791 * ppc-sysv-tdep.c: Ditto.
11792 * ppc-tdep.h: Ditto.
11793 * printcmd.c: Ditto.
11794 * proc-abi.c: Ditto.
11795 * proc-flags.c: Ditto.
11796 * procfs.c: Ditto.
11797 * proc-utils.h: Ditto.
11798 * progspace.h: Ditto.
11799 * prologue-value.c: Ditto.
11800 * prologue-value.h: Ditto.
11801 * psympriv.h: Ditto.
11802 * psymtab.c: Ditto.
11803 * p-typeprint.c: Ditto.
11804 * p-valprint.c: Ditto.
11805 * ravenscar-sparc-thread.c: Ditto.
11806 * ravenscar-thread.c: Ditto.
11807 * ravenscar-thread.h: Ditto.
11808 * record.c: Ditto.
11809 * regcache.c: Ditto.
11810 * regcache.h: Ditto.
11811 * remote.c: Ditto.
11812 * remote-fileio.c: Ditto.
11813 * remote-fileio.h: Ditto.
11814 * remote.h: Ditto.
11815 * remote-m32r-sdi.c: Ditto.
11816 * remote-mips.c: Ditto.
11817 * remote-sim.c: Ditto.
11818 * rs6000-aix-tdep.c: Ditto.
11819 * rs6000-nat.c: Ditto.
11820 * rs6000-tdep.c: Ditto.
11821
11822 2011-01-10 Michael Snyder <msnyder@vmware.com>
11823
11824 * charset.c (validate): Internationalization.
11825 * coffread.c (read_one_sym): Ditto.
11826 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11827 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11828 * inflow.c (new_tty): Ditto.
11829 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11830 * m32c-tdep.c (m32c_return_value): Ditto.
11831 * mep-tdep.c (mep_store_return_value): Ditto.
11832 * score-tdep.c (score7_fetch_insn): Ditto.
11833 * ser-mingw.c (pipe_windows_open): Ditto.
11834 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11835 * spu-tdep.c (spu_register_type): Ditto.
11836 * tracepoint.c (trace_find_command): Ditto.
11837 * valarith.c (value_pos): Ditto.
11838
11839 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11840
11841 * ada-valprint.c (printstr): Minor comment reformatting.
11842
11843 2011-01-08 Michael Snyder <msnyder@vmware.com>
11844
11845 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11846 markup.
11847
11848 2011-01-08 Michael Snyder <msnyder@vmware.com>
11849
11850 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11851 * hppa-hpux-tdep.c: Ditto.
11852 * hppa-linux-nat.c: Ditto.
11853 * hppa-linux-tdep.c: Ditto.
11854 * hppanbsd-tdep.c: Ditto.
11855 * hppa-tdep.c: Ditto.
11856 * hppa-tdep.h: Ditto.
11857 * hpux-thread.c: Ditto.
11858 * i386-cygwin-tdep.c: Ditto.
11859 * i386-darwin-nat.c: Ditto.
11860 * i386gnu-nat.c: Ditto.
11861 * i386-linux-nat.c: Ditto.
11862 * i386-linux-tdep.c: Ditto.
11863 * i386-nat.c: Ditto.
11864 * i386-nat.h: Ditto.
11865 * i386nbsd-tdep.c: Ditto.
11866 * i386-sol2-nat.c: Ditto.
11867 * i386-stub.c: Ditto.
11868 * i386-tdep.c: Ditto.
11869 * i386-tdep.h: Ditto.
11870 * i387-tdep.c: Ditto.
11871 * ia64-linux-nat.c: Ditto.
11872 * ia64-linux-tdep.c: Ditto.
11873 * ia64-tdep.c: Ditto.
11874 * infcall.c: Ditto.
11875 * infcall.h: Ditto.
11876 * infcmd.c: Ditto.
11877 * inferior.c: Ditto.
11878 * inferior.h: Ditto.
11879 * infloop.c: Ditto.
11880 * inflow.c: Ditto.
11881 * infrun.c: Ditto.
11882 * interps.c: Ditto.
11883 * interps.h: Ditto.
11884 * iq2000-tdep.c: Ditto.
11885 * irix5-nat.c: Ditto.
11886 * jit.c: Ditto.
11887 * jit.h: Ditto.
11888 * jv-exp.y: Ditto.
11889 * jv-lang.c: Ditto.
11890 * jv-lang.h: Ditto.
11891 * jv-typeprint.c: Ditto.
11892 * jv-valprint.c: Ditto.
11893 * language.c: Ditto.
11894 * language.h: Ditto.
11895 * linespec.c: Ditto.
11896 * linux-fork.c: Ditto.
11897 * linux-nat.c: Ditto.
11898 * linux-thread-db.c: Ditto.
11899 * lm32-tdep.c: Ditto.
11900
11901 2011-01-08 Michael Snyder <msnyder@vmware.com>
11902
11903 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11904 * m2-lang.c: Ditto.
11905 * m2-typeprint.c: Ditto.
11906 * m2-valprint.c: Ditto.
11907 * m32c-tdep.c: Ditto.
11908 * m32r-linux-nat.c: Ditto.
11909 * m32r-rom.c: Ditto.
11910 * m32r-tdep.c: Ditto.
11911 * m32r-tdep.h: Ditto.
11912 * m68hc11-tdep.c: Ditto.
11913 * m58klinux-nat.c: Ditto.
11914 * m68k-tdep.c: Ditto.
11915 * m88k-tdep.c: Ditto.
11916 * m88k-tdep.h: Ditto.
11917 * machoread.c: Ditto.
11918 * macrocmd.c: Ditto.
11919 * macroexp.c: Ditto.
11920 * macrotab.c: Ditto.
11921 * main.c: Ditto.
11922 * maint.c: Ditto.
11923 * mdebugread.c: Ditto.
11924 * mdebugread.h: Ditto.
11925 * memattr.c: Ditto.
11926 * memattr.h: Ditto.
11927 * memory-map.h: Ditto.
11928 * mep-tdep.c: Ditto.
11929 * microblaze-rom.c: Ditto.
11930 * microblaze-tdep.c: Ditto.
11931 * minsyms.c: Ditto.
11932 * mips-irix-tdep.c: Ditto.
11933 * mips-linux-nat.c: Ditto.
11934 * mips-linux-tdep.c: Ditto.
11935 * mips-linux-tdep.h: Ditto.
11936 * mipsnbsd-nat.c: Ditto.
11937 * mipsnbsd-tdep.c: Ditto.
11938 * mipsread.c: Ditto.
11939 * mips-tdep.c: Ditto.
11940 * mips-tdep.h: Ditto.
11941 * mn10300-linux-tdep.c: Ditto.
11942 * mn10300-tdep.c: Ditto.
11943 * mn10300-tdep.h: Ditto.
11944 * monitor.c: Ditto.
11945 * monitor.h: Ditto.
11946 * moxie-tdep.c: Ditto.
11947 * moxie-tdep.h: Ditto.
11948 * mt-tdep.c: Ditto.
11949
11950 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11951
11952 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11953
11954 2011-01-08 Robert Millan <rmh@gnu.org>
11955
11956 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11957
11958 2011-01-07 Michael Snyder <msnyder@vmware.com>
11959
11960 * charset.c (_initialize_charset): Fix typo in string.
11961
11962 2011-01-07 Michael Snyder <msnyder@vmware.com>
11963
11964 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11965 for i18n.
11966 * tui/tui-layout.c (tui_set_layout_for_display_command):
11967 Split line so that operator goes to beginning of line.
11968 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11969 assignment out of if statement.
11970
11971 2011-01-07 Michael Snyder <msnyder@vmware.com>
11972
11973 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11974 * ada-lang.h: Ditto.
11975 * ada-tasks.c: Ditto.
11976 * ada-valprint.c: Ditto.
11977 * aix-threads.c: Ditto.
11978 * alpha-linux-nat.c: Ditto.
11979 * alpha-linux-tdep.c: Ditto.
11980 * alpha-mdebug-tdep.c: Ditto.
11981 * alpha-nat.c: Ditto.
11982 * alpha-osf1-tdep.c: Ditto.
11983 * alpha-tdep.c: Ditto.
11984 * alphabsd-nat.c: Ditto.
11985 * alphabsd-tdep.c: Ditto.
11986 * amd64-darwin-tdep.c: Ditto.
11987 * amd64-linux-nat.c: Ditto.
11988 * amd64-linux-tdep.c: Ditto.
11989 * amd64-sol2-tdep.c: Ditto.
11990 * amd64-tdep.c: Ditto.
11991 * amd64-fbsd-tdep.c: Ditto.
11992 * amd64-nbsd-tdep.c: Ditto.
11993 * amd64-obsd-tdep.c: Ditto.
11994 * amd64-linux-nat.c: Ditto.
11995 * amd64-linux-tdep.c: Ditto.
11996 * arm-tdep.c: Ditto.
11997 * arm-tdep.h: Ditto.
11998 * armnbsd-nat.c: Ditto.
11999 * avr-tdep.c: Ditto.
12000 * bfin-tdep.c: Ditto.
12001 * bsd-kvm.c: Ditto.
12002 * c-typeprintc: Ditto.
12003 * c-valprint.c: Ditto.
12004 * coff-pe-read.h: Ditto.
12005 * coffreead.c: Ditto.
12006 * cris-tdep.c: Ditto.
12007 * d-lang.c: Ditto.
12008 * darwin-nat-info.c: Ditto.
12009 * darwin-nat.c: Ditto.
12010 * dbug-rom.c: Ditto.
12011 * dbxread.c: Ditto.
12012 * dcache.c: Ditto.
12013 * dcache.h: Ditto.
12014 * dec-thread.c: Ditto.
12015 * defs.h: Ditto.
12016 * demangle.c: Ditto.
12017 * dicos-tdep.c: Ditto.
12018 * dictionary.c: Ditto.
12019 * dictionary.h: Ditto.
12020 * dink32-rom.c: Ditto.
12021 * disasm.c: Ditto.
12022 * doublest.c: Ditto.
12023 * dsrec.c: Ditto.
12024 * dummy-frame.c: Ditto.
12025 * dwarf2-frame.c: Ditto.
12026 * dwarf2expr.c: Ditto.
12027 * dwarf2loc.c: Ditto.
12028 * dwarf2read.c: Ditto.
12029 * elfread.c: Ditto.
12030 * environ.c: Ditto.
12031 * eval.c: Ditto.
12032 * event-top.h: Ditto.
12033 * exceptions.c: Ditto.
12034 * exceptions.h: Ditto.
12035 * exec.c: Ditto.
12036 * expprint.c: Ditto.
12037 * expression.h: Ditto.
12038 * f-exp.y: Ditto.
12039 * f-lang.c: Ditto.
12040 * f-lang.h: Ditto.
12041 * f-typeprint.c: Ditto.
12042 * f-valprint.c: Ditto.
12043 * fbsd-nat.c: Ditto.
12044 * findvar.c: Ditto.
12045 * fork-child.c: Ditto.
12046 * frame.c: Ditto.
12047 * frame.h: Ditto.
12048 * frv-linux-tdep.c: Ditto.
12049 * frv-tdep.c: Ditto.
12050 * gcore.c: Ditto.
12051 * gdb-stabs.h: Ditto.
12052 * gdb_assert.h: Ditto.
12053 * gdb_string.h: Ditto.
12054 * gdb_thread_db.h: Ditto.
12055 * gdb_wait.h: Ditto.
12056 * gdbarch.sh: Ditto.
12057 * gdbcore.h: Ditto.
12058 * gdbthread.h: Ditto.
12059 * gdbtypes.c: Ditto.
12060 * gdbtypes.h: Ditto.
12061 * gnu-nat.c: Ditto.
12062 * gnu-nat.h: Ditto.
12063 * gnu-v2-abi.c: Ditto.
12064 * gnu-v3-abi.c: Ditto.
12065 * go32-nat.c: Ditto.
12066 * gdbarch.c: Regenerate.
12067 * gdbarch.h: Regenerate.
12068
12069 2011-01-07 Michael Snyder <msnyder@vmware.com>
12070
12071 * ax-gdb.c: Adjust some long output strings.
12072 * breakpoint.c: Ditto.
12073 * charset.c: Ditto.
12074 * cp-abi.c: Ditto.
12075 * infcall.c: Ditto.
12076 * infrun.c: Ditto.
12077 * linux-nat.c: Ditto.
12078 * solib-pa64.c: Ditto.
12079 * solib-som.c: Ditto.
12080
12081 2011-01-06 Tom Tromey <tromey@redhat.com>
12082
12083 PR python/12367:
12084 * NEWS: Add item.
12085 * python/python.c (GdbMethods): Add "newest_frame" method.
12086 * python/python-internal.h (gdbpy_newest_frame): Declare.
12087 * python/py-frame.c (gdbpy_newest_frame): New function.
12088
12089 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12090
12091 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12092 * jit.c (jit_debug): New variable.
12093 (show_jit_debug): New function.
12094 (struct target_buffer): Use ULONGEST.
12095 (bfd_open_from_target_memory): Likewise.
12096 (jit_register_code, jit_inferior_init): Add debug output.
12097 (_initialize_jit): Register "debug jit" command.
12098
12099 2011-01-06 Tom Tromey <tromey@redhat.com>
12100
12101 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12102 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12103 and ARCH_FRAME.
12104
12105 2011-01-06 Tom Tromey <tromey@redhat.com>
12106
12107 * python/py-frame.c (frapy_block): Use get_frame_block.
12108
12109 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12110
12111 Do not stop on SIGPRIO signals by default
12112 * infrun.c (_initialize_infrun): Unset signal_stop and
12113 signal_print for TARGET_SIGNAL_PRIO.
12114
12115 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12116
12117 * ada-tasks.c: Fix style violation in comment.
12118
12119 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12120
12121 * linespec.c (decode_compound, find_method): Remove trailing \n
12122 at end of error string.
12123 * solib-irix.c (irix_current_sos): Likewise.
12124 * varobj.c (uninstall_variable): Likewise.
12125
12126 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12127
12128 * copyright.py: New script.
12129 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12130 Launch emacs without exec'ing. Call copyright.py afterwards.
12131
12132 2011-01-05 Michael Snyder <msnyder@vmware.com>
12133
12134 * addrmap.c: Shorten lines of >= 80 columns.
12135 * arch-utils.c: Ditto.
12136 * arch-utils.h: Ditto.
12137 * ax-gdb.c: Ditto.
12138 * ax-general.c: Ditto.
12139 * bcache.c: Ditto.
12140 * blockframe.c: Ditto.
12141 * breakpoint.c: Ditto.
12142 * buildsym.c: Ditto.
12143 * c-lang.c: Ditto.
12144 * c-typeprint.c: Ditto.
12145 * charset.c: Ditto.
12146 * coffread.c: Ditto.
12147 * command.h: Ditto.
12148 * corelow.c: Ditto.
12149 * cp-abi.c: Ditto.
12150 * cp-namespace.c: Ditto.
12151 * cp-support.c: Ditto.
12152 * dbug-rom.c: Ditto.
12153 * dbxread.c: Ditto.
12154 * defs.h: Ditto.
12155 * dfp.c: Ditto.
12156 * dfp.h: Ditto.
12157 * dictionary.c: Ditto.
12158 * disasm.c: Ditto.
12159 * doublest.c: Ditto.
12160 * dwarf2-frame.c: Ditto.
12161 * dwarf2expr.c: Ditto.
12162 * dwarf2loc.c: Ditto.
12163 * dwarf2read.c: Ditto.
12164 * elfread.c: Ditto.
12165 * eval.c: Ditto.
12166 * event-loop.c: Ditto.
12167 * event-loop.h: Ditto.
12168 * exceptions.h: Ditto.
12169 * exec.c: Ditto.
12170 * expprint.c: Ditto.
12171 * expression.h: Ditto.
12172 * f-lang.c: Ditto.
12173 * f-valprint.c: Ditto.
12174 * findcmd.c: Ditto.
12175 * frame-base.c: Ditto.
12176 * frame-unwind.c: Ditto.
12177 * frame-unwind.h: Ditto.
12178 * frame.c: Ditto.
12179 * frame.h: Ditto.
12180 * gcore.c: Ditto.
12181 * gdb-stabs.h: Ditto.
12182 * gdb_assert.h: Ditto.
12183 * gdb_dirent.h: Ditto.
12184 * gdb_obstack.h: Ditto.
12185 * gdbcore.h: Ditto.
12186 * gdbtypes.c: Ditto.
12187 * gdbtypes.h: Ditto.
12188 * inf-ttrace.c: Ditto.
12189 * infcall.c: Ditto.
12190 * infcmd.c: Ditto.
12191 * inflow.c: Ditto.
12192 * infrun.c: Ditto.
12193 * inline-frame.h: Ditto.
12194 * language.c: Ditto.
12195 * language.h: Ditto.
12196 * libunwind-frame.c: Ditto.
12197 * libunwind-frame.h: Ditto.
12198 * linespec.c: Ditto.
12199 * linux-nat.c: Ditto.
12200 * linux-nat.h: Ditto.
12201 * linux-thread-db.c: Ditto.
12202 * machoread.c: Ditto.
12203 * macroexp.c: Ditto.
12204 * macrotab.c: Ditto.
12205 * main.c: Ditto.
12206 * maint.c: Ditto.
12207 * mdebugread.c: Ditto.
12208 * memattr.c: Ditto.
12209 * minsyms.c: Ditto.
12210 * monitor.c: Ditto.
12211 * monitor.h: Ditto.
12212 * objfiles.c: Ditto.
12213 * objfiles.h: Ditto.
12214 * osabi.c: Ditto.
12215 * p-typeprint.c: Ditto.
12216 * p-valprint.c: Ditto.
12217 * parse.c: Ditto.
12218 * printcmd.c: Ditto.
12219 * proc-events.c: Ditto.
12220 * procfs.c: Ditto.
12221 * progspace.c: Ditto.
12222 * progspace.h: Ditto.
12223 * psympriv.h: Ditto.
12224 * psymtab.c: Ditto.
12225 * record.c: Ditto.
12226 * regcache.c: Ditto.
12227 * regcache.h: Ditto.
12228 * remote-fileio.c: Ditto.
12229 * remote.c: Ditto.
12230 * ser-mingw.c: Ditto.
12231 * ser-tcp.c: Ditto.
12232 * ser-unix.c: Ditto.
12233 * serial.c: Ditto.
12234 * serial.h: Ditto.
12235 * solib-frv.c: Ditto.
12236 * solib-irix.c: Ditto.
12237 * solib-osf.c: Ditto.
12238 * solib-pa64.c: Ditto.
12239 * solib-som.c: Ditto.
12240 * solib-sunos.c: Ditto.
12241 * solib-svr4.c: Ditto.
12242 * solib-target.c: Ditto.
12243 * solib.c: Ditto.
12244 * somread.c: Ditto.
12245 * source.c: Ditto.
12246 * stabsread.c: Ditto.
12247 * stabsread.c: Ditto.
12248 * stack.c: Ditto.
12249 * stack.h: Ditto.
12250 * symfile-mem.c: Ditto.
12251 * symfile.c: Ditto.
12252 * symfile.h: Ditto.
12253 * symmisc.c: Ditto.
12254 * symtab.c: Ditto.
12255 * symtab.h: Ditto.
12256 * target-descriptions.c: Ditto.
12257 * target-memory.c: Ditto.
12258 * target.c: Ditto.
12259 * target.h: Ditto.
12260 * terminal.h: Ditto.
12261 * thread.c: Ditto.
12262 * top.c: Ditto.
12263 * tracepoint.c: Ditto.
12264 * tracepoint.h: Ditto.
12265 * ui-file.c: Ditto.
12266 * ui-file.h: Ditto.
12267 * ui-out.h: Ditto.
12268 * user-regs.c: Ditto.
12269 * user-regs.h: Ditto.
12270 * utils.c: Ditto.
12271 * valarith.c: Ditto.
12272 * valops.c: Ditto.
12273 * valprint.c: Ditto.
12274 * valprint.h: Ditto.
12275 * value.c: Ditto.
12276 * varobj.c: Ditto.
12277 * varobj.h: Ditto.
12278 * vec.h: Ditto.
12279 * xcoffread.c: Ditto.
12280 * xcoffsolib.c: Ditto.
12281 * xcoffsolib.h: Ditto.
12282 * xml-syscall.c: Ditto.
12283 * xml-tdesc.c: Ditto.
12284
12285 2011-01-05 Michael Snyder <msnyder@vmware.com>
12286
12287 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12288 * cli/cli-decode.c: Ditto.
12289 * cli/cli-dump.c: Ditto.
12290 * cli/cli-logging.c: Ditto.
12291 * cli/cli-script.c: Ditto.
12292 * cli/cli-setshow.c: Ditto.
12293 * common/signals.c: Ditto.
12294 * mi/mi-cmd-break.c: Ditto.
12295 * mi/mi-cmd-disas.c: Ditto.
12296 * mi/mi-cmd-stack.c: Ditto.
12297 * mi/mi-cmd-var.c: Ditto.
12298 * mi/mi-cmds.c: Ditto.
12299 * mi/mi-common.h: Ditto.
12300 * mi/mi-console.c: Ditto.
12301 * mi/mi-interp.c: Ditto.
12302 * mi/mi-main.c: Ditto.
12303 * osf-share/cma_attr.c: Ditto.
12304 * osf-share/cma_deb_core.h: Ditto.
12305 * osf-share/cma_debug_client.h: Ditto.
12306 * osf-share/cma_handle.h: Ditto.
12307 * osf-share/cma_mutex.h: Ditto.
12308 * osf-share/cma_stack_int.h: Ditto.
12309 * osf-share/cma_tcb_defs.h: Ditto.
12310 * python/py-auto-load.c: Ditto.
12311 * python/py-breakpoint.c: Ditto.
12312 * python/py-cmd.c: Ditto.
12313 * python/py-frame.c: Ditto.
12314 * python/py-objfile.c: Ditto.
12315 * python/py-param.c: Ditto.
12316 * python/py-progspace.c: Ditto.
12317 * python/py-symbol.c: Ditto.
12318 * python/py-value.c: Ditto.
12319 * python/python-internal.h: Ditto.
12320 * python/python.c: Ditto.
12321 * tui/tui-data.c: Ditto.
12322 * tui/tui-disasm.c: Ditto.
12323 * tui/tui-hooks.c: Ditto.
12324 * tui/tui-io.c: Ditto.
12325 * tui/tui-layout.c: Ditto.
12326 * tui/tui-regs.c: Ditto.
12327 * tui/tui-source.c: Ditto.
12328 * tui/tui-stack.c: Ditto.
12329 * tui/tui-win.c: Ditto.
12330 * tui/tui-windata.c: Ditto.
12331 * tui/tui-winsource.c: Ditto.
12332
12333 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12334
12335 * configure.ac, gdb.1: Copyright year update.
12336
12337 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12338
12339 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12340 this_pc_in_block, morestack_msym and morestack_name. Check for
12341 "__morestack" minimal symbol there.
12342
12343 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12344
12345 * symfile.c (find_sym_fns): Add call to dont_repeat.
12346
12347 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12348
12349 Copyright year update in most files (performed by copyright.sh).
12350
12351 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12352
12353 * top.c (print_gdb_version): Update copyright year in version output.
12354
12355 For older changes see ChangeLog-2010.
12356 \f
12357 Local Variables:
12358 mode: change-log
12359 left-margin: 8
12360 fill-column: 74
12361 version-control: never
12362 coding: utf-8
12363 End:
This page took 0.283856 seconds and 3 git commands to generate.