* mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
2
3 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
4 `oind' and `oarg', respectively(-Wshadow).
5 (mi_valid_noargs): Ditto.
6
7 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
8
9 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
10 `oind' and `oarg', respectively(-Wshadow).
11
12 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
13
14 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
15 `optarg' to `oind' and `oarg', respectively(-Wshadow).
16 (mi_cmd_target_file_put): Ditto.
17 (mi_cmd_target_file_delete): Ditto.
18
19 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
20
21 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
22 `optarg' to `oind' and `oarg', respectively(-Wshadow).
23 (mi_cmd_env_dir): Ditto.
24
25 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
26
27 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
28 `optarg' to `oind' and `oarg', respectively(-Wshadow).
29
30 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
31
32 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
33 `optparg' to `oind' and `oarg', respectively(-Wshadow).
34 (mi_cmd_break_watch): Ditto.
35
36 2011-12-16 Tom Tromey <tromey@redhat.com>
37
38 * linespec.c (collect_symbols): Call maybe_add_address after
39 calling symbol_to_sal.
40 (minsym_found): Call maybe_add_address here.
41 (search_minsyms_for_name): Don't call maybe_add_address.
42
43 2011-12-16 Tom Tromey <tromey@redhat.com>
44
45 * linespec.c (struct collect_info) <objfile>: Remove field.
46 (decode_objc): Update.
47 (find_method): Update.
48 (decode_variable): Update.
49 (struct minsym_and_objfile): New.
50 (struct collect_minsyms): New.
51 (classify_mtype): New function.
52 (compare_msyms): Likewise.
53 (add_minsym): Likewise.
54 (check_minsym): Remove.
55 (search_minsyms_for_name): Sort minsyms and apply only those with
56 top priority.
57
58 2011-12-16 Tom Tromey <tromey@redhat.com>
59
60 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
61
62 2011-12-16 Pedro Alves <pedro@codesourcery.com>
63
64 * inf-loop.c: Include top.h.
65 (inferior_event_handler): Call check_frame_language.
66 * top.c (check_frame_language_change): New, factored out from ...
67 (execute_command): ... this. Use check_frame_language_change.
68 * top.h (check_frame_language_change): Declare.
69
70 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
71
72 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
73 prototypes.
74
75 2011-12-16 Doug Evans <dje@google.com>
76
77 * NEWS: Add entry for stdio gdbserver.
78
79 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
80
81 * python/python.c: Define python_excp_enums.
82 (eval_python_from_control_command): Do not call gdbpy_print_stack.
83 (python_command): Ditto.
84 (gdbpy_print_stack): Rewrite to use new enum constants.
85 (maint_set_python): Remove function.
86 (maint_show_python): Ditto.
87 (_initialize_python): Do not add "maint" commands. Add "set/show
88 python print-stack commands".
89 * NEWS: Update to reflect removal for "maint set/show
90 print-stack"
91
92 2011-12-15 Doug Evans <dje@google.com>
93
94 * exceptions.c (catcher_list_size): New function.
95 (last_message): Delete.
96 (exception_messages, exception_messages_size): New static globals.
97 (throw_it): Use exception_messages array to handle nested calls.
98
99 2011-12-15 Tom Tromey <tromey@redhat.com>
100
101 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
102 do_cleanups call.
103
104 2011-12-14 Doug Evans <dje@google.com>
105
106 * defs.h (wait_to_die_with_timeout): Declare.
107 * utils.c: #include "gdb_wait.h".
108 (sigalrm_handler, wait_to_die_with_timeout): New functions.
109 * ser-pipe.c: Don't #include "gdb_wait.h".
110 (pipe_close): Give child a chance to die on its own after closing
111 its stdin before SIGTERM'ing it.
112
113 2011-12-14 Joel Brobecker <brobecker@adacore.com>
114 Tom Tromey <tromey@redhat.com>
115
116 * ada-lang.c (add_nonlocal_symbols): Initialize data to
117 all zeros. Remove setting of data.arg_sym to NULL.
118
119 2011-12-14 Pedro Alves <pedro@codesourcery.com>
120
121 PR threads/10729
122
123 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
124 pointer.
125 (linux_nat_prepare_to_resume): New global.
126 (lwp_free): New.
127 (purge_lwp_list): Use it.
128 (add_lwp): Call linux_nat_new_thread even on the first LWP.
129 Adjust to interface change.
130 (delete_lwp): Call lwp_free instead of xfree.
131 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
132 (linux_handle_syscall_trap, linux_handle_extended_wait)
133 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
134 linux_nat_prepare_to_resume before resuming.
135 (linux_stop_lwp): New.
136 (linux_nat_set_new_thread): Adjust.
137 (linux_nat_set_prepare_to_resume): New.
138 * linux-nat.h (struct arch_lwp_info): Forward declare.
139 (struct lwp_info) <arch_private>: New field.
140 (linux_stop_lwp): Declare.
141 (linux_nat_set_new_thread): Adjust.
142 (linux_nat_set_prepare_to_resume): New.
143
144 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
145 (struct i386_debug_reg_state): Move to i386-nat.h.
146 (dr_mirror): Comment.
147 (i386_debug_reg_state): New.
148 (i386_update_inferior_debug_regs): Simplify.
149 (i386_stopped_data_address): Use the debug register state from the
150 inferior, not from the local cache.
151 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
152 unset_status fields. New get_addr and get_control fields.
153 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
154 (DR_NADDR, DR_STATUS): New.
155 (struct i386_debug_reg_state): Moved from i386-nat.c.
156
157 * amd64-linux-nat.c (struct arch_lwp_info): New.
158 (amd64_linux_dr): Delete global.
159 (amd64_linux_dr_get_addr): New.
160 (amd64_linux_dr_get_control): New.
161 (amd64_linux_dr_unset_status): Delete.
162 (amd64_linux_dr_set_addr): Reimplement.
163 (amd64_linux_dr_reset_addr): Delete.
164 (update_debug_registers_callback): New.
165 (amd64_linux_dr_set_control): Reimplement.
166 (amd64_linux_dr_set_addr): Reimplement.
167 (amd64_linux_prepare_to_resume): New.
168 (amd64_linux_new_thread): Change parameter to an lwp pointer.
169 Reimplement.
170 (_initialize_amd64_linux_nat): No longer install
171 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
172 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
173 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
174 amd64_linux_prepare_to_resume.
175 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
176 (DR_CONTROL): Delete.
177 (struct arch_lwp_info): New.
178 (i386_linux_dr): Delete global.
179 (i386_linux_dr_set_control): Reimplement.
180 (i386_linux_dr_get_addr): New.
181 (i386_linux_dr_set_addr): Reimplement.
182 (i386_linux_dr_get_control): New.
183 (update_debug_registers_callback): New.
184 (i386_linux_dr_unset_status): Delete.
185 (i386_linux_dr_set_addr): Reimplement.
186 (i386_linux_prepare_to_resume): New.
187 (i386_linux_new_thread): Change parameter to an lwp pointer.
188 Reimplement.
189 (_initialize_i386_linux_nat): No longer install
190 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
191 i386_linux_dr_get_control as i386_dr_low.get_control. Install
192 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
193 i386_linux_prepare_to_resume.
194
195 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
196 lwp pointer. Adjust.
197 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
198 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
199 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
200 * s390-nat.c (s390_fix_watch_points): Likewise.
201
202 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
203 (DR_CONTROL): Delete.
204 (i386_darwin_dr_reset_addr): Delete.
205 (i386_darwin_dr_get_addr): New.
206 (i386_darwin_dr_get_control): New.
207 * go32-nat.c
208 (go32_get_dr7, go32_get_dr): New.
209 (init_go32_ops): No longer install i386_dr_low.reset_addr.
210 Install go32_get_dr7 as i386_dr_low.get_control. Install
211 go32_get_dr as i386_dr_low.get_addr.
212 * i386bsd-nat.c (i386bsd_dr_get): New.
213 (i386bsd_dr_reset_addr): Delete.
214 (i386bsd_dr_get_addr): New.
215 (i386bsd_dr_get_status): Use i386bsd_dr_get.
216 (i386bsd_dr_get_control): New.
217 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
218 (i386bsd_dr_get_addr): New.
219 (i386bsd_dr_get_control): New.
220 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
221 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
222 i386bsd_dr_get_control as i386_dr_low.get_control. Install
223 i386bsd_dr_get_addr as i386_dr_low.get_addr.
224 * windows-nat.c (init_windows_ops): No longer install
225 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
226 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
227 as i386_dr_low.get_addr.
228 (cygwin_get_dr): New.
229 (cygwin_get_dr7): New.
230
231 2011-12-14 Pedro Alves <pedro@codesourcery.com>
232
233 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
234 target_write_raw_memory.
235 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
236 target_write_raw_memory.
237 * microblaze-linux-tdep.c
238 (microblaze_linux_memory_remove_breakpoint): Use
239 target_write_raw_memory.
240 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
241 target_write_raw_memory.
242
243 2011-12-14 Joel Brobecker <brobecker@adacore.com>
244
245 * linespec.c (decode_line_internal): Make static.
246
247 2011-12-14 Yao Qi <yao@codesourcery.com>
248
249 * breakpoint.c (create_breakpoint): Set canonical.addr_string
250 for static tracepoint.
251
252 2011-12-13 Joel Brobecker <brobecker@adacore.com>
253
254 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
255 * version.in: Bump version to 7.4.50.20111213-cvs.
256
257 2011-12-13 Joel Brobecker <brobecker@adacore.com>
258
259 * NEWS: Create a new section for the next release branch.
260 Rename the section of the current branch, now that it has
261 been cut.
262
263 2011-12-11 Joel Brobecker <brobecker@adacore.com>
264
265 * ada-lang.c (ada_exception_support_info_sniffer): Improve
266 error message.
267
268 2011-12-11 Joel Brobecker <brobecker@adacore.com>
269
270 * ada-lang.c (struct ada_inferior_data) [exception_info]:
271 New field.
272 (exception_info): Delete.
273 (ada_exception_support_info_sniffer): Get exception_support_info
274 data from our per-inferior data. Adjust code accordingly.
275 (ada_unhandled_exception_name_addr_from_raise): Likewise.
276 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
277 (ada_executable_changed_observer): Delete.
278 (_initialize_ada_language): Remove call to
279 observer_attach_executable_changed.
280
281 2011-12-11 Joel Brobecker <brobecker@adacore.com>
282
283 * ada-lang.c (ada_has_this_exception_support): Raise an error
284 if we could find the Ada exception hook in the Ada runtime,
285 but no debugging info for that hook.
286
287 2011-12-11 Joel Brobecker <brobecker@adacore.com>
288
289 * ada-lang.c (ada_has_this_exception_support): New function,
290 extracted out of ada_exception_sal and ada_exception_sal.
291 (ada_exception_support_info_sniffer): Simplify by using
292 ada_has_this_exception_support.
293 (ada_exception_sal): Replace unnecessary checks by assertions.
294 Minor simplifications.
295
296 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
297
298 * breakpoint.c (update_global_location_list): Remove nested
299 definition of `b'(-Wshadow).
300
301 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
302
303 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
304 `error_flag'(-Wshadow).
305
306 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
307
308 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
309 `abfd'(-Wshadow).
310
311 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
312
313 * annotate.c (annotate_array_section_begin): Rename `index' to
314 `idx'(-Wshadow).
315
316 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
317
318 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
319 `idx'(-Wshadow).
320
321 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
322
323 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
324 `syscall' to `syscall_number'(-Wshadow).
325
326 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
327
328 * ada-lang.c (remove_extra_symbols): Rename `remove' to
329 `remove_p'(-Wshadow).
330
331 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
332
333 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
334 `ren_sym'(-Wshadow).
335
336 2011-12-10 Doug Evans <dje@google.com>
337
338 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
339 debug_types_section. All uses updated.
340 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
341 to is_debug_types_section.
342
343 * python/py-auto-load.c (source_section_scripts): Call xfree
344 instead of free.
345
346 2011-12-10 Hui Zhu <teawater@gmail.com>
347 Yao Qi <yao@codesourcery.com>
348
349 * tracepoint.c (start_tracing): Clear `inserted' flag.
350
351 2011-12-10 Hui Zhu <teawater@gmail.com>
352
353 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
354
355 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
356
357 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
358 `bpoint'(-Wshadow).
359
360 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
361
362 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
363 `marker' variables to `sal2' and `tpmarker' respectively
364 (-Wshadow).
365
366 2011-12-09 Andrew Pinski <apinski@cavium.com>
367
368 * linespec.c (hash_address_entry): Use iterative_hash_object on each
369 field rather than the struct itself.
370
371 2011-12-09 Tom Tromey <tromey@redhat.com>
372
373 * breakpoint.c (compare_breakpoints): New function.
374 (clear_command): Remove duplicate breakpoints. Properly clean
375 up.
376
377 2011-12-08 Maciej W. Rozycki <macro@mips.com>
378 Maciej W. Rozycki <macro@codesourcery.com>
379
380 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
381 address chunks retrieved from decoded lui/addiu pairs.
382
383 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
384
385 * mips-tdep.c (extended_offset): Correct calculation.
386 (unpack_mips16): Correct bitfield positions used for extraction
387 of the immediate argument; fix sign-extension of same.
388 (extended_mips16_next_pc): Correct B instruction's offset
389 calculation. Correct register decoding of the BEQZ and BNEZ
390 as well as jump-register instructions. Handle compact jumps.
391
392 2011-12-08 Tom Tromey <tromey@redhat.com>
393
394 * objfiles.h (struct objfile): Remove obsolete comment.
395 * objfiles.c (build_objfile_section_table): Remove obsolete
396 comment.
397
398 2011-12-07 Stan Shebs <stan@codesourcery.com>
399
400 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
401 maintainer of the tic6x target.
402
403 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
404
405 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
406 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
407 (arm_deal_with_atomic_sequence_raw): Likewise.
408 (arm_deal_with_atomic_sequence): Likewise.
409 (arm_software_single_step): Call it.
410 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
411
412 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
413
414 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
415 where appropriate.
416 * s390-tdep.h: Likewise.
417
418 2011-12-07 Tristan Gingold <gingold@adacore.com>
419
420 * machoread.c (macho_symtab_read): Do not consider N_OPT as
421 a debugging stab. Improve complaint message.
422
423 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
424
425 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
426 load adjustment if still within the prologue.
427
428 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
429
430 * mips-tdep.c (mips32_next_pc): Fix floating point condition
431 code mask.
432
433 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
434
435 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
436 of BLTZ* and BGEZ* instructions.
437
438 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
439
440 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
441 performed to determine whether an address refers to standard
442 MIPS or MIPS16 code.
443 (mips16_next_pc): Use mips_pc_is_mips16 instead of
444 is_mips16_addr.
445
446 2011-12-06 Pedro Alves <pedro@codesourcery.com>
447
448 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
449 (breakpoint_xfer_memory): ... this. Change prototype. Handle
450 memory writes too.
451 * breakpoint.h (breakpoint_restore_shadows): Delete.
452 (breakpoint_xfer_memory): Declare.
453 * mem-break.c (default_memory_insert_breakpoint)
454 (default_memory_remove_breakpoint): Use target_write_raw_memory.
455 (memory_xfer_partial): Rename to ...
456 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
457 here.
458 (memory_xfer_partial): New.
459 (target_write_raw_memory): New.
460 * target.h (target_write_raw_memory): New.
461
462 2011-12-06 Doug Evans <dje@google.com>
463
464 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
465
466 2011-12-06 Joel Brobecker <brobecker@acacore.com>
467
468 * language.h (struct language_defn): Add new component
469 la_symbol_name_compare.
470 * symfile.h (struct quick_symbol_functions): Update the profile
471 of parameter "name_matcher" for the expand_symtabs_matching
472 method. Update the documentation accordingly.
473 * ada-lang.h (ada_name_for_lookup): Add declaration.
474 * ada-lang.c (ada_name_for_lookup): New function, extracted out
475 from ada_iterate_over_symbols.
476 (ada_iterate_over_symbols): Do not encode symbol name anymore.
477 (ada_expand_partial_symbol_name): Adjust profile.
478 (ada_language_defn): Add value for la_symbol_name_compare field.
479 * linespec.c: #include "ada-lang.h".
480 (iterate_name_matcher): Add language parameter. Replace call
481 to strcmp_iw by call to language->la_symbol_name_compare.
482 (decode_variable): Encode COPY if current language is Ada.
483 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
484 of name_matcher parameter. Adjust call to name_matcher.
485 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
486 (expand_partial_symbol_names): Update profile of parameter "fun".
487 * psymtab.h (expand_partial_symbol_names): Update profile of
488 parameter "fun".
489 * symtab.c (demangle_for_lookup): Update function documentation.
490 (search_symbols_name_matches): Add language parameter.
491 (expand_partial_symbol_name): Likewise.
492 * c-lang.c (c_language_defn, cplus_language_defn)
493 (asm_language_defn, minimal_language_defn): Add value for
494 la_symbol_name_compare field.
495 * d-lang.c (d_language_defn): Likewise.
496 * f-lang.c (f_language_defn): Ditto.
497 * jv-lang.c (java_language_defn): Ditto.
498 * m2-lang.c (m2_language_defn): Ditto.
499 * objc-lang.c (objc_language_defn): Ditto.
500 * opencl-lang.c (opencl_language_defn): Ditto.
501 * p-lang.c (pascal_language_defn): Ditto.
502 * language.c (unknown_language_defn, auto_language_defn)
503 (local_language_defn): Ditto.
504
505 2011-12-06 Tom Tromey <tromey@redhat.com>
506
507 * linespec.c (iterate_over_all_matching_symtabs): Use
508 LA_ITERATE_OVER_SYMBOLS.
509 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
510 (find_function_symbols, decode_variable): Remove Ada special
511 case.
512 * language.h (struct language_defn) <la_iterate_over_symbols>: New
513 field.
514 (LA_ITERATE_OVER_SYMBOLS): New macro.
515 * language.c (unknown_language_defn, auto_language_defn)
516 (local_language_defn): Update.
517 * c-lang.c (c_language_defn, cplus_language_defn)
518 (asm_language_defn, minimal_language_defn): Update.
519 * d-lang.c (d_language_defn): Update.
520 * f-lang.c (f_language_defn): Update.
521 * jv-lang.c (java_language_defn): Update.
522 * m2-lang.c (m2_language_defn): Update.
523 * objc-lang.c (objc_language_defn): Update.
524 * opencl-lang.c (opencl_language_defn): Update.
525 * p-lang.c (pascal_language_defn): Update.
526 * ada-lang.c (ada_iterate_over_symbols): New function.
527 (ada_language_defn): Update.
528
529 2011-12-06 Tom Tromey <tromey@redhat.com>
530 Joel Brobecker <brobecker@acacore.com>
531
532 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
533 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
534 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
535 PR shlibs/8929, PR shlibs/7393:
536 * python/py-type.c (compare_maybe_null_strings): Rename from
537 compare_strings.
538 (check_types_equal): Update.
539 * utils.c (compare_strings): New function.
540 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
541 location changes.
542 * tracepoint.c (scope_info): Update.
543 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
544 * symtab.h (iterate_over_minimal_symbols)
545 (iterate_over_some_symtabs, iterate_over_symtabs)
546 (find_pcs_for_symtab_line, iterate_over_symbols)
547 (demangle_for_lookup): Declare.
548 (expand_line_sal): Remove.
549 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
550 (lookup_symtab_callback): New functions.
551 (lookup_symtab): Rewrite.
552 (demangle_for_lookup): New function, extract from
553 lookup_symbol_in_language.
554 (lookup_symbol_in_language): Use it.
555 (iterate_over_symbols): New function.
556 (find_line_symtab): Update.
557 (find_pcs_for_symtab_line): New functions.
558 (find_line_common): Add 'start' argument.
559 (decode_line_spec): Update. Change argument to 'flags', change
560 interpretation.
561 (append_expanded_sal): Remove.
562 (append_exact_match_to_sals): Remove.
563 (expand_line_sal): Remove.
564 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
565 Remove.
566 <map_symtabs_matching_filename>: New field.
567 * stack.c (func_command): Only look in the current program space.
568 Use DECODE_LINE_FUNFIRSTLINE.
569 * source.c (line_info): Set pspace on sal. Check program space in
570 the loop. Use DECODE_LINE_LIST_MODE.
571 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
572 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
573 * python/python.c (gdbpy_decode_line): Update.
574 * psymtab.c (partial_map_expand_apply): New function.
575 (partial_map_symtabs_matching_filename): Rename from
576 lookup_partial_symbol. Update arguments.
577 (lookup_symtab_via_partial_symtab): Remove.
578 (psym_functions): Update.
579 * objc-lang.h (parse_selector, parse_method): Don't declare.
580 (find_imps): Update.
581 * objc-lang.c (parse_selector, parse_method): Now static.
582 (find_methods): Change arguments. Fill in a vector of symbol
583 names.
584 (uniquify_strings): New function.
585 (find_imps): Change arguments.
586 * minsyms.c (iterate_over_minimal_symbols): New function.
587 * linespec.h (enum decode_line_flags): New.
588 (struct linespec_sals): New.
589 (struct linespec_result) <canonical>: Remove.
590 <pre_expanded, addr_string, sals>: New fields.
591 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
592 (decode_line_full): Declare.
593 (decode_line_1): Update.
594 * linespec.c (struct address_entry, struct linespec_state, struct
595 collect_info): New types.
596 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
597 (eq_address_entry, maybe_add_address): New functions.
598 (total_number_of_methods): Remove.
599 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
600 functions.
601 (find_methods): Change arguments. Don't canonicalize input.
602 Simplify logic.
603 (add_matching_methods, add_constructors)
604 (build_canonical_line_spec): Remove.
605 (filter_results, convert_results_to_lsals): New functions.
606 (decode_line_2): Change arguments. Rewrite for new data
607 structures.
608 (decode_line_internal): Rename from decode_line_1. Change
609 arguments. Add cleanups. Update for new data structures.
610 (linespec_state_constructor, linespec_state_destructor)
611 (decode_line_full, decode_line_1): New functions.
612 (decode_indirect): Change arguments. Update.
613 (locate_first_half): Use skip_spaces.
614 (decode_objc): Change arguments. Update for new data structures.
615 Simplify logic.
616 (decode_compound): Change arguments. Add cleanups. Remove
617 fallback code, replace with error.
618 (struct decode_compound_collector): New type.
619 (collect_one_symbol): New function.
620 (lookup_prefix_sym): Change arguments. Update.
621 (compare_symbol_name, add_all_symbol_names_from_pspace)
622 (find_superclass_methods ): New functions.
623 (find_method): Rewrite.
624 (struct symtab_collector): New type.
625 (add_symtabs_to_list, collect_symtabs_from_filename): New
626 functions.
627 (symtabs_from_filename): Change API. Rename from
628 symtab_from_filename.
629 (collect_function_symbols): New function.
630 (find_function_symbols): Change API. Rename from
631 find_function_symbol. Rewrite.
632 (decode_all_digits): Change arguments. Rewrite.
633 (decode_dollar): Change arguments. Use decode_variable.
634 (decode_label): Change arguments. Rewrite.
635 (collect_symbols): New function.
636 (minsym_found): Change arguments. Rewrite.
637 (check_minsym, search_minsyms_for_name)
638 (add_matching_symbols_to_info): New function.
639 (decode_variable): Change arguments. Iterate over all symbols.
640 (symbol_found): Remove.
641 (symbol_to_sal): New function.
642 (init_linespec_result, destroy_linespec_result)
643 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
644 New functions.
645 (decode_digits_list_mode, decode_digits_ordinary): New functions.
646 * dwarf2read.c (dw2_map_expand_apply): New function.
647 (dw2_map_symtabs_matching_filename): Rename from
648 dw2_lookup_symtab. Change arguments.
649 (dwarf2_gdb_index_functions): Update.
650 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
651 * defs.h (compare_strings): Declare.
652 * cli/cli-cmds.c (compare_strings): Move to utils.c.
653 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
654 filter_sals.
655 (compare_symtabs, filter_sals): New functions.
656 * breakpoint.h (struct bp_location) <line_number, source_file>:
657 New fields.
658 (struct breakpoint) <line_number, source_file>: Remove.
659 <filter>: New field.
660 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
661 (momentary_breakpoint_from_master, add_location_to_breakpoint):
662 Update for changes to locations.
663 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
664 breakpoint.
665 (create_breakpoint_sal): Add 'filter' argument.
666 (remove_sal, expand_line_sal_maybe): Remove.
667 (create_breakpoints_sal): Remove 'sals' argument. Handle
668 pre-expanded sals and the filter.
669 (parse_breakpoint_sals): Use decode_line_full.
670 (check_fast_tracepoint_sals): Use get_sal_arch.
671 (create_breakpoint): Create a linespec_sals. Update.
672 (break_range_command): Use decode_line_full. Update.
673 (until_break_command): Update.
674 (clear_command): Update match conditions for linespec.c changes.
675 Use DECODE_LINE_LIST_MODE.
676 (say_where): Update for changes to locations.
677 (bp_location_dtor): Free 'source_file'.
678 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
679 (update_static_tracepoint): Update for changes to locations.
680 (update_breakpoint_locations): Disable ranged breakpoint if too
681 many locations match. Update.
682 (addr_string_to_sals): Use decode_line_full. Resolve all sal
683 PCs.
684 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
685 (decode_line_spec_1): Update. Change argument name to 'flags',
686 change interpretation.
687 * block.h (block_containing_function): Declare.
688 * block.c (block_containing_function): New function.
689 * skip.c (skip_function_command): Update.
690 (skip_re_set): Update.
691 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
692 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
693 * NEWS: Add entry.
694
695 2011-12-06 Tom Tromey <tromey@redhat.com>
696
697 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
698 breakpoint's pspace to be NULL.
699 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
700 * breakpoint.c (init_raw_breakpoint): Conditionally set
701 breakpoint's pspace.
702 (init_breakpoint_sal): Don't set breakpoint's pspace.
703 (prepare_re_set_context): Conditionally switch program space.
704 (addr_string_to_sals): Check executing_startup on location's
705 program space.
706
707 2011-12-06 Tom Tromey <tromey@redhat.com>
708
709 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
710 * breakpoint.c (should_be_inserted): Explicitly check if program
711 space is executing startup.
712 (describe_other_breakpoints): Update.
713 (disable_breakpoints_before_startup): Change executing_startup
714 earlier. Remove loop.
715 (enable_breakpoints_after_startup): Likewise.
716 (init_breakpoint_sal): Don't use bp_startup_disabled.
717 (create_breakpoint): Don't use bp_startup_disabled.
718 (update_global_location_list): Use should_be_inserted.
719 (bkpt_re_set): Update.
720
721 2011-12-06 Tom Tromey <tromey@redhat.com>
722
723 * python/lib/gdb/command/pretty_printers.py
724 (InfoPrettyPrinter.invoke1): Remove extra double quote.
725
726 2011-12-06 Tom Tromey <tromey@redhat.com>
727
728 * NEWS: Add MI news.
729
730 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
731
732 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
733 (S390_LAST_BREAK_REGNUM): Likewise.
734 (S390_SYSTEM_CALL_REGNUM): Likewise.
735 (S390_NUM_REGS): Update.
736
737 (s390_regmap_last_break): Add declaration.
738 (s390x_regmap_last_break): Likewise.
739 (s390_regmap_system_call): Likewise.
740
741 (tdesc_s390_linux32v1): Add declaration.
742 (tdesc_s390_linux32v2): Likewise.
743 (tdesc_s390_linux64v1): Likewise.
744 (tdesc_s390_linux64v2): Likewise.
745 (tdesc_s390x_linux64v1): Likewise.
746 (tdesc_s390x_linux64v2): Likewise.
747
748 * s390-tdep.c: Include new target description files
749 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
750 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
751 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
752 (s390_cannot_store_register): New function.
753 (s390_write_pc): Likewise.
754 (s390_dwarf_regmap): Add fields for new registers.
755 (s390_regmap_gregset): Likewise.
756 (s390x_regmap_gregset): Likewise.
757 (s390_regmap_fpregset): Likewise.
758 (s390_regmap_upper): Likewise.
759 (s390_regmap_last_break): New variable.
760 (s390x_regmap_last_break): Likewise.
761 (s390_regmap_system_call): Likewise.
762 (s390_last_break_regset): Likewise.
763 (s390x_last_break_regset): Likewise.
764 (s390_system_call_regset): Likewise.
765 (s390_upper_regset_sections): Rename to ...
766 (s390_linux64_regset_sections): ... this.
767 (s390_linux32_regset_sections): New variable.
768 (s390x_linux64_regset_sections): Likewise.
769 (s390_linux32v1_regset_sections): Likewise.
770 (s390_linux32v2_regset_sections): Likewise.
771 (s390_linux64v1_regset_sections): Likewise.
772 (s390_linux64v2_regset_sections): Likewise.
773 (s390x_linux64v1_regset_sections): Likewise.
774 (s390x_linux64v2_regset_sections): Likewise.
775 (s390_regset_from_core_section): Handle .reg-s390-last-break and
776 .reg-s390-system-call core file sections.
777 (s390_core_read_description): Check for presence of
778 .reg-s390-last-break and .reg-s390-system-call core file
779 sections and return appropriate target description.
780 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
781 "last_break" and "system_call" in target description. Install
782 appropriate gdbarch_core_regset_sections array.
783 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
784 (_initialize_s390_tdep): Initialize additional target descriptions.
785
786 * s390-nat.c: Include "elf/common.h".
787 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
788 (have_regset_last_break): New static variable.
789 (have_regset_system_call): Likewise.
790 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
791 (s390_native_collect): Likewise.
792 (fetch_regset, store_regset, check_regset): New functions.
793 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
794 and S390_SYSTEM_CALL_REGNUM.
795 (s390_linux_store_inferior_registers): Likewise.
796 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
797 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
798
799 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
800 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
801 (s390-linux32v1-expedite): Define.
802 (s390-linux32v2-expedite): Likewise.
803 (s390-linux64v1-expedite): Likewise.
804 (s390-linux64v2-expedite): Likewise.
805 (s390x-linux64v1-expedite): Likewise.
806 (s390x-linux64v2-expedite): Likewise.
807
808 * features/s390-linux32.xml: Add orig_r2 register.
809 * features/s390-linux64.xml: Likewise.
810 * features/s390x-linux64.xml: Likewise.
811 * features/s390-linux32v1.xml: New file.
812 * features/s390-linux32v2.xml: Likewise.
813 * features/s390-linux64v1.xml: Likewise.
814 * features/s390-linux64v2.xml: Likewise.
815 * features/s390x-linux64v1.xml: Likewise.
816 * features/s390x-linux64v2.xml: Likewise.
817
818 * features/s390-linux32.c: Regenerate.
819 * features/s390-linux64.c: Likewise.
820 * features/s390x-linux64.c: Likewise.
821 * features/s390-linux32v1.c: New generated file.
822 * features/s390-linux32v2.c: Likewise.
823 * features/s390-linux64v1.c: Likewise.
824 * features/s390-linux64v2.c: Likewise.
825 * features/s390x-linux64v1.c: Likewise.
826 * features/s390x-linux64v2.c: Likewise.
827
828 * regformats/s390-linux32.dat: Regenerate.
829 * regformats/s390-linux64.dat: Regenerate.
830 * regformats/s390x-linux64.dat: Regenerate.
831 * regformats/s390-linux32v1.dat: New generated file.
832 * regformats/s390-linux32v2.dat: Likewise.
833 * regformats/s390-linux64v1.dat: Likewise.
834 * regformats/s390-linux64v2.dat: Likewise.
835 * regformats/s390x-linux64v1.dat: Likewise.
836 * regformats/s390x-linux64v2.dat: Likewise.
837
838 2011-12-05 Pedro Alves <pedro@codesourcery.com>
839
840 * linux-nat.c (resume_stopped_resumed_lwps): Call
841 registers_changed.
842
843 2011-12-05 Pedro Alves <pedro@codesourcery.com>
844
845 * breakpoint.c: Include record.h.
846 (breakpoints_always_inserted_mode): Return false when the record
847 target is in use.
848
849 2011-12-05 Pedro Alves <pedro@codesourcery.com>
850
851 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
852 Reinstate perror_with_name call on ptrace error. Remove #if 0.
853 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
854 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
855
856 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
857
858 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
859 `i'(-Wshadow).
860
861 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
862
863 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
864
865 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
866
867 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
868 of `tdep'(-Wshadow).
869
870 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
871
872 Fix compilation --without-expat.
873 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
874 from ...
875 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
876
877 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
878 Jan Kratochvil <jan.kratochvil@redhat.com>
879
880 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
881 * features/library-list-svr4.dtd: New file.
882 * remote.c (PACKET_qXfer_libraries_svr4): New.
883 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
884 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
885 * solib-svr4.c (struct svr4_library_list): New.
886 [HAVE_LIBEXPAT]: Include xml-support.h.
887 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
888 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
889 [HAVE_LIBEXPAT] (svr4_library_list_children)
890 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
891 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
892 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
893 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
894 (svr4_read_so_list): Extend the corruption message by addresses.
895 (svr4_current_sos): New variable library_list, call
896 svr4_current_sos_via_xfer_libraries.
897 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
898
899 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
900
901 PR threads/13448
902 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
903 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
904
905 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
906
907 PR breakpoints/13346
908 * dwarf2read.c (process_psymtab_comp_unit): Set
909 PSYMTABS_ADDRMAP_SUPPORTED.
910 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
911 validity. New field psymtabs_addrmap_supported.
912 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
913 psymtabs_addrmap_supported.
914 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
915 !PSYMTABS_ADDRMAP_SUPPORTED.
916 (dump_psymtab, maintenance_info_psymtabs): Print also
917 psymtabs_addrmap_supported.
918
919 2011-12-01 Doug Evans <dje@google.com>
920
921 * python/py-type.c (type_object_methods): Fix "array" doc string.
922
923 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
924
925 * source.c (print_source_lines_base): Fix missing braces on else
926 clause leading to additional output.
927
928 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
929
930 * s390-nat.c (SUBOFF): Remove.
931 (s390_native_supply, s390_native_collect): New functions.
932 (supply_gregset, supply_fpregset): Use s390_native_supply.
933 (fill_gregset, fill_fpregset): Use s390_native_collect.
934
935 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
936 (s390_unwind_pseudo_register): New function.
937 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
938 registers instead of PC and CC.
939 (s390_backchain_frame_unwind_cache): Likewise.
940 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
941 full GPR pseudos.
942 (s390_trad_frame_prev_register): New function.
943 (s390_frame_prev_register): Use it.
944 (s390_sigtramp_frame_prev_register): Likewise.
945 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
946 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
947 special callback to unwind any pseudo.
948
949 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
950 * features/s390-core64.xml: Likewise.
951 * features/s390x-core64.xml: Likewise.
952 * features/s390-linux32.c: Regenerate.
953 * features/s390-linux64.c: Likewise.
954 * features/s390x-linux64.c: Likewise.
955
956 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
957
958 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
959
960 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
961
962 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
963 instruction. Add more diagnostic output.
964
965 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
966
967 * MAINTAINERS (Write After Approval): Add myself to the list.
968
969 2011-11-29 Sanjoy Das <sdas@igalia.com>
970
971 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
972 (jit_bfd_try_read_symtab): Fix comments.
973
974 2011-11-28 DJ Delorie <dj@redhat.com>
975
976 * NEWS: Mention RL78 simulator.
977
978 2011-11-28 Joel Brobecker <brobecker@adacore.com>
979
980 * symfile.h (struct quick_symbol_functions): Fix the documentation
981 of field map_matching_symbols, as symbols are sorted using
982 strcmp_iw_ordered, not strcmp_iw.
983
984 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
985
986 * symfile.h (struct quick_symbol_functions): Update the
987 documentation for field map_matching_symbols.
988
989 2011-11-28 Joel Brobecker <brobecker@adacore.com>
990
991 * ada-lang.c (compare_names): Fix wrong return value in case
992 string1 starts with the same contents as string2, followed
993 by an underscore that do not start a symbol name suffix.
994
995 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
996
997 PR python/13369
998 PR python/13374
999
1000 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1001 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1002 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1003 exceptions.
1004 * python/py-type.c (typy_strip_typedefs): Ditto.
1005 (typy_legacy_template_argument): Ditto.
1006 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1007 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1008
1009 2011-11-27 Joel Brobecker <brobecker@acacore.com>
1010
1011 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1012 local variable. Avoid use of sprintf_vma.
1013
1014 2011-11-27 Sanjoy Das <sdas@igalia.com>
1015
1016 Fix regression in jit.exp.
1017 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1018 (jit_register_code): Set the jit_objfile_data field to the correct
1019 value.
1020
1021 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1022
1023 * alpha-tdep.c (br_opcode): New.
1024 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1025 (alpha_deal_with_atomic_sequence): New function.
1026 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1027 with alpha_deal_with_atomic_sequence.
1028
1029 2011-11-24 Tristan Gingold <gingold@adacore.com>
1030
1031 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1032 fields. Add oso_sym, end_sym and nbr_syms.
1033 (macho_register_oso): Change interface.
1034 (macho_symtab_add_minsym): New function.
1035 (macho_symtab_read): Rewritten.
1036 (get_archive_prefix_len): Remove trailing blanks.
1037 (oso_el_compare_name): Add comment.
1038 (struct macho_sym_hash_entry): New structure.
1039 (macho_relocate_common_syms): Remove.
1040 (macho_sym_hash_newfunc): New function.
1041 (macho_resolve_oso_sym_with_minsym): Likewise.
1042 (macho_add_oso_symfile): Rewritten.
1043 (macho_symfile_read_all_oso): Remove trailing blanks.
1044 Adjust code to free oso vector.
1045 (macho_symfile_read): Likewise.
1046 Move code to initialize minimal symbol
1047
1048 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1049
1050 * mips-tdep.c (extended_offset): Fix formatting.
1051
1052 2011-11-23 Doug Evans <dje@google.com>
1053
1054 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1055 (dw2_expand_symtabs_with_filename): Ditto.
1056 (dw2_expand_symtabs_matching): Ditto.
1057 (dw2_map_symbol_filenames): Ditto.
1058
1059 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1060
1061 * ada-lang.c (assign_aggregate): Minor reformatting.
1062
1063 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1064
1065 * ada-lang.c (assign_aggregate): Remove declaration of local
1066 variable `i' which is shadowing another variable with the same
1067 name declared in the outer scope.
1068
1069 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1070
1071 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1072 calls throughout this file.
1073
1074 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1075
1076 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1077 FormatMessage.
1078
1079 2011-11-22 Tom Tromey <tromey@redhat.com>
1080
1081 PR mi/8444:
1082 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1083 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1084 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1085 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1086 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1087 (print_it_catch_syscall, print_it_catch_exec)
1088 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1089 (bpstat_print): Add 'kind' argument. Handle
1090 TARGET_WAITKIND_LOADED.
1091 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1092 handle TARGET_WAITKIND_LOADED here.
1093 * breakpoint.h (bpstat_print): Update.
1094
1095 2011-11-22 Tom Tromey <tromey@redhat.com>
1096
1097 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1098
1099 2011-11-22 Tom Tromey <tromey@redhat.com>
1100
1101 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1102 Use static_assert to check the size of
1103 async_reason_string_lookup.
1104 * common/gdb_assert.h (static_assert): New macro.
1105
1106 2011-11-22 Alan Modra <amodra@gmail.com>
1107
1108 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1109 destination calculation. Don't expect >> to sign extend. Don't
1110 add a break if branch lands inside the sequence anywhere.
1111
1112 2011-11-21 Keith Seitz <keiths@redhat.com>
1113
1114 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1115 -var-evaluate-expression of an enumeration and fix expected result.
1116 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1117
1118 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1119
1120 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1121 the case where osdata->items is empty. Rename column names to a
1122 canonical form to avoid problems with unusual column names.
1123
1124 2011-11-21 Yao Qi <yao@codesourcery.com>
1125
1126 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1127
1128 2011-11-20 Stan Shebs <stan@codesourcery.com>
1129
1130 * NEWS: Mention tracepoint additions.
1131 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1132 * breakpoint.c (print_one_breakpoint_location): Identify
1133 tracepoints as such when reporting hit counts, report
1134 trace buffer usage.
1135 (create_tracepoint_from_upload): Copy status info.
1136 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1137 add fields user_name, notes, start_time, stop_time.
1138 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1139 * tracepoint.c (trace_user): New global.
1140 (trace_notes): New global.
1141 (trace_stop_notes): New global.
1142 (start_tracing): Add argument and trace note handling.
1143 (stop_tracing): Ditto.
1144 (trace_start_command): Add notes argument.
1145 (trace_stop_command): Ditto.
1146 (trace_status_command): Report additional status info.
1147 (trace_status_mi): Similarly.
1148 (trace_save): Update, record tracepoint status.
1149 (set_disconnected_tracing): Call target method directly.
1150 (send_disconnected_tracing_value): Remove.
1151 (set_trace_user): New function.
1152 (set_trace_notes): New function.
1153 (set_trace_stop_notes): New function.
1154 (parse_trace_status): Handle additional status.
1155 (parse_tracepoint_status): New function.
1156 (parse_tracepoint_definition): Call it.
1157 (tfile_get_tracepoint_status): New function.
1158 (init_tfile_ops): Use it.
1159 (_initialize_tracepoint): Add new setshows.
1160 * target.h (struct target_ops): New methods to_get_tracepoint_status
1161 and to_set_trace_notes.
1162 (target_get_tracepoint_status): New macro.
1163 (target_set_trace_notes): New macro.
1164 * target.c (update_current_target): Add new methods.
1165 * remote.c (remote_get_tracepoint_status): New function.
1166 (remote_set_trace_notes): New function.
1167 (init_remote_ops): Add them.
1168 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1169 (mi_cmd_trace_stop): Ditto.
1170
1171 2011-11-20 Sanjoy Das <sdas@igalia.com>
1172
1173 * jit.c: Include regcache.h.
1174 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1175 (jit_unwind_reg_set_impl, free_reg_value_impl)
1176 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1177 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1178 (jit_frame_prev_register, jit_dealloc_cache)
1179 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1180 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1181 jit_prepend_unwinder.
1182 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1183
1184 2011-11-20 Sanjoy Das <sdas@igalia.com>
1185
1186 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1187 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1188 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1189 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1190 (finalize_symtab, jit_object_close_impl)
1191 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1192 (free_objfile_data): New functions.
1193 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1194 function.
1195
1196 2011-11-20 Sanjoy Das <sdas@igalia.com>
1197
1198 * jit.c: Include gdb-dlfcn.h.
1199 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1200 (jit_reader_load, jit_reader_load_command)
1201 (jit_reader_unload_command): New functions.
1202 (_initialize_jit): Add commands "jit-reader-load" and
1203 "jit-reader-unload".
1204
1205 2011-11-20 Sanjoy Das <sdas@igalia.com>
1206
1207 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1208 * config.in: Add new #define HAVE_LIBDL.
1209 * configure.ac: Add check for -ldl.
1210 * configure: Re-generated by autoconf.
1211 * gdb-dlfcn.c: New file.
1212 * gdb-dlfcn.h: New file.
1213
1214 2011-11-20 Sanjoy Das <sdas@igalia.com>
1215
1216 * config.in: Add new #defines: JIT_READER_DIR and
1217 JIT_READER_DIR_RELOCATABLE.
1218 * configure.ac: New GDB directory entry for jit-reader-dir.
1219 * configure: Re-generated by autoconf.
1220 * jit.c: New static variable: const char *jit_reader_dir.
1221 (_initialize_jit): Relocate jit_reader_dir.
1222
1223 2011-11-20 Sanjoy Das <sdas@igalia.com>
1224
1225 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1226 $(includedir)/gdb.
1227 * configure.ac: Generate a correct value for TARGET_PTR for
1228 jit-reader.h. Tell configure to generate jit-reader.h from
1229 jit-reader.in.
1230 * configure: Re-generated by autoconf.
1231 * jit-reader.in: New file.
1232 * jit.c: Include jit-reader.h.
1233
1234 2011-11-20 Sanjoy Das <sdas@igalia.com>
1235
1236 * MAINTAINERS (Write After Approval): Add myself to the list.
1237
1238 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1239
1240 * findvar.c (read_frame_register_value): Respect value_offset
1241 of the register value. Remove big-endian special case.
1242
1243 2011-11-18 Tom Tromey <tromey@redhat.com>
1244
1245 PR build/7196:
1246 * remote.c (putpkt_for_catch_errors): New function.
1247 (remote_kill): Use it.
1248
1249 2011-11-18 Yao Qi <yao@codesourcery.com>
1250
1251 * breakpoint.c (create_breakpoint): Produce query message according to
1252 breakpoint's type.
1253 Allocate tracepoint per correct type.
1254 Don't check SALs for pending fast tracepoints.
1255 * tracepoint.c (process_tracepoint_on_disconnect): New.
1256 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1257
1258 2011-11-18 Yao Qi <yao@codesourcery.com>
1259
1260 * breakpoint.c (install_breakpoint): Add one more parameter so that
1261 update_global_location_list is called conditionally.
1262 (create_fork_vfork_event_catchpoint): Update.
1263 (create_syscall_event_catchpoint): Update.
1264 (create_breakpoint_sal): Update.
1265 (create_breakpoint_sal): Update. Call do_cleanups before
1266 install_breakpoint.
1267 * ada-lang.c (create_ada_exception_catchpoint): Update.
1268 * breakpoint.h (install_breakpoint): Update declaration.
1269
1270 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1271
1272 * spu-tdep.c (spu_return_value): Fix handling of
1273 TYPE_CALLING_CONVENTION annotation.
1274
1275 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1276
1277 * skip.c (skip_function_command): Work around uninitialized
1278 variable warning.
1279
1280 2011-11-16 David S. Miller <davem@davemloft.net>
1281
1282 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1283 'tv_usec' to long for printf since these fields have a type which
1284 varies.
1285
1286 2011-11-15 Doug Evans <dje@google.com>
1287
1288 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1289
1290 2011-11-15 Paul Koning <paul_koning@dell.com>
1291
1292 * python/py-type.c (typy_get_composite): New function.
1293 (typy_nonzero): New function.
1294 (typy_values): Rename from typy_fields.
1295 (typy_fields): New function.
1296 (typy_length): Raise exception if not struct, union, or enum type.
1297 (typy_getitem): Ditto.
1298 (typy_has_key): Ditto.
1299 (typy_make_iter): Ditto.
1300
1301 2011-11-15 Doug Evans <dje@google.com>
1302
1303 PR gdb/8367
1304 * NEWS: Mention new parameter basenames-may-differ.
1305 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1306 ! basenames_may_differ.
1307 * psymtab.c (lookup_partial_symtab): Ditto.
1308 * symtab.c (lookup_symtab): Ditto.
1309 (basenames_may_differ): New global.
1310 (_initialize_symtab): New parameter basenames-may-differ.
1311 * symtab.h (basenames_may_differ): Declare.
1312
1313 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1314 Luis Machado <lgustavo@codesourcery.com>
1315
1316 * auxv.c: Include observer.h.
1317 (auxv_inferior_data_cleanup): New.
1318 (invalidate_auxv_cache_inf): New.
1319 (invalidate_auxv_cache): New.
1320 (get_auxv_inferior_data): New.
1321 (auxv_inferior_data): New static global.
1322 (auxv_info): New structure.
1323 (target_auxv_search): Use get_auxv_inferior_data instead of
1324 target_read_alloc and don't free cached buffers.
1325 (fprint_target_auxv): Likewise
1326 (_initialize_auxv): Register per-inferior auxv cache and register
1327 observers to invalidate auxv cache when needed.
1328
1329 2011-11-14 Doug Evans <dje@google.com>
1330
1331 PR gdb/7200 Make "!" an alias for "shell".
1332 * NEWS: Add mention.
1333 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1334 adding "!" command, always add it.
1335 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1336 command of length one.
1337
1338 2011-11-14 Stan Shebs <stan@codesourcery.com>
1339 Kwok Cheung Yeung <kcy@codesourcery.com>
1340
1341 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1342 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1343 the minimum instruction size for fast tracepoints.
1344 * target.h (struct target_ops): Add new method
1345 to_get_min_fast_tracepoint_insn_len.
1346 (target_get_min_fast_tracepoint_insn_len): New.
1347 * target.c (update_current_target): Set up new target operation.
1348 * remote.c (remote_write_bytes_aux): Fix typo.
1349 (remote_get_min_fast_tracepoint_insn_len): New.
1350 (init_remote_ops): Initialize new field.
1351
1352 2011-11-14 Tom Tromey <tromey@redhat.com>
1353
1354 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1355 (encode_actions): Likewise.
1356
1357 2011-11-14 Yao Qi <yao@codesourcery.com>
1358
1359 * remote.c (struct remote_state): <install_in_trace> new field.
1360 (PACKET_InstallInTrace): New enum value.
1361 (remote_install_in_trace_feature): Support InstallInTrace.
1362 (remote_supports_install_in_trace): Likewise.
1363 (remote_protocol_features): Likewise.
1364 (_initialize_remote): Likewise.
1365 (remote_can_download_tracepoint): New.
1366 * target.h (struct target): New field
1367 `to_can_download_tracepoint'.
1368 (target_can_download_tracepoint): New macro.
1369 * target.c (update_current_target): Update.
1370 * breakpoint.h (struct bp_location): Add comment on field
1371 `duplicate'.
1372 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1373 and tracepoint.
1374 (remove_breakpoints): Don't remove tracepoints.
1375 (tracepoint_locations_match ): New.
1376 (breakpoint_locations_match): Call it.
1377 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1378 (download_tracepoint_locations): New.
1379 (update_global_location_list): Call it.
1380 * tracepoint.c (find_matching_tracepoint): Delete.
1381 (find_matching_tracepoint_location): Renamed from
1382 find_matching_tracepoint. Return bp_location rather than
1383 tracepoint.
1384 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1385 tracepoint is found.
1386
1387 2011-11-14 Yao Qi <yao@codesourcery.com>
1388
1389 * target.h (struct target): <to_download_tracepoint> Change type
1390 of parameter from tracepoint to bp_location.
1391 * target.c (update_current_target): Update.
1392 * tracepoint.c (start_tracing): Update.
1393 * remote.c (remote_download_tracepoint): Remove loop for each location
1394 of a tracepoint.
1395
1396 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1397
1398 * i386-nat.c (i386_insert_hw_breakpoint): Call
1399 i386_update_inferior_debug_regs.
1400 (i386_remove_hw_breakpoint): Likewise.
1401
1402 2011-11-14 Yao Qi <yao@codesourcery.com>
1403
1404 * breakpoint.c (init_raw_breakpoint): Call
1405 add_location_to_breakpoint to replace duplicated code.
1406 (add_location_to_breakpoint): Adjust the breakpoint's
1407 address prior to allocating a location.
1408
1409 2011-11-12 Matt Rice <ratmice@gmail.com>
1410
1411 * macrocmd.c (macro_no_macro_info): New function.
1412 (macro_expand_command): Use macro_no_macro_info.
1413 (macro_expand_once_command): Ditto.
1414 (info_macro_command): Add argument processing,
1415 move info_definitions_command here.
1416 (_initialize_macrocmd): Remove info definitions command.
1417 Add arguments to info macro help text.
1418 * NEWS: Replace info definitions command with new info macro options.
1419
1420 2011-11-11 Keith Seitz <keiths@redhat.com>
1421
1422 PR gdb/12843
1423 * linespec.c (locate_first_half): Keep ':' if it looks
1424 like it could be part of a Windows path starting with
1425 a drive letter.
1426
1427 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1428
1429 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1430 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1431
1432 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1433
1434 * target.c (target_waitstatus_to_string): Handle
1435 TARGET_WAITKIND_NO_RESUMED.
1436
1437 2011-11-10 Doug Evans <dje@google.com>
1438
1439 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1440 `need_fullname'.
1441 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1442 (map_partial_symbol_filenames): Ditto. All callers updated.
1443 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1444 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1445 parameter need_fullname.
1446
1447 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1448 * source.c (symtab_to_fullname): Ditto.
1449
1450 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1451 * gdb-demangle.h: ... here. New file.
1452 * demangle.c: #include "gdb-demangle.h".
1453 (_initialize_demangler): Use initialize_file_ftype for prototype.
1454 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1455 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1456 from utils.c
1457 * utils.c: Update. #include "gdb-demangle.h".
1458 * symtab.h (asm_demangle): Delete.
1459 (demangle): Move declaration next to use.
1460 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1461 * dwarf2read.c: #include "gdb-demangle.h".
1462 * gnu-v2-abi.c: Ditto.
1463 * jv-typeprint.c: Ditto.
1464 * mdebugread.c: Ditto.
1465 * p-typeprint.c: Ditto.
1466 * stabsread.c: Ditto.
1467 * printcmd.c: Ditto.
1468 (asm_demangle): Delete declaration.
1469 * tui/tui-stack.c: #include "gdb-demangle.h".
1470
1471 * python/py-type.c (typy_fields_items): Call check_typedef.
1472
1473 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1474
1475 * findvar.c (read_frame_register_value): Read the correct bytes
1476 from registers on big-endian architectures.
1477
1478 2011-11-10 Tom Tromey <tromey@redhat.com>
1479
1480 * procfs.c (load_syscalls): Make a cleanup.
1481 (open_procinfo_files): fd==0 is ok.
1482
1483 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1484
1485 * procfs.c (iterate_over_mappings): Call do_cleanups before
1486 returning.
1487
1488 2011-11-09 Doug Evans <dje@google.com>
1489
1490 * gdbtypes.c (check_typedef): Document that this function can
1491 throw an exception.
1492
1493 2011-11-09 Tom Tromey <tromey@redhat.com>
1494
1495 PR c++/13342:
1496 * valops.c (value_full_object): Return early if real type is
1497 smaller than the enclosing type.
1498
1499 2011-11-08 Yao Qi <yao@codesourcery.com>
1500
1501 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1502
1503 2011-11-08 Meador Inge <meadori@codesourcery.com>
1504
1505 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1506 register when the frame can't be determined.
1507 * arm-tdep.c (arm_analyze_prologue): Ditto.
1508
1509 2011-11-07 Stan Shebs <stan@codesourcery.com>
1510
1511 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1512
1513 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1514
1515 * infrun.c (handle_inferior_event): Minor reformatting.
1516
1517 2011-11-05 Doug Evans <dje@google.com>
1518
1519 * source.c (forget_cached_source_info_for_objfile): Move call to
1520 objfile->sf->qf->forget_cached_source_info outside of
1521 ALL_OBJFILE_SYMTABS loop.
1522 (forget_cached_source_info): Delete unused variable `s'.
1523
1524 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1525
1526 * i386-nat.c (dr_ref_count): Remove unused variable.
1527
1528 2011-11-05 Doug Evans <dje@google.com>
1529
1530 * main.c (captured_main): Set lim_at_start before calling
1531 make_command_stats_cleanup.
1532
1533 2011-11-04 Doug Evans <dje@google.com>
1534
1535 * utils.c: #include "timeval-utils.h".
1536 (cmd_stats): Rename start_time to start_cpu_time.
1537 New member start_wall_time.
1538 (report_command_stats): Report wall time.
1539 (make_command_stats_cleanup): Record start wall time.
1540
1541 2011-11-04 Tom Tromey <tromey@redhat.com>
1542
1543 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1544
1545 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1546
1547 * coff-pe-read.c: Include defs.h before bfd.h.
1548
1549 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1550
1551 PR Python/13345
1552
1553 * python/python.c (python_run_simple_file): Expand tilde in path.
1554
1555 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1556
1557 PR Python/13363
1558
1559 * python/py-type.c (typy_lookup_type): Do not return a type in
1560 an exception handler.
1561
1562 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1563 Eli Zaretskii <eliz@gnu.org>
1564
1565 * linux-nat.c (_initialize_linux_nat): Improve help
1566 for `info proc stat', `info proc status', `info proc cwd',
1567 `info proc cmdline' and `info proc exe'.
1568
1569 2011-11-02 Stan Shebs <stan@codesourcery.com>
1570
1571 String collection for tracepoints.
1572 * NEWS: Mention string collection.
1573 * common/ax.def (tracenz): New bytecode.
1574 * ax-gdb.h (trace_string_kludge): Declare.
1575 * ax-gdb.c: Include valprint.h and c-lang.h.
1576 (trace_string_kludge): New global.
1577 (gen_traced_pop): Add string case.
1578 (agent_command): Add string case.
1579 * tracepoint.h (decode_agent_options): Declare.
1580 * tracepoint.c: Include cli-utils.h.
1581 (decode_agent_options): New function.
1582 (validate_actionline): Call it.
1583 (encode_actions_1): Ditto.
1584 * target.h (struct target_ops): New method to_supports_string_tracing.
1585 (target_supports_string_tracing): New macro.
1586 * target.c (update_current_target): Add to_supports_string_tracing.
1587 * remote.c (struct remote_state): New field string_tracing.
1588 (remote_string_tracing_feature): New function.
1589 (remote_protocol_features): New feature tracenz.
1590 (remote_supports_string_tracing): New function.
1591 (init_remote_ops): Set to_supports_string_tracing.
1592
1593 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1594 Jan Kratochvil <jan.kratochvil@redhat.com>
1595
1596 * linux-nat.c: Include cli/cli-utils.h.
1597 (enum info_proc_what): New.
1598 (linux_nat_info_proc_cmd): Rename to ...
1599 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1600 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1601 status_f and stat_f from WHAT. Throw error on extra parameters.
1602 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1603 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1604 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1605 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1606 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1607 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1608 `info proc cmdline', `info proc exe' and `info proc all' as real
1609 subcommands of `info proc'.
1610
1611 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1612
1613 * Makefile.in: (SFILES): Add skip.c.
1614 (HFILES_NO_SRCDIR): Add skip.h.
1615 (COMMON_OBS): Add skip.o.
1616 * skip.h, skip.c: New.
1617 * breakpoint.h (set_default_breakpoint): Remove.
1618 (get_sal_arch): Declare.
1619 * breakpoint.c: Remove default_breakpoint_valid,
1620 default_breakpoint_address, default_breakpoint_symtab,
1621 default_breakpoint_line, default_breakpoint_pspace variables.
1622 (get_sal_arch): Make public.
1623 (set_default_breakpoint): Remove.
1624 (parse_breakpoint_sals, create_breakpoint, clear_command,
1625 decode_line_spec_1): Remove uses of default_breakpoint variables;
1626 replaced with function calls into stack.c.
1627 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1628 * cli/cli-cmds.c: Add skiplist.
1629 (init_cmd_lists): Initialize skiplist.
1630 (init_cli_cmds): Fix comment (classes of commands appear in
1631 alphabetical order).
1632 * infrun.c (handle_inferior_event): Add check that we don't step into
1633 a function whose pc is marked for skip.
1634 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1635 last_displayed_addr, last_displayed_symtab, last_displayed_line
1636 variables.
1637 (set_last_displayed_sal): New static function.
1638 (print_frame_info): Switch call to set_default_breakpoint to call to
1639 set_last_displayed_sal.
1640 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1641 get_last_displayed_pspace, get_last_displayed_addr,
1642 get_last_displayed_symtab, get_last_displayed_line,
1643 get_last_displayed_sal): New public functions.
1644 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1645 get_last_displayed_pspace, get_last_displayed_addr,
1646 get_last_displayed_symtab, get_last_displayed_line,
1647 get_last_displayed_sal): Declare.
1648
1649 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1650
1651 * MAINTAINERS (Write After Approval): Add myself to the list.
1652
1653 2011-10-29 Yao Qi <yao@codesourcery.com>
1654
1655 * infcmd.c (disconnect_command): Call disconnect_tracing.
1656
1657 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1658
1659 Code cleanup.
1660 * symtab.c (skip_prologue_sal): Code reformatting.
1661
1662 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1663
1664 PR symtab/13208
1665 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1666 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1667 SAI.
1668
1669 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1670
1671 * linux-nat.c (linux_nat_filter_event): Remove `options'
1672 parameter, and dead code that used it. If we're handling a
1673 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1674 in our lwp list, re-add it.
1675 (check_zombie_leaders): New.
1676 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1677 wait for children with WNOHANG, and always wait for all children.
1678 Don't check for no resumed children upfront. Simplify wait loop.
1679 Check for zombie thread group leaders after handling all wait
1680 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1681 unwaited-for children left.
1682 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1683 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1684 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1685 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1686
1687 2011-10-28 Sterling Augustine <saugustine@google.com>
1688
1689 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1690 * symtab.c (free_completion_list): New function.
1691 (do_free_completion_list): Likewise.
1692 (default_make_symbol_completion_list_break_on): New variable
1693 back_to. Call make_cleanup and discard_cleanups.
1694 (make_source_files_completion_list): Likewise.
1695
1696 2011-10-28 Paul Koning <paul_koning@dell.com>
1697
1698 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1699 * NEWS: Mention deep_items.
1700
1701 2011-10-28 Alen Skondro <askondro@gmail.com>
1702
1703 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1704 defined.
1705
1706 2011-10-27 Meador Inge <meadori@codesourcery.com>
1707
1708 * MAINTAINERS (Write After Approval): Add myself to the list.
1709
1710 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1711
1712 * value.h (read_frame_register_value): Add declaration.
1713 * findvar.c (read_frame_register_value): New function.
1714 (value_from_register): Use read_frame_register_value
1715 instead of get_frame_register_value + value_contents_copy
1716 to get value contents.
1717
1718 2011-10-27 Doug Evans <dje@google.com>
1719
1720 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1721 source_script_from_stream if it may have been found on the search path.
1722 * python/py-auto-load.c (source_section_scripts): Pass full path to
1723 source_python_script_for_objfile.
1724 * python/python.c (source_python_script): Delete stream parameter.
1725 All callers updated.
1726 (source_python_script_for_objfile): Ditto.
1727 * python/python-internal.h (source_python_script_for_objfile): Update.
1728 * python/python.h (source_python_script): Update.
1729
1730 2011-10-27 Tom Tromey <tromey@redhat.com>
1731
1732 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1733 (ada_sals_for_line): Remove declarations.
1734
1735 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1736
1737 Move unwind reasons to an external .def file
1738 * frame.c (frame_stop_reason_string): Rewrite using
1739 unwind_stop_reasons.def.
1740 * frame.h (enum unwind_stop_reason): Likewise.
1741 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1742 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1743 constants for bound-checking.
1744 * unwind_stop_reasons.def: New file.
1745 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1746 instead of a distinct value.
1747
1748 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1749
1750 PR python/13331
1751
1752 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1753 (convert_values_to_python): Return on Python tuple allocation
1754 failure. Return NULL on value conversion error.
1755
1756 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1757
1758 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1759 (bppy_set_task): Ditto.
1760 (bppy_delete_breakpoint): Ditto.
1761 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1762 (gdbpy_lookup_global_symbol): Ditto.
1763 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1764 * python/py-frame.c (frapy_is_valid): Ditto.
1765 (frame_info_to_frame_object): Ditto.
1766 * python/py-type.c (typy_lookup_type): Ditto.
1767 (typy_getitem): Ditto.
1768 (typy_has_key): Ditto.
1769 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1770
1771 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1772
1773 * gdbarch.h: Regenerate.
1774
1775 2011-10-26 Meador Inge <meadori@codesourcery.com>
1776
1777 * gdbarch.sh (function_list): Use 'pstring' when printing
1778 'gcore_bfd_target'.
1779 * gdbarch.c: Regenerate.
1780
1781 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1782
1783 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1784 and frame caches if PTID refers to all threads of a process.
1785
1786 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1787
1788 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1789 to create_breakpoint.
1790
1791 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1792
1793 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1794 (ppc_sysv_abi_push_dummy_call): Use it.
1795 (do_ppc_sysv_return_value): Likewise.
1796 (ppc64_sysv_abi_push_dummy_call): Likewise.
1797 (ppc64_sysv_abi_return_value): Likewise.
1798
1799 2011-10-26 Paul Koning <paul_koning@dell.com>
1800
1801 * python/lib/gdb/types.py (deepitems): New function.
1802
1803 2011-10-25 Paul Koning <paul_koning@dell.com>
1804
1805 PR python/13327
1806
1807 * python/py-value.c (value_to_value_object): Remove fetching of
1808 the value if it was lazy.
1809 (valpy_get_is_lazy): New function.
1810 (valpy_fetch_lazy): New function.
1811
1812 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1813
1814 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1815 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1816
1817 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1818
1819 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1820 event, in non-stop, if not stopping, make sure the new lwp has
1821 last_resume_kind set to resume_continue. Assert that when we're
1822 resuming the new lwp, its last_resume_kind is resume_continue.
1823
1824 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1825
1826 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1827 already set when marking the event thread as not executing in
1828 non-stop mode.
1829
1830 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1831
1832 * infrun.c (handle_inferior_event): Add debug output for
1833 TARGET_WAITKIND_NO_HISTORY.
1834
1835 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1836
1837 * NEWS: Move set/show extended-prompt to "New Options". Expand
1838 description. Fix typos.
1839
1840 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1841
1842 PR python/13310
1843
1844 * python/py-param.c (call_doc_function): Correctly deference on
1845 function exit.
1846
1847 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1848
1849 * ada-tasks.c (print_ada_task_info): Fix computation of
1850 number of tasks displayed in command output.
1851
1852 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1853 Ulrich Weigand <uweigand@de.ibm.com>
1854
1855 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1856 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1857 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1858 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1859 gdbarch_unwind_pc.
1860
1861 2011-10-20 Cary Coutant <ccoutant@google.com>
1862
1863 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1864 section to...
1865 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1866 flag. Adjust all callers.
1867 (process_psymtab_comp_unit): Remove adjustment for type section.
1868
1869 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1870
1871 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1872 arguments by adding OBJFILE. Instead of getting objfile from
1873 symbol's symtab, use new argument OBJFILE.
1874 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1875 arguments by adding OBJFILE.
1876 * gdb/dwarf2read.c (new_symbol_full): Change call to
1877 cp_scan_for_anonymous_namespaces to match new signature.
1878 * gdb/stabsread.c (define_symbol): Change call to
1879 cp_scan_for_anonymous_namespaces to match new signature.
1880
1881 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1882
1883 PR python/13308
1884 PR python/13309
1885
1886 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1887 leak.
1888 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1889 leak. Delete unused variables.
1890
1891 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1892
1893 PR python/12656
1894
1895 * python/py-frame.c (frapy_read_var): Use const struct *block.
1896 * python/py-type.c (typy_lookup_typename): Likewise.
1897 (typy_lookup_type): Likewise.
1898 (typy_legacy_template_argument): Likewise.
1899 (typy_template_argument): Likewise.
1900 (gdbpy_lookup_type): Likewise.
1901 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1902 * python/py-block.c (blpy_block_object): Likewise.
1903 (blpy_iter): Likewise.
1904 (blpy_get_start): Likewise.
1905 (blpy_get_end): Likewise.
1906 (blpy_get_function): Likewise.
1907 (blpy_get_superblock): Likewise.
1908 (set_block): Likewise.
1909 (block_to_block_object): Likewise.
1910 (block_object_to_block): Likewise.
1911 (blpy_is_valid): Likewise.
1912 (blpy_get_global_block): New function.
1913 (blpy_get_static_block): New function.
1914 (blpy_is_global): New function.
1915 (blpy_is_static): New function.
1916 * blockframe.c (block_innermost_frame): Likewise.
1917 * valops.c (value_of_variable): Likewise.
1918 * frame.h: Update prototypes.
1919 * python/python-internal.h: Likewise.
1920 * value.h: Likewise.
1921
1922 2011-10-19 Cary Coutant <ccoutant@google.com>
1923
1924 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1925 type_offset field.
1926
1927 2011-10-19 Cary Coutant <ccoutant@google.com>
1928
1929 * dwarf2read.c (peek_abbrev_code): New function.
1930 (dw2_get_file_names): Check for dummy compilation units.
1931 (create_debug_types_hash_table): Likewise.
1932 (process_psymtab_comp_unit): Likewise.
1933 (load_partial_comp_unit): Likewise.
1934 (load_full_comp_unit): Likewise.
1935
1936 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1937
1938 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1939 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1940 pt_phdr if PT_PHDR was found.
1941
1942 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1943
1944 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1945 type or "<unnamed type"> when there is no name assigned.
1946 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1947 avoid a sigint when no name is assigned.
1948
1949 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1950
1951 Revert:
1952 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1953 * dwarf2expr.c (ctx_no_read_reg): New function.
1954 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1955 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1956 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1957 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1958
1959 2011-10-16 Doug Evans <dje@google.com>
1960
1961 * NEWS: Document python gdb.printing.register_pretty_printer's new
1962 `replace' parameter.
1963
1964 2011-10-14 Keith Seitz <keiths@redhat.com>
1965
1966 PR c++/13225
1967 * eval.c (evaluate_subexp_standard): Do not construct
1968 an array of types; pass the value array directly to
1969 find_overload_match.
1970 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1971 (rank_function): Take an array of values instead of types.
1972 (rank_one_type): Add struct value * parameter.
1973 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1974 (rank_function): For each argument, pass the argument's
1975 value to rank_one_type.
1976 (rank_one_type): Add VALUE parameter.
1977 If the parameter type is a pointer and the argument type
1978 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1979 VALUE is zero.
1980 Update all calls to rank_one_type, passing NULL for new
1981 VALUE parameter.
1982 * valarith.c (value_user_defined_cpp_op): Do not construct
1983 an array of types; pass the value array directly to
1984 find_overload_match.
1985 * valops.c (find_overload_method_list): Take an array of
1986 values instead of types.
1987 Save the type of OBJP for later use.
1988 Update calls to find_oload_champ, and find_oload_champ_namespace.
1989 (find_oload_champ_namespace): Take an array of values instead
1990 of types.
1991 (find_oload_champ_namespace_loop): Likewise.
1992 (find_oload_champ): Likewise.
1993 (classify_oload_match): Inspect all arguments
1994 until INCOMPATIBLE is found. Return the worst badness found
1995 otherwise.
1996 (compare_parameters): Update call to rank_one_type.
1997 * value.h (find_overload_match): Take an array of values instead
1998 of types.
1999
2000 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2001
2002 Drop lazy lm_info reading.
2003 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2004 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2005 (lm_info_read): New function.
2006 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2007 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2008 lm_dynamic_from_link_map.
2009 (lm_next, lm_prev, lm_name): Remove.
2010 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2011 initialization incl. read_memory. No longer use lm_name.
2012 (svr4_free_so): Drop lm_info->lm freeing.
2013 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2014 explicit lm_addr and lm initialization.
2015 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2016 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2017 lm_name.
2018
2019 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2020 Paul Pluzhnikov <ppluzhnikov@google.com>
2021
2022 * defs.h (struct so_list): New forward declaration.
2023 (make_cleanup_free_so): New declaration.
2024 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2025 (svr4_free_so): Move the function here from downwards. Handle NULL
2026 so->lm_info.
2027 (svr4_free_library_list): New.
2028 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2029 Use more cleanups. Use new parameter ignore_first instead of
2030 ignore_first_link_map_entry.
2031 (svr4_current_sos): New variable ignore_first, initialize it. New
2032 variable back_to, use it for svr4_free_library_list protection.
2033 (svr4_free_so): Remove - move upwards.
2034 * utils.c: Include solist.h.
2035 (do_free_so, make_cleanup_free_so): New functions.
2036
2037 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2038
2039 Fix internal error regression.
2040 * value.c (value_primitive_field): Handle value_optimized_out. Move
2041 packed bitfields comment.
2042
2043 2011-10-13 Tom Tromey <tromey@redhat.com>
2044
2045 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2046 always released.
2047
2048 2011-10-13 Tom Tromey <tromey@redhat.com>
2049
2050 * python/py-type.c (typy_has_key): Make 'field' const.
2051
2052 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2053
2054 * remote.c (remote_save_trace_data): Invert comparison.
2055
2056 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2057
2058 * tracepoint.c (trace_save_command): Use filename instead of
2059 args when printing.
2060
2061 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2062
2063 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2064 if .size is 0.
2065
2066 2011-10-13 Yao Qi <yao@codesourcery.com>
2067
2068 PR gdb/12703
2069 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2070 whether insn is a 32-bit Thumb-2 instruction.
2071 (thumb_in_function_epilogue_p): Likewise.
2072 (thumb_get_next_pc_raw): Likewise.
2073 (arm_breakpoint_from_pc): Likewise.
2074
2075 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2076
2077 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2078 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2079 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2080 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2081 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2082 zero DATA.
2083 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2084 validity.
2085 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2086 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2087 clear DATA on zero SIZE.
2088
2089 2011-10-12 Doug Evans <dje@google.com>
2090
2091 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2092 header->first_die_offset here. All callers updated.
2093
2094 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2095
2096 Fix compatibility with texinfo versions older than 4.12.
2097 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2098 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2099 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2100 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2101 * configure: Regenerate.
2102 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2103 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2104 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2105
2106 2011-10-12 Gary Benson <gbenson@redhat.com>
2107
2108 * breakpoint.h (pc_at_non_inline_function): Declare.
2109 * breakpoint.c (is_non_inline_function,
2110 pc_at_non_inline_function): New functions.
2111 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2112 if the stop is at a location where functions cannot be inlined.
2113
2114 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2115
2116 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2117 the core wanted them stopped, or if they now have a pending event
2118 to report.
2119 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2120 down to stop_and_resume_callback.
2121 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2122 having new pending events after calling linux_nat_filter_event.
2123
2124 2011-10-11 Sterling Augustine <saugustine@google.com>
2125
2126 * dwarf2read.c: Undo inadvertent changes in previous commit.
2127
2128 2011-10-11 Sterling Augustine <saugustine@google.com>
2129
2130 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2131 logic.
2132
2133 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2134
2135 * symfile.c (separate_debug_file_exists): Fix condition.
2136
2137 2011-10-11 David S. Miller <davem@davemloft.net>
2138
2139 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2140 static.
2141 * regcache.h (regcache_restore): Remove declaration.
2142
2143 * gdbarch.sh: New field 'long_long_align_bit'.
2144 * gdbarch.c, gdbarch.h: Regenerate.
2145 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2146 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2147
2148 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2149
2150 Revert this part of:
2151 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2152 Support @entry in input expressions.
2153 * c-exp.y (ENTRY, unknown_cpp_name): New.
2154 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2155 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2156 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2157 (name_not_typename: ENTRY): New.
2158 (yylex): Recognize ENTRY.
2159
2160 Reimplement @entry in input expressions.
2161 * c-exp.y (ENTRY): New.
2162 (variable: name_not_typename ENTRY): New.
2163 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2164
2165 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2166
2167 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2168 parent and child's pids as soon as we detect a clone event.
2169 Adjust another debug message.
2170
2171 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2172
2173 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2174 not zombie instead of reading the whole file.
2175
2176 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2177
2178 Fix separate debuginfo warning with "remote:" access.
2179 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2180 * symfile.c (get_file_crc): New function with the code moved from ...
2181 (separate_debug_file_exists): ... this function, specifically variables
2182 buffer and count. New variable verified_as_different, set it. Remove
2183 file_crc initialization. Verify also if both files are not the same
2184 manually, if needed.
2185
2186 2011-10-11 Yao Qi <yao@codesourcery.com>
2187
2188 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2189 to get address.
2190
2191 2011-10-10 Doug Evans <dje@google.com>
2192
2193 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2194 libthread_db when we load libpthread or the main symbol file.
2195 (thread_db_inferior_created): New function.
2196 (_initialize_thread_db): Attach inferior_created observer.
2197 * linux-nat.c (linux_child_post_attach): Remove call to
2198 check_for_thread_db.
2199 (linux_child_post_startup_inferior): Ditto.
2200 * objfiles.h (OBJF_MAINLINE): Define.
2201 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2202 allocate_objfile when appropriate.
2203
2204 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2205
2206 PR gdb/13218
2207 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2208 Remove unused variables.
2209 (get_linux_version): Remove function.
2210 (_initialize_arm_linux_nat): Do not call it.
2211
2212 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2213
2214 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2215 new clone lwp if the core asked it to stop. Don't pass on
2216 unexpected signals to the new clone; leave them pending instead.
2217
2218 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2219
2220 * linux-nat.c (resume_lwp): Remove redundant debug output.
2221
2222 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2223
2224 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2225 last_resume_kind before clearing it, and use the copy instead to
2226 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2227 resume_clear_callback in the non-stop path too.
2228
2229 2011-10-09 Yao Qi <yao@codesourcery.com>
2230
2231 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2232 Honor OPTIONS and VAL's type.
2233 (common_val_print, value_print): Update to pass one more parameter.
2234
2235 2011-10-09 Doug Evans <dje@google.com>
2236
2237 Add new "alias" command.
2238 * NEWS: Mention new command.
2239 * command.h (valid_user_defined_cmd_name_p): Declare.
2240 * defs.h (make_cleanup_dyn_string_delete): Declare.
2241 * utils.c: #include "dyn-string.h".
2242 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2243 * cli/cli-cmds.c: #include "dyn-string.h".
2244 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2245 (init_cli_cmds): Add new command.
2246 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2247
2248 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2249
2250 Fix compatibility with older GCCs.
2251 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2252 * stack.c (read_frame_arg): Initialize val_deref.
2253
2254 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2255
2256 Entry values NEWS entries, DWARF disassembly support.
2257 * NEWS: New entry values entry.
2258 (set print entry-values, show print entry-values)
2259 (set debug entry-values, show debug entry-values): New entries.
2260 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2261 indent. Remove variable start. Move header printing out. Respect
2262 INDENT. Support DW_OP_GNU_entry_value.
2263 (locexpr_describe_location_1): Move the header printing here, extend
2264 the disassemble_dwarf_expression passed parameters.
2265
2266 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2267
2268 Display @entry parameter values even for references.
2269 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2270 coerce_ref_if_computed.
2271 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2272 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2273 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2274 existing push_dwarf_reg_entry_value call. Add new detection calling
2275 dwarf_block_to_dwarf_reg_deref. Update the error message.
2276 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2277 * dwarf2expr.h
2278 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2279 parameter deref_size, describe it in the comment.
2280 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2281 (dwarf_block_to_dwarf_reg_deref): New declaration.
2282 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2283 deref_size, describe it in the function comment. New variables
2284 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2285 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2286 describe it in the function comment. Fetch the alternative block
2287 accoring to DEREF_SIZE.
2288 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2289 (entry_data_value_free_closure, entry_data_value_funcs): New.
2290 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2291 outer_val, target_val, val and addr. Try to fetch and create also
2292 referenced value content.
2293 (pieced_value_funcs): NULL value for coerce_ref.
2294 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2295 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2296 coerce_ref_if_computed.
2297 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2298 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2299 * stack.c (read_frame_arg): Compare also dereferenced values.
2300 * value.c (value_computed_funcs): Make the parameter v const, use
2301 value_lval_const for it.
2302 (value_lval_const, coerce_ref_if_computed): New function.
2303 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2304 * value.h (struct lval_funcs): New field coerce_ref.
2305 (value_computed_funcs): Make the parameter v const.
2306 (value_lval_const, coerce_ref_if_computed): New declarations.
2307
2308 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2309
2310 Support @entry in input expressions.
2311 * c-exp.y (ENTRY, unknown_cpp_name): New.
2312 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2313 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2314 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2315 (name_not_typename: ENTRY): New.
2316 (yylex): Recognize ENTRY.
2317 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2318 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2319 Likewise.
2320 * parse.c (operator_length_standard): Likewise.
2321 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2322
2323 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2324
2325 Display referenced values in backtraces.
2326 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2327 * stack.c (print_frame_arg): Likewise.
2328
2329 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2330
2331 Make some lval_funcs methods to default on NULL.
2332 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2333 NULL.
2334 (value_assign): Check if lval_computed write method is NULL.
2335 * value.h (struct lval_funcs): Comment NULL values for read and write
2336 methods.
2337
2338 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2339
2340 Display @entry parameter values (without references).
2341 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2342 New functions.
2343 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2344 New declarations.
2345 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2346 entry record.
2347 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2348 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2349 functions.
2350 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2351 (loclist_read_variable_at_entry): New function.
2352 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2353 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2354 DW_AT_location, call dwarf_block_to_sp_offset for it.
2355 * frame.h (print_entry_values_no, print_entry_values_only)
2356 (print_entry_values_preferred, print_entry_values_if_needed)
2357 (print_entry_values_both, print_entry_values_compact)
2358 (print_entry_values_default, print_entry_values): New declarations.
2359 (struct frame_arg): New field entry_kind.
2360 (read_frame_arg): New parameter entryargp.
2361 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2362 arg->entry_kind. Optionally print the `@entry' suffix.
2363 (list_args_or_locals): New variable entryarg, initialize it.
2364 Initialize also entry_kind of arg and entryarg. Conditionalize
2365 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2366 xfree for entryarg.error.
2367 * stack.c (print_entry_values_no, print_entry_values_only)
2368 (print_entry_values_preferred, print_entry_values_if_needed)
2369 (print_entry_values_both, print_entry_values_compact)
2370 (print_entry_values_default, print_entry_values_choices)
2371 (print_entry_values): New variables.
2372 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2373 print the `@entry' suffix, possibly in combination for
2374 print_entry_values_compact.
2375 (read_frame_arg): New parameter entryargp, new variables entryval,
2376 entryval_error and val_equal. Read in also entryargp, respect
2377 print_entry_values, compare the values using val_equal, fill in also
2378 argp->entry_kind (together with entryargp->entry_kind).
2379 (print_frame_args): New variable entryarg, initialize it.
2380 Conditionalize print_frame_arg for arg, add print_frame_arg for
2381 entryarg. Call xfree for entryarg.error.
2382 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2383 * symtab.h (struct symbol_computed_ops): New field
2384 read_variable_at_entry.
2385
2386 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2387
2388 Code reshuffle.
2389 * frame.h (struct frame_arg): New definition.
2390 (read_frame_arg): New declaration.
2391 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2392 (list_args_or_locals): ... the code here. New variable arg, call
2393 read_frame_arg and list_arg_or_local with it. Unify the
2394 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2395 arg.error.
2396 * stack.c (print_frame_arg): New functiom from the code of
2397 print_frame_args.
2398 (read_frame_arg): New function.
2399 (print_frame_args): Remove variable val. New variable arg, call
2400 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2401
2402 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2403
2404 Protect entry values against self tail calls.
2405 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2406 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2407
2408 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2409
2410 Recognize virtual tail call frames.
2411 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2412 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2413 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2414 * dwarf2-frame-tailcall.c: New file.
2415 * dwarf2-frame-tailcall.h: New file.
2416 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2417 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2418 REGS.PREV only after CIE execution.
2419 (struct dwarf2_frame_cache): New field tailcall_cache.
2420 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2421 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2422 parts, try to find entry_cfa_sp_offset. Call
2423 dwarf2_tailcall_sniffer_first.
2424 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2425 when appropriate.
2426 (dwarf2_frame_dealloc_cache): New function.
2427 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2428 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2429 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2430 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2431 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2432 * dwarf2loc.c (func_addr_to_tail_call_list)
2433 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2434 (call_site_find_chain_1, call_site_find_chain): New.
2435 * dwarf2loc.h (struct call_site_chain): New.
2436 (call_site_find_chain): New declaration.
2437 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2438 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2439 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2440 * stack.c (frame_info): Support also TAILCALL_FRAME.
2441
2442 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2443
2444 Tail call sites reader implementation.
2445 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2446 fill in TYPE_TAIL_CALL_LIST.
2447 * gdbtypes.h (struct func_type): New field tail_call_list.
2448 (struct call_site): New field tail_call_next.
2449 (TYPE_TAIL_CALL_LIST): New definition.
2450
2451 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2452
2453 Implement basic support for DW_TAG_GNU_call_site.
2454 * block.c: Include gdbtypes.h and exceptions.h.
2455 (call_site_for_pc): New function.
2456 * block.h (call_site_for_pc): New declaration.
2457 * defs.h: Include hashtab.h.
2458 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2459 declarations.
2460 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2461 ctx_no_push_dwarf_reg_entry_value.
2462 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2463 (dwarf_block_to_dwarf_reg): New function.
2464 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2465 (ctx_no_push_dwarf_reg_entry_value): New function.
2466 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2467 push_dwarf_reg_entry_value.
2468 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2469 declarations.
2470 * dwarf2loc.c: Include gdbcmd.h.
2471 (dwarf_expr_ctx_funcs): New forward declaration.
2472 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2473 (dwarf_expr_reg_to_entry_parameter)
2474 (dwarf_expr_push_dwarf_reg_entry_value): New.
2475 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2476 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2477 (needs_dwarf_reg_entry_value): New function.
2478 (needs_frame_ctx_funcs): Install it.
2479 (_initialize_dwarf2loc): New function.
2480 * dwarf2loc.h (entry_values_debug): New declaration.
2481 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2482 (read_call_site_scope): New forward declaration.
2483 (process_full_comp_unit): Copy call_site_htab.
2484 (process_die): Support DW_TAG_GNU_call_site.
2485 (read_call_site_scope): New function.
2486 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2487 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2488 (cleanup_htab): Delete.
2489 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2490 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2491 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2492 FIELD_LOC_KIND_DWARF_BLOCK.
2493 * gdbtypes.h (enum field_loc_kind): New entry
2494 FIELD_LOC_KIND_DWARF_BLOCK.
2495 (struct main_type): New loc entry dwarf_block.
2496 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2497 (TYPE_FIELD_DWARF_BLOCK): New.
2498 * python/py-type.c: Include dwarf2loc.h.
2499 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2500 internal_error call on unknown FIELD_LOC_KIND.
2501 * symtab.h (struct symtab): New field call_site_htab.
2502 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2503 (core_addr_hash, core_addr_eq): New functions.
2504
2505 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2506
2507 Code reshuffle.
2508 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2509 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2510 calling_convention under func_stuff there.
2511 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2512 (init_type) <TYPE_CODE_FUNC>: Likewise.
2513 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2514 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2515 * gdbtypes.h (enum type_specific_kind): Change
2516 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2517 (struct main_type) <type_specific>: Change calling_convention to
2518 func_stuff. Move calling_convention to ...
2519 (struct func_type): ... this new struct.
2520 (INIT_FUNC_SPECIFIC): New #define.
2521 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2522
2523 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2524
2525 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2526 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2527 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2528 ctx->ref_addr_size. Handle its invalid value.
2529 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2530 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2531 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2532 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2533 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2534 (dwarf2_per_cu_ref_addr_size): New function.
2535
2536 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2537
2538 Code cleanup.
2539 * dwarf2read.c (per_cu_header_read_in): New function.
2540 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2541 variables cu_header_local and cu_headerp.
2542
2543 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2544
2545 Fix initial language detection with -readnow.
2546 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2547 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2548 searches only for global symbols.
2549
2550 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2551
2552 Fix printed anonymous struct name.
2553 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2554 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2555 (anonymous_struct_prefix): New function.
2556 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2557 (dwarf2_name): Strip for anonymous structs any prefixes.
2558
2559 2011-10-07 Doug Evans <dje@google.com>
2560
2561 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2562 `replace'.
2563
2564 * python/lib/gdb/printing.py: Whitespace cleanup.
2565
2566 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2567 warning.
2568
2569 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2570
2571 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2572 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2573 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2574 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2575 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2576 (arm_linux_remove_watchpoint): Adjust.
2577 * i386-linux-nat.c (i386_linux_dr_set_control)
2578 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2579 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2580 (ia64_linux_remove_watchpoint): Adjust.
2581 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2582 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2583 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2584 (ppc_linux_insert_mask_watchpoint)
2585 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2586 (ppc_linux_remove_watchpoint): Adjust.
2587 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2588 Adjust.
2589
2590 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2591
2592 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2593 (clear_win32_environment): New function for Cygwin to clear out
2594 Win32 environment.
2595 (windows_create_inferior): Prepare new environment from in_env
2596 for Cygwin, too.
2597
2598 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2599
2600 PR python/13264
2601 * python/py-value.c (valpy_call): Check that arguments are
2602 a tuple.
2603 (is_intlike): Remove call to CHECK_TYPEDEF.
2604 (valpy_nonzero): Catch GDB exceptions.
2605 (valpy_absolute): Ditto.
2606 (valpy_lazy_string): Ditto.
2607 (valpy_call): Ditto.
2608 (valpy_get_is_optimized_out): Ditto.
2609 (valpy_long): Ditto.
2610 (valpy_float): Ditto.
2611 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2612 (valpy_richcompare): Ditto.
2613
2614 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2615
2616 * inferior.h (disable_randomization): Declare.
2617 * infrun.c (disable_randomization): New global variable.
2618 (show_disable_randomization): New function.
2619 (set_disable_randomization): Likewise.
2620 (_initialize_infrun): Install set/show disable-randomization
2621 commands.
2622 * linux-nat.c (disable_randomization): Remove.
2623 (show_disable_randomization): Likewise.
2624 (set_disable_randomization): Likewise.
2625 (_initialize_linux_nat): No longer install set/show
2626 disable-randomization commands here.
2627 (linux_nat_supports_disable_randomization): New function.
2628 (linux_nat_add_target): Install it.
2629 * remote.c (PACKET_QDisableRandomization): New enum value.
2630 (remote_protocol_packets): Support QDisableRandomization.
2631 (_initialize_remote): Likewise.
2632 (remote_supports_disable_randomization): New function.
2633 (init_remote_ops): Install it.
2634 (extended_remote_supports_disable_randomization): New function.
2635 (init_extended_remote_ops): Install it.
2636 (extended_remote_disable_randomization): New function.
2637 (extended_remote_create_inferior_1): Call it.
2638 * target.h (struct target_ops): Add to_supports_disable_randomization.
2639 (target_supports_disable_randomization): Add prototype.
2640 * target.c (target_supports_disable_randomization): New function.
2641 (find_default_supports_disable_randomization): Likewise.
2642 (init_dummy_target): Install it.
2643
2644 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2645
2646 Allow Python notification of new object-file loadings.
2647 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2648 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2649 Add build rule for this file.
2650 * python/py-event.h (emit_new_objfile_event): New prototype.
2651 (newobjfile): New Python event emitter.
2652 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2653 Python event registry.
2654 * python/py-inferior.c: Include objfiles.h
2655 (python_new_objfile): New function.
2656 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2657 observers.
2658 * python/py-newobjfileevent.c: New file.
2659 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2660 prototype.
2661 * python/python.c (_initialize_python): Add
2662 gdbpy_initialize_new_objfile_event call.
2663 * NEWS: Add item for new Python event "gdb.newobjfile"
2664
2665 2011-10-05 Tristan Gingold <gingold@adacore.com>
2666
2667 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2668 Extract the ravenscar task name from the symbol for the atcb.
2669
2670 2011-10-04 Paul Koning <paul_koning@dell.com>
2671
2672 * python/py-type.c (typy_make_iter): Add forward declaration.
2673 (typy_fields_items): Use the gdb.Type iterator.
2674
2675 2011-10-04 Paul Koning <paul_koning@dell.com>
2676
2677 * NEWS: Add entry for Python gdb.Type mapping methods.
2678
2679 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2680
2681 PR python/12691: Add the inferior to Python exited event
2682 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2683 to exited_event.
2684 * python/py-event.h (emit_exited_event): Likewise
2685 * python/-inferior.c (python_inferior_exit): Likewise
2686
2687 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2688
2689 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2690 in output of -ada-task-info GDB/MI command.
2691
2692 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2693
2694 * ada-lang.h (struct inferior): Declare.
2695 (print_ada_task_info): Add declaration.
2696 * ada-tasks.c (print_ada_task_info): Make non-static.
2697 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2698 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2699 * mi/mi-main.c: #include "ada-lang.h".
2700 (mi_cmd_list_features): Add "ada-task-info" to the list
2701 of supported features.
2702 (mi_cmd_ada_task_info): New function.
2703
2704 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2705
2706 * python/python.c (python_run_simple_file): New function.
2707 (source_python_script, source_python_script_for_objfile):
2708 Replace call to PyRun_SimpleFile by call to
2709 python_run_simple_file.
2710
2711 2011-10-03 Paul Koning <paul_koning@dell.com>
2712
2713 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2714 (value_to_value_object): Fetch value if it was lazy.
2715
2716 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2717
2718 Code cleanup.
2719 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2720 Rearrange the code for it.
2721
2722 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2723
2724 * breakpoint.c (bkpt_print_recreate): Add call to
2725 print_recreate_thread.
2726
2727 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2728
2729 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2730 PTRACE_GETFDPIC_INTERP): Define.
2731
2732 2011-09-28 Yao Qi <yao@codesourcery.com>
2733
2734 * symfile.c (add_symbol_file_command): Update message on usage.
2735
2736 2011-09-28 Paul Koning <paul_koning@dell.com>
2737
2738 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2739 (typy_length, typy_get, typy_has_key, typy_make_iter)
2740 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2741 (typy_iterator_iter, typy_iterator_iternext)
2742 (typy_iterator_dealloc): New functions to implement standard
2743 Python mapping methods on gdb.Type object.
2744 (gdb.TypeIterator): New Python type.
2745 * python/python-internal.h (gdbpy_iter_kind): New enum.
2746
2747 2011-09-28 David S. Miller <davem@davemloft.net>
2748
2749 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2750 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2751 * sparc-tdep.c (sparc_complex_floating_p): New function.
2752 (sparc32_store_arguments): Handle complex floats.
2753 (sparc32_extract_return_value): Likewise.
2754 (sparc32_store_return_value): Likewise.
2755 (sparc32_stabs_argument_has_addr): Likewise.
2756 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2757 (sparc64_store_floating_fields): Handle complex floats.
2758 (sparc64_store_arguments): Likewise.
2759 (sparc64_store_return_value): Likewise.
2760
2761 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2762
2763 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2764 before the change on 2006-12-09.
2765 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2766 generates the environment block for CreateProcessA, modulo the
2767 Cygwin-specific parts that are not needed here.
2768
2769 2011-09-27 Tristan Gingold <gingold@adacore.com>
2770
2771 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2772 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2773 (darwin_solib_get_all_image_info_addr_at_init): New function.
2774 (darwin_solib_read_all_image_info_addr): Likewise.
2775 (darwin_solib_create_inferior_hook): Use the above two functions.
2776 * darwin-nat.c (darwin_execvp): Renames retval to res.
2777 (darwin_read_write_inferior): Update comment.
2778 (darwin_read_dyld_info): New function.
2779 (darwin_xfer_partial): Handle DYLD_INFO.
2780
2781 2011-09-27 Stan Shebs <stan@codesourcery.com>
2782
2783 Add return address collection for tracepoints.
2784 * tracepoint.c (encode_actions_1): Add case for $_ret.
2785 (validate_actionline): Check for $_ret.
2786 (trace_dump_actions): Ditto.
2787 * ax-gdb.h (gen_trace_for_return_address): Declare.
2788 * ax-gdb.c: Include arch-utils.h.
2789 (gen_trace_for_return_address): New function.
2790 (agent_command): Add return address special case.
2791 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2792 (amd64_gen_return_address): New function.
2793 (amd64_init_abi): Call it.
2794 * i386-tdep.c: Include ax.h and ax-gdb.h.
2795 (i386_gen_return_address): New function.
2796 (i386_init_abi): Call it.
2797 * arch-utils.h (default_gen_return_address): Declare.
2798 * arch-utils.c (default_gen_return_address): New function.
2799 * gdbarch.sh (gen_return_address): New method.
2800 * gdbarch.h, gdbarch.c: Regenerate.
2801
2802 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2803
2804 PR gdb/13079
2805 * i386-tdep.c (i386_frame_align): New.
2806 (i386_gdbarch_init): Use i386_frame_align.
2807
2808 2011-09-23 Yao Qi <yao@codesourcery.com>
2809
2810 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2811 to get address.
2812
2813 2011-09-22 Tristan Gingold <gingold@adacore.com>
2814
2815 * fork-child.c (fork_inferior): Add exec_fun parameter.
2816 Call exec_fun or execvp.
2817 * inferior.h: Adjust prototype.
2818 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2819 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2820 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2821 * procfs.c (procfs_create_inferior): Ditto.
2822 * darwin-nat.c (darwin_execvp): New function.
2823 (darwin_create_inferior): Use it.
2824
2825 2011-09-22 Yao Qi <yao@codesourcery.com>
2826
2827 * infrun.c (context_switch): Print debug message when switching to
2828 a different thread.
2829
2830 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2831
2832 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2833 complex and vector types.
2834 (s390_return_value_convention): Likewise.
2835
2836 (s390_value_from_register): Call check_typedef.
2837 (extend_simple_arg): Likewise.
2838 (alignment_of): Likewise.
2839 (s390_push_dummy_call): Likewise.
2840 (s390_return_value): Likewise.
2841
2842 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2843
2844 * event-top.c (async_disconnect): If an exception is thrown from
2845 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2846 catch_errors.
2847 * top.c (quit_cover): Return void and take no arguments.
2848 * top.h (quit_cover): Update prototype.
2849
2850 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2851
2852 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2853 current_uiout, not uiout.
2854
2855 2011-09-19 Doug Evans <dje@google.com>
2856
2857 * python/py-auto-load.c (source_section_scripts): Fix file
2858 descriptor leak.
2859 * python/python.c (source_python_script_for_objfile): Tweak comments.
2860
2861 2011-09-18 Yao Qi <yao@codesourcery.com>
2862 Ulrich Weigand <ulrich.weigand@linaro.org>
2863
2864 Support displaced stepping for Thumb 16-bit insns.
2865 * arm-tdep.c (THUMB_NOP) Define.
2866 (thumb_copy_unmodified_16bit): New.
2867 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2868 (thumb_copy_alu_reg): New.
2869 (arm_copy_svc): Move some common code to ...
2870 (install_svc): ... here. New.
2871 (thumb_copy_svc): New.
2872 (install_pc_relative): New.
2873 (thumb_copy_pc_relative_16bit): New.
2874 (thumb_decode_pc_relative_16bit): New.
2875 (thumb_copy_16bit_ldr_literal): New.
2876 (thumb_copy_cbnz_cbz): New.
2877 (cleanup_pop_pc_16bit_all): New.
2878 (thumb_copy_pop_pc_16bit): New.
2879 (thumb_process_displaced_16bit_insn): New.
2880 (thumb_process_displaced_32bit_insn): New.
2881 (thumb_process_displaced_insn): process thumb instruction.
2882
2883 Support displaced stepping for Thumb 32-bit insns.
2884 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2885 (thumb2_copy_preload): New.
2886 (thumb2_copy_copro_load_store): New.
2887 (thumb2_copy_b_bl_blx): New.
2888 (thumb2_copy_alu_imm): New.
2889 (thumb2_copy_load_reg_imm): New.
2890 (thumb2_copy_load_literal): New
2891 (thumb2_copy_block_xfer): New.
2892 (thumb_32bit_copy_undef): New.
2893 (thumb_32bit_copy_unpred): New.
2894 (thumb2_decode_ext_reg_ld_st): New.
2895 (thumb2_decode_svc_copro): New.
2896 (decode_thumb_32bit_store_single_data_item): New.
2897 (thumb_copy_pc_relative_32bit): New.
2898 (thumb_decode_pc_relative_32bit): New.
2899 (decode_thumb_32bit_ld_mem_hints): New.
2900 (thumb2_copy_table_branch): New
2901 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2902 instructions.
2903
2904 2011-09-18 Yao Qi <yao@codesourcery.com>
2905
2906 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2907 (install_b_bl_blx): Likewise.
2908
2909 2011-09-17 Yao Qi <yao@codesourcery.com>
2910
2911 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2912 (install_load_store): ... this. New.
2913 Change parameter BYTE to SIZE.
2914 (arm_copy_ldr_str_ldrb_strb): Update caller.
2915 (arm_decode_ld_st_word_ubyte): Update caller.
2916
2917 2011-09-17 Yao Qi <yao@codesourcery.com>
2918
2919 * infrun.c (displaced_step_fixup): Move some code ...
2920 (displaced_step_restore): ... here. New function.
2921 (handle_inferior_event): Cleanup displaced stepping state for both
2922 child and parent when get forked or vforked event.
2923 * regcache.c (get_thread_arch_aspace_regcache): New function.
2924 get_thread_arch_regcache (): Call it.
2925
2926 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2927
2928 * ada-tasks.c (print_ada_task_info): New function, merging
2929 short_task_info and info_tasks together. Reimplement using
2930 ui-out instead of printing to stdout directly. Move the code
2931 building and checking the task list here, instead of leaving it
2932 in info_tasks_command.
2933 (info_task): Move the code building and checking the task
2934 list here, instead of leaving it in info_tasks_command.
2935 (info_tasks_command): Delete code building and checking
2936 the task list - moved elsewhere. Update calls to info_tasks
2937 and info_task.
2938
2939 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2940
2941 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2942
2943 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2944
2945 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2946
2947 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2948
2949 * ada-lang.h (ada_build_task_list): Remove parameter
2950 `warn_if_null'.
2951 * ada-tasks.c (ada_build_task_list): Remove parameter
2952 `warn_if_null'. Adjust implementation and documentation.
2953 (valid_task_id, ada_get_environment_task)
2954 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2955 (info_tasks_command): Adjust implementation.
2956 (task_command): Likewise.
2957 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2958 to ada_build_task_list.
2959
2960 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2961
2962 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2963 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2964 (ada_tasks_inferior_data_handle): New static global.
2965 (get_ada_tasks_inferior_data): New function.
2966 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2967 (ada_get_environment_task, iterate_over_live_ada_tasks)
2968 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2969 Adjust.
2970 (ada_set_current_inferior_known_tasks_addr): New function.
2971 (read_known_tasks, ada_build_task_list, short_task_info)
2972 (info_tasks, info_task, info_tasks_command, task_command_1)
2973 (task_command, ada_task_list_changed): Adjust.
2974 (ada_tasks_invalidate_inferior_data): New function.
2975 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2976 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2977 * ada-lang.h (struct inferior): Add declaration.
2978 (ada_task_list_changed): Update profile.
2979 * remote-wtx-pd.c: #include "inferior.h".
2980 (switch_to_pd_internal): Update call to ada_task_list_changed.
2981
2982 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2983
2984 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2985 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2986 (atcb_fieldno): Delete these static globals.
2987 (struct ada_tasks_pspace_data): New struct.
2988 (ada_tasks_pspace_data_handle): New static global.
2989 (get_ada_tasks_pspace_data): New function.
2990 (ada_tasks_invalidate_pspace_data): New function.
2991 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2992 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2993 (_initialize_tasks): Create this module's per-progspace
2994 data handle.
2995
2996 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2997
2998 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2999
3000 2011-09-16 Tristan Gingold <gingold@adacore.com>
3001
3002 * fork-child.c (fork_inferior): Update comment. Use alloca
3003 instead of xmalloc for argv. Move len and shell_command
3004 declarations in the block where they are used.
3005 Only call execvp. Factorize failure code.
3006
3007 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3008
3009 Code cleanup.
3010 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3011 `exp_element' instead of an element of the same and make the function
3012 static.
3013 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3014 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3015 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3016 Change argument of `write_exp_elt' function call.
3017 Remove extra spaces from comments.
3018 * parser-defs.h (write_exp_elt): Remove prototype.
3019
3020 2011-09-15 Paul Koning <paul_koning@dell.com>
3021
3022 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3023 count of item appended to list.
3024 * python/py-type.c (typy_fields): Likewise.
3025
3026 2011-09-15 Paul Koning <paul_koning@dell.com>
3027
3028 * MAINTAINERS (Write After Approval): Add myself to the list.
3029
3030 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3031
3032 PR threads/12628
3033 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3034 processes with multiple threads.
3035 (inf_has_multiple_thread_cb): New function.
3036 (inf_has_multiple_threads): New function.
3037
3038 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3039
3040 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3041 * python/py-inferior.c (GdbMethods): New Python method definition.
3042
3043 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3044
3045 Handle multiple breakpoint hits in Python interface:
3046 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3047 variable to breakpoints.
3048 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3049 bps instead of single breakpoint. Fix some space typos.
3050 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3051 variable to breakpoints.
3052
3053 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3054
3055 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3056 note if the breakpoint is internal.
3057
3058 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3059
3060 * MAINTAINERS (Write After Approval): Add myself to the list
3061
3062 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3063
3064 * infrun.c (prepare_for_detach, wait_for_inferior)
3065 (fetch_inferior_event): Don't flush the register cache.
3066 * remote.c (struct stop_reply) <regcache>: Add comment.
3067
3068 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3069
3070 Remove excessive DWARF expressions memory duplication.
3071 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3072 for block.data.
3073 (indirect_pieced_value): Remove variable result. Remove variable
3074 back_to and its use for baton.data.
3075 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3076 block.data.
3077 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3078 Update the function comment.
3079
3080 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3081
3082 * inferior.h (ALL_INFERIORS): New.
3083 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3084 for a stopped thread.
3085 (thread_db_find_new_threads): Look for threads in all inferiors.
3086
3087 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3088
3089 * breakpoint.c (update_watchpoint): Handle the case of the
3090 watchpoint to update not being in the breakpoint list yet.
3091 (hw_watchpoint_use_count): New, factored out from
3092 hw_watchpoint_used_count.
3093 (hw_watchpoint_used_count): Rename to ...
3094 (hw_watchpoint_used_count_others): ... this. Add `except'
3095 parameter. Don't count resources of `except'. Use
3096 hw_watchpoint_use_count.
3097
3098 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3099
3100 * gdbthread.h (enum thread_state): Moved here.
3101 (struct thread_info): Rename `executing_' field to `executing' and
3102 `state_' to `state'.
3103 * thread.c (enum thread_state): Moved to gdbthread.h.
3104 (new_thread, add_thread_silent, delete_thread_1)
3105 (any_live_thread_of_process, thread_alive, set_running)
3106 (set_running, is_thread_state, any_running, is_executing)
3107 (set_executing, finish_thread_state, print_thread_info)
3108 (do_captured_thread_select): Adjust.
3109
3110 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3111
3112 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3113 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3114
3115 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3116 Matt Rice <ratmice@gmail.com>
3117
3118 PR gdb/13175
3119
3120 * interps.c (struct interp) <interpreter_out>: Delete field.
3121 (interp_new): Remove the data and uiout parameters and adjust.
3122 (interp_set): Only set the current_uiout from the interpreter's
3123 uiout after initializing the interpreter. Adjust call to
3124 init_proc.
3125 (interp_ui_out): Adjust to call procs->ui_out_proc.
3126 (interp_data, interp_name): New.
3127 * interps.h (interp_init_ftype): Add `self' parameter.
3128 (interp_ui_out_ftype): New typedef.
3129 (struct interp_procs) <ui_out_proc>: New method pointer.
3130 (interp_new): Remove the data and uiout parameters.
3131 (interp_data, interp_name): Declare.
3132 * tui/tui-interp.c (tui_init): Adjust prototype.
3133 (tui_ui_out): New.
3134 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3135 tui_out here. Adjust call to interp_new.
3136 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3137 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3138 (cli_ui_out): New.
3139 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3140 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3141 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3142 Initialize mi->uiout depending on the mi_version as extracted from
3143 the interpreter's name.
3144 (mi_ui_out): New.
3145 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3146 interp_new. Don't allocate the ui_out's of the interpreters here.
3147
3148 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3149
3150 * solib.c (solib_used): New function.
3151 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3152 by another so_list object before freeing it.
3153
3154 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3155
3156 Code cleanup.
3157 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3158 values.
3159
3160 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3161
3162 Code cleanup.
3163 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3164 (amd64_skip_xmm_prologue): ... this new function. Describe its
3165 parameters. No longer use amd64_prologue_line_bug.
3166 * defs.h (producer_is_gcc_ge_4): New declaration.
3167 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3168 (process_full_comp_unit): Update its caller. Remove
3169 amd64_prologue_line_bug initialization.
3170 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3171 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3172
3173 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3174
3175 * linux-nat.h (enum resume_kind): New.
3176 (struct lwp_info) <last_resume_kind>: New field.
3177 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3178 resume_stop on the new lwp.
3179 (add_lwp): Set last_resume_kind as resume_continue by default.
3180 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3181 (resume_lwp): New, factored out from resume_callback. Also check
3182 for pending status in lp->waitstatus.
3183 (resume_callback): Reimplement.
3184 (resume_clear_callback): Set last_resume_kind as resume_stop.
3185 (resume_set_callback): Set last_resume_kind as resume_continue.
3186 (linux_nat_resume, linux_handle_extended_wait): Set
3187 last_resume_kind.
3188 (running_callback): Also check lp->waitstatus for pending events.
3189 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3190 is resume_step.
3191 (stop_and_resume_callback): Don't re-resume if the core wanted the
3192 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3193 using an invalidated pointer.
3194 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3195 SIGSTOPs if the core wanted the LWP to stop.
3196 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3197 wanted the lwp to stop. If the core wanted the lwp to stop, and
3198 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3199 of TARGET_SIGNAL_STOP.
3200 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3201 here. Instead, signal the lwp, and set the last_resume_kind to
3202 resume_stop.
3203
3204 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3205
3206 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3207 -1 (error), if the lwp exits right after attaching.
3208
3209 2011-09-08 Doug Evans <dje@google.com>
3210
3211 * py-cmd.c: Some minor formatting fixes.
3212 (gdbpy_parse_command_name): Rename text arg to name, make const.
3213 All callers updated.
3214 * python-internal.h (gdbpy_parse_command_name): Update.
3215
3216 * cli/cli-decode.c (add_cmd): Add comment.
3217
3218 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3219
3220 PR breakpoints/12435
3221 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3222 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3223 * dwarf2read.c (process_full_comp_unit): Initialize
3224 amd64_prologue_line_bug.
3225 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3226
3227 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3228
3229 Fix TUI screen corruption.
3230 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3231 batch_flag.
3232
3233 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3234
3235 * findvar.c (read_var_value): Never return NULL, throw an error
3236 instead. Update the function comment. State symbol name in the error
3237 messages.
3238 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3239 read_var_value.
3240 * stack.c (print_frame_args): Likewise.
3241 * valops.c (value_of_variable): Likewise.
3242
3243 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3244
3245 * stack.c (print_frame_args): New variable except. Wrap
3246 read_var_value and common_val_print into TRY_CATCH.
3247
3248 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3249
3250 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3251 caller to value_of_this.
3252 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3253 Twice.
3254 * valops.c (value_of_this): Remove parameter complain and variable ret.
3255 Update function comment. Never return NULL by this code.
3256 (value_of_this_silent): New function.
3257 * value.h (value_of_this): Remove parameter complain.
3258 (value_of_this_silent): New declaration.
3259
3260 2011-09-07 Yao Qi <yao@codesourcery.com>
3261
3262 * gdbthread.h (struct thread_info): Remove fields
3263 `stepping_through_solib_after_catch' and
3264 `stepping_through_solib_catchpoints'.
3265 * infrun.c (init_thread_stepping_state): Update.
3266 (process_event_stop_test, currently_stepping): Update.
3267 (currently_stepping_or_nexting_callback): Update.
3268
3269 2011-09-07 Yao Qi <yao@codesourcery.com>
3270
3271 * gdbthread.h (struct thread_info): Comment on field
3272 `step_after_step_resume_breakpoint'.
3273
3274 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3275
3276 * remote.c (remote_console_output): Reindent.
3277
3278 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3279
3280 * frame.c (has_stack_frames): Check for currently selected
3281 traceframe.
3282
3283 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3284
3285 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3286 (set_async_annotation_level, set_async_prompt, pop_prompt)
3287 (push_prompt, new_async_prompt): Delete declarations.
3288 * top.h (get_prompt, set_prompt): Change prototype.
3289 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3290 declarations.
3291 * top.c (command_loop):
3292 (top_prompt): New global.
3293 (get_prefix, set_prefix, get_suffix, ): Delete.
3294 (get_prompt, set_prompt): Rewrite.
3295 (show_new_async_prompt): Rename to ...
3296 (show_prompt): ... this.
3297 (init_main): Adjust. Don't handle --annotate=2 here.
3298 * event-top.c (new_async_prompt): Delete.
3299 (the_prompts): Delete.
3300 (more_to_come): Make static.
3301 (display_gdb_prompt): Use top_level_prompt() to compute the top
3302 level prompt, and don't notify the before_prompt observers
3303 directly here. Always trick readline into not trying to display
3304 the prompt if sync_execution and displaying the primary prompt.
3305 If displaying a local/secondary prompt, always show it, even if
3306 sync_execution is set.
3307 (change_annotation_level): Delete.
3308 (top_level_prompt): New, based on change_annotation_level.
3309 (push_prompt, pop_prompt): Delete.
3310 (async_disable_stdin): No longer pushes prompt.
3311 (command_line_handler): No longer pushes or pops prompt. If more
3312 input is expected, call display_gdb_prompt with an explicit empty
3313 prompt.
3314 (async_stop_sig): Adjust.
3315 (set_async_annotation_level, set_async_prompt): Delete.
3316 * python/python.c (before_prompt_hook): Adjust.
3317
3318 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3319
3320 PR cli/13110
3321
3322 * infrun.c (fetch_inferior_event): Check if there's a selected
3323 thread before checking if the selected thread is executing.
3324
3325 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3326
3327 * inf-loop.c (execute_command): Don't check if the current thread
3328 if running before synchronously waiting for command completion.
3329 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3330 here.
3331 (normal_stop): Call async_enable_stdin here.
3332 * inf-loop.c (inferior_event_handler): Don't call
3333 async_enable_stdin, nor handle "set exec-done-display" here.
3334
3335 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3336
3337 GDB 7.3.1 released.
3338
3339 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3340
3341 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3342
3343 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3344
3345 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3346
3347 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3348
3349 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3350
3351 2011-09-02 Matt Rice <ratmice@gmail.com>
3352
3353 PR gdb/10720
3354 * event-top.c (cli_command_loop): Replace readline setup with
3355 direct call to display_gdb_prompt.
3356 (display_gdb_prompt): Do not call observer mechanism during
3357 synchronous execution.
3358
3359 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3360
3361 * linux-nat.c (in_pid_list_p): New.
3362 (linux_record_stopped_pid): Delete.
3363 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3364 already attached to the LWP. Return an indication if so.
3365 (linux_nat_filter_event): Adjust.
3366 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3367 returning an indication to ignore this thread.
3368
3369 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3370
3371 * top.c: Include interps.h.
3372 (execute_command): If the target can async, but the interpreter is
3373 in sync mode, synchronously wait for the command to finish before
3374 returning.
3375 (execute_command_to_string): Force the interpreter to sync mode.
3376 * infrun.c: Include interps.h.
3377 (fetch_inferior_event): Don't restore the prompt yet if the
3378 interpreter is in sync mode.
3379 * interps.c (interpreter_async): New global.
3380 * interps.h (interpreter_async): Declare.
3381 * inf-loop.c: Include interps.h.
3382 (inferior_event_handler): Don't print the language change or run
3383 breakpoint commands yet if the interpreter in is sync mode.
3384 * main.c (captured_command_loop): Flip the interpreter to async
3385 mode.
3386 * cli/cli-script.c: Include interps.h.
3387 (execute_user_command, while_command, if_command): Force the
3388 interpreter to sync mode.
3389 * python/python.c: Include interps.h.
3390 (python_command, execute_gdb_command): Force the interpreter to
3391 sync mode.
3392
3393 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3394
3395 * value.c (show_convenience): Catch errors thrown while printing
3396 each internal variable.
3397 * infrun.c (validate_siginfo_access): New function.
3398 (siginfo_value_read, siginfo_value_write): Call it.
3399
3400 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3401
3402 Revert:
3403 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3404 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3405 attribute.
3406
3407 2011-08-29 Yao Qi <yao@codesourcery.com>
3408
3409 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3410 (cmp_name): New.
3411 (enable_break2): Update caller.
3412 * solib-frv.c (bfd_lookup_symbol): Removed.
3413 (cmp_name): New.
3414 (enable_break2): Update caller.
3415 * solib-pa64.c (bfd_lookup_symbol): Removed.
3416 (cmp_name): New.
3417 * solib-svr4.c (bfd_lookup_symbol): Removed.
3418 (cmp_name_and_sec_flags): New.
3419 (enable_break): Update caller.
3420 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3421 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3422 (gdb_bfd_lookup_symbol): New.
3423 * solib.h: Functions declarations.
3424
3425 2011-08-29 Yao Qi <yao@codesourcery.com>
3426
3427 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3428 and solib-dsbt.o.
3429
3430 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3431
3432 Fix TUI stepi on code without symbols.
3433 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3434 current PC instead.
3435
3436 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3437
3438 Code cleanup.
3439 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3440 and the static keyword.
3441 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3442 Make prefix an array.
3443 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3444 * mi/mi-main.c (get_register): Remove stb initialization and the static
3445 keyword.
3446
3447 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3448
3449 Code cleanup - make mi_opt const.
3450 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3451 opts const.
3452 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3453 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3454 (mi_cmd_env_dir): Likewise.
3455 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3456 (mi_cmd_target_file_put): Likewise.
3457 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3458 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3459 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3460 (mi_valid_noargs): Make opts const.
3461 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3462 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3463 (mi_cmd_data_read_memory): Likewise.
3464 (mi_cmd_data_read_memory_bytes): Likewise.
3465 (mi_cmd_data_write_memory): Likewise.
3466
3467 2011-08-26 Matt Rice <ratmice@gmail.com>
3468
3469 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3470 bcache_xmalloc, replace bcache_xmalloc with call to
3471 psymbol_bcache_init for psymbol_cache.
3472 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3473
3474 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3475
3476 * inf-loop.c (inferior_event_handler): Add exception_print in
3477 INF_EXEC_COMPLETE.
3478
3479 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3480
3481 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3482 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3483 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3484 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3485 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3486 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3487 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3488 * infrun.c (fetch_inferior_event): Call
3489 make_bpstat_clear_actions_cleanup.
3490 * top.c (execute_command): New variable cleanup_if_error, call
3491 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3492 * utils.c (do_bpstat_clear_actions_cleanup)
3493 (make_bpstat_clear_actions_cleanup): New functions.
3494
3495 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3496
3497 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3498 either the parent or the child forks. Rename a couple locals.
3499
3500 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3501
3502 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3503 library call. Avoid reading the `status' local if all waitpid
3504 calls failed.
3505
3506 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3507
3508 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3509 opening /proc/PID/task always succeeds.
3510
3511 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3512
3513 * linespec.c (symtab_from_filename): Check for the end of string.
3514
3515 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3516
3517 PR mi/11912
3518 * varobj.c (cplus_describe_child): Add the keyword
3519 'class' to the output of the method when dealing
3520 with a cast to a base class.
3521
3522 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3523
3524 No functionality change.
3525 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3526 function comment a reference, new variables tp and bs, move here code
3527 from throw_exception.
3528 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3529 describe it in the comment.
3530 * exceptions.c (throw_exception): Remove variable tp, move the code for
3531 bpstat_clear_actions to bpstat_clear_actions.
3532
3533 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3534
3535 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3536 * linux-nat.c: Include linux-procfs.h.
3537 (linux_proc_get_tgid): Move to ...
3538 * common/linux-procfs.c: ... here. New file.
3539 * common/linux-procfs.h: New file.
3540 * linux-thread-db.c: Include linux-procfs.h.
3541 * Makefile.in: Update dependencies.
3542 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3543 * config/arm/linux.mh: Likewise.
3544 * config/i386/linux.mh: Likewise.
3545 * config/i386/linux64.mh: Likewise.
3546 * config/ia64/linux.mh: Likewise.
3547 * config/m32r/linux.mh: Likewise.
3548 * config/m68k/linux.mh: Likewise.
3549 * config/mips/linux.mh: Likewise.
3550 * config/pa/linux.mh: Likewise.
3551 * config/pa/linux.mh: Likewise.
3552 * config/powerpc/linux.mh: Likewise.
3553 * config/powerpc/ppc64-linux.mh: Likewise.
3554 * config/powerpc/spu-linux.mh: Likewise.
3555 * config/sparc/linux.mh: Likewise.
3556 * config/sparc/linux64.mh: Likewise.
3557 * config/xtensa/linux.mh: Likewise.
3558
3559 2011-08-24 Hui Zhu <teawater@gmail.com>
3560
3561 * tracepoint.c (cond_string_is_same): New function.
3562 (find_matching_tracepoint): Add condition check
3563 by cond_string_is_same.
3564
3565 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3566
3567 Fix build error in Darwin port.
3568 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3569
3570 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3571
3572 Code cleanup.
3573 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3574 (command_line_is_silent): New function.
3575 (bpstat_do_actions_1): No longer use commands_left, use
3576 command_line_is_silent for commands.
3577 (bpstat_alloc): Remove clearing of commands_left.
3578 (bpstat_stop_status): Remove initialization of commands_left, use
3579 command_line_is_silent.
3580 * breakpoint.h (struct bpstats): Remove commands_left.
3581
3582 2011-08-18 Keith Seitz <keiths@redhat.com>
3583
3584 PR c++/12266
3585 * cp-name-parser.y (struct demangle_info): Remove unused
3586 member PREV.
3587 (d_grab): Likewise.
3588 (allocate_info): Change return type to struct demangle_info *.
3589 Always allocate a new demangle_info.
3590 Remove unused PREV pointer.
3591 (cp_new_demangle_parse_info): New function.
3592 (cp_demangled_name_parse_free): New function.
3593 (do_demangled_name_parse_free_cleanup): New function.
3594 (make_cleanup_cp_demangled_name_parse_free): New function.
3595 (cp_demangled_name_to_comp): Change return type to
3596 struct demangle_parse_info *.
3597 Allocate a new storage for each call.
3598 (main): Update usage for cp_demangled_name_to_comp
3599 API change.
3600 * cp-support.h (struct demangle_parse_info): New structure.
3601 (cp_demangled_name_to_comp): Update API change for
3602 return type.
3603 (cp_new_demangle_parse_info): Declare.
3604 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3605 (cp_demangled_name_parse_free): Declare.
3606 * cp-support.c (cp_canonicalize_string): Update API
3607 change for cp_demangled_name_to_comp.
3608 (mangled_name_to_comp): Likewise.
3609 Return struct demangle_parse_info, too.
3610 (cp_class_name_from_physname): Update mangled_name_to_comp
3611 API change.
3612 (method_name_from_physname): Likewise.
3613 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3614 (cp_remove_params): Likewise.
3615 * python/py-type.c (typy_legacy_template_argument): Likewise.
3616
3617 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3618 (cp_merge_demangle_parse_infos): Declare.
3619 * cp-support.c (ignore_typedefs): New file global.
3620 (copy_string_to_obstack): New function.
3621 (inspect_type): New function.
3622 (replace_typedefs): New function.
3623 (replace_typedefs_qualified_name): New function.
3624 (cp_canonicalize_string_no_typedefs): New function.
3625 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3626 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3627 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3628 instead of cp_canonicalize_string.
3629 (find_method): Likewise.
3630 (decode_compound): Before looking up the name, call
3631 cp_canonicalize_string_no_typedefs.
3632 (decode_variable): Likewise.
3633
3634 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3635 Tom Tromey <tromey@redhat.com>
3636 Matt Rice <ratmice@gmail.com>
3637
3638 * python/lib/gdb/prompt.py: New file.
3639 * python/lib/gdb/command/prompt.py: New file.
3640 * NEWS: Document set extended-prompt and gdb.prompt library
3641
3642 2011-08-16 Yao Qi <yao@codesourcery.com>
3643
3644 * tic6x-linux-tdep.c: Move const arrays definition from here...
3645 * tic6x-tdep.c: to here ...
3646
3647 2011-08-14 Yao Qi <yao@codesourcery.com>
3648
3649 * NEWS: New port to Texas Instruments TMS320C6x.
3650
3651 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3652 Bernd Schmidt <bernds@codesourcery.com>
3653 Yao Qi <yao@codesourcery.com>
3654
3655 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3656 * solib-dsbt.c: New file. Support DSBT shared object.
3657 * tic6x-linux-tdep.c: New file.
3658 * tic6x-tdep.c: New file.
3659 * tic6x-tdep.h: New file.
3660
3661 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3662 Yao Qi <yao@codesourcery.com>
3663
3664 * remote.c (PACKET_qXfer_fdpic): New enum value.
3665 (remote_protocol_features): Add qXfer:fdpic:read packet.
3666 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3667 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3668 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3669
3670 2011-08-14 Yao Qi <yao@codesourcery.com>
3671
3672 Target description for tic6x.
3673 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3674 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3675 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3676 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3677 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3678 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3679 * features/tic6x-c64xp-linux.xml: New.
3680 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3681 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3682 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3683 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3684 * regformats/tic6x-c64xp.dat,
3685 regformats/tic6x-c62x-linux.dat: Generated.
3686 * regformats/tic6x-c64x-linux.dat,
3687 regformats/tic6x-c64xp-linux.dat: Generated.
3688 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3689 features/tic6x-*.c files.
3690 Add regformats/tic6x-*.dat files.
3691
3692 2011-08-12 Doug Evans <dje@google.com>
3693
3694 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3695 * python/py-symbol.c (sympy_get_type): New function.
3696 (symbol_object_getset): Add "type".
3697
3698 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3699
3700 PR tui/13073
3701
3702 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3703 empty name.
3704 (tui_show_register_group): Don't store a byte buffer in the data
3705 element's value.
3706 (tui_register_format): Skip registers with an empty name.
3707 (tui_get_register): Store a struct value in the data element's
3708 value field instead of a byte buffer holding the raw register
3709 contents. Account for optimized-out and unavailable registers
3710 when comparing register contents.
3711
3712 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3713
3714 * printcmd.c (current_display_number): Update comment.
3715 (disable_current_display_cleanup): Delete.
3716 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3717 catch errors thrown while evaluating and printing the display.
3718
3719 2011-08-09 Tom Tromey <tromey@redhat.com>
3720
3721 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3722
3723 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3724
3725 * elfread.c (elf_symtab_read): Rework comments.
3726 * maint.c (maintenance_command): Ditto.
3727 * somread.c (som_symtab_read): Ditto.
3728 * solib.c (solib_find, solib_map_sections, update_solib_list)
3729 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3730 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3731 (sharedlibrary_command, no_shared_libraries): Ditto.
3732 * solib-irix.c (locate_base, disable_break, enable_break)
3733 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3734 (irix_current_sos, irix_open_symbol_file_object)
3735 (irix_special_symbol_handling): Ditto.
3736 * solib-sunos.c (locate_base, first_link_map_member)
3737 (sunos_current_sos, disable_break, enable_break)
3738 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3739 Ditto.
3740 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3741 (open_symbol_file_object, svr4_current_sos, enable_break)
3742 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3743 Ditto.
3744 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3745 (frv_current_sos, enable_break, frv_special_symbol_handling)
3746 (frv_solib_create_inferior_hook): Ditto.
3747 * solist.h (struct target_so_ops): Extend the comments of the
3748 special_symbol_handling, current_sos and open_symbol_file_object
3749 methods.
3750
3751 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3752
3753 * python/lib/gdb/__init__.py: Auto-load files in command and
3754 function directories.
3755 * python/python.c (finish_python_initialization): Use
3756 os.path.join.
3757 * python/lib/gdb/command/pretty_printers.py: Self register
3758 command.
3759 * NEWS: Document auto-loading.
3760
3761 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3762
3763 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3764 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3765 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3766
3767 2011-08-08 Tom Tromey <tromey@redhat.com>
3768
3769 * breakpoint.c (clean_up_filters): Remove.
3770 (catch_syscall_split_args): Use VEC_cleanup.
3771
3772 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3773
3774 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3775 (main): Uncomment "Demangling error\n".
3776
3777 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3778
3779 * solib-target.c (segment_attributes): Make them static.
3780 (section_attributes, library_children, library_attributes): Likewise.
3781 (library_list_children, library_list_attributes): Likesise.
3782 (library_list_elements): Likewise.
3783
3784 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3785
3786 * exceptions.c (throw_exception): Don't disable the current
3787 display.
3788 * printcmd.c (disable_current_display_cleanup): New function.
3789 (do_one_display): Install a cleanup to disable the current display
3790 if doing the display throws.
3791
3792 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3793
3794 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3795 initialization of the tp_new member to the corresponding
3796 gdbpy_initialize_* function.
3797 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3798 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3799 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3800 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3801 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3802
3803 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3804
3805 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3806 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3807 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3808 references to current_uiout.
3809
3810 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3811
3812 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3813 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3814 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3815 * top.c (gdb_readline_wrapper): Adjust.
3816 * tui/tui-interp.c (tui_command_loop):
3817 (_initialize_tui_interp): Don't install it.
3818
3819 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3820
3821 * ui-out.h (uiout): Rename to ...
3822 (current_uiout): ... this.
3823 * ui-out.c (uiout): Rename to ...
3824 (current_uiout): ... this.
3825 * ada-lang.c (print_it_exception, print_one_exception)
3826 (print_mention_exception): Adjust.
3827 * breakpoint.c (watchpoint_check): Adjust.
3828 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3829 (default_collect_info, watchpoints_info, print_one_catch_fork)
3830 (print_one_catch_vfork, print_one_catch_syscall)
3831 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3832 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3833 (print_it_watchpoint, print_mention_watchpoint)
3834 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3835 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3836 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3837 (bkpt_print_mention, momentary_bkpt_print_it)
3838 (tracepoint_print_mention, update_static_tracepoint)
3839 (tracepoints_info, save_breakpoints): Adjust.
3840 * cli-out.c (field_separator): Adjust.
3841 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3842 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3843 * frame.c (get_current_frame): Adjust.
3844 * infcmd.c (run_command_1, print_return_value): Adjust.
3845 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3846 * infrun.c (print_end_stepping_range_reason): Adjust.
3847 (print_signal_exited_reason, print_exited_reason): Adjust.
3848 (print_signal_received_reason, print_no_history_reason): Adjust.
3849 * interps.c (interp_set): Adjust.
3850 * osdata.c (info_osdata_command): Adjust.
3851 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3852 * remote-fileio.c (remote_fileio_request): Adjust.
3853 * remote.c (show_remote_cmd): Adjust.
3854 * solib.c (info_sharedlibrary_command): Adjust.
3855 * source.c (print_source_lines_base): Adjust.
3856 * stack.c (print_stack_frame): Adjust.
3857 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3858 * symfile-mem.c (add_vsyscall_page): Adjust.
3859 * symfile.c (load_progress, generic_load)
3860 (print_transfer_performance): Adjust.
3861 * thread.c (info_threads_command, restore_selected_frame)
3862 (thread_command): Adjust.
3863 * top.c (make_cleanup_restore_ui_file): Adjust.
3864 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3865 (print_one_static_tracepoint_marker): Adjust.
3866 * cli/cli-cmds.c (print_disassembly): Adjust.
3867 * cli/cli-decode.c (print_doc_line): Adjust.
3868 * cli/cli-interp.c (safe_execute_command): Adjust.
3869 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3870 (handle_redirections): Adjust.
3871 * cli/cli-script.c (show_user_1): Adjust.
3872 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3873 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3874 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3875 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3876 (mi_cmd_env_dir): Adjust.
3877 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3878 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3879 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3880 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3881 (list_args_or_locals): Adjust.
3882 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3883 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3884 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3885 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3886 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3887 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3888 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3889 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3890 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3891 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3892 (list_available_thread_groups, mi_cmd_list_thread_groups)
3893 (mi_cmd_data_list_register_names)
3894 (mi_cmd_data_list_changed_registers)
3895 (mi_cmd_data_list_register_values, get_register)
3896 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3897 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3898 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3899 (mi_execute_command, mi_load_progress): Adjust.
3900 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3901 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3902 Adjust.
3903 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3904 * tui/tui-interp.c (tui_command_loop): Adjust.
3905 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3906
3907 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3908
3909 * exceptions.c (struct catcher): Remove saved_uiout field.
3910 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3911 no longer save/resvore the global ui_out builder.
3912 (catch_exceptions_with_msg): Save/override/restore the global
3913 ui_out builder manually instead of relying on TRY_CATCH to do it.
3914 (catch_errors): Save/restore the global ui_out builder manually
3915 instead of relying on TRY_CATCH to do it.
3916 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3917 parameter.
3918 (TRY_CATCH): Adjust.
3919 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3920 the global ui_out builder manually instead of relying on TRY_CATCH
3921 to do it.
3922
3923 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3924
3925 * breakpoint.c (update_global_location_list): Ensure
3926 invariant 'first loc marked not duplicated and inserted,
3927 following locs marked duplicated/not inserted' is respected
3928 for multiple locations at the same address.
3929 (unduplicated_should_be_inserted) New function.
3930 (swap_insertion) New function.
3931
3932 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3933
3934 * stack.c (print_frame_arguments_choices): Comment typo fix.
3935
3936 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3937
3938 Revert:
3939 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3940 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3941 argument. Update callers.
3942
3943 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3944
3945 PR gdb/13045
3946 * doublest.c (convert_doublest_to_floatformat): Pass correct
3947 mantissa length to put_field.
3948
3949 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3950
3951 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3952 exception_print code path.
3953 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3954 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3955 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3956
3957 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3958
3959 Code cleanup.
3960 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3961 Remove, merge them into ...
3962 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3963 variable args and its initialization.
3964 (struct print_args_args, print_args_stub): Remove, merge them into
3965 print_frame.
3966 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3967 them into ...
3968 (do_gdb_disassembly): ... here. Remove variable args and its
3969 initialization.
3970 (print_frame): Remove variable args and its initialization, new
3971 variable gdbarch and numargs (from print_args_stub), inline here
3972 print_args_stub with a TRY_CATCH.
3973 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3974 them into ...
3975 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3976 New variable e, remove variable btargs and its initialization.
3977
3978 2011-08-01 Tristan Gingold <gingold@adacore.com>
3979
3980 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3981
3982 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3983
3984 * breakpoint.c (insert_bp_location): Document return value.
3985 (insert_breakpoint_locations): Fix documentation.
3986 (remove_breakpoints): Add documentation.
3987
3988 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3989
3990 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3991 argument. Update callers.
3992
3993 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3994
3995 * stack.c (print_frame_info): Comment typo fix.
3996
3997 2011-07-29 Sterling Augustine <saugustine@google.com>
3998
3999 * MAINTAINERS (Write After Approval): Add myself to the list.
4000
4001 2011-07-29 Tom Tromey <tromey@redhat.com>
4002
4003 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4004 (library_list_start_segment): Update.
4005 (library_list_start_section): Update.
4006
4007 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4008
4009 * varobj.c (value_get_print_value): Move hint check later into the
4010 function. Comment function. Free thevalue before reusing it.
4011
4012 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4013 Pedro Alves <pedro@codesourcery.com>
4014
4015 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4016 value_one.
4017 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4018 Assert the result kind.
4019 * value.h (value_one): Remove parameter lv.
4020
4021 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4022
4023 Fix crash on lval_computed values.
4024 * valops.c (value_zero): Use not_lval for lval_computed.
4025
4026 2011-07-27 Tom Tromey <tromey@redhat.com>
4027
4028 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4029 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4030
4031 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4032
4033 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4034 "ptype" by their typedefs difference.
4035
4036 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4037
4038 * dwarf2expr.c (ctx_no_read_reg): New function.
4039 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4040 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4041 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4042 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4043
4044 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4045
4046 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4047 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4048 file.
4049 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4050 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4051 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4052 (ctx_no_get_base_type): Move the functions here.
4053 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4054 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4055 (ctx_no_get_base_type): New declarations.
4056
4057 2011-07-27 Tom Tromey <tromey@redhat.com>
4058
4059 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4060 entries.
4061 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4062 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4063
4064 2011-07-26 Sterling Augustine <saugustine@google.com>
4065
4066 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4067 ULONGEST.
4068 (dump_bfd_file): Likewise.
4069
4070 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4071
4072 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4073 (remote_hw_watchpoint_length_limit): New variable.
4074 (_initialize_remote) add set,show cmds for this new variable.
4075 * gdb.texinfo: document these new commands.
4076 * NEWS: Mention these new commands.
4077
4078 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4079
4080 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4081 true for software watchpoints.
4082
4083 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4084
4085 GDB 7.3 released.
4086
4087 2011-07-26 Tom Tromey <tromey@redhat.com>
4088
4089 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4090 * dwarf2read.c (read_indirect_string_at_offset): New function.
4091 (read_indirect_string): Use it.
4092 (dwarf_decode_macro_bytes): New function, taken from
4093 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4094 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4095 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4096 New functions.
4097 (struct dwarf2_per_objfile) <macro>: New field.
4098 (dwarf2_elf_names): Add .debug_macro.
4099 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4100 (dwarf2_locate_sections): Handle new section.
4101 (read_file_scope): Handle DW_AT_GNU_macros.
4102 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4103
4104 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4105
4106 * NEWS: Mention dcache configuration.
4107 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4108 (dcache_size, dcache_line_size): New variables.
4109 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4110 (struct dcache_block): Make it expandable.
4111 (struct dcache_struct): New field.
4112 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4113 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4114 (dcache_poke_byte, dcache_print_line): Adjust.
4115 (set_dcache_size, set_dcache_line_size): New functions.
4116 (set_dcache_command, show_dcache_command): New functions.
4117 (_initialize_dcache): Add new commands.
4118
4119 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4120
4121 * progspace.h (struct program_space): Add solib_add_generation.
4122 * infcmd.c (post_create_inferior): Only call solib_add if not
4123 already done.
4124 * solib.c (solib_add): Increment solib_add_generation.
4125
4126 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4127
4128 Fix implicit pointer offsets.
4129 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4130 ptr.OFFSET.
4131
4132 2011-07-25 Tom Tromey <tromey@redhat.com>
4133
4134 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4135 const.
4136 (ada_exception_sal): Make 'ops' const.
4137 (ada_decode_exception_location): Likewise.
4138 (ada_decode_assert_location): Likewise.
4139 (catch_assert_command): Update.
4140 (catch_ada_exception_command): Update.
4141 (create_ada_exception_catchpoint): Make 'ops' const.
4142 * breakpoint.c (set_raw_breakpoint_without_location)
4143 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4144 const.
4145 (create_internal_breakpoint): Update.
4146 (init_raw_breakpoint_without_location): Make 'ops' const.
4147 (init_raw_breakpoint, init_catchpoint)
4148 (create_fork_vfork_event_catchpoint)
4149 (create_syscall_event_catchpoint, init_breakpoint_sal)
4150 (create_breakpoint_sal, create_breakpoints_sal)
4151 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4152 * breakpoint.h (struct breakpoint) <ops>: Now const.
4153 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4154 const.
4155
4156 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4157
4158 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4159
4160 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4161
4162 * breakpoint.h (print_recreate_thread): Declare.
4163 (struct breakpoint): Move step_count, pass_count,
4164 number_on_target, static_trace_marker_id,
4165 static_trace_marker_id_idx ...
4166 (struct tracepoint): ... to this new struct.
4167 (get_tracepoint, get_tracepoint_by_number_on_target)
4168 (get_tracepoint_by_number): Change return type to struct
4169 tracepoint pointer.
4170 * breakpoint.c (is_tracepoint_type): New, factored out from
4171 is_tracepoint.
4172 (is_tracepoint): Adjust.
4173 (print_one_breakpoint_location): Cast to struct tracepoint as
4174 necessary, and adjust.
4175 (print_recreate_catch_fork, print_recreate_catch_vfork)
4176 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4177 print_recreate_thread.
4178 (init_breakpoint_sal): New, factored out from
4179 create_breakpoint_sal.
4180 (create_breakpoint_sal): Reimplement.
4181 (create_breakpoint): Allocate a struct tracecepoint if the caller
4182 wanted a tracepoint. Use init_breakpoint_sal and
4183 install_breakpoint.
4184 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4185 (print_recreate_masked_watchpoint)
4186 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4187 (tracepoint_print_one_detail): Adjust.
4188 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4189 Dump the pass count here.
4190 (update_static_tracepoint): Adjust.
4191 (addr_string_to_sals): Adjust.
4192 (create_tracepoint_from_upload): Adjust. Change return type to
4193 struct tracepoint pointer.
4194 (trace_pass_set_count): Change parameter type to struct tracepoint
4195 pointer, and adjust.
4196 (trace_pass_command): Adjust.
4197 (get_tracepoint, get_tracepoint_by_number_on_target)
4198 (get_tracepoint_by_number): Change return type to struct
4199 tracepoint pointer, and adjust.
4200 (print_recreate_thread): New, factored out from save_breakpoints.
4201 (save_breakpoints): Don't print thread and task and passcount
4202 recreation here.
4203 * remote.c (remote_download_tracepoint): Adjust.
4204 * tracepoint.c (trace_actions_command, validate_actionline)
4205 (start_tracing, tfind_1, trace_find_tracepoint_command)
4206 (trace_dump_command): Adjust.
4207 (find_matching_tracepoint): Change return type to struct
4208 tracepoint pointer, and adjust.
4209 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4210 (tfile_trace_find, tfile_fetch_registers): Adjust.
4211 * tracepoint.h (create_tracepoint_from_upload): Change return type
4212 to struct tracepoint pointer.
4213 * ada-lang.c (print_recreate_exception): Call
4214 print_recreate_thread.
4215 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4216
4217 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4218
4219 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4220 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4221 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4222 watchpoint_thread, watchpoint_triggered ...
4223 (struct watchpoint): ... to this new struct.
4224 (is_watchpoint): Declare.
4225 (install_breakpoint): Add new `internal' parameter.
4226 * breakpoint.c (is_watchpoint): Delete declaration.
4227 (set_breakpoint_condition): Handle watchpoints.
4228 (is_watchpoint): Make public.
4229 (watchpoint_in_thread_scope): Change parameter type to struct
4230 watchpoint.
4231 (watchpoint_del_at_next_stop): Change parameter type to struct
4232 watchpoint. Remove assertion. Adjust.
4233 (update_watchpoint): Ditto.
4234 (insert_breakpoints, breakpoint_init_inferior)
4235 (watchpoints_triggered, watchpoint_check)
4236 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4237 (bpstat_stop_status, print_one_breakpoint_location)
4238 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4239 to struct watchpoint as necessary, and adjust.
4240 (install_breakpoint): Add `internal' argument. If true, don't
4241 mention the new breakpoint. Use set_breakpoint_number.
4242 (create_fork_vfork_event_catchpoint)
4243 (create_syscall_event_catchpoint): Adjust.
4244 (dtor_watchpoint): New.
4245 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4246 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4247 (print_it_watchpoint, print_mention_watchpoint)
4248 (print_recreate_watchpoint, insert_masked_watchpoint)
4249 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4250 (print_one_detail_masked_watchpoint)
4251 (print_mention_masked_watchpoint)
4252 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4253 necessary, and adjust.
4254 (watch_command_1): Allocate and initialize a struct watchpoint
4255 instead of a struct breakpoint. Use install_breakpoint.
4256 (catch_exec_command_1): Adjust.
4257 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4258 fields.
4259 (delete_breakpoint, enable_breakpoint_disp)
4260 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4261 as necessary, and adjust.
4262 (initialize_breakpoint_ops): Install dtor_watchpoint as
4263 watchpoints' dtor method.
4264 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4265 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4266 to struct watchpoint as necessary, and adjust.
4267
4268 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4269
4270 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4271 the the base class ops table.
4272 (catch_exception_breakpoint_ops)
4273 (catch_exception_unhandled_breakpoint_ops)
4274 (catch_assert_breakpoint_ops): Don't statically initialize.
4275 (initialize_ada_catchpoint_ops): New.
4276 (_initialize_ada_language): Call it.
4277 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4278 (bkpt_breakpoint_ops): Forward declare.
4279 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4280 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4281 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4282 (masked_watchpoint_breakpoint_ops)
4283 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4284 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4285 base class ops table.
4286 (null_re_set, null_check_status, null_works_in_software_mode)
4287 (null_resources_needed, null_print_one_detail): Delete.
4288 (bkpt_dtor): Rename to ...
4289 (base_breakpoint_dtor): ... this. Make static.
4290 (bkpt_allocate_location): Rename to ...
4291 (base_breakpoint_allocate_location): ... this. Make static.
4292 (base_breakpoint_re_set): New.
4293 (internal_error_pure_virtual_called): New.
4294 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4295 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4296 (base_breakpoint_works_in_software_mode)
4297 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4298 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4299 (base_breakpoint_print_recreate): New functions.
4300 (base_breakpoint_ops): New global.
4301 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4302 (bkpt_breakpoint_hit): Make static.
4303 (bkpt_check_status): Delete.
4304 (bkpt_resources_needed): Make static.
4305 (bkpt_works_in_software_mode): Delete.
4306 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4307 static.
4308 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4309 (momentary_breakpoint_ops): Don't statically initialize.
4310 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4311 Delete.
4312 (tracepoint_insert_location, tracepoint_remove_location)
4313 (tracepoint_check_status, tracepoint_works_in_software_mode)
4314 (tracepoint_print_it): Delete.
4315 (tracepoint_breakpoint_ops): Don't statically initialize.
4316 (initialize_breakpoint_ops): New.
4317 (_initialize_breakpoint): Call it.
4318 * breakpoint.h (null_re_set, null_works_in_software_mode)
4319 (null_resources_needed, null_check_status, null_print_one_detail):
4320 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4321 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4322 (bkpt_check_status, bkpt_resources_needed)
4323 (bkpt_works_in_software_mode, bkpt_print_it)
4324 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4325 Delete declarations.
4326 (initialize_breakpoint_ops): Declare.
4327
4328 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4329
4330 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4331 (momentary_bkpt_print_it): Simplify.
4332
4333 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4334
4335 Split internal, momentary and user breakpoints breakpoint_ops
4336 tables.
4337
4338 * breakpoint.c (internal_breakpoint_ops)
4339 (momentary_breakpoint_ops): Forward declare.
4340 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4341 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4342 (create_overlay_event_breakpoint)
4343 (create_std_terminate_master_breakpoint)
4344 (create_exception_master_breakpoint): Create breakpoints with
4345 internal_breakpoint_ops vtable.
4346 (set_longjmp_breakpoint): Create momentary breakpoints with
4347 momentary_breakpoint_ops vtable, using
4348 momentary_breakpoint_from_master.
4349 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4350 (create_solib_event_breakpoint): Create breakpoints with
4351 internal_breakpoint_ops vtable.
4352 (set_momentary_breakpoint): Create breakpoints with
4353 momentary_breakpoint_ops vtable.
4354 (momentary_breakpoint_from_master): New, factored out from
4355 clone_momentary_breakpoint.
4356 (clone_momentary_breakpoint): Adjust.
4357 (watch_command_1): Create scope breakpoints with
4358 momentary_breakpoint_ops vtable.
4359 (bkpt_re_set): Remove handling of internal and momentary
4360 breakpoints.
4361 (bkpt_print_mention, bkpt_print_recreate): New.
4362 (bkpt_breakpoint_ops): Adjust.
4363 (internal_bkpt_re_set, internal_bkpt_check_status)
4364 (internal_bkpt_print_it, internal_bkpt_print_mention)
4365 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4366 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4367 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4368 (momentary_bkpt_print_recreate): New.
4369 (momentary_breakpoint_ops): New.
4370
4371 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4372
4373 Implement most breakpoint_ops methods for all breakpoint types,
4374 and move the default handlings to the proper callbacks.
4375
4376 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4377 works_in_software_mode method.
4378 (insert_bp_location): Go through breakpoint_ops->insert_location
4379 for software and hardware watchpoints.
4380 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4381 breakpoint_ops.
4382 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4383 for software and hardware watchpoints.
4384 (print_it_typical): Delete.
4385 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4386 method.
4387 (watchpoint_check): Adjust comment.
4388 (bpstat_check_location): Simply always call the breakpoint's
4389 breakpoint_hit method.
4390 (bpstat_stop_status): Always call the breakpoint's check_status
4391 method. Remove special cases for watchpoints and internal event
4392 breakpoints from here (moved to the check_status implementations).
4393 (print_one_breakpoint_location): Assume b->ops is never NULL.
4394 Remove static tracepoint marker id printing from here (moved to
4395 the print_one_detail callback implementation of tracepoints).
4396 (init_bp_location): Assert OPS is never NULL.
4397 (allocate_bp_location): Always call the breakpoint's
4398 allocate_location method, and remove the default code from here.
4399 (free_bp_location): Always call the location's dtor method, and
4400 remove the default code from here.
4401 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4402 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4403 parameter. Pass it down.
4404 (set_raw_breakpoint): Ditto.
4405 (print_it_catch_fork): Adjust to take a bpstat as argument.
4406 (catch_fork_breakpoint_ops): Install methods.
4407 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4408 (catch_vfork_breakpoint_ops): Install methods.
4409 (dtor_catch_syscall): Call the base dtor.
4410 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4411 (catch_syscall_breakpoint_ops): Install methods.
4412 (dtor_catch_exec): Call the base dtor.
4413 (print_it_catch_exec): Adjust to take a bpstat as argument.
4414 (catch_exec_breakpoint_ops): Install methods.
4415 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4416 the breakpoint's resources_needed method, and remove the default
4417 code from here.
4418 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4419 breakpoint_ops.
4420 (clone_momentary_breakpoint): Clone the original's ops.
4421 (mention): Always call the breakpoint's print_mention method, and
4422 remove the default code from here.
4423 (create_breakpoint_sal): Adjust to pass the ops to
4424 set_raw_breakpoint rather than setting it manually.
4425 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4426 ops to set_raw_breakpoint_without_location rather than setting it
4427 manually.
4428 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4429 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4430 (ranged_breakpoint_ops): Install methods.
4431 (break_range_command): Adjust to pass the ops to
4432 set_raw_breakpoint rather than setting it manually.
4433 (re_set_watchpoint, breakpoint_hit_watchpoint)
4434 (check_status_watchpoint, resources_needed_watchpoint)
4435 (works_in_software_mode_watchpoint, print_it_watchpoint)
4436 (print_mention_watchpoint, print_recreate_watchpoint): New
4437 functions.
4438 (watchpoint_breakpoint_ops): Install new methods.
4439 (print_it_masked_watchpoint): New function.
4440 (masked_watchpoint_breakpoint_ops): Install new methods.
4441 (watch_command_1): Adjust to pass the right breakpoint_ops to
4442 set_raw_breakpoint_without_location rather than setting it
4443 manually later. Record the current pspace.
4444 (print_it_exception_catchpoint): Adjust to take a bpstat as
4445 argument.
4446 (gnu_v3_exception_catchpoint_ops): Install new methods.
4447 (say_where): New function.
4448 (null_re_set, null_check_status, null_works_in_software_mode)
4449 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4450 New functions.
4451 (bp_location_ops): New global.
4452 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4453 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4454 (bkpt_check_status, bkpt_resources_needed)
4455 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4456 (bkpt_print_recreate): New functions.
4457 (bkpt_breakpoint_ops): New global.
4458 (tracepoint_re_set, tracepoint_insert_location)
4459 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4460 (tracepoint_check_status, tracepoint_works_in_software_mode)
4461 (tracepoint_print_it, tracepoint_print_one_detail)
4462 (tracepoint_print_mention, tracepoint_print_recreate): New
4463 functions.
4464 (tracepoint_breakpoint_ops): New global.
4465 (delete_breakpoint): Always call the breakpoint's dtor method, and
4466 remove the default handling from here.
4467 (breakpoint_re_set_default): Make static.
4468 (breakpoint_re_set_one): Always call the breakpoints re_set
4469 method, and remove the default handling from here.
4470 (trace_command, ftrace_command, strace_command)
4471 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4472 to create_breakpoint.
4473 (save_breakpoints): Always call the breakpoint's print_recreate
4474 method, and remove the default handling from here.
4475
4476 * ada-lang.c (dtor_exception): Call the base dtor.
4477 (re_set_exception): Call the base method.
4478 (print_it_exception, print_it_catch_exception): Adjust to take a
4479 bpstat as argument.
4480 (catch_exception_breakpoint_ops): Install methods.
4481 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4482 argument.
4483 (catch_exception_unhandled_breakpoint_ops): Install methods.
4484 (print_it_catch_assert): Adjust to take a bpstat as argument.
4485 (catch_assert_breakpoint_ops): Install methods.
4486
4487 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4488 to take a bpstat as argument.
4489 (enum print_stop_action): Add describing comments to each enum
4490 value.
4491 (breakpoint_re_set_default): Delete declaration.
4492 (null_re_set, null_works_in_software_mode, null_resources_needed)
4493 (null_check_status, null_print_one_detail): Declare.
4494 (bkpt_breakpoint_ops): Declare.
4495 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4496 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4497 (bkpt_check_status, bkpt_resources_needed)
4498 (bkpt_works_in_software_mode, bkpt_print_it)
4499 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4500 Declare.
4501
4502 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4503 bkpt_breakpoint_ops.
4504 * python/py-breakpoint.c (bppy_init): Ditto.
4505
4506 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4507
4508 * MAINTAINERS (Write After Approval): Add myself to the list.
4509
4510 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4511
4512 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4513
4514 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4515
4516 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4517 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4518 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4519 adjust.
4520 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4521 (struct i386_debug_reg_state): New.
4522 (i386_init_dregs): New.
4523 (dr_mirror): New.
4524 (i386_cleanup_dregs): Use i386_init_dregs.
4525 (i386_show_dr): Add state parameter and adjust.
4526 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4527 the inferior here.
4528 (i386_remove_aligned_watchpoint): Likewise.
4529 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4530 (i386_update_inferior_debug_regs): New.
4531 (i386_insert_watchpoint): Work on a local mirror of the debug
4532 registers, and only update the inferior on success.
4533 (i386_remove_watchpoint): Ditto.
4534 (i386_region_ok_for_watchpoint): Adjust.
4535 (i386_stopped_data_address): Adjust.
4536 (i386_insert_hw_breakpoint): Adjust.
4537 (i386_remove_hw_breakpoint): Adjust.
4538
4539 2011-07-22 Tom Tromey <tromey@redhat.com>
4540
4541 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4542 from amd64_pseudo_register_read. Change arguments. Call
4543 mark_value_bytes_unavailable when needed.
4544 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4545 set_gdbarch_pseudo_register_read.
4546 * sentinel-frame.c (sentinel_frame_prev_register): Use
4547 regcache_cooked_read_value.
4548 * regcache.h (regcache_cooked_read_value): Declare.
4549 * regcache.c (regcache_cooked_read_value): New function.
4550 (regcache_cooked_read): Call
4551 gdbarch_pseudo_register_read_value if available.
4552 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4553 (i386_pseudo_register_read): Remove.
4554 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4555 i386_pseudo_register_read. Change arguments. Call
4556 mark_value_bytes_unavailable when needed.
4557 (i386_pseudo_register_read_value): New function.
4558 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4559 not set_gdbarch_pseudo_register_read.
4560 * gdbarch.sh (pseudo_register_read_value): New method.
4561 * gdbarch.c, gdbarch.h: Rebuild.
4562 * findvar.c (value_from_register): Call get_frame_register_value.
4563
4564 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4565
4566 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4567 get_prefix.
4568 (display_gdb_prompt): Likewise.
4569 (change_annotation_level): Likewise.
4570 (push_prompt): Likewise.
4571 (pop_prompt): Likewise.
4572 (handle_stop_sig): Use get_prompt with a level.
4573 * top.c (command_loop): Use get_prompt with a level.
4574 (set_async_annotation_level): Use set_prompt with a level.
4575 (get_prefix): New function.
4576 (set_prefix): Ditto.
4577 (set_suffix): Ditto.
4578 (get_suffix): Ditto.
4579 (get_prompt): Accept a level argument.
4580 (set_prompt): Accept a level argument. Free old prompts. Set
4581 new_async_prompt if level is 0.
4582 (init_main): Use set_prompt with a level. Do not set
4583 new_async_prompt.
4584 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4585 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4586 Modify set_prompt, get_prompt to account for levels.
4587 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4588 level.
4589 * python/python.c (before_prompt_hook): Use set_prompt.
4590
4591 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4592
4593 * defs.h: Add guard against inclusion in gdbserver.
4594 (struct ptid, ptid_t): Move to common/ptid.h.
4595 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4596 xsnprintf, internal_error): Move to common/common-utils.h.
4597 (nomem): Delete.
4598 * gdb_assert.h: Move into common/ sub-directory.
4599 * gdb_locale.h: Ditto.
4600 * gdb_dirent.h: Ditto.
4601 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4602 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4603 Move into common/ptid.h.
4604 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4605 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4606 Change nomem to malloc_failure.
4607 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4608 * utils.c (nomem): Rename to malloc_failure.
4609 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4610 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4611 (gdb_buildargv): Change nomem to malloc_failure.
4612 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4613 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4614 ptid_is_pid): Move into common/ptid.c.
4615 (initialize_infrun): Delete initialization of null_ptid and
4616 minus_one_ptid.
4617 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4618 linux_common_xfer_osdata.
4619 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4620 common/ptid.c and common/buffer.c.
4621 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4622 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4623 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4624 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4625 rules.
4626 * common/gdb_assert.h: New.
4627 * common/gdb_dirent.h: New.
4628 * common/gdb_locale.h: New.
4629 * common/buffer.c: New.
4630 * common/buffer.h: New.
4631 * common/ptid.c: New.
4632 * common/ptid.h: New.
4633 * common/xml-utils.c: New.
4634 * common/xml-utils.h: New.
4635 * common/common-utils.c: New.
4636 * common/common-utils.h: New.
4637 * common/linux-osdata.c: New.
4638 * common/linux-osdata.h: New.
4639 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4640 * config/arm/linux.mh (NATDEPFILES): Ditto.
4641 * config/i386/linux.mh (NATDEPFILES): Ditto.
4642 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4643 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4644 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4645 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4646 * config/mips/linux.mh (NATDEPFILES): Ditto.
4647 * config/pa/linux.mh (NATDEPFILES): Ditto.
4648 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4649 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4650 * config/s390/s390.mh (NATDEPFILES): Ditto.
4651 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4652 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4653 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4654
4655 2011-07-21 Matt Rice <ratmice@gmail.com>
4656
4657 * NEWS: Add info macros and info definitions commands.
4658
4659 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4660
4661 * NEWS: Document Python prompt substitution hook.
4662
4663 2011-07-18 Matt Rice <ratmice@gmail.com>
4664
4665 PR macros/12999
4666 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4667 * macrotab.c (foreach_macro): Ditto.
4668 (foreach_macro_in_scope): Ditto.
4669 * macrocmd.c (print_macro_callback): New function.
4670 (info_macro_command): Move some code to print_macro_definition.
4671 (print_macro_definition): New function.
4672 (print_one_macro): Add new arguments to callback.
4673 (info_definitions_command): New function.
4674 (info_macros_command): Ditto.
4675 (_initialize_macrocmd): Add info macros and info definitions commands.
4676 * symtab.c (add_macro_name): Add new arguments to callback.
4677
4678 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4679 Tom Tromey <tromey@redhat.com>
4680
4681 * top.c (set_prompt): Rewrite to free previous prompt, free
4682 asynch_new_prompt and set both on new prompts.
4683 * event-top.c (display_gdb_prompt): Add prompt substitution
4684 logic.
4685 * python/python.c (before_prompt_hook): New function.
4686
4687 2011-07-20 Matt Rice <ratmice@gmail.com>
4688
4689 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4690 arguments to store_unsigned_integer.
4691
4692 2011-07-20 Tom Tromey <tromey@redhat.com>
4693
4694 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4695 in some declaration-only cases.
4696
4697 2011-07-18 Tom Tromey <tromey@redhat.com>
4698
4699 PR symtab/12984:
4700 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4701 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4702 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4703 <debug_type_section>: New field.
4704 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4705 (load_cu): Use appropriate section.
4706 (create_signatured_type_table_from_index): Add 'section'
4707 argument.
4708 (dwarf2_read_index): Only allow a single .debug_types section.
4709 (dw2_get_file_names): Use appropriate section.
4710 (read_type_comp_unit_head): Add 'section' argument.
4711 (create_debug_types_hash_table): Loop over all .debug_types
4712 sections.
4713 (init_cu_die_reader): Use appropriate section.
4714 (process_psymtab_comp_unit, load_partial_comp_unit)
4715 (load_full_comp_unit, read_die_and_children, find_partial_die)
4716 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4717 (lookup_signatured_type_at_offset): Add 'section' argument.
4718 (read_signatured_type_at_offset): Add 'sect' argument.
4719 (read_signatured_type): Use appropriate section.
4720 (set_die_type, get_die_type_at_offset): Update.
4721 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4722 VEC.
4723 (write_psymtabs_to_index): Don't allow index with more than one
4724 .debug_types section.
4725
4726 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4727
4728 Fix crash if referenced CU is aged out.
4729 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4730 xfree of block.data.
4731 (indirect_pieced_value): New variable back_to, use to for xfree of
4732 baton.data.
4733 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4734 block.data.
4735 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4736 (load_cu): New function from ...
4737 (dw2_do_instantiate_symtab): ... the code here ...
4738 (process_full_comp_unit): ... and here.
4739 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4740 retval.data.
4741
4742 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4743
4744 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4745 type.
4746
4747 2011-07-19 Gary Benson <gbenson@redhat.com>
4748
4749 * infrun.c (struct execution_control_state): New member
4750 stop_func_filled_in.
4751 (clear_stop_func, fill_in_stop_func): New functions.
4752 (handle_inferior_event): Call clear_stop_func rather than
4753 manipulating the execution control state directly.
4754 Call fill_in_stop_func lazily as required rather than
4755 directly calling find_pc_partial_function in all cases.
4756
4757 2011-07-18 Tom Tromey <tromey@redhat.com>
4758
4759 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4760 checking for variable-sized array.
4761
4762 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4763
4764 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4765 of supported languages.
4766 * varobj.c: Add top definitions and basic implementation of the
4767 following callbacks: ada_number_of_children, ada_name_of_variable,
4768 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4769 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4770 (languages): Register Ada-specific callbacks.
4771 (variable_language): Add the Ada case in the language setter switch.
4772
4773 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4774
4775 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4776
4777 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4778
4779 Code cleanup.
4780 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4781 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4782 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4783 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4784 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4785 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4786 (struct dwarf_expr_context_funcs): New, move here methods from ...
4787 (struct dwarf_expr_context): ... here. New fields funcs.
4788 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4789 (dwarf_expr_ctx_funcs): New.
4790 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4791 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4792 (needs_frame_ctx_funcs): New.
4793 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4794
4795 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4796
4797 * MAINTAINERS (Write After Approval): Add myself to the list.
4798
4799 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4800
4801 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4802 that CIE pointer of an FDE really points to a CIE .
4803
4804 2011-07-15 Hui Zhu <teawater@gmail.com>
4805
4806 * remote.c (remote_get_trace_status): Add comments.
4807
4808 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4809
4810 Code cleanup - constify struct lval_funcs.
4811 * dwarf2loc.c (pieced_value_funcs): Make it const.
4812 * infrun.c (siginfo_value_funcs): Likewise.
4813 * opencl-lang.c (opencl_value_funcs): Likewise.
4814 * valops.c (value_assign, value_ind): Make the funcs variable const.
4815 * value.c (struct value): Make location.computed.funcs target const.
4816 Rearrange the comments.
4817 (allocate_computed_value): Make the funcs parameter target const.
4818 (value_computed_funcs): Return the funcs target const.
4819 (value_free, value_copy, set_value_component_location): Make the funcs
4820 variable const.
4821 * value.h (allocate_computed_value): Make the funcs parameter target
4822 const.
4823 (value_computed_funcs): Return the funcs target const.
4824 * windows-tdep.c (tlb_value_funcs): Make it const.
4825
4826 2011-07-14 Hui Zhu <teawater@gmail.com>
4827
4828 * remote.c (remote_get_trace_status): Initialize p.
4829
4830 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4831
4832 Work around kgdb.
4833 * remote.c (remote_get_trace_status): New variable ex. Put
4834 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4835
4836 2011-07-13 Tom Tromey <tromey@redhat.com>
4837
4838 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4839 value_from_contents for final conversion.
4840
4841 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4842
4843 Code cleanup.
4844 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4845 Indent prototypes so they do not get into tags.
4846
4847 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4848
4849 Code cleanup making also optimized out values lazy.
4850 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4851 allocate_optimized_out_value. Twice.
4852 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4853 * findvar.c (read_var_value): Likewise.
4854 * value.c (allocate_optimized_out_value): New function.
4855 * value.h (allocate_optimized_out_value): New declaration.
4856
4857 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4858
4859 Fix occasional crash of CTRL-C during DWARF read in.
4860 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4861
4862 2011-07-11 Tom Tromey <tromey@redhat.com>
4863
4864 * regcache.c (struct regcache_descr): Fix typo.
4865 * i387-tdep.c (i387_supply_xsave): Fix typo.
4866
4867 2011-07-11 Tom Tromey <tromey@redhat.com>
4868
4869 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4870 (read_file_scope, read_type_unit_scope): Use it.
4871
4872 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4873
4874 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4875 `int'.
4876
4877 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4878
4879 PR python/12438
4880 * python/python.c: Set gdbpy_should_print_stack default to off.
4881 (set_python): Deprecate maint set python print-stack to
4882 class_deprecate.
4883 (_initialize_python): Deprecate maint set/show python print-stack.
4884 Add new prefix command, python. Add new setting, print-backtrace.
4885 * NEWS: Document set python print-stack. Document default change.
4886
4887 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4888
4889 * python/py-inferior.c (infpy_dealloc): New function.
4890 (inferior_to_inferior_object): Return a new object, or a
4891 new reference to the existing object.
4892 (find_thread_object): Cleanup references to inferior.
4893 (delete_thread_object): Ditto.
4894 * python/py-infthread.c (create_thread_object): Do not increment
4895 inferior reference count.
4896
4897 2011-07-08 Tom Tromey <tromey@redhat.com>
4898
4899 * dwarf2loc.c (locexpr_regname): New function.
4900 (locexpr_describe_location_piece): Use it.
4901 (disassemble_dwarf_expression): Add per_cu argument. Use
4902 locexpr_regname.
4903 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4904 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4905 New cases.
4906 (locexpr_describe_location_1): Add per_cu argument.
4907 (locexpr_describe_location): Update.
4908 (loclist_describe_location): Update.
4909
4910 2011-07-08 Tom Tromey <tromey@redhat.com>
4911
4912 * dwarf2expr.c (execute_stack_op): Add QUIT.
4913
4914 2011-07-07 Hui Zhu <teawater@gmail.com>
4915
4916 Revert:
4917 2011-07-06 Hui Zhu <teawater@gmail.com>
4918 * remote.c (remote_start_remote): Add TRY_CATCH for
4919 remote_get_trace_status.
4920 * tracepoint.c (disconnect_tracing): Ditto.
4921
4922 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4923
4924 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4925 variables as signed, not unsigned.
4926
4927 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4928
4929 * jit.c (jit_inferior_init): Reformat forward declaration.
4930
4931 2011-07-06 Matt Rice <ratmice@gmail.com>
4932
4933 * MAINTAINERS (Write After Approval): Add myself to the list.
4934
4935 2011-07-06 Hui Zhu <teawater@gmail.com>
4936
4937 * remote.c (remote_start_remote): Add TRY_CATCH for
4938 remote_get_trace_status.
4939 * tracepoint.c (disconnect_tracing): Ditto.
4940
4941 2011-07-05 Tom Tromey <tromey@redhat.com>
4942
4943 * symtab.c (operator_chars): Now static.
4944 * linespec.c (operator_chars): Don't declare.
4945
4946 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4947
4948 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4949
4950 2011-07-05 Tom Tromey <tromey@redhat.com>
4951
4952 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4953 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4954 (TYPE_CPLUS_REALLY_JAVA): New macro.
4955 * dwarf2read.c (process_structure_scope): Set
4956 TYPE_CPLUS_REALLY_JAVA.
4957
4958 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4959
4960 * ada-lang.c: Fix typos.
4961 * amd64-tdep.c: Likewise.
4962 * breakpoint.c: Likewise.
4963 * cli/cli-decode.c: Likewise.
4964 * findcmd.c: Likewise.
4965 * inline-frame.c: Likewise.
4966 * mi/mi-main.c: Likewise.
4967 * minsyms.c: Likewise.
4968 * monitor.c: Likewise.
4969 * monitor.h: Likewise.
4970 * prologue-value.c: Likewise.
4971 * reverse.c: Likewise.
4972 * s390-tdep.c: Likewise.
4973
4974 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4975
4976 * jit.c (jit_inferior_init): Forward declare.
4977 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4978
4979 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4980
4981 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4982
4983 2011-07-04 Tristan Gingold <gingold@adacore.com>
4984
4985 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4986 (tcb_fieldno): Add activation_link field.
4987 (get_known_tasks_addr): Moved and rewritten.
4988 (get_tcb_types_info): Set activation_link field.
4989 (read_known_tasks_array): Add parameter. Rewritten.
4990 (read_known_tasks_list): New function.
4991 (read_known_tasks): New function.
4992 (ada_build_task_list): Call read_known_tasks instead of
4993 read_known_tasks_array.
4994 * ravenscar-thread.c: Add first_task_name constant.
4995 (has_ravenscar_runtime): Check for task list too.
4996
4997 2011-07-04 Tristan Gingold <gingold@adacore.com>
4998
4999 * ada-tasks.c: Renames fieldno to actb_fieldno.
5000 (ada_get_task_number): Indentation.
5001 (get_tcb_types_info): Remove all parameters. Write directly
5002 the globals.
5003 (ptid_from_atcb_common): Adjust.
5004 (read_atcb): Adjust.
5005
5006 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5007
5008 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5009
5010 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5011
5012 * ui-out.c (ui_out_field_core_addr): Mention that the function
5013 description is in the header file.
5014 * ui-out.h (ui_out_field_core_addr): Document function.
5015
5016 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5017
5018 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5019 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5020
5021 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5022
5023 * symtab.c (expand_line_sal): Remove empty line.
5024
5025 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
5026
5027 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5028 same way as ELFOSABI_NONE.
5029 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5030
5031 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5032
5033 * breakpoint.c: Fix typos in comments.
5034 * linespec.c: Likewise.
5035 * symtab.c: Likewise.
5036
5037 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5038
5039 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5040 section in separate object files.
5041
5042 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5043
5044 Fix false GCC warning.
5045 * linespec.c (decode_line_1): Initialize values.
5046
5047 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5048
5049 * linespec.c (find_method): Accept the function type automatically only
5050 if it was specified with parameter types.
5051
5052 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5053
5054 Stop on first linespec terminator instead of eating what we can.
5055 * linespec.c (is_linespec_boundary): New function.
5056 (name_end): Remove function.
5057 (keep_name_info): New parameter on_boundary, replace the body.
5058 (decode_line_1): Provide the parameter to keep_name_info.
5059 (decode_compound): Likewise. Drop the trailing java return type
5060 handling. Twice.
5061
5062 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5063
5064 Fall back linespec to minimal symbols.
5065 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5066 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5067 (find_method, symbol_found): Change error to cplusplus_error.
5068
5069 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5070
5071 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5072
5073 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5074 Tom Tromey <tromey@redhat.com>
5075
5076 * dwarf2read.c (check_physname): New variable.
5077 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5078 (show_check_physname): New function.
5079 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5080
5081 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5082
5083 * machoread.c (macho_symfile_read): Delete OBE comment.
5084
5085 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5086
5087 * machoread.c (struct macho_oso_data): Delete.
5088 (current_oso): Delete.
5089 (macho_relocate_common_syms): New function, mostly extracted
5090 out of
5091 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5092 Remove code that sets and unset current_oso.
5093 (macho_symfile_relocate): Delete handling of common symbols,
5094 now moved to macho_relocate_common_syms.
5095
5096 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5097
5098 * darwin-nat.c (darwin_ptrace): Add documentation.
5099 Set errno to zero before calling ptrace. If ptrace returns
5100 -1 and errno is zero, then change then return zero.
5101 (darwin_kill_inferior): Issue a warning instead of triggering
5102 a failed assertion when the PT_KILL ptrace operations returned
5103 nonzero.
5104
5105 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5106
5107 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5108 only when inf->private->no_ptrace.
5109
5110 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5111
5112 * ada-lang.c (print_it_exception): Print temporary catchpoints
5113 as "Temporary catchpoint".
5114 (print_mention_exception): Likewise.
5115
5116 2011-07-01 Tom Tromey <tromey@redhat.com>
5117
5118 * jv-lang.c (java_language_defn): Use java_printchar,
5119 java_printstr.
5120 (java_get_encoding): New function.
5121 (java_emit_char): Use generic_emit_char.
5122 (java_printchar): New function.
5123 (java_printstr): Likewise.
5124
5125 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5126
5127 * ada-typeprint.c (print_record_type): If unable to decode
5128 the name of the parent type, use the encoded name.
5129
5130 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5131
5132 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5133 pointer to constrained packed array type output.
5134 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5135 packed array output.
5136
5137 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5138
5139 * ada-typeprint.c (print_array_type): removed if condition on show
5140 being negative for bounds printing.
5141
5142 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5143
5144 * ada-lang.c (ada_identical_enum_types_p): New function.
5145 (symbols_are_identical_enums): New function.
5146 (remove_extra_symbols): Do nothing if NSYMS < 2.
5147 Use symbols_are_identical_enums.
5148
5149 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5150
5151 * ada-valprint.c (ada_value_print): Handle typedefs.
5152
5153 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5154
5155 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5156
5157 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5158
5159 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5160 (decode_constrained_packed_array): Likewise.
5161 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5162
5163 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5164
5165 * ada-exp.y (convert_char_literal): Handle typedef types.
5166
5167 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5168
5169 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5170
5171 2011-06-30 Tom Tromey <tromey@redhat.com>
5172
5173 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5174 * valops.c (find_overload_match): Call do_cleanups on early exit
5175 path.
5176 * solib.c (solib_find): Call do_cleanups on early exit path.
5177
5178 2011-06-30 Tom Tromey <tromey@redhat.com>
5179
5180 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5181 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5182 return paths. Defer final do_cleanups until last return.
5183 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5184 early return.
5185
5186 2011-06-30 Tom Tromey <tromey@redhat.com>
5187
5188 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5189
5190 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5191
5192 * MAINTAINERS (Write After Approval): Add myself to the list.
5193
5194 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5195
5196 Disable epilogue unwinders on recent GCCs.
5197 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5198 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5199 * dwarf2read.c (process_full_comp_unit): Initialize
5200 EPILOGUE_UNWIND_VALID.
5201 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5202 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5203 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5204
5205 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5206
5207 Code cleanup - reformatting.
5208 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5209 (producer_is_gcc_ge_4): ... here, change the return value.
5210 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5211 interpretation.
5212
5213 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5214
5215 Fix non-only rename list for Fortran modules import.
5216 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5217 cp_add_using_directive caller.
5218 (cp_add_using_directive): New parameter excludes, describe it. New
5219 variables ix and param. Compare if also excludes match. Allocate NEW
5220 with variable size, initialize EXCLUDES there.
5221 (cp_lookup_symbol_imports): New variable excludep, test
5222 current->EXCLUDES with it.
5223 * cp-support.h: Include vec.h.
5224 (struct using_direct): New field excludes, describe it.
5225 (DEF_VEC_P (const_char_ptr)): New.
5226 (cp_add_using_directive): New parameter excludes.
5227 * defs.h (const_char_ptr): New typedef.
5228 * dwarf2read.c (read_import_statement): New variables child_die,
5229 excludes and cleanups, read in excludes.
5230 (read_namespace): Adjust the cp_add_using_directive caller.
5231
5232 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5233
5234 Code cleanup.
5235 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5236 negative comparisons.
5237
5238 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5239
5240 * mi/mi-main.c (mi_cmd_list_features): Emit
5241 breakpoint-notifications.
5242
5243 2011-06-29 Tom Tromey <tromey@redhat.com>
5244
5245 PR fortran/10036:
5246 * valprint.h (generic_emit_char, generic_printstr): Declare.
5247 * valprint.c (wchar_printable, append_string_as_wide)
5248 (print_wchar): Move from c-lang.c.
5249 (generic_emit_char): New function; mostly taken from c_emit_char.
5250 (generic_printstr): New function; mostly taken from c_printstr.
5251 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5252 represented as arrays.
5253 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5254 type.
5255 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5256 identically to TYPE_CODE_INT.
5257 * f-lang.c (f_get_encoding): New function.
5258 (f_emit_char): Use generic_emit_char.
5259 (f_printchar): Replace comment.
5260 (f_printstr): Use generic_printstr.
5261 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5262 "character" types specially.
5263 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5264 for Fortran.
5265 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5266 Move to valprint.c
5267 (c_emit_char): Call generic_emit_char.
5268 (c_printstr): Call generic_printstr.
5269
5270 2011-06-29 Gary Benson <gbenson@redhat.com>
5271
5272 * breakpoint.c (bpstat_what): Removed duplicated case.
5273
5274 2011-06-28 Tom Tromey <tromey@redhat.com>
5275
5276 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5277
5278 2011-06-27 Tom Tromey <tromey@redhat.com>
5279
5280 * valops.c (find_overload_match): Call do_cleanups before early
5281 return.
5282 * top.c (execute_command): Call do_cleanups before early return.
5283 (command_loop): Likewise.
5284 * stack.c (backtrace_command): Make a null cleanup early. Don't
5285 conditionally call do_cleanups.
5286 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5287 TRY_CATCH.
5288 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5289 so cleanups are always run.
5290 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5291 * findcmd.c (parse_find_args): Call do_cleanups on early return
5292 path.
5293 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5294 Don't conditionally call do_cleanups.
5295 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5296 later.
5297
5298 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5299
5300 * MAINTAINERS (Write After Approval): Use default email address.
5301
5302 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5303
5304 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5305
5306 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5307
5308 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5309 saved_regs_mask and copied_regs_mask fields.
5310 (sparc_record_save_insn): New prototype.
5311 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5312 (sparc_record_save_insn): New function.
5313 (sparc_analyze_prologue): Add head comment. Recognize store insns
5314 of call-saved registers. Use OFFSET consistently. Recognize flat
5315 frames and cache their settings.
5316 (sparc32_skip_prologue): Handle flat frames.
5317 (sparc_frame_cache): Add frame_offset to the base address.
5318 (sparc32_frame_cache): Adjust to new frame description.
5319 (sparc32_frame_prev_register): Likewise.
5320 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5321 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5322 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5323 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5324 frame by calling sparc_record_save_insn.
5325 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5326 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5327 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5328
5329 2011-06-27 Tristan Gingold <gingold@adacore.com>
5330
5331 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5332 field by map_addr and map_len.
5333 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5334 (munmap_section_buffer): Likewise.
5335
5336 2011-06-24 Tom Tromey <tromey@redhat.com>
5337
5338 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5339 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5340 * python/python.c (gdbpy_parameter): Make 'arg' const.
5341 (execute_gdb_command): Likewise.
5342 (gdbpy_decode_line): Likewise. Copy it.
5343 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5344 (gdbpy_write): Make 'arg' const.
5345 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5346 const.
5347 (gdbpy_lookup_type): Likewise.
5348 * python/py-prettyprint.c (print_children): Make 'name' const.
5349 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5350 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5351 Py_ssize_t.
5352 * python/py-function.c (fnpy_init): Make 'name' const.
5353 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5354 (gdbpy_string_to_argv): Make 'input' const.
5355 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5356 it.
5357 * gdbtypes.h (lookup_typename): Update.
5358 * gdbtypes.c (lookup_typename): Make 'name' const.
5359 (lookup_struct): Likewise.
5360 (lookup_union): Likewise.
5361 (lookup_enum): Likewise.
5362
5363 2011-06-24 Tom Tromey <tromey@redhat.com>
5364
5365 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5366 gdb_thread_db.h. Move all common/ entries to be together.
5367 (TAGS): Don't depend on DEPFILES.
5368
5369 2011-06-23 Yao Qi <yao@codesourcery.com>
5370
5371 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5372 * remote.c (remote_start_remote): ... here.
5373 * monitor.c (monitor_open): ... here.
5374
5375 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5376
5377 * gdbtypes.c (append_composite_type_field_aligned): Fix
5378 calculation of bit position based on alignment.
5379
5380 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5381
5382 * breakpoint.c (bpstat_stop_status): Call the check_status
5383 breakpoint_ops method.
5384 (print_one_breakpoint_location): Also print the condition for Ada
5385 exception catchpoints.
5386 (allocate_bp_location): New, factored out from
5387 allocate_bp_location.
5388 (allocate_bp_location): Adjust. Call the owner breakpoint's
5389 allocate_location method, if there is one.
5390 (free_bp_location): Call the locations's dtor method, if there is
5391 one.
5392 (init_raw_breakpoint_without_location): New breakpoint_ops
5393 parameter. Use it.
5394 (set_raw_breakpoint_without_location): Adjust.
5395 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5396 (set_raw_breakpoint): Adjust.
5397 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5398 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5399 re_set and check_status methods.
5400 (init_catchpoint): Don't memset, initialize thread, addr_string
5401 and enable_state. Pass the ops down to init_raw_breakpoint.
5402 (install_catchpoint): Rename to ...
5403 (install_breakpoint): ... this, and make extern.
5404 (create_fork_vfork_event_catchpoint): Adjust.
5405 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5406 re_set and check_status methods.
5407 (create_syscall_event_catchpoint): Adjust.
5408 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5409 (masked_watchpoint_breakpoint_ops): Install NULL
5410 allocate_location, re_set and check_status methods.
5411 (catch_exec_command_1): Adjust.
5412 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5413 re_set and check_status methods.
5414 (create_ada_exception_breakpoint): Rename to ...
5415 (init_ada_exception_breakpoint): ... this. Add a struct
5416 breakpoint parameter, and delete the exp_string, cond_string and
5417 cond parameters. Use init_raw_breakpoint, and don't install or
5418 mention the breakpoint yet. Don't clear breakpoint fields that
5419 init_raw_breakpoint already clears.
5420 (re_set_breakpoint): Delete, split into ...
5421 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5422 functions.
5423 (breakpoint_re_set_one): Call the breakpoint's
5424 breakpoint_ops->re_set implementation, if there's one. Adjust.
5425 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5426 (struct bp_location_ops): New type.
5427 (struct bp_location): New field `ops'.
5428 (struct breakpoint_ops): New `allocate_location', `re_set' and
5429 `check_status' fields. Make `breakpoint_hit''s description match
5430 reality.
5431 (init_bp_location): Declare.
5432 (breakpoint_re_set_default): Declare.
5433 (create_ada_exception_breakpoint): Rename to ...
5434 (init_ada_exception_breakpoint): ... this. Add a struct
5435 breakpoint parameter, and delete the exp_string, cond_string and
5436 cond parameters.
5437 (install_breakpoint): Declare.
5438 * ada-lang.c: Include exceptions.h.
5439 <Ada exceptions description>: Update.
5440 (struct ada_catchpoint_location): New type.
5441 (ada_catchpoint_location_dtor): New function.
5442 (ada_catchpoint_location_ops): New global.
5443 (ada_catchpoint): New type.
5444 (create_excep_cond_exprs): New function.
5445 (dtor_exception, allocate_location_exception, re_set_exception)
5446 (should_stop_exception, check_status_exception): New functions.
5447 (print_one_exception, print_mention_exception)
5448 (print_recreate_exception): Adjust.
5449 (dtor_catch_exception, allocate_location_catch_exception)
5450 (re_set_catch_exception, check_status_catch_exception): New
5451 functions.
5452 (catch_exception_breakpoint_ops): Install them.
5453 (dtor_catch_exception_unhandled)
5454 (allocate_location_catch_exception_unhandled)
5455 (re_set_catch_exception_unhandled)
5456 (check_status_catch_exception_unhandled): New functions.
5457 (catch_exception_unhandled_breakpoint_ops): Install them.
5458 (dtor_catch_assert, allocate_location_catch_assert)
5459 (re_set_catch_assert, check_status_catch_assert): New functions.
5460 (catch_assert_breakpoint_ops): Install them.
5461 (ada_exception_catchpoint_p): Delete.
5462 (catch_ada_exception_command_split)
5463 (ada_exception_catchpoint_cond_string): Rename exp_string
5464 parameter to excep_string. Adjust.
5465 (ada_parse_catchpoint_condition): Delete.
5466 (ada_exception_sal): Rename the exp_string parameter to
5467 excep_string. Delete the cond_string and cond parameters.
5468 Adjust.
5469 (ada_decode_exception_location): Rename the exp_string parameter
5470 to excep_string. Delete the cond_string and cond parameters.
5471 Adjust.
5472 (create_ada_exception_catchpoint): New function.
5473 (catch_ada_exception_command, ada_decode_assert_location)
5474 (catch_assert_command): Adjust.
5475 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5476
5477 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5478
5479 * ada-lang.c: Include arch-utils.h.
5480 (ada_decode_exception_location): Make static.
5481 (catch_ada_exception_command): Moved here from breakpoint.c.
5482 (ada_decode_assert_location): Make static.
5483 (catch_assert_command): Moved here from breakpoint.c.
5484 (_initialize_ada_lang): Install the exception and assert
5485 catchpoint commands here.
5486 * ada-lang.h (ada_decode_exception_location)
5487 (ada_decode_assert_location): Delete declarations.
5488 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5489 breakpoint.h.
5490 (create_ada_exception_breakpoint): Make extern.
5491 (catch_ada_exception_command, catch_assert_command): Moved to
5492 ada-lang.c.
5493 (add_catch_command): Make extern.
5494 (_initilize_breakpoint): Don't install the exception and assert
5495 catchpoint commands here.
5496 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5497 breakpoint.c
5498 (add_catch_command, create_ada_exception_breakpoint): Declare.
5499
5500 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5501
5502 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5503 the breakpoint to the breakpoint chain here.
5504 (set_raw_breakpoint_without_location): Add the breakpoint to the
5505 breakpoint chain here.
5506 (init_raw_breakpoint): Adjust comments.
5507 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5508 here.
5509 (init_catchpoint): Don't set the catchpoint's breakpoint number
5510 here.
5511 (install_catchpoint): New function.
5512 (create_fork_vfork_event_catchpoint)
5513 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5514 use install_catchpoint.
5515
5516 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5517
5518 * breakpoint.c (create_catchpoint_without_mention)
5519 (create_catchpoint): Delete.
5520
5521 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5522
5523 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5524 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5525 reference to exec_pathname.
5526 (struct exec_catchpoint): New type.
5527 (dtor_catch_exec): New function.
5528 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5529 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5530 (catch_exec_command_1): Adjust to use init_catchpoint.
5531 (delete_breakpoint): Remove reference to exec_pathname.
5532
5533 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5534
5535 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5536 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5537 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5538 reference to syscalls_to_be_caught.
5539 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5540 NULL `dtor'.
5541 (struct syscall_catchpoint): New type.
5542 (dtor_catch_syscall): New function.
5543 (insert_catch_syscall, remove_catch_syscall)
5544 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5545 (print_recreate_catch_syscall): Adjust.
5546 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5547 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5548 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5549 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5550 (masked_watchpoint_breakpoint_ops)
5551 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5552 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5553 there is one. Remove references to syscalls_to_be_caught.
5554 (catching_syscall_number): Adjust.
5555 * ada-lang.c (catch_exception_breakpoint_ops)
5556 (catch_exception_unhandled_breakpoint_ops)
5557 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5558
5559 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5560
5561 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5562 field.
5563 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5564 reference to forked_inferior_pid.
5565 (struct fork_catchpoint): New type.
5566 (breakpoint_hit_catch_fork, print_it_catch_fork)
5567 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5568 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5569 (create_fork_vfork_event_catchpoint): Adjust to use
5570 init_catchpoint.
5571
5572 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5573
5574 * breakpoint.c (add_to_breakpoint_chain)
5575 (init_raw_breakpoint_without_location): New functions, factored
5576 out from ...
5577 (set_raw_breakpoint_without_location): ... this one.
5578 (init_raw_breakpoint): New function, factored out from
5579 set_raw_breakpoint and adjusted to use
5580 init_raw_breakpoint_without_location.
5581 (set_raw_breakpoint): Adjust.
5582 (init_catchpoint): New function, factored out from
5583 create_catchpoint_without_mention and adjusted to use
5584 init_raw_breakpoint.
5585 (create_catchpoint_without_mention): Adjust.
5586
5587 2011-06-22 Tom Tromey <tromey@redhat.com>
5588
5589 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5590 argument of 0 specially.
5591
5592 2011-06-22 Yao Qi <yao@codesourcery.com>
5593
5594 * infrun.c (handle_inferior_event): Remove write-only local variable
5595 `sw_single_step_trap_p'.
5596
5597 2011-06-20 Tom Tromey <tromey@redhat.com>
5598
5599 * symtab.c (lookup_language_this): End loop if block is NULL.
5600
5601 2011-06-17 Tom Tromey <tromey@redhat.com>
5602
5603 * valops.c (value_of_this): Use lookup_language_this.
5604 * symtab.h (lookup_language_this): Declare.
5605 * symtab.c (lookup_language_this): New function.
5606 (lookup_symbol_aux): Use lookup_language_this.
5607 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5608
5609 2011-06-17 Tom Tromey <tromey@redhat.com>
5610
5611 * value.h (value_of_this): Update.
5612 (value_of_local): Remove.
5613 * valops.c (value_of_this): Rename from value_of_local. Change
5614 parameters.
5615 * p-exp.y (exp): Update.
5616 (variable): Likewise.
5617 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5618
5619 2011-06-17 Tom Tromey <tromey@redhat.com>
5620
5621 * valops.c (value_of_local): Complain if NAME is NULL.
5622 * std-operator.def (OP_OBJC_SELF): Remove.
5623 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5624 * objc-exp.y (name_not_typename): Use OP_THIS.
5625 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5626 name for "this".
5627 <OP_OBJC_SELF>: Remove.
5628 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5629
5630 2011-06-16 Tristan Gingold <gingold@adacore.com>
5631
5632 * python/py-events.h (gdb_py_events): Make it extern.
5633 * python/py-evtregistry.c (gdb_py_events): Declare.
5634
5635 2011-06-16 Hui Zhu <teawater@gmail.com>
5636
5637 * remote.c (remote_trace_set_readonly_regions): Add check for
5638 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5639 output warning.
5640
5641 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5642
5643 * arm-linux-tdep.c: Include "auxv.h".
5644 (AT_HWCAP): Define.
5645 (ARM_LINUX_SIZEOF_VFP): Define.
5646 (arm_linux_supply_vfp): New function.
5647 (arm_linux_collect_vfp): Likewise.
5648 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5649 (arm_linux_fpa_regset_sections): New variable.
5650 (arm_linux_vfp_regset_sections): Likewise.
5651 (arm_linux_core_read_description): New function.
5652 (arm_linux_init_abi): Install arm_linux_core_read_description and
5653 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5654 appropriate for the architecture.
5655 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5656 (tdesc_arm_with_m): Declare.
5657 (tdesc_arm_with_iwmmxt): Likewise.
5658 (tdesc_arm_with_vfpv2): Likewise.
5659 (tdesc_arm_with_vfpv3): Likewise.
5660 (tdesc_arm_with_neon): Likewise.
5661 * arm-linux-nat.c: Move features/*.c includes ...
5662 * arm-tdep.c: ... here.
5663 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5664 target description data structures ...
5665 * arm-tdep.c (_initialize_arm_tdep): ... here.
5666 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5667 HWCAP_VFPv3D16): Move definitions ...
5668 * arm-linux-tdep.h: ... here.
5669
5670 2011-06-15 Hui Zhu <teawater@gmail.com>
5671
5672 * remote.c (remote_trace_set_readonly_regions): Add a check for
5673 target_buf_size.
5674
5675 2011-06-14 Tom Tromey <tromey@redhat.com>
5676
5677 * coffread.c (coffread_objfile): Rename from current_objfile.
5678 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5679 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5680
5681 2011-06-14 Tom Tromey <tromey@redhat.com>
5682
5683 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5684 (class_symtab): Remove.
5685 (jv_dynamics_progspace_key): New global.
5686 (jv_per_objfile_free): Reset program space data. Update assert.
5687 Don't clear globals.
5688 (get_dynamics_objfile): Use and set program space data.
5689 (get_java_class_symtab): Use get_dynamics_objfile.
5690 (add_class_symbol): Likewise.
5691 (java_link_class_type): Likewise.
5692 (java_object_type, jv_clear_object_type, set_java_object_type):
5693 Remove.
5694 (get_java_object_type): Update. Don't cache result.
5695 (is_object_type): Don't call set_java_object_type.
5696 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5697 initialize jv_dynamics_progspace_key.
5698
5699 2011-06-14 Tom Tromey <tromey@redhat.com>
5700
5701 * symtab.h (current_objfile): Don't declare.
5702 * objfiles.h (current_objfile): Don't declare.
5703 * objfiles.c (current_objfile): Remove.
5704 * mdebugread.c (current_objfile): New file-scope global.
5705 * dbxread.c (current_objfile): New file-scope global.
5706 * coffread.c (current_objfile): New file-scope global.
5707
5708 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5709
5710 * top.h (line): Rename to ...
5711 (saved_command_line): ... this.
5712 (linesize): Rename to ...
5713 (saved_command_line_size): ... this.
5714 * top.c (line): Rename to ...
5715 (saved_command_line): ... this.
5716 (linesize): Rename to ...
5717 (saved_command_line_size): ... this.
5718 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5719 * event-top.c (command_line_handler): Adjust.
5720 * main.c (captured_main): Adjust.
5721
5722 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5723
5724 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5725 get_frame_func instead of get_frame_pc to determine the code
5726 address used to construct the frame ID.
5727 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5728 (i386_epilogue_frame_this_id): Likewise.
5729 (i386_epilogue_frame_prev_register): New function.
5730 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5731 (i386_stack_tramp_frame_sniffer): Fix coding style.
5732 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5733 (i386_gdbarch_init): Fix comments.
5734
5735 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5736
5737 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5738 instruction when walking back through the instruction stream.
5739
5740 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5741
5742 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5743 fullname parameters order.
5744
5745 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5746
5747 Code cleanup.
5748 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5749 for fun.
5750 * psymtab.c (map_symbol_filenames_psymtab)
5751 (map_partial_symbol_filenames): Likewise.
5752 * psymtab.h: Include symfile.h.
5753 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5754 * symfile.h (symbol_filename_ftype): New.
5755 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5756 map_symbol_filenames, clarify more the naming in comment.
5757
5758 2011-06-07 Doug Evans <dje@google.com>
5759
5760 * cc-with-index.sh: Fix typos in comment.
5761 Look for ../../gdb, for fullname.exp.
5762
5763 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5764 Pedro Alves <pedro@codesourcery.com>
5765
5766 * cli/cli-cmds.c (shell_escape): Use waitpid.
5767 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5768
5769 2011-06-07 Tristan Gingold <gingold@adacore.com>
5770
5771 * xcoffread.c (dwarf2_xcoff_names): New variable.
5772 (aix_process_linenos): Add a guard.
5773 (xcoff_symfile_finish): Free dwarf2.
5774 (xcoff_initial_scan): Add dwarf2 support.
5775
5776 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5777
5778 * infcall.c (run_inferior_call): Don't mask async. Instead force
5779 a synchronous wait, if the target can async.
5780
5781 * target.h (struct target_ops): Delete to_async_mask.
5782 (target_async_mask): Delete.
5783 * target.c (update_current_target): Delete references to to_async_mask.
5784 * linux-nat.c (linux_nat_async_mask_value): Delete.
5785 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5786 to linux_nat_async_mask_value.
5787 (linux_nat_async_mask): Delete.
5788 (linux_nat_async, linux_nat_close): Remove references to
5789 linux_nat_async_mask_value.
5790 * record.c (record_async_mask_value): Delete.
5791 (record_async): Remove references to record_async_mask_value.
5792 (record_async_mask): Delete.
5793 (record_can_async_p, record_is_async_p): Remove references to
5794 record_async_mask_value.
5795 (init_record_ops, init_record_core_ops): Remove references to
5796 record_async_mask.
5797 * remote.c (remote_async_mask_value): Delete.
5798 (init_remote_ops): Remove reference to remote_async_mask.
5799 (remote_can_async_p, remote_is_async_p): Remove references to
5800 remote_async_mask_value.
5801 (remote_async): Remove references to remote_async_mask_value.
5802 (remote_async_mask): Delete.
5803
5804 * infrun.c (fetch_inferior_event): Don't claim registers changed
5805 if the current thread is already not executing.
5806
5807 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5808
5809 From Stephen Kitt <steve@sk2.org>
5810 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5811 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5812
5813 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5814
5815 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5816 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5817
5818 2011-06-03 Tom Tromey <tromey@redhat.com>
5819
5820 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5821 code fields.
5822 * python/py-exitedevent.c (create_exited_event_object): Change
5823 type of 'exit_code'. Optionally add exit_code attribute.
5824 (emit_exited_event): Change type of 'exit_code'.
5825 * python/py-event.h (emit_exited_event): Update.
5826 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5827 * infrun.c (handle_inferior_event): Set exit code fields on
5828 inferior.
5829 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5830 fields.
5831 * inferior.c (exit_inferior_1): Initialize new fields.
5832
5833 2011-06-03 Tom Tromey <tromey@redhat.com>
5834
5835 * dwarf2expr.c (get_signed_type): New function.
5836 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5837
5838 2011-06-02 Keith Seitz <keiths@redhat.com>
5839
5840 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5841
5842 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5843
5844 * top.h (simplified_command_loop): Delete declaration.
5845
5846 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5847
5848 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5849 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5850
5851 2011-06-01 Yao Qi <yao@codesourcery.com>
5852
5853 * objfiles.h (obj_section_addr): Update reference to objfile from
5854 `abfd' to `obfd'.
5855 (obj_section_endaddr): Likewise.
5856
5857 2011-06-01 Daniel Jacobowitz <drow@false.org>
5858
5859 * MAINTAINERS: Update my email address and affiliation. Also
5860 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5861
5862 2010-05-31 Keith Seitz <keiths@redhat.com>
5863
5864 PR c++/12750
5865 * linespec.c (get_search_block): New function.
5866 (find_methods): Add FILE_SYMTATB parameter and use it and
5867 get_search_block to pass an appropriate block to
5868 lookup_symbol_in_namespace.
5869 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5870 Check if *ARGPTR starts with a filename first.
5871 If it does, call locate_first_half again to locate the next
5872 "first half" of the linespec.
5873 Pass FILE_SYMTATB to decode_objc and decode_compound.
5874 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5875 (locate_first_half): Stop on the first colon seen.
5876 (decode_compound): Add FILE_SYMTAB parameter.
5877 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5878 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5879 get_search_block with lookup_symbol.
5880 (find_method): Add FILE_SYMTAB parameter and pass it to
5881 find_methods.
5882 (decode_objc): Use get_search_block.
5883
5884 2010-05-31 Keith Seitz <keiths@redhat.com>
5885
5886 PR symtab/12704
5887 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5888 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5889 and CP_ANONYMOUS_NAMESPACE_LEN.
5890 (cp_is_anonymous): Likewise.
5891 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5892 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5893 * dwarf2read.c (namespace_name): Likewise.
5894 (fixup_partial_die): Likewise.
5895 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5896 seen in the input, keep it.
5897
5898 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5899
5900 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5901 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5902 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5903 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5904 * remote.c (_initialize_remote): Register
5905 async_remote_interrupt_twice directly as
5906 sigint_remote_twice_token event.
5907
5908 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5909
5910 * target.h (enum inferior_event_type): Delete INF_ERROR.
5911 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5912
5913 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5914
5915 * interps.c (interp_set): Don't cancel continuations.
5916
5917 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5918
5919 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5920
5921 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5922
5923 * continuations.h (continuation_ftype): Add `err' parameter.
5924 Document parameters.
5925 (do_all_continuations, do_all_continuations_thread)
5926 (do_all_intermediate_continuations)
5927 (do_all_intermediate_continuations_thread)
5928 (do_all_inferior_continuations): Add `err' parameter.
5929 * continuations.c (do_my_continuations_1, do_my_continuations)
5930 (do_all_inferior_continuations, do_all_continuations_ptid)
5931 (do_all_continuations_thread_callback)
5932 (do_all_continuations_thread, do_all_continuations)
5933 (do_all_intermediate_continuations_thread_callback)
5934 (do_all_intermediate_continuations_thread)
5935 (do_all_intermediate_continuations): Add `err' parameter, and pass
5936 it down all the way to the continuations proper.
5937 * inf-loop.c (inferior_event_handler): If fetching an inferior
5938 event throws an error, don't pop the target, and still call the
5939 continuations, but with `err' set. Adjust all other continuation
5940 calls.
5941 * breakpoint.c (until_break_command_continuation): Add `err'
5942 parameter.
5943 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5944 issue another step if `err' is set.
5945 (struct until_next_continuation_args): New.
5946 (until_next_continuation): Add `err' parameter. Adjust.
5947 (until_next_command): Adjust.
5948 (struct finish_command_continuation_args): Add `thread' field.
5949 (finish_command_continuation): Add `err' parameter. Handle it.
5950 (finish_forward): Adjust.
5951 (attach_command_continuation): Add `err' parameter. Handle it.
5952 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5953 cancel the continuations.
5954 * interps.c (interp_set): Adjust to cancel the continuations.
5955 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5956 continuations rather than discarding.
5957 (free_thread): Don't clear thread inferior resources here.
5958 (delete_thread_1): Do it here instead. And do it before removing
5959 the thread from the threads list. Tag the thread as exited before
5960 clearing thread inferior resources.
5961
5962 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5963
5964 * infcall.c (call_function_by_hand): Rephrase error message.
5965
5966 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5967
5968 * defs.h (struct thread_info, struct inferior): Delete forward
5969 declarations.
5970 * breakpoint.h (struct thread_info): New forward declaration.
5971 * observer.sh (struct inferior): New forward declaration.
5972 * python/python-internal.h (struct inferior): New forward
5973 declaration.
5974
5975 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5976
5977 * defs.h (struct continuation, continuation_ftype)
5978 (continuation_free_arg_ftype, add_continuation)
5979 (do_all_continuations, do_all_continuations_thread)
5980 (discard_all_continuations, discard_all_continuations_thread)
5981 (add_intermediate_continuation, do_all_intermediate_continuations)
5982 (do_all_intermediate_continuations_thread)
5983 (discard_all_intermediate_continuations)
5984 (discard_all_intermediate_continuations_thread)
5985 (add_inferior_continuation, do_all_inferior_continuations)
5986 (discard_all_inferior_continuations): Move to ...
5987 * continuations.h: ... this new file.
5988 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5989 infcmd.c, inferior.c, infrun.c, interps.c: Include
5990 continuations.h.
5991
5992 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5993 Doug Evans <dje@google.com>
5994
5995 Fix PR 10970, PR 12702.
5996 * linux-nat.c (linux_lwp_is_zombie): New function.
5997 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5998 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5999
6000 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6001
6002 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6003 typedefs.
6004 (add_continuation, add_intermediate_continuation)
6005 (add_inferior_continuation): Use them.
6006 * continuations.c (struct continuation): Use them.
6007 (make_continuation_ftype): Delete.
6008 (make_continuation, add_inferior_continuation, add_continuation)
6009 (add_intermediate_continuation): Use continuation_ftype and
6010 continuation_free_arg_ftype. Rename parameters to shorter names.
6011
6012 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6013
6014 * continuations.c (make_continuation): Make it return void.
6015 (do_my_continuations): Rename to ...
6016 (do_my_continuations_1): ... this. Remove old_chain parameter and
6017 adjust.
6018 (do_my_continuations): New.
6019 (discard_my_continuations): Rename to ...
6020 (discard_my_continuations_1): ... this. Remove old_chain
6021 parameter and adjust.
6022 (discard_my_continuations): New.
6023 (add_inferior_continuation): Simplify.
6024 (do_all_inferior_continuations): Reimplement on top
6025 do_my_continuations.
6026 (discard_all_inferior_continuations): Simplify.
6027 (add_continuation): Simplify.
6028 (do_all_continuations_ptid): Simplify.
6029 (discard_all_continuations_thread_callback): Simplify.
6030 (add_intermediate_continuation): Simplify.
6031 (discard_all_intermediate_continuations_thread_callback):
6032 Simplify.
6033
6034 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6035
6036 * utils.c (struct continuation, add_continuation)
6037 (add_inferior_continuation)
6038 (do_all_inferior_continuations, discard_all_inferior_continuations)
6039 (restore_thread_cleanup, do_all_continuations_ptid)
6040 (do_all_continuations_thread_callback)
6041 (do_all_continuations_thread, do_all_continuations)
6042 (discard_all_continuations_thread_callback)
6043 (discard_all_continuations_thread, discard_all_continuations)
6044 (add_intermediate_continuation)
6045 (do_all_intermediate_continuations_thread_callback)
6046 (do_all_intermediate_continuations_thread)
6047 (do_all_intermediate_continuations)
6048 (discard_all_intermediate_continuations_thread_callback)
6049 (discard_all_intermediate_continuations_thread)
6050 (discard_all_intermediate_continuations): Move to ...
6051 * continuations.c: ... this new file, and adjust to no longer
6052 implement continuations on top of cleanups.
6053 * Makefile.in (SFILES): Add continuations.c.
6054 (COMMON_OBS): Add continuations.o.
6055
6056 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6057
6058 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6059 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6060 Internal error on invalid values.
6061 * reverse.c: Don't handle EXEC_ERROR.
6062 * mi/mi-main.c: Don't handle EXEC_ERROR.
6063
6064 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6065
6066 * record.c: Include event-loop.h, inf-loop.h.
6067 (record_beneath_to_async): New global.
6068 (tmp_to_async): New global.
6069 (record_async_inferior_event_token): New global.
6070 (record_open_1): Don't error out if async is enabled.
6071 (record_open): Handle to_async. Create an async event source in
6072 the event loop.
6073 (record_close): Delete the async event source.
6074 (record_resumed): New global.
6075 (record_execution_dir): New global.
6076 (record_resume, record_core_resume): Set them. Register the
6077 target on the event loop.
6078 (record_wait): Rename to ...
6079 (record_wait_1): ... this. Add more debug output. Handle
6080 TARGET_WNOHANG, and the target beneath returning
6081 TARGET_WAITKIND_IGNORE.
6082 (record_wait): Reimplement on top of record_wait_1.
6083 (record_async_mask_value): New global.
6084 (record_async, record_async_mask, record_can_async_p)
6085 (record_is_async_p, record_execution_direction): New functions.
6086 (init_record_ops, init_record_core_ops): Install new methods.
6087 * infrun.c (fetch_inferior_event): Temporarily switch the global
6088 execution direction to the direction the target was going.
6089 (execution_direction): Change type to int.
6090 * target.c (default_execution_direction): New function.
6091 (update_current_target): Inherit and de_fault
6092 to_execution_direction.
6093 * target.h (struct target_ops) <to_execution_direction>: New
6094 field.
6095 (target_execution_direction): New macro.
6096 * inferior.h (execution_direction): Change type to int.
6097
6098 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6099
6100 * infcall.c (call_function_by_hand): Don't allow calling functions
6101 in reverse execution mode.
6102
6103 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6104
6105 * infcmd.c (finish_command): Allow async finish in reverse.
6106
6107 2011-05-26 Yao Qi <yao@codesourcery.com>
6108
6109 * gdb_thread_db.h: Delete. Move to ...
6110 * common/gdb_thread_db.h: ... here.
6111
6112 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6113
6114 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6115 function's entry point instead of a manually managed momentary
6116 breakpoint, and only ever issue one proceed call.
6117 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6118 doing a reverse-finish, switch to stepi mode, to do another step.
6119 (insert_step_resume_breakpoint_at_sal): Make public.
6120 (normal_stop): No need to save function value return registers if
6121 going reverse.
6122 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6123
6124 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6125
6126 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6127 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6128 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6129 at the end.
6130 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6131 step-resume breakpoints.
6132 (print_it_typical): Handle bp_hp_step_resume.
6133 (bpstat_what): Ditto.
6134 (bptype_string): Ditto.
6135 (print_one_breakpoint_location): Ditto.
6136 (allocate_bp_location): Ditto.
6137 (mention): Ditto.
6138 (breakpoint_re_set_one): Ditto.
6139 * infrun.c (handle_inferior_event): Adjust. Split
6140 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6141 BPSTAT_WHAT_HP_STEP_RESUME.
6142 (insert_step_resume_breakpoint_at_sal): Rename to ...
6143 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6144 parameter. Handle it.
6145 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6146 insert_step_resume_breakpoint_at_sal_1.
6147 (insert_step_resume_breakpoint_at_frame): Rename to ...
6148 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6149 set a high-priority step-resume breakpoint.
6150 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6151 (insert_step_resume_breakpoint_at_caller): Ditto.
6152
6153 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6154
6155 * breakpoint.c (iterate_over_related_breakpoints): New.
6156 (do_map_delete_breakpoint): New.
6157 (delete_command): Pass do_map_delete_breakpoint to
6158 map_breakpoint_numbers.
6159 (do_disable_breakpoint): New.
6160 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6161 breakpoints.
6162 (do_enable_breakpoint): Rename to ...
6163 (enable_breakpoint_disp): ... this.
6164 (enable_breakpoint): Adjust.
6165 (do_enable_breakpoint): New.
6166 (enable_once_breakpoint): Delete.
6167 (do_map_enable_breakpoint): New.
6168 (do_map_enable_once_breakpoint): New.
6169 (enable_once_command, enable_delete_command)
6170 (delete_trace_command): Iterate over the breakpoint's related
6171 breakpoints.
6172
6173 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6174
6175 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6176 for ALPHA_ZERO_REGNUM.
6177 (alpha_supply_int_regs): Explicitly supply zero as the value for
6178 ALPHA_ZERO_REGNUM in the register cache.
6179 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6180
6181 2011-05-26 Yao Qi <yao@codesourcery.com>
6182
6183 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6184
6185 2011-05-26 Tristan Gingold <gingold@adacore.com>
6186
6187 * symfile.h (struct dwarf2_section_names): New type.
6188 (struct dwarf2_debug_sections): New type.
6189 (dwarf2_has_info): Add parameter.
6190 * dwarf2read.c (dwarf2_elf_names): New variable.
6191 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6192 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6193 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6194 (dwarf2_has_info): Add names parameter. Pass names
6195 to dwarf2_locate_sections.
6196 (section_is_p): Rewrite using the names parameter.
6197 (dwarf2_locate_sections): Use section names from the names parameter.
6198 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6199 * elfread.c (read_psyms): Ditto.
6200 * machoread.c (macho_symfile_read): Ditto.
6201
6202 2011-05-25 Andreas Schwab <schwab@redhat.com>
6203
6204 PR gdb/8677
6205 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6206
6207 2011-05-24 Keith Seitz <keiths@redhat.com>
6208
6209 PR breakpoint/12803
6210 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6211 (decode_compound): Unconditionally call keep_name_info.
6212
6213 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6214
6215 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6216 scope, clear its command list.
6217 (map_breakpoint_numbers): Don't walk the related breakpoints list
6218 of each breakpoint.
6219
6220 2011-05-24 Tom Tromey <tromey@redhat.com>
6221
6222 * MAINTAINERS: Move Jim Blandy to past maintainers.
6223
6224 2011-05-24 Tristan Gingold <gingold@adacore.com>
6225
6226 * symfile.h (enum dwarf2_section_enum): New type.
6227 (dwarf2_get_section_info): New prototype.
6228 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6229 section_name by sect. Use a switch to select the info.
6230 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6231 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6232
6233 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6234
6235 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6236 shared library event breakpoint if there's no execution.
6237
6238 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6239
6240 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6241 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6242
6243 2011-05-23 Tom Tromey <tromey@redhat.com>
6244
6245 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6246 NULL.
6247
6248 2011-05-23 Doug Evans <dje@google.com>
6249
6250 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6251 entry for RuntimeError to doc string.
6252
6253 2011-05-23 Jerome Guitton <guitton@adacore.com>
6254
6255 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6256 sequence for probing loops.
6257
6258 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6259
6260 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6261 comment.
6262
6263 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6264
6265 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6266 zero as the value for %g0 in the register cache.
6267 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6268 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6269
6270 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6271
6272 * infrun.c (proceed): Set previous_inferior_ptid here.
6273 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6274 inferior_ptid, not null_ptid.
6275 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6276 (fetch_inferior_event): Nor here.
6277
6278 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6279
6280 * inf-loop.c (inferior_event_handler): Only output a message if
6281 verbose.
6282
6283 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6284
6285 * MAINTAINERS: Update my e-mail address.
6286
6287 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6288
6289 * infrun.c (proceed): Switch the inferior event loop to
6290 INF_EXEC_COMPLETE if the target refused to resume from a
6291 vfork/fork.
6292
6293 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6294
6295 * infcmd.c: Include "inf-loop.h".
6296 (step_once): When stepping into an inline subroutine, pretend the
6297 target has run. If the target can async, switch the inferior
6298 event loop to INF_EXEC_COMPLETE.
6299 * inferior.h (user_visible_resume_ptid): Declare.
6300 * infrun.c (user_visible_resume_ptid): New function, factored out
6301 from `resume'.
6302 (resume): Use it.
6303 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6304 that the current thread is running. Merge async and sync
6305 branches.
6306
6307 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6308
6309 * infcmd.c (step_1): Simplify synchronous case.
6310
6311 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6312
6313 * tracepoint.c: Include exceptions.h.
6314 (TFILE_PID): Move higher in file.
6315 (tfile_open): Delay pushing the tfile target until we're assured
6316 the tfile header is present in the file. Wrap reading the initial
6317 newline-terminated lines in TRY_CATCH. Pop the target if the
6318 initial setup failed. Add the tfile's thread immediately
6319 aftwards, before any non-essential setup. Don't skip
6320 post_create_inferior if there are no traceframes present in the
6321 file.
6322 (tfile_close): Remove redundant check for null before xfree call.
6323 (tfile_thread_alive): New function.
6324 (init_tfile_ops): Register it as to_thread_alive callback.
6325
6326 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6327
6328 * tracepoint.c (tfile_open): Delete #if 0'd code.
6329
6330 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6331
6332 Fix -readnow for -gdwarf-4 unused type units.
6333 * dwarf2read.c (struct signatured_type): Remove the field offset.
6334 (create_signatured_type_table_from_index): Remove its initialization.
6335 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6336 instead. Add a complaint call.
6337 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6338 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6339 (lookup_signatured_type_at_offset, read_signatured_type)
6340 (write_one_signatured_type): Update the field for per_cu.
6341
6342 2011-05-19 Tom Tromey <tromey@redhat.com>
6343
6344 * python/py-inferior.c (python_inferior_exit): Use
6345 target_gdbarch.
6346 (python_on_resume): Likewise.
6347
6348 2011-05-19 Matt Rice <ratmice@gmail.com>
6349
6350 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6351
6352 2011-05-19 Hui Zhu <teawater@gmail.com>
6353
6354 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6355
6356 2011-05-19 Hui Zhu <teawater@gmail.com>
6357
6358 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6359
6360 2011-05-18 Tom Tromey <tromey@redhat.com>
6361
6362 * dwarf2read.c (dwarf2_add_field): Constify.
6363 * value.c (value_static_field): Constify.
6364 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6365 Now const.
6366 * ax-gdb.c (gen_static_field): Constify
6367
6368 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6369
6370 * linux-nat.c (kill_callback): Use SIGKILL first.
6371
6372 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6373
6374 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6375
6376 2011-05-18 Tom Tromey <tromey@redhat.com>
6377
6378 * value.c (value_fn_field): Constify.
6379 * symtab.c (gdb_mangle_name): Constify.
6380 * stabsread.c (update_method_name_from_physname): Make 'physname'
6381 argument const.
6382 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6383 const. Use explicit fputc_filtered loop.
6384 (pascal_type_print_base): Constify.
6385 * p-lang.h (pascal_type_print_method_args): Update.
6386 * linespec.c (add_matching_methods): Constify.
6387 (add_constructors): Likewise.
6388 * jv-typeprint.c (java_type_print_base): Constify.
6389 * gdbtypes.h (struct cplus_struct_type)
6390 <fn_fieldlist.fn_field.physname>: Now const.
6391 * dwarf2read.c (compute_delayed_physnames): Constify.
6392 (dwarf2_add_member_fn): Likewise.
6393 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6394
6395 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6396
6397 * infrun.c (resume): Mention which is the current thread, and its
6398 current PC in debug output.
6399 (prepare_to_proceed): Mention the thread switching in debug
6400 output.
6401
6402 2011-05-18 Tom Tromey <tromey@redhat.com>
6403
6404 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6405 path check. Use xmalloc and cleanups.
6406 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6407
6408 2011-05-17 Tom Tromey <tromey@redhat.com>
6409
6410 * cp-valprint.c (cp_print_value_fields): Catch errors from
6411 value_static_field.
6412
6413 2011-05-17 Tom Tromey <tromey@redhat.com>
6414
6415 * dwarf2read.c (dwarf2_get_die_type): Call
6416 get_die_type_at_offset.
6417 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6418 get_base_type function.
6419
6420 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6421
6422 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6423 trap_expected.
6424
6425 2011-05-16 Doug Evans <dje@google.com>
6426
6427 * python/py-auto-load.c (source_section_scripts): Mention objfile
6428 name in warning.
6429
6430 2011-05-15 Doug Evans <dje@google.com>
6431
6432 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6433 (try_thread_db_load_from_pdir): Call it. If unable to find
6434 libthread_db in directory of libpthread, see if we're looking at
6435 the separate-debug-info copy.
6436
6437 * python/py-autoload.c (print_script): Print "Missing" instead of
6438 "No" for missing scripts.
6439 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6440
6441 2011-05-13 Doug Evans <dje@google.com>
6442
6443 * ui-file.c (stdio_file_write_async_safe): Add comment.
6444
6445 2011-05-14 Hui Zhu <teawater@gmail.com>
6446
6447 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6448
6449 2011-05-13 Doug Evans <dje@google.com>
6450
6451 Support $pdir and $sdir in libthread-db-search-path.
6452 * NEWS: Mention $sdir,$pdir.
6453 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6454 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6455 (try_thread_db_load_from_sdir): New function.
6456 (try_thread_db_load_from_dir): New function.
6457 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6458 system directories if search of libthread-db-search-path fails,
6459 that is now done via $sdir.
6460 (has_libpthread): New function.
6461 (thread_db_load): Remove search for libthread_db in directory of
6462 libpthread, that is now done via $pdir.
6463
6464 * NEWS: Mention "info auto-load-scripts".
6465 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6466 script_not_found_warning_printed.
6467 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6468 all callers updated. Initialize script_not_found_warning_printed.
6469 (get_auto_load_pspace_data_for_loading): New function.
6470 (maybe_add_script): New function.
6471 (source_section_scripts): Simplify. Only print one warning regardless
6472 of the number of auto-load scripts not found.
6473 (clear_section_scripts): Clear script_not_found_warning_printed.
6474 (auto_load_objfile_script): Record script in hash table.
6475 (count_matching_scripts): New function.
6476 (maybe_print_script): Renamed from maybe_print_section_script, all
6477 callers updated. Rewrite to use ui_out_*.
6478 (info_auto_load_scripts): Renamed from
6479 maintenance_print_section_scripts, all callers updated.
6480 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6481 renamed as "info auto-load-scripts".
6482
6483 2011-05-13 Tom Tromey <tromey@redhat.com>
6484
6485 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6486 (read_sleb128): Likewise.
6487
6488 2011-05-13 Tom Tromey <tromey@redhat.com>
6489
6490 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6491 offset display.
6492
6493 2011-05-13 Doug Evans <dje@google.com>
6494
6495 * linux-nat.c (debug_linux_nat_async): Delete.
6496 Replace all references to use debug_linux_nat instead.
6497 (show_debug_linux_nat_async): Delete.
6498 (sigchld_handler): Call ui_file_write_async_safe instead of
6499 fprintf_unfiltered.
6500 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6501 * ui-file.c (struct ui_file): New member to_write_async_safe.
6502 (null_file_write_async_safe): New function.
6503 (ui_file_write_async_safe): New function.
6504 (set_ui_file_write_async_safe): New function.
6505 (ui_file_new): Initialize to_write_async_safe.
6506 (stdio_file_write_async_safe): New function.
6507 (struct stdio_file): New member fd.
6508 (stdio_file_new): Initialize to_write_async_safe, fd.
6509 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6510 fileno.
6511 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6512 (set_ui_file_write_async_safe): Declare.
6513 (ui_file_write_async_safe): Declare.
6514
6515 2011-05-13 Tom Tromey <tromey@redhat.com>
6516
6517 * utils.c (do_value_free): New function.
6518 (make_cleanup_value_free): Likewise.
6519 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6520 freeing correctly.
6521 (dwarf2_loc_desc_needs_frame): Call
6522 make_cleanup_value_free_to_mark.
6523 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6524 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6525 value_free_to_mark.
6526 (new_dwarf_expr_context): Don't call value_mark.
6527 * dwarf2-frame.c (execute_stack_op): Call
6528 make_cleanup_value_free_to_mark.
6529 * defs.h (make_cleanup_value_free): Declare.
6530
6531 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6532
6533 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6534 prepare_execute_command.
6535 * top.c (prepare_execute_command): Return cleanup.
6536 (execute_command): Use cleanup from prepare_execute_command.
6537 * top.h (prepare_execute_command): Change prototype to return
6538 cleanup.
6539 * defs.h (struct value): Add opaque declaration.
6540 (make_cleanup_value_free_to_mark): Add prototype.
6541 * utils.c (do_value_free_to_mark): New function.
6542 (make_cleanup_value_free_to_mark): Likewise.
6543
6544 2011-05-12 Tom Tromey <tromey@redhat.com>
6545
6546 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6547 cast left-hand-side to unsigned.
6548
6549 2011-05-12 Tom Tromey <tromey@redhat.com>
6550
6551 PR gdb/12617:
6552 * value.h (value_from_contents): Declare.
6553 * value.c (value_from_contents): New function.
6554 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6555 (dwarf2_get_die_type): New function.
6556 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6557 (allocate_piece_closure): Acquire reference to values.
6558 (read_pieced_value): Update for value-based expressions.
6559 (write_pieced_value): Likewise.
6560 (free_pieced_value_closure): Call value_free as needed.
6561 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6562 Update for value-based expressions.
6563 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6564 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6565 <get_base_type>: New field.
6566 (struct dwarf_expr_piece) <v.value>: Change type.
6567 <v.regno>: New field.
6568 (struct dwarf_expr_context) <mark>: New field.
6569 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6570 (dwarf_expr_pop, dwarf_expr_push): Remove.
6571 (dwarf_expr_push_address): Declare.
6572 * dwarf2expr.c (dwarf_arch_cookie): New global.
6573 (struct dwarf_gdbarch_types): New.
6574 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6575 functions.
6576 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6577 static.
6578 (dwarf_expr_push_address): New function.
6579 (dwarf_expr_pop): Now static.
6580 (dwarf_expr_fetch): Change return type.
6581 (dwarf_require_integral): New function.
6582 (dwarf_expr_fetch): Simplify.
6583 (add_piece): Update.
6584 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6585 functions.
6586 (execute_stack_op) <sign_ext>: Remove.
6587 Use values for DWARF stack.
6588 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6589 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6590 New cases.
6591 (_initialize_dwarf2expr): New function.
6592 (add_piece): Update.
6593 (new_dwarf_expr_context): Set new field.
6594 (free_dwarf_expr_context): Call value_free_to_mark.
6595 * dwarf2-frame.c (no_base_type): New function.
6596 (execute_stack_op): Set get_base_type field. Update.
6597
6598 2011-05-12 Tom Tromey <tromey@redhat.com>
6599
6600 * dwarf2read.c (read_common_block): Fix formatting.
6601
6602 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6603
6604 * breakpoint.c (disable_breakpoint): Disable all locations
6605 associated with a tracepoint on target if a trace experiment is
6606 running.
6607 (disable_command): Disable a specific tracepoint location on target if
6608 a trace experiment is running.
6609 (do_enable_breakpoint): Enable all locations associated with a
6610 tracepoint on target if a trace experiment is running.
6611 (enable_command) Enable a specific tracepoint location on target if a
6612 trace experiment is running.
6613 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6614 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6615 to_disable_tracepoint.
6616 * target.h: Add declaration of struct bp_location.
6617 (struct target_ops): Add new functions
6618 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6619 to_disable_tracepoint to target operations.
6620 (target_supports_enable_disable_tracepoint): New macro.
6621 (target_enable_tracepoint): New macro.
6622 (target_disable_tracepoint): New macro.
6623 * remote.c (struct remote_state): Add new field.
6624 (remote_enable_disable_tracepoint_feature): New.
6625 (remote_protocol_features): Add new entry.
6626 (remote_supports_enable_disable_tracepoint): New.
6627 (remote_enable_tracepoint): New.
6628 (remote_disable_tracepoint): New.
6629 (init_remote_ops): Add remote_enable_tracepoint,
6630 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6631 to remote operations.
6632 * tracepoint.c (start_tracing): Allow tracing to start without any
6633 tracepoints enabled with just a warning if they can be re-enabled
6634 later.
6635 * NEWS: Add news item for the new behaviour of the enable and disable
6636 GDB commands when applied to tracepoints.
6637 Add news items for the new remote packets QTEnable and QTDisable.
6638
6639 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6640
6641 * config.in: Regenerate.
6642 * configure: Regenerate.
6643 * configure.ac <--with-system-readline> (for readline_echoing_p):
6644 Remove the test.
6645 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6646 (tui_old_rl_echoing_p): ... here.
6647 (tui_setup_io): Rename extern declaration readline_echoing_p to
6648 _rl_echoing_p. Adjust assignments for the both renames.
6649
6650 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6651
6652 * symtab.c (lookup_symtab): Run cleanup before returning.
6653
6654 2011-05-11 Tom Tromey <tromey@redhat.com>
6655
6656 * dwarf2read.c (handle_data_member_location): New function.
6657 (dwarf2_add_field): Use it.
6658 (read_common_block): Likewise.
6659
6660 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6661
6662 Make addrs->SECTINDEX always defined.
6663 * symfile.c (relative_addr_info_to_section_offsets): Check for
6664 SECTINDEX -1, not for zero ADDR.
6665 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6666 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6667 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6668 on its validity.
6669
6670 2011-05-10 Doug Evans <dje@google.com>
6671
6672 * linux-thread-db.c: Whitespace cleanup.
6673 (try_thread_db_load_1): Fix comment.
6674
6675 * linux-thread-db.c (set_libthread_db_search_path): New function.
6676 (_initialize_thread_db): Add setter for libthread-db-search-path.
6677
6678 2011-05-09 Doug Evans <dje@google.com>
6679
6680 * NEWS: Mention --with-iconv-bin.
6681 * configure.ac: New option --with-iconv-bin.
6682 * configure: Regenerate.
6683 * config.in: Regenerate.
6684 * defs.h (relocate_gdb_directory): Declare.
6685 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6686 removed progname parameter, and exported. All callers updated.
6687 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6688
6689 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6690 adding missing call to restore_child_signals_mask.
6691
6692 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6693
6694 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6695 parameter.
6696 * infrun.c (proceed, start_remote): Adjust.
6697 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6698 and adjust to not handle it.
6699 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6700 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6701 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6702 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6703 * windows-nat.c (do_initial_windows_stuff): Adjust.
6704 * infcmd.c (attach_command): Adjust.
6705 (notice_new_inferior): Adjust.
6706
6707 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6708
6709 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6710 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6711 * spu-tdep.c (op_selb): Use correct value.
6712
6713 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6714
6715 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6716 "parent" parameter to symbol_file_add_from_bfd call.
6717
6718 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6719 Thiago Jung Bauermann <bauerman@br.ibm.com>
6720
6721 Implement support for PowerPC BookE masked watchpoints.
6722 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6723 section.
6724 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6725 method. Initialize to NULL in all existing breakpoint_ops instances.
6726 (struct breakpoint) <hw_wp_mask>: New field.
6727 * breakpoint.c (is_masked_watchpoint): Add prototype.
6728 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6729 breakpoint's breakpoint_ops.works_in_software_mode if available.
6730 (watchpoints_triggered): Handle the case of a hardware masked
6731 watchpoint trigger.
6732 (watchpoint_check): Likewise.
6733 (works_in_software_mode_watchpoint): New function.
6734 (insert_masked_watchpoint, remove_masked_watchpoint)
6735 (resources_needed_masked_watchpoint)
6736 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6737 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6738 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6739 functions.
6740 (masked_watchpoint_breakpoint_ops): New structure.
6741 (watch_command_1): Check for the existence of the `mask' parameter.
6742 Set b->ops according to the type of hardware watchpoint being created.
6743 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6744 (ppc_linux_remove_mask_watchpoint)
6745 (ppc_linux_masked_watch_num_registers): New functions.
6746 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6747 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6748 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6749 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6750 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6751 (target_masked_watch_num_registers): New functions.
6752 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6753 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6754 methods.
6755 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6756 (target_masked_watch_num_registers): Add prototypes.
6757
6758 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6759
6760 PR 12573
6761 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6762 (producer_is_gcc_ge_4_0): New function.
6763 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6764 symtab->language code.
6765 (var_decode_location): Set cu->has_loclist.
6766 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6767 skip. Intialize force_skip from locations_valid. Move the prologue
6768 skipping code into two passes.
6769 * symtab.h (struct symtab): Make the primary field a bitfield. New
6770 field locations_valid.
6771
6772 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6773
6774 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6775 (classify_inner_name): Call cp_lookup_nested_type with
6776 yylval.tsym.type.
6777 * cp-namespace.c (cp_lookup_nested_type): New variable
6778 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6779 type_name_no_tag_or_error with saved_parent_type.
6780 * dwarf2read.c (load_partial_dies): Read in any children of
6781 DW_TAG_typedef with complaint in such case.
6782 * gdbtypes.c (type_name_no_tag_or_error): New function.
6783 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6784 * valops.c (destructor_name_p): New comment for parameter type. Remove
6785 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6786 * value.h (destructor_name_p): Remove type const.
6787
6788 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6789
6790 * symtab.c (compare_symbol_name): New function.
6791 (completion_list_add_name, expand_partial_symbol_name): Call it,
6792 remove the variable ncmp.
6793 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6794 gdb_assert it.
6795
6796 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6797
6798 Demote to sw watchpoint only in update_watchpoint.
6799 * breakpoint.c (update_watchpoint): Change between software and
6800 hardware watchpoint for all kinds of watchpoints, not just
6801 read/write ones. Determine b->exact value here instead of
6802 in watch_command_1. Error out if there are not enough resources
6803 for a read or access hardware watchpoint.
6804 (watch_command_1): Remove logic of checking whether there are
6805 enough resources available, since update_watchpoint will do that
6806 work now. Don't set b->exact here. Catch exceptions thrown by
6807 update_watchpoint and delete the watchpoint.
6808 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6809 Use target_exact_watchpoints instead.
6810 (delete_breakpoint): Notify observers only if deleted watchpoint
6811 has a breakpoint number assigned to it.
6812
6813 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6814
6815 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6816
6817 2011-05-05 Jerome Guitton <guitton@adacore.com>
6818
6819 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6820 New functions.
6821 (i386_stack_tramp_frame_unwind): New static global.
6822 (i386_match_pattern): New function, extracted from i386_match_insn.
6823 (i386_match_insn): Use i386_match_pattern.
6824 (i386_match_insn_block): New function.
6825 (i386_tramp_chain_in_reg_insns)
6826 (i386_tramp_chain_on_stack_insns): New static variables.
6827 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6828 of unwinders.
6829
6830 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6831
6832 * configure.host (xscale*): Don't handle target.
6833 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6834 handle targets.
6835
6836 2011-05-04 Yao Qi <yao@codesourcery.com>
6837
6838 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6839
6840 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6841
6842 Revert:
6843 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6844 | * elfread.c (elf_symtab_read): Stop memory leak.
6845
6846 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6847
6848 * nto-tdep.c (nto_target): Replace deprecated call to
6849 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6850
6851 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6852
6853 Fix false GCC warning.
6854 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6855
6856 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6857
6858 * breakpoint.c (update_watchpoint): Move code to change
6859 the enable state of breakpoint from here ...
6860 (do_enable_breakpoint): ... to here.
6861
6862 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6863
6864 * valprint.c (val_print_array_elements): Fixed poor performance
6865 of printing very large arrays with repeat_count_threshold set
6866 to unlimited. New comment.
6867
6868 2011-04-29 Tom Tromey <tromey@redhat.com>
6869
6870 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6871 (mi_parse): Likewise.
6872 * breakpoint.c (break_range_command): Use sizeof char*, not
6873 char**.
6874 (create_breakpoint): Likewise.
6875 (parse_breakpoint_sals): Likewise.
6876
6877 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6878
6879 * linux-nat.c (linux_child_remove_fork_catchpoint)
6880 (linux_child_remove_vfork_catchpoint)
6881 (linux_child_remove_exec_catchpoint): New functions.
6882 (linux_target_install_ops): Install them.
6883
6884 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6885
6886 PR mi/12531
6887
6888 * varobj.c (install_default_visualizer): Do not install a
6889 visualizer if the varobj is CPLUS_FAKE_CHILD.
6890 (construct_visualizer): Likewise.
6891
6892 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6893
6894 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6895 case insensitive comparison.
6896
6897 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6898
6899 * infrun.c (proceed): Revert previous change.
6900 (resume): Instead, handle the case of signal delivery while stepping
6901 off a breakpoint location here, and only if software single-stepping
6902 is used. Handle nested signals.
6903
6904 2011-04-28 Yao Qi <yao@codesourcery.com>
6905
6906 * arm-tdep.c (copy_unmodified): Rename to ...
6907 (arm_copy_unmodified): .. this. New.
6908 (copy_preload): Move common part to ...
6909 (install_preload): .. this. New.
6910 (arm_copy_preload): New.
6911 (copy_preload_reg): Move common part to ...
6912 (install_preload_reg): ... this. New.
6913 (arm_copy_preload_reg): New.
6914 (copy_b_bl_blx): Move common part to ...
6915 (install_b_bl_blx): .. this. New.
6916 (arm_copy_b_bl_blx): New.
6917 (copy_bx_blx_reg): Move common part to ...
6918 (install_bx_blx_reg): ... this. New.
6919 (arm_copy_bx_blx_reg): New.
6920 (copy_alu_reg): Move common part to ...
6921 (install_alu_reg): ... this. New.
6922 (arm_copy_alu_reg): New.
6923 (copy_alu_shifted_reg): Move common part to ...
6924 (install_alu_shifted_reg): ... this. New.
6925 (copy_ldr_str_ldrb_strb): Move common part to ...
6926 (install_ldr_str_ldrb_strb): ... this. New.
6927 (arm_copy_ldr_str_ldrb_strb): New.
6928 (copy_copro_load_store): Move some common part to ...
6929 (install_copy_copro_load_store): ... this. New.
6930 (arm_copy_copro_load_store): New.
6931 (copy_svc): Delete.
6932 (arm_copy_svc): Renamed from copy_svc.
6933 (copy_undef): Delete.
6934 (arm_copy_undef): Renamed from copy_undef.
6935 (decode_ext_reg_ld_st): Delete.
6936 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6937 (decode_svc_copro): Delete.
6938 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6939 (copy_copro_load_store, copy_alu_imm): update callers.
6940 (copy_extra_ld_st, copy_block_xfer): Likewise.
6941 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6942 (decode_miscellaneous, decode_dp_misc): Likewise.
6943 (decode_ld_st_word_ubyte, decode_media): Likewise.
6944 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6945 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6946 (decode_unconditional, decode_miscellaneous): Likewise.
6947 (decode_media, decode_b_bl_ldmstm): Likewise.
6948 (arm_process_displaced_insn): Likewise..
6949 (decode_misc_memhint_neon): Delete.
6950 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6951 (decode_miscellaneous): Delete.
6952 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6953 (decode_dp_misc): Delete.
6954 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6955 (decode_ld_st_word_ubyte): Delete.
6956 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6957 (decode_media): Delete.
6958 (arm_decode_media): Renamed from decode_media.
6959 (decode_b_bl_ldmstm): Delete.
6960 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6961 (decode_ext_reg_ld_st): Delete.
6962 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6963 (decode_unconditional): Delete.
6964 (arm_decode_unconditional): Renamed from decode_unconditional.
6965
6966 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6967
6968 Case insensitive lookups implementation.
6969 * dwarf2read.c: Include ctype.h.
6970 (struct mapped_index): New field version.
6971 (mapped_index_string_hash): New parameter index_version. New comment
6972 for it. Call tolower appropriately.
6973 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6974 Choose the right index version for mapped_index_string_hash.
6975 (dwarf2_read_index): Support also the index version 5. Initialize the
6976 new struct mapped_index field version.
6977 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6978 (find_slot): Explain the version needs. Pass INT_MAX for the new
6979 parameter.
6980 (write_psymtabs_to_index): Produce version 5.
6981 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6982 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6983 * psymtab.c (lookup_partial_symbol): Find the
6984 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6985 entries.
6986 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6987 NAME lowercasing.
6988 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6989 (completion_list_add_name): New variable ncmp, initialize it, use it.
6990 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6991 * utils.c (strcmp_iw): Support case_sensitive_off.
6992 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6993 New function comment part. New variables saved_string1,
6994 saved_string2 and case_pass. Add a proper second pass.
6995
6996 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6997
6998 Replace re_comp/re_exec by regcomp/regexec.
6999 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7000 (search_symbols_name_matches): Use them, use regexec.
7001 (search_symbols): New variable retval_chain, adjust the use of
7002 old_chain against it. Replace re_comp by regcomp. Use the new struct
7003 search_symbols_data fields, use regexec instead of re_exec.
7004
7005 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7006
7007 Format the code for the next patch.
7008 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7009 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7010 New variables c1 and c2.
7011
7012 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7013
7014 * infrun.c (proceed): Do not single-step into signal delivery
7015 when stepping off a breakpoint location.
7016 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7017 (insert_step_resume_breakpoint_at_caller): Likewise.
7018 (insert_step_resume_breakpoint_at_sal): Likewise.
7019 (insert_longjmp_resume_breakpoint): Likewise.
7020
7021 2011-04-27 Yao Qi <yao@codesourcery.com>
7022
7023 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7024
7025 2011-04-27 Joel Brobecker <brobecker@adacore.com>
7026
7027 * procfs.c (procfs_pass_signals): Fix advance declaration.
7028
7029 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7030
7031 * target.h (struct target_ops): Remove to_notice_signals;
7032 add to_pass_signals.
7033 (target_notice_signals): Remove.
7034 (target_pass_signals): Add prototype.
7035 * target.c (update_current_target): Remove to_notice_signals;
7036 mention to_pass_signals.
7037 (target_pass_signals): New function.
7038 (debug_to_notice_signals): Remove.
7039 (setup_target_debug): Do not install debug_to_notice_signals.
7040
7041 * infrun.c (signal_pass): New global.
7042 (resume): Call target_pass_signals.
7043 (handle_inferior_event): Report all signals while stepping over
7044 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7045 are re-inserted when stepping over a signal handler.
7046 (signal_cache_update): New function.
7047 (signal_stop_update): Call it.
7048 (signal_print_update): Likewise.
7049 (signal_pass_update): Likewise.
7050 (handle_command): Call signal_cache_update and target_pass_signals
7051 instead of target_notice_signals.
7052 (_initialize_infrun): Initialize signal_pass.
7053
7054 * linux-nat.c (pass_mask): New global.
7055 (linux_nat_pass_signals): New function.
7056 (linux_nat_create_inferior): Report all signals initially.
7057 (linux_nat_attach): Likewise.
7058 (linux_nat_resume): Use pass_mask to decide whether to directly
7059 handle an inferior signal.
7060 (linux_nat_wait_1): Likewise.
7061 (linux_nat_add_target): Install to_pass_signals callback.
7062
7063 * nto-procfs.c (notice_signals): Remove.
7064 (procfs_resume): Do not call notice_signals.
7065 (procfs_notice_signals): Remove.
7066 (procfs_pass_signals): New function.
7067 (init_procfs_ops): Install to_pass_signals callback instead of
7068 to_notice_signals callback.
7069 (_initialize_procfs): Report all signals initially.
7070
7071 * procfs.c (procfs_notice_signals): Remove.
7072 (procfs_pass_signals): New function.
7073 (procfs_target): Install to_pass_signals callback instead of
7074 to_notice_signals callback.
7075 (register_gdb_signals): Remove.
7076 (procfs_debug_inferior): Report all signals initially.
7077 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7078
7079 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7080 parameters; use them instead of calling signal_..._state routines.
7081 (remote_notice_signals): Remove.
7082 (remote_start_remote): Report all signals initially.
7083 (remote_resume): Do not call remote_pass_signals.
7084 (_initialize_remote): Install to_pass_signals callback instead of
7085 to_notice_signals callback.
7086
7087 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7088
7089 * breakpoint.c (user_settable_breakpoint): Delete.
7090 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7091 (delete_command): Check user_breakpoint_p instead of looking at
7092 the breakpoint's type.
7093 (disable_command): Ditto.
7094 (enable_command): Ditto.
7095 (delete_trace_command): Use user_breakpoint_p instead of looking
7096 at the breakpoint number directly. When checking if there are
7097 user visible tracepoints, in order to know whether to ask the user
7098 for confirmation, check whether the breakpoint is actually a
7099 tracepoint.
7100
7101 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7102
7103 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7104 compilation.
7105
7106 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7107
7108 MI breakpoint notifications.
7109
7110 * annotate.c (breakpoint_changed): Adjust parameter type.
7111 * breakpoint.c (set_breakpoint_condition): Adjust to change
7112 in breakpoint_modified type.
7113 (breakpoint_set_commands): Likewise.
7114 (do_map_commands_command): Likewise.
7115 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7116 changed after bumping hit count.
7117 (bpstat_stop_status): Likewise.
7118 (print_one_breakpoint_location): Don't wrap in tuple here.
7119 (print_one_breakpoint): Always print individual locations.
7120 For locations, use unnamed tuple.
7121 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7122 has changed.
7123 (create_catchpoint, create_syscall_event_catchpoint): Call
7124 breakpoint_created obsever.
7125 (mention): Don't call breakpoint_created observer.
7126 (create_breakpoint_sal): Call breakpoint_created observer.
7127 (create_breakpoint, watch_command_1): Likewise.
7128 (create_ada_exception_breakpoint): Likewise.
7129 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7130 (locations_are_equal): New.
7131 (update_breakpoint_locations): If locations were changed, notify.
7132 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7133 Call breakpoint_modified observer.
7134
7135 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7136 (mi_cmd_break_insert): Don't set observers for modify and delete.
7137 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7138 (mi_breakpoint_created, mi_breakpoint_deleted)
7139 (mi_breakpoint_modified): New.
7140 (mi_interpreter_init): Hook the above.
7141 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7142 while -break-* commands are executing.
7143 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7144 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7145 (mi_redirect): New.
7146 (mi_ui_out_impl): Hook in mi_redirect.
7147 (mi_field_skip): True to the name, skip the field, don't output
7148 a field with an empty value.
7149
7150 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7151 (gdbpy_breakpoint_deleted): Adjust.
7152 * tui/tui-hooks.c (tui_event_create_breakpoint)
7153 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7154
7155 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7156
7157 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7158 (procfs_remove_hw_watchpoint): Likewise.
7159
7160 2011-04-26 Michael Walle <michael@walle.cc>
7161
7162 * remote.c (remote_start_remote): Ack packet after sending the
7163 interrupt sequence.
7164
7165 2011-04-26 Yao Qi <yao@codesourcery.com>
7166
7167 * linux-nat.c: Move common macros to ...
7168 Include linux-ptrace.h.
7169 * common/linux-ptrace.h: ... here. New.
7170
7171 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7172
7173 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7174 !objfile_has_partial_symbols. New comment.
7175 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7176 SYM_READ_PSYMBOLS is not present. Extend the comment.
7177 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7178
7179 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7180
7181 * defs.h (ENUM_BITFIELD): Remove.
7182
7183 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7184 Eli Zaretskii <eliz@gnu.org>
7185
7186 * NEWS: Document the new gdbserver --once option.
7187
7188 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7189
7190 * MAINTAINERS: Update my email address.
7191
7192 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7193
7194 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7195 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7196 function call if __STDC_ISO_10646__ macro is defined.
7197 (intermediate_encoding): New prototype.
7198 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7199 to generate compile time error for unsupported gdb_wchar_t size.
7200 (ENDIAN_SUFFIX): New macro.
7201 (intermediate_encoding): New function.
7202
7203 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7204
7205 * ada-lang.c (struct add_partial_datum): Update the comment for
7206 expand_partial_symbol_name.
7207 (ada_add_partial_symbol_completions): Rename to ...
7208 (ada_expand_partial_symbol_name): ... here, change return type, update
7209 function comment, call symbol_completion_match instead of
7210 symbol_completion_add.
7211 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7212 and ada_expand_partial_symbol_name.
7213 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7214 FILE_MATCHER.
7215 (dw2_map_symbol_names): Remove.
7216 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7217 * psymtab.c (map_symbol_names_psymtab): Remove.
7218 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7219 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7220 order.
7221 (psym_functions): Unlist map_symbol_names_psymtab.
7222 (map_partial_symbol_names): Rename to ...
7223 (expand_partial_symbol_names): ... here, change the FUN type, call
7224 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7225 * psymtab.h (map_partial_symbol_names): Rename to ...
7226 (expand_partial_symbol_names): ... here, change the FUN type.
7227 * symfile.h (struct quick_symbol_functions): Update the description of
7228 expand_symtabs_matching. Remove map_symbol_names.
7229 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7230 (struct add_name_data): Update the comment for
7231 expand_partial_symbol_name.
7232 (add_partial_symbol_name): Rename to ...
7233 (expand_partial_symbol_name): ... here. Replace
7234 completion_list_add_name call by strncmp.
7235 (default_make_symbol_completion_list_break_on): Use now
7236 expand_partial_symbol_names and expand_partial_symbol_name.
7237 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7238
7239 2011-04-20 Tom Tromey <tromey@redhat.com>
7240
7241 * dwarf2read.c (save_gdb_index_command): Replace format
7242 documentation with a pointer to the manual.
7243
7244 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7245
7246 * regcache.c: Include remote.h.
7247 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7248 (regcache_dump): Handle regcache_dump_remote.
7249 (maintenance_print_remote_registers): New function.
7250 (_initialize_regcache): Install "maint print remote-registers"
7251 command.
7252 * remote.c (map_regcache_remote_table): New function, factored out
7253 from ...
7254 (init_remote_state): ... here.
7255 (remote_register_number_and_offset): New.
7256 * remote.h (remote_register_number_and_offset): Declare.
7257
7258 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7259
7260 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7261 null_ptid, assume and allow a NULL address space, instead of
7262 asking the target for the ptid's address space.
7263 * infrun.c (ptid_is_pid): Remove assertion.
7264
7265 2011-04-19 Tom Tromey <tromey@redhat.com>
7266
7267 * windows-tdep.c (windows_xfer_shared_library):
7268 * windows-nat.c (get_module_name, windows_make_so):
7269 * v850-tdep.c (v850_handle_pushm):
7270 * utils.c (null_cleanup, gdb_realpath):
7271 * ui-out.c (get_next_header):
7272 * tracepoint.c (clear_traceframe_info):
7273 * symtab.c (lookup_symtab):
7274 * serial.h (struct serial_ops):
7275 * mipsread.c (read_alphacoff_dynamic_symtab):
7276 * infcmd.c (print_return_value):
7277 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7278 * f-exp.y (parse_number):
7279 * exceptions.c (catch_exceptions):
7280 * dummy-frame.c (dummy_frame_this_id):
7281 * defs.h (struct cleanup):
7282 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7283 * arm-tdep.c (arm_push_dummy_call):
7284 * amd64-tdep.h (amd64_collect_xsave):
7285 * amd64-tdep.c (amd64_collect_xsave):
7286 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7287 * README (typing): Remove duplicate words.
7288 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7289 * infrun.c (siginfo_value_read): Fix typo.
7290 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7291 * top.c (source_line_number): Add comma.
7292
7293 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7294
7295 * thread.c (any_live_thread_of_process): Prioritize threads
7296 that are not executing.
7297 * gdbthread.h (any_live_thread_of_process): Update comment
7298 as per above change.
7299
7300 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7301
7302 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7303 (scan_xcoff_symtab): Likewise.
7304
7305 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7306
7307 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7308 inside if clause.
7309
7310 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7311 Pedro Alves <pedro@codesourcery.com>
7312
7313 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7314 variables to simplify code and avoid == operator at end of
7315 line as this is against GNU coding standards.
7316
7317 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7318
7319 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7320 lm_name to name_lm to avoid conflict with lm_name function.
7321
7322 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7323
7324 ARI fixes: Use only lowercase function name for static functions.
7325 * nto-tdep.c (LM_ADDR): Rename to...
7326 (lm_addr): New function name.
7327 (nto_relocate_section_addresses): Adapt to change above.
7328 * solib-sunos.c (LM_ADDR): Rename to...
7329 (lm_addr): New function name.
7330 (LM_NEXT): Rename to...
7331 (lm_next): New function name.
7332 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7333 function name changes above.
7334 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7335 (lm_addr_from_link_map): New function name.
7336 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7337 (has_lm_dynamic_from_link_map): New function name.
7338 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7339 (lm_dynamic_from_link_map): New function name.
7340 (LM_ADDR_CHECK): Rename to...
7341 (lm_addr_check): New function name.
7342 (LM_NEXT): Rename to...
7343 (lm_next): New function name.
7344 (LM_PREV): Rename to...
7345 (lm_prev): New function name.
7346 (LM_NAME): Rename to...
7347 (lm_name): New function name.
7348 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7349 (ignore_first_link_map_entry): New function name.
7350 (svr4_keep_data_in_core): Adapt to function name changes above.
7351 (svr4_current_sos): Likewise.
7352 (enable_break): Likewise.
7353 (svr4_relocate_section_addresses): Likewise.
7354
7355 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7356
7357 ARI cleanup.
7358 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7359 sprintf. Simplify code and avoid loosing memory.
7360 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7361 (call0_frame_cache): Remove && operator from end of line.
7362
7363 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7364
7365 Fix libraries displacement if they change whether they were prelinked.
7366 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7367 does not match. Comment why.
7368
7369 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7370
7371 * corelow.c: Include wrapper.h.
7372 (core_open): Call now gdb_target_find_new_threads.
7373 * wrapper.c: Include target.h.
7374 (gdb_target_find_new_threads): New.
7375 * wrapper.h (gdb_target_find_new_threads): New declaration.
7376
7377 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7378
7379 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7380 even if !TARGET_HAS_EXECUTION.
7381
7382 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7383
7384 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7385 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7386 bfd_get_synthetic_symtab.
7387 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7388 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7389 parameter parent, remove the call to add_separate_debug_objfile.
7390 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7391 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7392 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7393 parent, new comment for it, call add_separate_debug_objfile for it.
7394 (symbol_file_add_separate): Pass objfile as the parameter parent,
7395 remove the call to add_separate_debug_objfile.
7396 (symbol_file_add_from_bfd): New parameter parent, pass it.
7397 (symbol_file_add): Pass NULL to the new parameter parent.
7398 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7399
7400 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7401
7402 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7403 BSF_SYNTHETIC.
7404
7405 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7406
7407 Fix Python access to inlined frames.
7408 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7409 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7410
7411 2011-04-15 Tom Tromey <tromey@redhat.com>
7412
7413 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7414
7415 2011-04-15 Gary Benson <gbenson@redhat.com>
7416
7417 * MAINTAINERS: Add myself to write-after-approval section.
7418
7419 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7420
7421 * remote-sim.c (sim_command_completer): New function.
7422 (_initialize_remote_sim): Set completer to sim_command_completer.
7423
7424 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7425
7426 * breakpoint.c (print_exception_catchpoint): Rename to ...
7427 (print_it_exception_catchpoint): ... this.
7428 (gnu_v3_exception_catchpoint_ops): Update with new name
7429 for print_it_exception_catchpoint.
7430
7431 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7432
7433 * MAINTAINERS: Add myself for write after approval privileges.
7434
7435 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7436
7437 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7438
7439 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7440
7441 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7442
7443 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7444
7445 * breakpoint.c (save_breakpoints): Verify whether
7446 breakpoint_ops.print_recreate is defined before calling it.
7447
7448 2011-04-11 Gary Benson <gbenson@redhat.com>
7449
7450 Fix failure with --enable-maintainer-mode.
7451 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7452
7453 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7454
7455 Code cleanup.
7456 * symtab.c (search_symbols): Reorder the KIND description in the
7457 function comment. Remove the unused 4th element of types, types2,
7458 types3 and types4. New gdb_assert on KIND.
7459 (symtab_symbol_info): Remove the unused 4th element of classnames.
7460 New gdb_assert on KIND.
7461 * symtab.h (enum search_domain): New warning in the enum comment.
7462 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7463 TYPES_DOMAIN.
7464
7465 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7466
7467 Fix crash of gdb save-index on a STABS file.
7468 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7469 PSYMTABS_ADDRMAP.
7470
7471 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7472
7473 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7474 * dwarf2read.c: Include ctype.h.
7475 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7476 functions.
7477 (dwarf2_add_field): Fix new_field->accessibility by calling
7478 dwarf2_default_access_attribute. Restructure setting accessibility
7479 vs. virtuality.
7480 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7481 is_private and is_protected by calling
7482 dwarf2_default_access_attribute.
7483
7484 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7485
7486 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7487 to the initialization.
7488
7489 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7490
7491 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7492 initalization.
7493
7494 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7495
7496 Remove support for old Cygwin 1.5 versions.
7497 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7498 function on old Cygwin version.
7499 * windows-nat.c: Remove cygwin version check and always define
7500 __USEWIDE for Cygwin compilation.
7501
7502 2011-04-07 Yao Qi <yao@codesourcery.com>
7503
7504 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7505 and TO.
7506 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7507 (arm_copy_svc): Remove parameters INSN and TO.
7508 (decode_svc_copro): Update caller.
7509 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7510 from function pointer `copy_svc_os'.
7511
7512 2011-04-07 Yao Qi <yao@codesourcery.com>
7513
7514 * arm-tdep.c (cleanup_branch): Set a correct return address in
7515 LR for ARM and Thumb.
7516
7517 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7518
7519 Code cleanup.
7520 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7521 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7522 in the function comment, a new note on values compatibility.
7523 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7524 * symtab.h (SYMBOL_HASH_NEXT): New.
7525
7526 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7527
7528 * ppc-linux-nat.c (check_condition): Add len output parameter.
7529 Set it based on the memory region referenced in the condition
7530 expression. Update all callers.
7531
7532 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7533
7534 Fix crash regression on systems featuring .gdb_index.
7535 * objfiles.c (free_objfile): Move the
7536 forget_cached_source_info_for_objfile call earlier. Comment it.
7537 Extend the comment for objfile_free_data.
7538
7539 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7540
7541 Fix regression of displaying the debug format.
7542 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7543 subfile.
7544
7545 2011-04-04 Tom Tromey <tromey@redhat.com>
7546
7547 * cli/cli-interp.c (struct captured_execute_command_args):
7548 Remove.
7549 (do_captured_execute_command): Remove.
7550 (safe_execute_command): Use TRY_CATCH.
7551 * cli/cli-script.c (struct wrapped_read_command_file_args):
7552 Remove.
7553 (wrapped_read_command_file): Remove.
7554 (script_from_file): Use TRY_CATCH.
7555 * exceptions.c (catch_exception): Remove.
7556 * exceptions.h (catch_exception): Remove.
7557 (deprecated_throw_reason): Update comment.
7558 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7559 argument to 'context'.
7560 (mi_execute_command): Use TRY_CATCH.
7561 * remote.c (struct start_remote_args): Remove.
7562 (remote_start_remote): Update; change arguments.
7563 (remote_open_1): Use TRY_CATCH.
7564
7565 2011-04-04 Tom Tromey <tromey@redhat.com>
7566
7567 * tracepoint.c (scope_info): Update.
7568 * symtab.c (decode_line_spec): Update.
7569 * python/python.c (gdbpy_decode_line): Update.
7570 * linespec.h (decode_line_1): Update.
7571 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7572 (decode_compound, find_method, symtab_from_filename)
7573 (decode_variable): Likewise.
7574 * cli/cli-cmds.c (edit_command): Update.
7575 (list_command): Update.
7576 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7577 argument.
7578 (create_breakpoint): Update.
7579 (until_break_command): Update.
7580 (addr_string_to_sals): Update.
7581 (decode_line_spec_1): Update.
7582
7583 2011-04-04 Tom Tromey <tromey@redhat.com>
7584
7585 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7586 (do_captured_parse_breakpoint): Remove.
7587 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7588 Use TRY_CATCH directly.
7589
7590 2011-04-04 Tom Tromey <tromey@redhat.com>
7591
7592 * symtab.h (free_symtab): Remove.
7593 (forget_cached_source_info_for_objfile): Declare.
7594 * symmisc.c (free_symtab): Remove.
7595 * source.c (forget_cached_source_info_for_objfile): New function.
7596 (forget_cached_source_info): Use it.
7597 * objfiles.c (free_objfile): Simplify check before calling
7598 clear_current_source_symtab_and_line. Call
7599 forget_cached_source_info_for_objfile.
7600
7601 2011-04-04 Tom Tromey <tromey@redhat.com>
7602
7603 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7604 (new_symtab): Don't set `free_code' on symtab.
7605 (new_linetable): Properly handle size==0.
7606 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7607 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7608 free_func.
7609 * jv-lang.c (struct jv_per_objfile_data): New.
7610 (jv_per_objfile_free): Free the data.
7611 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7612 (get_java_class_symtab): Set the `dict' field on the
7613 jv_per_objfile_data.
7614 (free_class_block): Remove.
7615 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7616 the symtab.
7617
7618 2011-04-04 Tom Tromey <tromey@redhat.com>
7619
7620 * symfile.c (reread_symbols): Update.
7621 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7622 field.
7623 * objfiles.c (allocate_objfile): Update.
7624 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7625 declare.
7626 * cp-namespace.c (lookup_symbol_file): Don't call
7627 lookup_possible_namespace_symbol.
7628 (initialize_namespace_symtab, get_possible_namespace_block)
7629 (free_namespace_block, cp_check_possible_namespace_symbols)
7630 (check_possible_namespace_symbols_loop)
7631 (check_one_possible_namespace_symbol)
7632 (lookup_possible_namespace_symbol): Remove.
7633 (maintenance_cplus_namespace): Replace with notice.
7634 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7635
7636 2011-04-04 Tom Tromey <tromey@redhat.com>
7637
7638 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7639 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7640 * symmisc.c (free_symtab): Don't free debugformat.
7641 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7642 (record_debugformat, record_producer): Document.
7643 * buildsym.c (end_symtab): Don't save debugformat and producer
7644 names on obstack.
7645 (end_symtab): Don't free debugformat and producer fields.
7646 (record_debugformat): Don't call xstrdup.
7647 (record_producer): Likewise.
7648
7649 2011-04-04 Tom Tromey <tromey@redhat.com>
7650
7651 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7652 (source_line_charpos, source_charpos_line): Remove.
7653
7654 2011-04-04 Tom Tromey <tromey@redhat.com>
7655
7656 * symtab.h (domain_enum): Split in two...
7657 (enum search_domain): New.
7658 (search_symbols): Update.
7659 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7660 redundant declarations.
7661 (search_symbols): Change 'kind' argument to search_domain.
7662 Update.
7663 (print_symbol_info): Likewise.
7664 (symtab_symbol_info): Likewise.
7665 * symfile.h (struct quick_symbol_functions)
7666 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7667 <expand_symtabs_matching>: Likewise.
7668 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7669 (expand_symtabs_matching_via_partial): Update.
7670 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7671 (dw2_expand_symtabs_for_function): Update.
7672 * block.h: Moved anonymous enum...
7673 * defs.h (enum block_enum): ... here. Now named.
7674
7675 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7676
7677 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7678 * version.in: Bump version to 7.3.50.20110403-cvs.
7679
7680 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7681
7682 * NEWS: Create a new section for the next release branch.
7683 Rename the section of the current branch, now that it has
7684 been cut.
7685
7686 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7687
7688 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7689 for "fpscr" in target description.
7690
7691 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7692
7693 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7694 initialize it. Delay HASH initialization. Strip the part after open
7695 parenthesis for languages with qualifiers. Call do_cleanups.
7696
7697 2011-04-01 Tom Tromey <tromey@redhat.com>
7698
7699 * utils.c (report_command_stats): Don't print `-' for negative
7700 number.
7701
7702 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7703
7704 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7705 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7706 typedefs.
7707
7708 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7709
7710 * breakpoint.h (bpdisp_text): Add declaration.
7711 * breakpoint.c (bpdisp_text): Make non-static.
7712 * ada-lang.c: #include "mi/mi-common.h".
7713 (print_it_exception): Rewrite to improve GDB/MI output.
7714
7715 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7716
7717 * arm-tdep.h (struct address_space): Add forward declaration.
7718
7719 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7720
7721 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7722 * arm-tdep.c (arm_override_mode): New global.
7723 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7724 execution mode heuristics.
7725 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7726 second single-step breakpoint if needed, using
7727 arm_insert_single_step_breakpoint.
7728 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7729 ARM execution mode, do not call thumb_get_next_pc_raw.
7730 (arm_get_next_pc): Encode execution mode in return value. Call
7731 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7732 (arm_insert_single_step_breakpoint): New function.
7733 (arm_software_single_step): Call it.
7734 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7735 argument to return execution mode of sigreturn target.
7736 (arm_linux_syscall_next_pc): Use it.
7737 (arm_linux_copy_svc): Update call.
7738 (arm_linux_software_single_step): Call
7739 arm_insert_single_step_breakpoint.
7740
7741 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7742
7743 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7744 the comment.
7745
7746 2011-03-31 Tom Tromey <tromey@redhat.com>
7747
7748 * varobj.c (update_dynamic_varobj_children): Properly handle
7749 errors from iterator.
7750
7751 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7752
7753 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7754 struct linkage name twice.
7755
7756 2011-03-31 Tom Tromey <tromey@redhat.com>
7757
7758 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7759 missing ">" to message.
7760
7761 2011-03-31 Tom Tromey <tromey@redhat.com>
7762
7763 * varobj.c (instantiate_pretty_printer): Remove duplicate
7764 'return'.
7765
7766 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7767
7768 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7769 if neither saved value nor register available (e.g. signal frame).
7770
7771 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7772
7773 * macroexp.c (expand): Avoid uninitialized variable
7774 compiler warning.
7775
7776 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7777
7778 * breakpoint.c (break_range_command): Fix typo in comment.
7779
7780 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7781 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7782
7783 Implement support for PowerPC BookE ranged breakpoints.
7784 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7785 * breakpoint.h (struct bp_target_info) <length>: New member
7786 variable.
7787 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7788 instead of struct breakpoint as argument, and also add ASPACE
7789 and BP_ADDR arguments. Update all callers.
7790 (struct breakpoint_ops) <print_one_detail>: New method.
7791 (struct breakpoint) <addr_string_range_end>: New member variable.
7792 * breakpoint.c (breakpoint_location_address_match): Add function
7793 prototype.
7794 (insert_bp_location): Set bl->target_info.length.
7795 (breakpoint_here_p): Call breakpoint_location_address_match.
7796 (moribund_breakpoint_here_p): Likewise.
7797 (regular_breakpoint_inserted_here_p): Likewise.
7798 (breakpoint_thread_match): Likewise.
7799 (bpstat_stop_status): Likewise.
7800 (bpstat_check_location): Move call to
7801 breakpoint_ops.breakpoint_hit to the top.
7802 (print_one_breakpoint_location): Call
7803 breakpoint_ops.print_one_detail if available.
7804 (breakpoint_address_match_range): New function.
7805 (breakpoint_location_address_match): Likewise.
7806 (breakpoint_locations_match): Compare the length field of the
7807 locations too.
7808 (hw_breakpoint_used_count): Count resources used by all locations
7809 in a breakpoint, and use breakpoint_ops.resources_needed if
7810 available.
7811 (breakpoint_hit_ranged_breakpoint): New function.
7812 (resources_needed_ranged_breakpoint): Likewise.
7813 (print_it_ranged_breakpoint): Likewise.
7814 (print_one_ranged_breakpoint): Likewise.
7815 (print_one_detail_ranged_breakpoint): Likewise.
7816 (print_mention_ranged_breakpoint): Likewise.
7817 (print_recreate_ranged_breakpoint): Likewise.
7818 (ranged_breakpoint_ops): New structure.
7819 (find_breakpoint_range_end): New function.
7820 (break_range_command): Likewise.
7821 (delete_breakpoint): Free addr_string_range_end.
7822 (update_breakpoint_locations): Add SALS_END argument. Update
7823 all callers. Calculate breakpoint length if a non-zero SALS_END
7824 is given. Call breakpoint_locations_match instead of
7825 breakpoint_address_match.
7826 (reset_breakpoint): Find SaL of the end of the range if B is a
7827 ranged breakpoint.
7828 (_initialize_breakpoint): Register break-range command.
7829 * defs.h (print_core_address): Add function prototype.
7830 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7831 function.
7832 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7833 (ppc_linux_remove_hw_breakpoint): Likewise.
7834 (_initialize_ppc_linux_nat): Initialize
7835 to_ranged_break_num_registers.
7836 * target.c (update_current_target): Add comment about
7837 to_ranged_break_num_registers.
7838 (target_ranged_break_num_registers): New function.
7839 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7840 New method.
7841 (target_ranged_break_num_registers): Add function prototype.
7842 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7843 * utils.c (print_core_address): ... here.
7844
7845 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7846
7847 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7848 variable compiler warning.
7849
7850 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7851
7852 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7853 code from here ...
7854 (re_set_breakpoint): ... to here ...
7855 (addr_string_to_sals): ... and here.
7856
7857 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7858
7859 * Makefile.in (SFILES): Add missing C sources.
7860 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7861 Add missing headers.
7862
7863 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7864
7865 * .gitignore: New file.
7866
7867 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7868
7869 * NEWS: Mention new cfi device simulation.
7870
7871 2011-03-29 Tom Tromey <tromey@redhat.com>
7872
7873 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7874 otherwise anonymous types.
7875 (dwarf2_name): Likewise.
7876 * valops.c (value_struct_elt_for_reference): Refine artificial
7877 type logic. Call error if j==-1.
7878
7879 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7880
7881 Fix false GCC warning.
7882 * infcall.c (find_function_addr): Initialize funaddr.
7883
7884 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7885
7886 Fix mingw compilation with --enable-targets=all.
7887 * remote-mips.c (gdb_usleep.h): Include header.
7888 (mips_enter_debug): Use gdb_usleep instead of sleep.
7889
7890 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7891
7892 Support resolution of STT_GNU_IFUNC via breakpoints.
7893 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7894 bp_gnu_ifunc_resolver_return.
7895 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7896 the loop. Support bp_gnu_ifunc_resolver and
7897 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7898 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7899 breakpoints.
7900 (bptype_string, print_one_breakpoint_location): Support
7901 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7902 (user_settable_breakpoint): Return true also for
7903 bp_gnu_ifunc_resolver.
7904 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7905 bp_gnu_ifunc_resolver_return.
7906 (set_breakpoint_location_function): New parameter explicit_loc,
7907 describe it. Call find_pc_partial_function_gnu_ifunc with new
7908 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7909 EXPLICIT_LOC is not set.
7910 (set_raw_breakpoint): Set EXPLICIT_LOC for
7911 set_breakpoint_location_function.
7912 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7913 set_breakpoint_location_function.
7914 (mention): Support bp_gnu_ifunc_resolver and
7915 bp_gnu_ifunc_resolver_return.
7916 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7917 set_breakpoint_location_function.
7918 (update_breakpoint_locations): Remove static.
7919 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7920 bp_gnu_ifunc_resolver_return.
7921 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7922 bp_gnu_ifunc_resolver_return.
7923 (update_breakpoint_locations): New declaration.
7924 * elfread.c: Include gdbthread.h and regcache.h.
7925 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7926 functions.
7927 (elf_gnu_ifunc_fns): Install them.
7928 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7929 (stub_gnu_ifunc_resolver_return_stop): New functions.
7930 (stub_gnu_ifunc_fns): Install them.
7931 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7932 and gnu_ifunc_resolver_return_stop.
7933 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7934
7935 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7936
7937 STT_GNU_IFUNC reader implementation.
7938 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7939 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7940 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7941 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7942 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7943 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7944 (elf_gnu_ifunc_resolve_addr): New.
7945 (elf_symfile_read): Call elf_rel_plt_read.
7946 (elf_gnu_ifunc_fns): New.
7947 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7948 Install elf_gnu_ifunc_fns.
7949 * infcall.c (find_function_return_type): New function.
7950 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7951 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7952 (stub_gnu_ifunc_resolve_name): New functions.
7953 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7954 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7955 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7956
7957 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7958
7959 Code cleanup for later STT_GNU_IFUNC support.
7960 * infcall.c (find_function_addr): Remove variable code, use explicit
7961 dereferences for it. Move VALUE_TYPE initialization later.
7962
7963 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7964
7965 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7966 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7967 (clear_pc_function_cache): Clear it.
7968 (find_pc_partial_function): Rename to ...
7969 (find_pc_partial_function_gnu_ifunc): ... this function. New
7970 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7971 (find_pc_partial_function): New wrapper for this function.
7972 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7973
7974 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7975
7976 GDB internal type support for STT_GNU_IFUNC.
7977 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7978 (elf_symtab_read): Set mst_text_gnu_ifunc for
7979 BSF_GNU_INDIRECT_FUNCTION.
7980 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7981 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7982 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7983 nodebug_got_plt_symbol.
7984 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7985 (TYPE_GNU_IFUNC): New.
7986 (struct main_type): New field flag_gnu_ifunc.
7987 (struct builtin_type): New field builtin_func_func.
7988 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7989 nodebug_got_plt_symbol.
7990 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7991 (in_gnu_ifunc_stub): New.
7992 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7993 mst_text_gnu_ifunc.
7994 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7995 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7996 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7997 in_gnu_ifunc_stub.
7998 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7999 * symtab.c (search_symbols): Likewise.
8000 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8001 and mst_slot_got_plt.
8002 (in_gnu_ifunc_stub): New declaration.
8003
8004 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8005
8006 Support a ring of related breakpoints.
8007 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8008 other functions, add gdb_assert.
8009 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8010 watchpoint_del_at_next_stop.
8011 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8012 (bpstat_stop_status): Handle ring in related_breakpoint.
8013 (set_raw_breakpoint_without_location): Initialize ring in
8014 related_breakpoint.
8015 (delete_breakpoint): Handle ring in related_breakpoint, use
8016 watchpoint_del_at_next_stop.
8017 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8018
8019 2011-03-28 Tom Tromey <tromey@redhat.com>
8020
8021 PR symtab/12441:
8022 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8023 with `language_minimal'.
8024
8025 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8026
8027 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8028 instead of checking for STT_ARM_TFUNC symbol type.
8029
8030 2011-03-25 Tom Tromey <tromey@redhat.com>
8031
8032 * linespec.c (symbol_found): Restore line-based result for
8033 non-LOC_LABEL symbols.
8034
8035 2011-03-25 Kai Tietz <ktietz@redhat.com>
8036
8037 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8038 instead of strcmp for comparison.
8039 (tui_source_is_displayed): Likewise.
8040 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8041
8042 2011-03-24 Mark Wielaard <mjw@redhat.com>
8043
8044 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8045 complaint.
8046 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8047 (find_partial_die_in_comp_unit): Likewise in comment.
8048 (read_attribute_value): Likewise.
8049 (lookup_die_type): Likewise.
8050 (dwarf_form_name): Likewise.
8051 (dump_die_shallow): Likewise.
8052 (follow_die_ref_or_sig): Likewise.
8053
8054 2011-03-24 Tom Tromey <tromey@redhat.com>
8055
8056 PR breakpoints/11816:
8057 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8058 (decode_compound): Update.
8059 (find_function_symbol): New function.
8060 (decode_dollar): Update.
8061 (decode_label): Add 'function_symbol' parameter. Handle
8062 function-relative labels.
8063 (decode_variable): Update.
8064 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8065 not its line. Set `special_display' and canonical name for
8066 labels.
8067
8068 2011-03-24 Tom Tromey <tromey@redhat.com>
8069
8070 * linespec.h (struct linespec_result) <special_display>: New
8071 field.
8072 * breakpoint.h (struct breakpoint) <display_canonical>: New
8073 field.
8074 * breakpoint.c (print_breakpoint_location): Respect
8075 display_canonical.
8076 (create_breakpoint_sal): Add 'display_canonical' parameter.
8077 (create_breakpoints_sal): Update.
8078 (create_breakpoint): Update.
8079
8080 2011-03-24 Tom Tromey <tromey@redhat.com>
8081
8082 * symtab.c (decode_line_spec): Update.
8083 * linespec.c (build_canonical_line_spec): Change type of
8084 'canonical'.
8085 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8086 (find_method, decode_all_digits, decode_dollar, decode_label)
8087 (symbol_found): Likewise.
8088 (init_linespec_result): New function.
8089 * breakpoint.c (struct captured_parse_breakpoint_args)
8090 <canonical_p>: New field, replaces addr_string_p.
8091 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8092 'addr_string'.
8093 (parse_breakpoint_sals): Likewise.
8094 (do_captured_parse_breakpoint): Update.
8095 (create_breakpoint): Use struct linespec_result.
8096 (until_break_command): Update.
8097 (breakpoint_re_set_one): Update.
8098 (decode_line_spec_1): Update.
8099 * linespec.h (struct linespec_result): New.
8100 (init_linespec_result): Declare.
8101
8102 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8103
8104 * regcache.c (regcache_raw_read): If the target didn't supply a
8105 given raw register, mark it as unavailable.
8106
8107 2011-03-23 Kai Tietz <ktietz@redhat.com>
8108
8109 * breakpoint.c (clear_command): Use filename_cmp
8110 instead of strcmp for comparison.
8111 * buildsym.c (watch_main_source_file_lossage): Likewise.
8112 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8113 checking just for slash.
8114 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8115 strrchr and filename_cmp instead of strcmp for filenames.
8116 (add_old_header_file): Use filename_cmp
8117 instead of strcmp for comparison.
8118 * exec.c (exec_set_section_address): Likewise.
8119 * macrotab.c (macro_lookup_inclusion): Likewise.
8120 (macro_lookup_inclusion): Likewise.
8121 * elfread.c (_initialize_elfread): Likewise.
8122 (elfstab_offset_sections): Likewise.
8123 (elfstab_offset_sections): Use lbasename instead of
8124 strrchr.
8125 * mdebugread.c (parse_partial_symbols): Likewise.
8126 (arse_partial_symbols): Use filename_(n)cmp instead of
8127 str(n)cmp for comparison.
8128 * minsyms.c (lookup_minimal_symbol): Likewise.
8129 * psymtab.c (read_psymtabs_with_filename): Likewise.
8130 * solib.c (solib_read_symbols): Likewise.
8131 (reload_shared_libraries_1): Likewise.
8132 * symmisc.c (maintenance_print_symbols): Likewise.
8133 * symfile.c (separate_debug_file_exists): Likewise.
8134 (reread_symbols): Likewise.
8135 (find_separate_debug_file_by_debuglink): Likewise.
8136 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8137 * source.c (add_path): Likewise.
8138 * symtab.c (filename_seen): Likewise.
8139 (file_matches): Likewise.
8140 (print_symbol_info): Likewise.
8141 (maybe_add_partial_symtab_filename): Likewise.
8142 (make_source_files_completion_list): Likewise.
8143 * xml-syscall.c (init_sysinfo): Likewise.
8144 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8145 IS_DIR_SEPARATOR for checking for trailing path separator.
8146
8147 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8148
8149 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8150 label abort_expression.
8151 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8152 DWARF_VALUE_OPTIMIZED_OUT.
8153
8154 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8155
8156 Code cleanup.
8157 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8158 to linkage_name. Invert its value. Update the function comment.
8159 (c_type_print_varspec_suffix): Invert it at the caller.
8160 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8161
8162 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8163
8164 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8165 errors when reading the `stop_pc'.
8166 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8167 get_frame_pc.
8168
8169 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8170
8171 * NEWS: Document gdb.Write stream keyword.
8172
8173 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8174
8175 Revert:
8176 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8177 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8178 (dwarf2_add_field): Fix new_field->accessibility for
8179 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8180
8181 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8182
8183 PR python/12183
8184
8185 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8186 other error classes. Do not print stack trace.
8187
8188 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8189
8190 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8191 (dwarf2_add_field): Fix new_field->accessibility for
8192 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8193
8194 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8195
8196 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8197 encountering a load via a non-SP register.
8198
8199 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8200
8201 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8202 field in returned unwinder.
8203
8204 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8205
8206 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8207
8208 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8209
8210 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8211 of xmalloc.
8212
8213 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8214
8215 * frame.c (frame_unwind_register): Throw an error if unwinding the
8216 register failed.
8217 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8218 an unwind stop reason.
8219 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8220 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8221 UNWIND_UNAVAILABLE>: New.
8222 * inline-frame.c (inline_frame_unwind): Install
8223 default_frame_unwind_stop_reason.
8224 * frame-unwind.c: Include "exceptions.h".
8225 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8226 (default_frame_unwind_stop_reason): New.
8227 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8228 (default_frame_unwind_stop_reason): Declare.
8229 (struct frame_unwind) <stop_reason>: New function pointer.
8230
8231 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8232 * dwarf2-frame.c: Include exceptions.h.
8233 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8234 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8235 computing the CFA. If such an error was thrown, set
8236 unavailable_retaddr.
8237 (dwarf2_frame_unwind_stop_reason): New.
8238 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8239 unavailable.
8240 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8241 (dwarf2_signal_frame_unwind): Ditto.
8242
8243 * amd64-tdep.c: Include "exceptions.h".
8244 (struct amd64_frame_cache): New field "base_p".
8245 (amd64_init_frame_cache): Clear it.
8246 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8247 Avoid reading registers with functions that throw if the register
8248 is not necessary to compute the frame base.
8249 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8250 swallowing NOT_AVAILABLE_ERROR.
8251 (amd64_frame_unwind_stop_reason): New.
8252 (amd64_frame_this_id): Don't build a frame id if the frame base
8253 was unavailable.
8254 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8255 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8256 base_p if the frame base was computable.
8257 (amd64_sigtramp_frame_unwind_stop_reason): New.
8258 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8259 frame base was unavailable.
8260 (amd64_sigtramp_frame_unwind): Install
8261 amd64_sigtramp_frame_unwind_stop_reason.
8262 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8263 base_p if the frame base was computable.
8264 (amd64_epilogue_frame_unwind_stop_reason): New.
8265 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8266 frame base was unavailable.
8267 (amd64_epilogue_frame_unwind): Install
8268 amd64_epilogue_frame_unwind_stop_reason.
8269 * i386-tdep.c: Include "exceptions.h".
8270 (struct i386_frame_cache): New field "base_p".
8271 (i386_init_frame_cache): Clear it.
8272 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8273 Avoid reading registers with functions that throw if the register
8274 is not necessary to compute the frame base.
8275 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8276 swallowing NOT_AVAILABLE_ERROR.
8277 (i386_frame_unwind_stop_reason): New.
8278 (i386_frame_this_id): Don't build a frame id if the frame base was
8279 unavailable.
8280 (i386_frame_prev_register): Handle unavailable SP.
8281 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8282 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8283 base_p if the frame base was computable.
8284 (i386_epilogue_frame_unwind_stop_reason): New.
8285 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8286 base was unavailable.
8287 (i386_epilogue_frame_unwind): Install
8288 i386_epilogue_frame_unwind_stop_reason.
8289 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8290 base_p if the frame base was computable.
8291 (i386_sigtramp_frame_unwind_stop_reason): New.
8292 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8293 base was unavailable.
8294 (i386_sigtramp_frame_unwind): Install
8295 i386_sigtramp_frame_unwind_stop_reason.
8296 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8297 type's size, not the register's.
8298 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8299
8300 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8301 default_frame_unwind_stop_reason.
8302 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8303 (alpha_heuristic_frame_unwind): Ditto.
8304 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8305 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8306 * avr-tdep.c (avr_frame_unwind): Ditto.
8307 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8308 Ditto.
8309 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8310 * frv-tdep.c (frv_frame_unwind): Ditto.
8311 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8312 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8313 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8314 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8315 (hppa_stub_frame_unwind): Ditto.
8316 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8317 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8318 (ia64_libunwind_frame_unwind)
8319 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8320 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8321 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8322 * m32c-tdep.c (m32c_unwind): Ditto.
8323 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8324 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8325 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8326 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8327 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8328 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8329 * mep-tdep.c (mep_frame_unwind): Ditto.
8330 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8331 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8332 (mips_stub_frame_unwind): Ditto.
8333 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8334 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8335 * mt-tdep.c (mt_frame_unwind): Ditto.
8336 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8337 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8338 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8339 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8340 (s390_sigtramp_frame_unwind): Ditto.
8341 * score-tdep.c (score_prologue_unwind): Ditto.
8342 * sh-tdep.c (sh_frame_unwind): Ditto.
8343 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8344 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8345 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8346 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8347 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8348 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8349 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8350 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8351 (sparc64obsd_trapframe_unwind): Ditto.
8352 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8353 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8354 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8355 * v850-tdep.c (v850_frame_unwind): Ditto.
8356 * vax-tdep.c (vax_frame_unwind): Ditto.
8357 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8358 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8359 * xtensa-tdep.c (xtensa_unwind): Ditto.
8360
8361 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8362
8363 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8364 there's always a frame. Use get_frame_pc_if_available instead of
8365 get_frame_pc, and if there's no PC available, don't look up a
8366 symtab.
8367
8368 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8369
8370 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8371 unavailable PC.
8372
8373 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8374
8375 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8376 gracefully.
8377
8378 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8379
8380 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8381 * frame.c (frame_unwind_caller_pc_if_available): New.
8382 * stack.c (frame_info): Handle unavailable PC.
8383
8384 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8385
8386 * frame.c (frame_unwind_pc): Rename to ...
8387 (frame_unwind_pc_if_available): ... this. New `pc' output
8388 parameter. Change return type to int. Gracefully handle
8389 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8390 happened, or 1 otherwise.
8391 (frame_unwind_pc): Reimplement on top of
8392 frame_unwind_pc_if_available.
8393 (get_frame_func): Rename to ...
8394 (get_frame_func_if_available): New `pc' output parameter. Change
8395 return type to int. Gracefully handle the PC not being available.
8396 (get_frame_func): Reimplement on top of
8397 get_frame_func_if_available.
8398 (select_frame): Handle the PC being unavailable.
8399 (get_prev_frame): Handle the PC being unavailable.
8400 (get_frame_pc_if_available): New.
8401 (get_frame_address_in_block_if_available): New.
8402 (find_frame_sal): Handle the frame PC not being available.
8403 * frame.h (get_frame_pc_if_available): Declare.
8404 (get_frame_address_in_block_if_available): Declare.
8405 (get_frame_func_if_available): Declare.
8406 * stack.c (print_frame_info): Handle the PC being unavailable.
8407 (find_frame_funname): Ditto.
8408 (print_frame): Handle the PC being unavailable.
8409 (get_frame_language): Ditto.
8410 * blockframe.c (get_frame_block): Ditto.
8411 * macroscope.c (default_macro_scope): Ditto.
8412 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8413
8414 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8415
8416 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8417 NOT_AVAILABLE_ERROR when evaluating the location expression.
8418
8419 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8420
8421 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8422 returning that the register piece is unavailable/optimized out.
8423 (write_pieced_value): Handle get_frame_register_bytes returning
8424 that the register piece is unavailable/optimized out when doing a
8425 read-modify write of a bitfield.
8426 * findvar.c (value_from_register): Handle get_frame_register_bytes
8427 returning that the register piece is unavailable/optimized out.
8428 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8429 and `unavailablep'. Throw error on bad debug info. Use
8430 frame_register instead of frame_register_read, to fill in the new
8431 arguments.
8432 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8433 and `unavailablep'.
8434 * valops.c: (value_assign): Adjust, and handle
8435 get_frame_register_bytes failing.
8436 * spu-tdep.c: Include exceptions.h.
8437 (spu_software_single_step): Adjust, and handle
8438 get_frame_register_bytes failing.
8439 (spu_get_longjmp_target): Ditto.
8440 * gdbarch.sh (register_to_value): Change to return int. New
8441 parameters `optimizedp' and `unavailablep'.
8442 * gdbarch.h, gdbarch.c: Regenerate.
8443 * i386-tdep.c (i386_register_to_value): Adjust to new
8444 gdbarch_register_to_value interface.
8445 * i387-tdep.c (i387_register_to_value): Ditto.
8446 * i387-tdep.h (i387_register_to_value): Ditto.
8447 * alpha-tdep.c (alpha_register_to_value): Ditto.
8448 * ia64-tdep.c (ia64_register_to_value): Ditto.
8449 * m68k-tdep.c (m68k_register_to_value): Ditto.
8450 * mips-tdep.c (mips_register_to_value): Ditto.
8451 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8452
8453 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8454
8455 * findvar.c (value_of_register): Mark the value as unavailable, if
8456 the register is unavailable.
8457 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8458 (frame_register): New `unavailablep' parameter.
8459 (frame_register_read): Update comment.
8460 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8461 Set it if the register is unavailable. If the register is
8462 unavailable, clear the output buffer.
8463 (frame_register): New `unavailablep' parameter. Pass it down.
8464 (frame_unwind_register): Adjust.
8465 (put_frame_register): Adjust.
8466 (frame_register_read): Adjust. Also return false if the register
8467 is not available.
8468 (frame_register_unwind_location): Adjust.
8469 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8470 is unavailable, mark the value accordingly.
8471 * stack.c (frame_info): Handle unavailable registers.
8472
8473 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8474
8475 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8476 simplify, using regcache_cooked_read.
8477
8478 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8479
8480 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8481 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8482 (regcache_raw_read_unsigned, regcache_raw_read_part)
8483 (regcache_cooked_read, regcache_cooked_read_signed)
8484 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8485 (regcache_cooked_read_ftype): Change return to enum
8486 register_status.
8487 * regcache.c: Include exceptions.h
8488 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8489 (do_cooked_read): Change return to enum register_status. Always
8490 forward to regcache_cooked_read.
8491 (regcache_raw_read): Change return to enum register_status. If
8492 the register is not REG_VALID, memset the buffer. Return the
8493 register's status.
8494 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8495 return the register's status.
8496 (regcache_raw_read_unsigned): Ditto.
8497 (regcache_cooked_read): Change return to enum register_status.
8498 Assert that with read-only regcaches, the register's status must
8499 be known. If the regcache is read-only, and the register is not
8500 REG_VALID, memset the buffer. Return the register's status.
8501 (regcache_cooked_read_signed): Change return to enum
8502 register_status. Handle non-REG_VALID registers and return the
8503 register's status.
8504 (regcache_cooked_read_unsigned): Change return to enum
8505 register_status. Handle non-REG_VALID registers and return the
8506 register's status.
8507 (regcache_xfer_part, regcache_raw_read_part)
8508 (regcache_cooked_read_part): Change return to enum
8509 register_status. Return the register's status.
8510 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8511 unavailable.
8512 (regcache_dump): Handle unavailable cooked registers.
8513 * frame.c (do_frame_register_read): Adjust interface to match
8514 regcache_cooked_read_ftype.
8515 * gdbarch.sh (pseudo_register_read): Change return to enum
8516 register_status.
8517 * gdbarch.h, gdbarch.c: Regenerate.
8518
8519 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8520 register_status.
8521 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8522 register_status. If reading a raw register indicates the raw
8523 register is not valid, return the raw register's status,
8524 otherwise, return REG_VALID.
8525 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8526 register_status. Handle non-REG_VALID raw registers and return
8527 the register's status.
8528 * arm-tdep.c (arm_neon_quad_read)
8529 (arm_pseudo_read): Change return to enum register_status. Handle
8530 non-REG_VALID raw registers and return the register's status.
8531 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8532 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8533 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8534 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8535 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8536 register_status.
8537 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8538 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8539 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8540 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8541 (m32c_pseudo_register_read): Change return to enum
8542 register_status. Adjust.
8543 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8544 enum register_status. Return the register's status.
8545 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8546 register_status. Return the register's status.
8547 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8548 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8549 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8550 * rs6000-tdep.c (move_ev_register_func): New typedef.
8551 (e500_move_ev_register): Use it. Change return to enum
8552 register_status. Return the register's status.
8553 (do_regcache_raw_read): New function.
8554 (do_regcache_raw_write): New function.
8555 (e500_pseudo_register_read): Change return to enum
8556 register_status. Return the register's status. Use
8557 do_regcache_raw_read.
8558 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8559 (dfp_pseudo_register_read): Change return to enum register_status.
8560 Return the register's status.
8561 (vsx_pseudo_register_read): Ditto.
8562 (efpr_pseudo_register_read): Ditto.
8563 (rs6000_pseudo_register_read): Ditto.
8564 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8565 register_status. Return the register's status.
8566 * sh64-tdep.c (pseudo_register_read_portions): New function.
8567 (sh64_pseudo_register_read): Change return to enum
8568 register_status. Use pseudo_register_read_portions. Return the
8569 register's status.
8570 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8571 register_status. Return the register's status.
8572 * sh-tdep.c (pseudo_register_read_portions): New function.
8573 (sh_pseudo_register_read): Change return to enum register_status.
8574 Use pseudo_register_read_portions. Return the register's status.
8575 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8576 enum register_status. Return the register's status.
8577 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8578 * spu-tdep.c (spu_pseudo_register_read_spu)
8579 (spu_pseudo_register_read): Ditto.
8580 * xtensa-tdep.c (xtensa_register_read_masked)
8581 (xtensa_pseudo_register_read): Ditto.
8582 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8583
8584 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8585
8586 * python/py-value.c (valpy_getitem): Fix formatting of error function
8587 call.
8588
8589 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8590
8591 ARI fixes: Add missing internationalization markups throughout
8592 C source files.
8593 * darwin-nat-info.c: Ditto.
8594 * record.c: Ditto.
8595 * remote.c: Ditto.
8596 * mi/mi-main.c: Ditto.
8597
8598 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8599
8600 ARI fixes: Add missing internationalization markups throughout
8601 yacc files.
8602 * c-exp.y: Ditto.
8603 * cp-name-parser.y: Ditto.
8604 * f-exp.y: Ditto.
8605 * m2-exp.y: Ditto.
8606 * objc-exp.y: Ditto.
8607 * p-exp.y: Ditto.
8608
8609 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8610
8611 ARI fixes: Messages should have no trailing new lines.
8612 * darwin-nat.c (mach_check_error): Remove trailing new line from
8613 warning function call message.
8614 * record.c (bfdcore_read): Idem for error call.
8615
8616 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8617
8618 * common/signals.c (target_signal_from_host): Add _ markup to error
8619 function call message.
8620 (target_signal_to_host): Add _ markup and remove trailing new line
8621 from warning call message.
8622 (target_signal_from_command): Add _ markup to error function call
8623 message.
8624
8625 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8626
8627 PR python/12149
8628
8629 * python/python.c (gdbpy_write): Accept a stream argument and
8630 operate to the appropriate stream.
8631 (gdbpy_flush): Likewise.
8632 (_initialize_python): Add stream constants.
8633 (finish_python_initialization): Add GdbOutputErrorFile class.
8634
8635 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8636
8637 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8638
8639 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8640
8641 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8642 to store_signed_integer. Add debug message when relocating CALL
8643 instructions. Fix formatting of debug message.
8644 * i386-tdep.c (i386_relocate_instruction): Ditto.
8645
8646 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8647
8648 * target.h (struct target_ops): Remove to_lookup_symbol field.
8649 (target_lookup_symbol): Delete macro.
8650 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8651 (update_current_target, setup_target_debug): Remove handling
8652 of to_lookup_symbol target_ops field.
8653 * ada-tasks.c (get_known_tasks_addr): Remove use of
8654 target_lookup_symbol.
8655 * coffread.c (coff_symtab_read): Likewise.
8656 * dbxread.c (read_dbx_symtab): Ditto.
8657
8658 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8659
8660 PR gdb/12116:
8661 * configure.ac: Add getthrds declaration check.
8662 * configure, config.in: Regenerate.
8663 * aix-thread.c (getthrds): Declare only if not already declared
8664 in procinfo.h. More declaration out of get_signaled_thread to
8665 global scope.
8666
8667 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8668
8669 * python/py-symtab.c: Populate symtab_object_methods,
8670 sal_object_methods.
8671 (stpy_is_valid): New function.
8672 (salpy_is_valid): Ditto.
8673 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8674 (sympy_is_valid): New function.
8675 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8676 (objfpy_is_valid): New function.
8677 * python/py-inferior.c: Populate inferior_object_methods.
8678 (infpy_is_valid): New function.
8679 * python/py-infthread.c: Populate thread_object_methods.
8680 (thpy_is_valid): New function.
8681 * python/py-block.c: Declare block_object_methods. Populate. Declare
8682 block_iterator_object_methods. Populate.
8683 (blpy_is_valid): New function.
8684 (blpy_iter_is_valid): Ditto.
8685
8686 2011-03-16 Keith Seitz <keiths@redhat.com>
8687
8688 * linespec.c (find_methods): Canonicalize NAME before looking
8689 up the symbol.
8690 (name_end): New function.
8691 (keep_name_info): New function.
8692 (decode_line_1): Use keep_name_info.
8693 (decode_compound): Likewise.
8694 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8695 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8696
8697 PR c++/12273
8698 * linespec.c (locate_first_half): Keep overload information, too.
8699 (decode_compound): Use a string to represent break characters
8700 to escape the loop.
8701 If P points to a break character, do not increment it.
8702 For C++ and Java, keep overload information and relevant keywords.
8703 If we cannot find a symbol, search the minimal symbols.
8704
8705 PR c++/11734
8706 * linespec.c (decode_compound): Rename SAVED_ARG to
8707 THE_REAL_SAVED_ARG.
8708 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8709 single-quotes.
8710 Pass a valid block to lookup_symbol.
8711 (lookup_prefix_sym): Likewise.
8712 (find_method): Construct search name based on SYM_CLASS instead
8713 of SAVED_ARG.
8714 * psymtab.c (lookup_partial_symbol): Add language parameter.
8715 (lookup_symbol_aux_psymtabs): Likewise.
8716 Don't assume that the psymtab we found was the right one. Search
8717 for the desired symbol in the symtab to be certain.
8718 (psymtab_search_name): New function.
8719 (lookup_partial_symbol): Use psymtab_search_name.
8720 Add language parameter.
8721 (read_symtabs_for_function): Add language parameter and pass to
8722 lookup_partial_symbol.
8723 (find_symbol_file_from_partial): Likewise.
8724
8725 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8726
8727 PR gdb/12528
8728 * dwarf2read.c (noop_record_line): New function.
8729 (dwarf_decode_lines): Ignore line tables for GCd functions.
8730
8731 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8732
8733 Fix ARI warnings about new lines at the end of messages, which
8734 are unneeded as there is a new line added at the end of the message
8735 automatically.
8736 * darwin-nat.c (darwin_stop_inferior): Ditto.
8737 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8738 * dfp.c (decimal_to_number): Ditto.
8739 * exec.c (print_section_info): Ditto.
8740 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8741 * osdata.c (get_osdata): Ditto.
8742 * record.c (bfdcore_write): Ditto.
8743 * remote-mips.c (mips_readchar): Ditto.
8744 * remote.c (read_ptid): Ditto.
8745 * ser-mingw.c (ser_windows_raw): Ditto.
8746 * tracepoint.c (add_local_symbols): Ditto.
8747 * windows-nat.c (fake_create_process): Ditto.
8748
8749 2011-03-16 Tom Tromey <tromey@redhat.com>
8750
8751 * tracepoint.c (stop_tracing): Don't declare.
8752 * event-top.c (after_char_processing_hook): Add `(void)'.
8753
8754 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8755
8756 * NEWS: Add Parameter sub-classing description.
8757
8758 2011-03-16 Kai Tietz <ktietz@redhat.com>
8759
8760 * MAINTAINERS: Update my e-mail address.
8761
8762 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8763
8764 * MAINTAINERS: Add myself for write after approval privileges.
8765
8766 2011-03-15 Michael Snyder <msnyder@vmware.com>
8767
8768 * frame.c (find_frame_sal): Assert sym is not null.
8769
8770 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8771
8772 * objc-lang.c (selectors_info): Check strchr for null result.
8773
8774 * stabsread.c (define_symbol): Guard against bad stabstring input.
8775
8776 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8777
8778 Remove trailing spaces and tabulations from pascal language
8779 support sources.
8780 p-exp.y: Ditto.
8781 p-lang.c: Ditto.
8782 p-lang.h: Ditto.
8783 p-valprint.c: Ditto.
8784
8785 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8786
8787 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8788 than LOW. Comment it.
8789 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8790 HIGHPC not strictly higher than LOWPC.
8791
8792 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8793
8794 Fix formatting of function declarations returning a pointer in
8795 previous commit.
8796 * varobj.c (varobj_add_child): Ditto.
8797 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8798 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8799
8800 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8801
8802 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8803 for the "generic" vector ABI used with GCC 4.3 and later.
8804 (ppc64_sysv_abi_return_value): Likewise.
8805
8806 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8807
8808 * infcall.c (call_function_by_hand): Function return value is
8809 always a non_lval, even when using struct_return.
8810
8811 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8812
8813 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8814 (map_display_numbers): New.
8815 (do_delete_display): New.
8816 (undisplay_command): Use map_display_numbers.
8817 (do_enable_disable_display): New.
8818 (enable_disable_display_command): New function.
8819 (enable_display): Delete.
8820 (enable_display_command): New.
8821 (disable_display_command): Reimplement.
8822 (_initialize_printcmd): Adjust "enable display" command to use
8823 `enable_display_command' as callback.
8824
8825 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8826
8827 * NEWS: Add Python breakpoint 'stop' operation.
8828
8829 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8830
8831 * NEWS: Delete duplicate entry. Fix typo.
8832
8833 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8834
8835 Fix ARI warning about function names in first column.
8836 Put prototype declaration on same line as return type.
8837 * objc-exp.y: Ditto.
8838 * p-exp.y: Ditto.
8839 * python/py-stopevent.h: Ditto.
8840 For long function names, split parameters to
8841 allow function name on same line as return type.
8842 * solib-pa64.c: Ditto.
8843 * varobj.c: Ditto.
8844 * varobj.h: Ditto.
8845 For long function declaration, use single line.
8846 * hppa-tdep.h: Ditto.
8847 * inferior.h: Ditto.
8848
8849 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8850
8851 * python/python.h: Declare gdbpy_should_stop and
8852 gdbpy_breakpoint_has_py_cond.
8853 * python/python.c: Add python.h to includes. Remove python.h from
8854 HAVE_PYTHON definition
8855 (gdbpy_should_stop): New dummy function.
8856 (gdbpy_breakpoint_has_py_cond): New dummy function.
8857 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8858 sub-classing capabilities.
8859 (gdbpy_should_stop): New function.
8860 (gdbpy_breakpoint_has_py_cond): New function.
8861 (local_setattro): New function.
8862 * breakpoint.c (condition_command): Add check for Python 'stop'
8863 operation.
8864 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8865 operation function as part of stop/continue tests.
8866
8867 2011-03-14 Tom Tromey <tromey@redhat.com>
8868
8869 PR gdb/12576:
8870 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8871 (needs_frame_dwarf_call): Likewise.
8872
8873 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8874
8875 Fix ARI warning about functions without parameters that do not
8876 use (void).
8877 * breakpoint.c (all_tracepoints): Replace () by (void).
8878 * f-exp.y (match_string_literal): Ditto.
8879 (yylex): Ditto.
8880 * m2-exp.y (yylex): Ditto.
8881 * mep-tdep.c (current_me_module): Ditto.
8882 (current_options): Ditto.
8883 (current_cop_data_bus_width): Ditto.
8884 (current_cr_names): Ditto.
8885 (current_cr_is_float): Ditto.
8886 (current_ccr_names): Ditto.
8887 * objc-exp.y (yylex): Ditto.
8888 * p-exp.y (yylex): Ditto.
8889 * remote.c (send_interrupt_sequence): Ditto.
8890 * tracepoint.c (current_trace_status): Ditto.
8891 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8892 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8893
8894 2011-03-11 Michael Snyder <msnyder@vmware.com>
8895
8896 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8897 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8898 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8899 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8900 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8901
8902 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8903 (delete_async_event_handler): Ditto.
8904
8905 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8906
8907 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8908
8909 * top.c (set_verbose): Assert showcmd was found.
8910
8911 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8912
8913 * xtensa-tdep.c (warning_once): Correct style issues.
8914
8915 2011-03-11 Yao Qi <yao@codesourcery.com>
8916
8917 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8918
8919 2011-03-11 Andreas Schwab <schwab@redhat.com>
8920
8921 * common/aclocal.m4: Remove.
8922
8923 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8924
8925 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8926 (xtensa_write_register, xtensa_read_register): Likewise.
8927 (xtensa_hextochar): Removed.
8928 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8929
8930 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8931
8932 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8933 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8934 (xtensa_alloc_frame_cache): Add initialization for new fields.
8935 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8936 (warning_once): New function.
8937 (xtensa_insn_kind): New item c0opc_and.
8938 (call0_classify_opcode): Add the case for AND instruction.
8939 (call0_track_op): Change arguments. New local variable litbase.
8940 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8941 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8942 in the prologue.
8943 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8944 (call0_analyze_prologue): Update the comments. Change arguments.
8945 Add the variety of updates to handle extended prologues, which now can
8946 conduct dynamic stack adjustments.
8947 (call0_frame_cache): Likewise.
8948 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8949 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8950
8951 2011-03-10 Michael Snyder <msnyder@vmware.com>
8952
8953 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8954 (cmd_qtframe): Ditto.
8955 (cmd_qtbuffer): Ditto.
8956 (cmd_bigqtbuffer): Ditto.
8957
8958 2011-03-10 Tom Tromey <tromey@redhat.com>
8959
8960 * tracepoint.c (trace_actions_command): Update.
8961 * thread.c (thread_apply_command): Update.
8962 * reverse.c (delete_bookmark_command): Update.
8963 (bookmarks_info): Update.
8964 * printcmd.c (undisplay_command): Update.
8965 * memattr.c (mem_enable_command): Update.
8966 (mem_disable_command): Update.
8967 (mem_delete_command): Update.
8968 * inferior.c (detach_inferior_command): Update.
8969 (kill_inferior_command): Update.
8970 (remove_inferior_command): Update.
8971 * cli/cli-utils.h (struct get_number_or_range_state): New.
8972 (init_number_or_range): Declare.
8973 (get_number_or_range): Update.
8974 * cli/cli-utils.c (init_number_or_range): New function.
8975 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8976 static variables.
8977 (number_is_in_list): Update.
8978 * breakpoint.h (get_tracepoint_by_number): Update.
8979 * breakpoint.c (map_breakpoint_numbers): Update for change to
8980 get_number_or_range.
8981 (find_location_by_number): Use get_number, not
8982 get_number_or_range.
8983 (trace_pass_set_count): New function.
8984 (trace_pass_command): Update for change to get_number_or_range.
8985 Rework loop logic.
8986 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8987 'state' parameter.
8988
8989 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8990
8991 * python/py-param.c (add_setshow_generic): Add set/show callback
8992 parameters. Register Python object context.
8993 (get_show_value): New function.
8994 (get_set_value): New function.
8995 (call_doc_function): New function.
8996 (get_doc_string): Move behind get_show_value/get_set_value.
8997
8998 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8999
9000 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9001
9002 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9003
9004 * xtensa-tdep.c (xtensa_read_register): Add comment.
9005 (xtensa_write_register): Likewise.
9006 (xtensa_hextochar): Add comment and update to match coding conventions.
9007 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9008 (execute_l32e, execute_s32e, execute_code): Update comments.
9009 (xtensa_exception_handler_t): Update to match coding conventions.
9010 (xtensa_insn_kind): Likewise.
9011
9012 2011-03-09 Michael Snyder <msnyder@vmware.com>
9013
9014 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9015
9016 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9017
9018 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9019
9020 2011-03-09 Tom Tromey <tromey@redhat.com>
9021
9022 * thread.c (restore_selected_frame): Handle frame_level == -1.
9023 (make_cleanup_restore_current_thread): Use
9024 get_selected_frame_if_set.
9025 * frame.h (get_selected_frame_if_set): Declare.
9026 * frame.c (get_selected_frame_if_set): New function.
9027
9028 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9029
9030 * cli/cli-cmds.c (shell_escape): Use lbasename.
9031 * coffread.c (coff_start_symtab): Constify parameter.
9032 (complete_symtab): Constify `name' parameter.
9033 (coff_symtab_read): Constify `filestring' local.
9034 (coff_getfilename): Constify return and `result' local.
9035 Use lbasename.
9036 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9037 * linux-fork.c (info_checkpoints_command): Use lbasename.
9038 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9039 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9040 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9041 * procfs.c (procfs_make_note_section): Use lbasename.
9042 * tui/tui-io.c (printable_part): Constity return and parameter.
9043 Use lbasename.
9044 (print_filename): Constify parameters, and local `s'.
9045 (tui_rl_display_match_list): Constify local `temp'.
9046
9047 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9048
9049 Revert:
9050 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9051 Fix DWARF-3+ DW_AT_accessibility default assumption.
9052 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9053 cu->header.version >= 3.
9054
9055 2011-03-09 Yao Qi <yao@codesourcery.com>
9056
9057 * common/Makefile.in: Remove.
9058 * common/configure: Remove.
9059 * common/configure.ac: Remove.
9060
9061 2011-03-09 Yao Qi <yao@codesourcery.com>
9062
9063 Revert:
9064 2011-02-11 Yao Qi <yao@codesourcery.com>
9065
9066 * common/Makefile.in: Add copyright header.
9067
9068 2011-02-11 Yao Qi <yao@codesourcery.com>
9069
9070 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9071 libcommon.a.
9072 * configure.ac: Add common to sub dir.
9073 * configure: Regenerate.
9074
9075 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9076
9077 * xtensa-tdep.c (call0_ret): New function.
9078 (xtensa_skip_prologue): Speed up analysis.
9079
9080 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9081
9082 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9083 while executing MI command -data-list-changed-registers.
9084
9085 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9086
9087 * xtensa-tdep.c (xtensa_read_register): New function.
9088 (xtensa_write_register): New function.
9089 (xtensa_find_register_by_name): New function.
9090 (xtensa_windowed_frame_cache): Update comments in type description.
9091 (xtensa_frame_cache): Likewise.
9092 (xtensa_window_interrupt_insn): New function.
9093 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9094 (xtensa_insn_kind): Add new instructions.
9095 (rwx_special_register): New function.
9096 (call0_classify_opcode): Add new instructions to the analysis.
9097 (a0_saved, a7_saved, a11_saved): New variables.
9098 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9099 (execute_l32e): New function.
9100 (execute_s32e): New function.
9101 (xtensa_exception_handler_t): New type.
9102 (execute_code): New function.
9103 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9104 analysis for Xtensa Window Exception handlers.
9105
9106 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9107
9108 * xtensa-tdep.c (TX_PS): New.
9109 (windowing_enabled): Update to count for Call0 ABI.
9110 (xtensa_hextochar): New.
9111 (xtensa_init_reggroups): Make algorithm generic.
9112 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9113
9114 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9115
9116 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9117
9118 2011-03-08 Michael Snyder <msnyder@vmware.com>
9119
9120 * i386-tdep.c (i386_follow_jump): Check return value of
9121 target_read_memory.
9122 (i386_analyze_struct_return): Ditto.
9123 (i386_skip_probe): Ditto.
9124 (i386_match_insn): Ditto.
9125 (i386_skip_noop): Ditto.
9126 (i386_analyze_frame_setup): Ditto.
9127 (i386_analyze_register_saves): Ditto.
9128 (i386_skip_prologue): Ditto.
9129 (i386_skip_main_prologue): Ditto.
9130
9131 * target.c (read_whatever_is_readable): Fix memory leak.
9132
9133 * i386-tdep.c (i386_process_record): Document fall through.
9134
9135 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9136
9137 Fix DWARF-3+ DW_AT_accessibility default assumption.
9138 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9139 cu->header.version >= 3.
9140
9141 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9142
9143 * remote.c (remote_check_symbols): Skip if the target has no
9144 execution.
9145
9146 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9147
9148 * target.c (read_whatever_is_readable): Reformat comment,
9149 with a minor typo fix. Minor reformatting of the code.
9150
9151 2011-03-08 Yao Qi <yao@codesourcery.com>
9152
9153 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9154 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9155 Use cached result instead of calling displaced_in_arm_mode again.
9156 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9157 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9158 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9159 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9160 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9161 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9162 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9163 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9164 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9165 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9166 (arm_catch_kernel_helper_return): Likewise.
9167 * gdb/arm-tdep.h : Update function declarations.
9168
9169 2011-03-07 Michael Snyder <msnyder@vmware.com>
9170
9171 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9172
9173 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9174
9175 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9176
9177 * elfread.c (elf_symtab_read): Stop memory leak.
9178
9179 * main.c (captured_main): Fix memory leak.
9180
9181 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9182
9183 * ada-lang.c (compare_names): Call is_name_suffix with string1
9184 instead of string2.
9185
9186 2011-03-07 Tom Tromey <tromey@redhat.com>
9187
9188 * xcoffread.c (xcoff_sym_fns): Update.
9189 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9190 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9191 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9192 (symbol_file_add_with_addrs_or_offsets): Likewise.
9193 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9194 * somread.c (som_sym_fns): Update.
9195 * psymtab.h (require_partial_symbols): Declare.
9196 * psymtab.c (require_partial_symbols): New function.
9197 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9198 (ALL_OBJFILE_PSYMTABS): Undef.
9199 (ALL_PSYMTABS): Move from psympriv.h.
9200 (lookup_partial_symtab, find_pc_sect_psymtab)
9201 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9202 (find_last_source_symtab_from_partial)
9203 (forget_cached_source_info_partial)
9204 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9205 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9206 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9207 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9208 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9209 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9210 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9211 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9212 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9213 psymtabs.
9214 * mipsread.c (ecoff_sym_fns): Update.
9215 * machoread.c (macho_sym_fns): Update.
9216 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9217 (read_psyms): New function.
9218 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9219 (elf_sym_fns_lazy_psyms): New global.
9220 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9221 dwarf2_build_psymtabs.
9222 * dbxread.c (aout_sym_fns): Update.
9223 * coffread.c (coff_sym_fns): Update.
9224
9225 2011-03-07 Tom Tromey <tromey@redhat.com>
9226
9227 * infrun.c (print_exited_reason): Include inferior id and pid in
9228 message.
9229
9230 2011-03-07 Tom Tromey <tromey@redhat.com>
9231
9232 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9233 parameter.
9234 (target_has_execution_1): Update.
9235 (target_has_execution_current): Declare.
9236 (target_has_execution): Call target_has_execution_current.
9237 (default_child_has_execution): Update.
9238 * target.c (default_child_has_execution): Add 'the_ptid'
9239 parameter.
9240 (target_has_execution_1): Likewise.
9241 (target_has_execution_current): New function.
9242 (add_target): Update.
9243 (init_dummy_target): Update.
9244 * remote-m32r-sdi.c (m32r_has_execution): New function.
9245 (init_m32r_ops): Use it.
9246 * record.c (record_core_has_execution): Now static. Add
9247 'the_ptid' parameter.
9248 * inferior.c (have_live_inferiors): Don't save current thread.
9249 Use target_has_execution_1.
9250
9251 2011-03-07 Yao Qi <yao@codesourcery.com>
9252
9253 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9254
9255 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9256
9257 * elfread.c (elf_symtab_read): Minor reformatting.
9258
9259 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9260
9261 * objc-lang.c (selectors_info): Minor reformatting.
9262
9263 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9264
9265 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9266
9267 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9268 Michael Snyder <msnyder@vmware.com>
9269
9270 * ada-valprint.c (ada_val_print_array): Move the declaration of
9271 "byte_order" and "elttype" inside the block where these variables
9272 are actually used. Remove some special handling for the case
9273 where "elttype" and "eltlen" are null. Replace by a comment
9274 and a couple of assertion checks.
9275
9276 2011-03-05 Michael Snyder <msnyder@vmware.com>
9277
9278 * source.c (add_path): Replace semicolon at end of block.
9279 * dwarf2expr.c (execute_stack_op): Ditto.
9280
9281 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9282
9283 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9284 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9285 (bfin-*-*): Likewise.
9286
9287 2011-03-05 Michael Snyder <msnyder@vmware.com>
9288
9289 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9290 * mdebugread.c (parse_symbol): Ditto.
9291 * parse.c (parse_exp_in_context): Ditto.
9292 * source.c (add_path): Ditto.
9293 * utils.c (gnu_debuglink_crc32): Ditto.
9294 * varobj.c (variable_language): Ditto.
9295
9296 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9297
9298 2011-03-04 Michael Snyder <msnyder@vmware.com>
9299
9300 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9301
9302 * symfile.c (simple_overlay_update): Check for null return value
9303 from lookup_minimal_symbol.
9304
9305 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9306
9307 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9308
9309 * eval.c (parse_and_eval_address_1): Remove function.
9310 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9311 instead of parse_and_eval_address_1.
9312 * value.h (parse_and_eval_address_1): Remove prototype.
9313
9314 2011-03-04 Michael Snyder <msnyder@vmware.com>
9315
9316 * remote.c (putpkt_binary): Document that case stmt falls through.
9317
9318 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9319
9320 * breakpointc (print_it_typical): Move NULL check from here...
9321 (print_bp_stop_message): ... to here.
9322
9323 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9324
9325 * breakpoint.c (enable_command): Use break instead of continue,
9326 and fill in a missing break.
9327 (disable_command): Ditto.
9328
9329 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9330
9331 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9332 (terminal_save_ours): Remove misleading comment.
9333 (inflow_inferior_data_cleanup): Free ttystate.
9334 (inflow_inferior_exit): Likewise.
9335 (copy_terminal_info): Copy ttystate.
9336
9337 * serial.c (serial_copy_tty_state): New function.
9338 * serial.h (serial_copy_tty_state): Add prototype.
9339 (struct serial_ops): Add copy_tty_state callback.
9340 * ser-base.c (ser_base_copy_tty_state): New function.
9341 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9342 * ser-go32.c (dos_copy_tty_state): New function.
9343 (dos_ops): Install copy_tty_state callback.
9344 * ser-mingw.c (_initialize_ser_windows): Likewise.
9345 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9346 * ser-unix.c (hardwire_copy_tty_state): New function.
9347 (_initialize_ser_hardwire): Install it.
9348
9349 2011-03-04 Michael Snyder <msnyder@vmware.com>
9350
9351 * breakpoint.c (create_breakpoint): Add missing break statement.
9352
9353 Reverting this patch:
9354 * infcall.c (call_function_by_hand): Add break statements for lint.
9355
9356 Reverting this patch:
9357 * cli/cli-script.c (script_from_file): Add break for lint.
9358
9359 2011-03-04 Michael Snyder <msnyder@vmware.com>
9360
9361 * solib.c (reload_shared_libraries_1): Close memory leak.
9362
9363 2011-03-03 Tom Tromey <tromey@redhat.com>
9364
9365 PR gdb/12538:
9366 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9367 DW_STRING is NULL.
9368
9369 2011-03-03 Michael Snyder <msnyder@vmware.com>
9370
9371 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9372 fields of struct 'st' to zero.
9373
9374 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9375 sal.pspace before calling set_current_source_symtab_and_line.
9376
9377 2011-03-03 Yao Qi <yao@codesourcery.com>
9378
9379 * Makefile.in (configure-common): Remove. Let Makefile
9380 in dir common to rebuild itself.
9381 (common/Makefile): Likewise.
9382
9383 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9384
9385 * utils.c (parse_escape): Add i18n markup in error message.
9386
9387 2011-03-03 Yao Qi <yao@codesourcery.com>
9388
9389 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9390 ARM_PC_REGNUM.
9391 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9392 (displaced_write_reg, displaced_read_reg): Likewise.
9393 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9394 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9395 (cleanup_branch): Replace magic number 14 and 15 with
9396 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9397
9398 2011-03-02 Michael Snyder <msnyder@vmware.com>
9399
9400 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9401
9402 * cli/cli-script.c (script_from_file): Add break for lint.
9403
9404 * mdebugread.c (parse_partial_symbols): Fix indent.
9405
9406 * target-descriptions.c (tdesc_gdb_type): No need to call
9407 xstrdup, callee saves a copy.
9408
9409 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9410
9411 * infcall.c (call_function_by_hand): Add break statements for lint.
9412
9413 * utils.c (parse_escape): Escape the escape char.
9414
9415 * python/py-inferior.c (build_inferior_list): Error out if
9416 PyList_Append fails.
9417 (gdbpy_inferiors): Error out if build_inferior_list fails.
9418
9419 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9420 a function call.
9421
9422 * record.c (record_restore): Move printf to before error return.
9423
9424 2011-03-02 Yao Qi <yao@codesourcery.com>
9425
9426 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9427 is_thumb and insn_size.
9428 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9429 on both ARM and Thumb mode.
9430 (arm_process_displaced_insn): Set is_thumb and insn_size.
9431 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9432 (arm_displaced_step_fixup): Likewise.
9433
9434 2011-03-01 Michael Snyder <msnyder@vmware.com>
9435
9436 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9437
9438 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9439
9440 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9441
9442 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9443
9444 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9445 with xmalloc.
9446
9447 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9448 which shadows function parameter.
9449
9450 * tracepoint.c (create_tsv_from_upload): Superfluous call
9451 to xstrdup. Callee already calls xstrdup.
9452
9453 * linespec.c (decode_line_1): Remove unnecessary null check.
9454
9455 * tracepoint.c (scope_info): Fix mem leak, remove underused
9456 variable.
9457
9458 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9459 superfluous null check.
9460
9461 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9462 (value_of_builtin_frame_fp_reg): Ditto.
9463
9464 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9465
9466 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9467 be null.
9468
9469 * linespec.c (decode_line_1): Check for null before dereference.
9470
9471 * reverse.c (record_restore): Move null-check to before pointer
9472 dereference.
9473
9474 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9475
9476 * objc-lang.c (selectors_info): Add explanitory comment.
9477 (classes_info): Ditto.
9478
9479 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9480
9481 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9482 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9483 versions of the trampoline. Handle Thumb vs. ARM addresses.
9484 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9485 (arm_linux_init_abi): Install it.
9486 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9487 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9488
9489 2011-02-28 Michael Snyder <msnyder@vmware.com>
9490
9491 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9492 a little bigger, to avoid possibility of an overflow.
9493
9494 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9495 buffers a little bigger, to avoid possibility of an overflow.
9496
9497 * coffread.c (coff_getfilename): Add check to avoid overflow.
9498
9499 * objc-lang.c (selectors_info): Add a small safety margin to
9500 avoid overflow.
9501 (classes_info): Error out on too long REGEXP.
9502
9503 * infrun.c (handle_inferior_event): Remove unused function call.
9504
9505 * fork-child.c (fork_inferior): Remove ifdef'd code and
9506 unused variable.
9507
9508 * linux-thread-db.c (attach_thread): Discard unused value.
9509
9510 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9511
9512 * remote.c (remote_get_noisy_reply): Discard unused value.
9513 (remote_vcont_resume): Ditto.
9514 (remote_stop_ns): Ditto.
9515
9516 * linespec.c (decode_objc): Delete unused variable.
9517
9518 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9519
9520 * dwarf2read.c (add_partial_symbol): Discard unused values.
9521 (read_base_type): Delete unused variable.
9522
9523 * dbxread.c (read_dbx_symtab): Discard unused value.
9524
9525 * eval.c (evaluate_subexp_standard): Delete unused variable,
9526 and discard unused values.
9527
9528 * infcmd.c (_initialize_infcmd): Discard unused values.
9529
9530 * stabsread.c (rs6000_builtin_type): Missing break statement.
9531
9532 * dbxread.c (process_one_symbol): Discard unused value.
9533
9534 * coffread.c (coff_end_symtab): Delete unused variable.
9535
9536 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9537 (dwarf2_add_typedef): Delete unused variable.
9538 (read_namespace): Ditto.
9539 (dwarf_decode_macros): Ditto.
9540
9541 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9542
9543 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9544
9545 * p-valprint.c (pascal_val_print): Discard unused value.
9546
9547 * utils.c (nquery): Call va_end before return;
9548 (yquery): Ditto.
9549 (query): Ditto.
9550
9551 * proc-service.c (ps_plog): Call va_end before return.
9552
9553 2011-02-28 Tom Tromey <tromey@redhat.com>
9554
9555 * python/python.c (gdbpy_value_cst): New global.
9556 (_initialize_python): Initialize it.
9557 * python/python-internal.h (gdbpy_value_cst): Declare.
9558 * python/py-value.c (convert_value_from_python): Use
9559 gdbpy_value_cst.
9560
9561 2011-02-28 Michael Snyder <msnyder@vmware.com>
9562
9563 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9564
9565 * breakpoint.c (catch_syscall_completer): Free malloced list.
9566
9567 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9568
9569 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9570 (lval_func_check_synthetic_pointer): Ditto.
9571 (lval_func_free_closure): Fix use-after-free.
9572
9573 2011-02-28 Tom Tromey <tromey@redhat.com>
9574
9575 * psymtab.c (expand_partial_symbol_tables): Use
9576 ALL_OBJFILE_PSYMTABS.
9577
9578 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9579
9580 * objc-lang.c (selectors_info): Error on too long REGEXP.
9581
9582 2011-02-28 Michael Snyder <msnyder@vmware.com>
9583
9584 * python/py-param.c (set_parameter_value): Add missing
9585 break statement.
9586
9587 * linux-record.c (record_linux_system_call): Add missing
9588 break statement.
9589
9590 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9591
9592 * breakpoint.c (print_one_breakpoint_location): Remove unused
9593 argument PRINT_ADDRESS_BITS. Update callers.
9594 (print_one_breakpoint): Likewise.
9595
9596 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9597
9598 * breakpoint.c (wrap_indent_at_field): New function.
9599 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9600 Allocate ui_stream locally instead of using STB argument.
9601 (print_one_breakpoint_location): Update call.
9602 * ui-out.c (ui_out_query_field): New function.
9603 * ui-out.h (ui_out_query_field): Add prototype.
9604
9605 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9606
9607 From Michael Snyder <msnyder@vmware.com>
9608 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9609
9610 2011-02-27 Michael Snyder <msnyder@vmware.com>
9611
9612 * objc-lang.c (selectors_info): Prevent string overrun.
9613
9614 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9615 error in strncpy.
9616
9617 * symtab.c (rbreak_command): Move variable 'file_name' to
9618 outer scope.
9619
9620 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9621 param with a local variable of the same name.
9622
9623 2011-02-27 Michael Snyder <msnyder@vmware.com>
9624
9625 * value.c (value_from_history_ref): New function.
9626 * value.h (value_from_history_ref): Export.
9627 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9628 to parse value history references.
9629 * cli/cli-utils.h (get_number_trailer): Update comment.
9630
9631 2011-02-27 Michael Snyder <msnyder@vmware.com>
9632
9633 * inferior.c (detach_inferior_command): Use get_number_or_range.
9634 (kill_inferior_command): Ditto.
9635 (remove_inferior_command): Ditto.
9636 (initialize_inferiors): Make command names plural.
9637 Update help strings.
9638
9639 2011-02-27 Michael Snyder <msnyder@vmware.com>
9640
9641 * darwin-nat-info.c: Fix comment typo.
9642 * dwarf2expr.h: Ditto.
9643 * fbsd-nat.c: Ditto.
9644 * fbsd-nat.h: Ditto.
9645 * frame-unwind.h: Ditto.
9646 * frame.h: Ditto.
9647 * hppa-hpux-tdep.c: Ditto.
9648 * i386-linux-nat.c: Ditto.
9649 * linux-nat.c: Ditto.
9650 * nbsd-nat.c: Ditto.
9651 * nbsd-nat.h: Ditto.
9652 * ppc-linux-tdep.c: Ditto.
9653 * serial.c: Ditto.
9654 * ui-file.h: Ditto.
9655 * tui/tui-winsource.c: Ditto.
9656
9657 2011-02-26 Michael Snyder <msnyder@vmware.com>
9658
9659 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9660
9661 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9662
9663 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9664 with a local variable of the same name.
9665
9666 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9667 param with a local variable of the same name.
9668 (i387_supply_xsave): Ditto.
9669
9670 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9671 that it does not shadow a function parameter.
9672
9673 * i386-nat.c (i386_length_and_rw_bits): Document that case
9674 statement is meant to fall through.
9675
9676 * expprint.c (dump_subexp_body_standard): Document that case
9677 statement is meant to fall through.
9678
9679 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9680 dead if statement. Condition can't be false.
9681
9682 2011-02-25 Michael Snyder <msnyder@vmware.com>
9683
9684 * arm-tdep.c: Fix typos in comments.
9685 * bsd-uthread.c: Ditto.
9686 * completer.c: Ditto.
9687 * corelow.c: Ditto.
9688 * cp-namespace.c: Ditto.
9689 * cp-support.c: Ditto.
9690 * cris-tdep.c: Ditto.
9691 * dbxread.c: Ditto.
9692 * dwarf2read.c: Ditto.
9693 * frame.h: Ditto.
9694 * gdbtypes.h: Ditto.
9695 * inferior.h: Ditto.
9696 * mdebugread.c: Ditto.
9697 * mips-tdep.c: Ditto.
9698 * ppc-linux-nat.c: Ditto.
9699 * ppc-linux-tdep.c: Ditto.
9700 * printcmd.c: Ditto.
9701 * sol-thread.c: Ditto.
9702 * solib-frv.c: Ditto.
9703 * solist.h: Ditto.
9704 * sparc64-tdep.c: Ditto.
9705 * spu-tdep.c: Ditto.
9706 * stabsread.c: Ditto.
9707 * symfile.c: Ditto.
9708 * valops.c: Ditto.
9709 * varobj.c: Ditto.
9710 * vax-nat.c: Ditto.
9711 * python/py-block.c: Ditto.
9712 * python/py-symbol.c: Ditto.
9713 * python/py-symtab.c: Ditto.
9714 * python/py-value.c: Ditto.
9715 * tui/tui-win.c: Ditto.
9716
9717 2011-02-25 Michael Snyder <msnyder@vmware.com>
9718
9719 * inferior.c (print_inferior): Accept a string instead of an int
9720 for requested_inferiors, and use get_number_or_range to parse it.
9721 (info_inferiors_command): Pass args string to print_inferior.
9722 (initialize_inferiors): Change help string for info inferiors.
9723 * inferior.h (print_inferior): Export prototype change.
9724
9725 2011-02-25 Tom Tromey <tromey@redhat.com>
9726
9727 * common/ax.def (invalid2): Set to 0x31.
9728
9729 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9730
9731 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9732 L and plongest.
9733 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9734 use L and plongest.
9735 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9736
9737 2011-02-24 Michael Snyder <msnyder@vmware.com>
9738
9739 * Makefile.in (clean): Make clean should remove generated files
9740 observer.h and observer.inc.
9741
9742 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9743
9744 Revert the following patch (not approved yet):
9745 2011-02-21 Hui Zhu <teawater@gmail.com>
9746 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9747 * ax-gdb.c (gen_printf_expr_callback): New function.
9748 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9749 * ax-general.c (ax_memcpy): New function.
9750 (ax_print): Handle "printf".
9751 (ax_reqs): Ditto.
9752 * ax.h (ax_memcpy): Forward declare.
9753 * common/ax.def (invalid2): Removed.
9754 (printf): New entry.
9755 * printcmd.c (printcmd.h): New include.
9756 (string_printf): New function.
9757 (ui_printf): Removed.
9758 (printf_command): Remove static. Call string_printf.
9759 (eval_command): Call string_printf.
9760 * printcmd.h: New file.
9761 * tracepoint.c (validate_actionline,
9762 encode_actions_1): handle printf_command.
9763
9764 2011-02-23 Tom Tromey <tromey@redhat.com>
9765
9766 * ax-general.c (ax_pick): Add missing newline.
9767
9768 2011-02-23 Michael Snyder <msnyder@vmware.com>
9769
9770 * breakpoint.c (breakpoint_1): Change first argument from an int
9771 to a char pointer, so that the function now accepts a list of
9772 breakpoints rather than just one. Use new function
9773 'number_is_in_list' to implement.
9774 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9775 (watchpoints_info): Ditto.
9776 (tracepoints_info): Ditto.
9777 (maintenance_info_breakpoints): Ditto.
9778 (_initialize_breakpoint): Update help strings to reflect the fact
9779 that these functions can now take more than one argument.
9780 * cli/cli-utils.c (number_is_in_list): New function.
9781 * cli/cli-utils.h (number_is_in_list): Export.
9782
9783 2011-02-23 Michael Snyder <msnyder@vmware.com>
9784
9785 * memattr.c (mem_enable_command): Use get_number_or_range.
9786 (mem_disable_command): Ditto.
9787 (mem_delete_command): Ditto.
9788 (_initialize_mem): Tweak usage message to reflect multiple
9789 arguments.
9790
9791 2011-02-22 Doug Evans <dje@google.com>
9792
9793 Add gdb.lookup_global_symbol python function.
9794 * NEWS: Add entry.
9795 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9796 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9797 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9798
9799 2011-02-22 Tom Tromey <tromey@redhat.com>
9800
9801 * language.c (language_class_name_from_physname): Rename
9802 'curr_language' argument to 'lang'; use in body.
9803
9804 2011-02-22 Michael Snyder <msnyder@vmware.com>
9805
9806 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9807
9808 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9809
9810 * frame-unwind.h: Fix comment to mention the this frame, not the
9811 next.
9812
9813 2011-02-22 Tom Tromey <tromey@redhat.com>
9814
9815 * symfile.c (auto_solib_limit): Remove.
9816 * symfile.h (auto_solib_limit): Remove.
9817
9818 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9819
9820 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9821
9822 2011-02-21 Michael Snyder <msnyder@vmware.com>
9823
9824 * gdbthread.h (print_thread_info): Change prototype.
9825 * thread.c (print_thread_info): Accept char* instead of int for
9826 requested_threads argument. Use new function number_is_in_list
9827 to determine which threads to list.
9828 (info_threads_command): Pass char* to print_thread_info.
9829 * cli/cli-utils.c (number_is_in_list): New function.
9830 * cli/cli-utils.h (number_is_in_list): Export.
9831 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9832 print_thread_info.
9833 (print_one_inferior): Ditto.
9834 (mi_cmd_list_thread_groups): Ditto.
9835
9836 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9837
9838 * common/Makefile.in (CFLAGS): New.
9839 (COMPILE): Add $(CFLAGS).
9840
9841 2011-02-21 Tom Tromey <tromey@redhat.com>
9842
9843 * breakpoint.c (catch_syscall_command_1): Fix typo.
9844
9845 2011-02-21 Tom Tromey <tromey@redhat.com>
9846
9847 * reverse.c: Include cli-utils.h.
9848 * printcmd.c: Include cli-utils.h.
9849 (string_printf): Use skip_spaces.
9850 * cli/cli-utils.h: New file.
9851 * cli/cli-utils.c: New file.
9852 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9853 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9854 * breakpoint.h (get_number, get_number_or_range): Move to
9855 cli-utils.h.
9856 * breakpoint.c: Include cli-utils.h.
9857 (get_number_trailer, get_number, get_number_or_range)
9858 (ep_skip_leading_whitespace): Move to cli-utils.c.
9859 (create_breakpoint_sal, find_condition_and_thread)
9860 (decode_static_tracepoint_spec, watch_command_1)
9861 (watch_maybe_just_location, ep_parse_optional_if_clause)
9862 (catch_fork_command_1, catch_exec_command_1)
9863 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9864 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9865 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9866 (HFILES_NO_SRCDIR): Add cli-utils.h.
9867 (cli-utils.o): New target.
9868
9869 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9870
9871 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9872 before calling discard_all_inferiors.
9873
9874 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9875
9876 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9877 (struct builtin_opencl_type): Remove.
9878 (builtin_opencl_type): Change return type to "struct type **".
9879 (lookup_opencl_vector_type): Update caller.
9880 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9881 (build_opencl_types): Install plain array of "struct type *"
9882 instead of "struct builtin_opencl_type".
9883
9884 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9885 Ulrich Weigand <uweigand@de.ibm.com>
9886
9887 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9888 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9889 (struct arm_linux_hwbp_cap): New type.
9890 (arm_linux_get_hwbp_cap): New function.
9891 (arm_linux_get_hw_breakpoint_count): Likewise.
9892 (arm_linux_get_hw_watchpoint_count): Likewise.
9893 (arm_linux_can_use_hw_breakpoint): Likewise.
9894 (arm_hwbp_type): New type.
9895 (arm_hwbp_control_t): Likewise.
9896 (struct arm_linux_hw_breakpoint): Likewise.
9897 (struct arm_linux_thread_points): Likewise.
9898 (arm_threads): New global variable.
9899 (arm_linux_find_breakpoints_by_tid): New function.
9900 (arm_hwbp_control_initialize): Likewise.
9901 (arm_hwbp_control_is_enabled): Likewise.
9902 (arm_hwbp_control_disable): Likewise.
9903 (arm_linux_hw_breakpoint_initialize): Likewise.
9904 (arm_linux_get_hwbp_type): Likewise.
9905 (arm_linux_hw_watchpoint_initialize): Likewise.
9906 (arm_linux_hw_breakpoint_equal): Likewise.
9907 (arm_linux_insert_hw_breakpoint1): Likewise.
9908 (arm_linux_remove_hw_breakpoint1): Likewise.
9909 (arm_linux_insert_hw_breakpoint): Likewise.
9910 (arm_linux_remove_hw_breakpoint): Likewise.
9911 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9912 (arm_linux_insert_watchpoint): Likewise.
9913 (arm_linux_remove_watchpoint): Likewise.
9914 (arm_linux_stopped_data_address): Likewise.
9915 (arm_linux_stopped_by_watchpoint): Likewise.
9916 (arm_linux_watchpoint_addr_within_range): Likewise.
9917 (arm_linux_new_thread): Likewise.
9918 (arm_linux_thread_exit): Likewise.
9919 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9920 related target callbacks. Register arm_linux_new_thread and
9921 arm_linux_thread_exit.
9922 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9923 * arm-tdep.c (arm_pc_is_thumb): Make global.
9924 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9925
9926 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9927
9928 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9929 per-frame locations while within a function epilogue.
9930
9931 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9932
9933 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9934 to GNU coding standards.
9935
9936 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9937
9938 Allow use of mingw native on Windows 95 OS.
9939 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9940 (ser_windows_close): Only call CancelIo if function exists.
9941 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9942 to check for existence of CancelIo function in kernel32 DLL.
9943
9944 2011-02-21 Hui Zhu <teawater@gmail.com>
9945
9946 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9947 * ax-gdb.c (gen_printf_expr_callback): New function.
9948 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9949 * ax-general.c (ax_memcpy): New function.
9950 (ax_print): Handle "printf".
9951 (ax_reqs): Ditto.
9952 * ax.h (ax_memcpy): Forward declare.
9953 * common/ax.def (invalid2): Removed.
9954 (printf): New entry.
9955 * printcmd.c (printcmd.h): New include.
9956 (string_printf): New function.
9957 (ui_printf): Removed.
9958 (printf_command): Remove static. Call string_printf.
9959 (eval_command): Call string_printf.
9960 * printcmd.h: New file.
9961 * tracepoint.c (validate_actionline,
9962 encode_actions_1): handle printf_command.
9963
9964 2011-02-19 Michael Snyder <msnyder@vmware.com>
9965
9966 * reverse.c (delete_one_bookmark): Argument is now bookmark
9967 id rather than pointer to bookmark struct.
9968 (delete_bookmark_command): Use get_number_or_range.
9969 (goto_bookmark_command): Parse with get_number instead of strtoul.
9970 (bookmark_1): New function. Print info for one bookmark.
9971 (bookmarks_info): Use get_number_or_range and bookmark_1.
9972
9973 2011-02-18 Michael Snyder <msnyder@vmware.com>
9974
9975 * thread.c (info_threads_command): Re-implement using
9976 get_number_or_range.
9977 (thread_apply_command): Ditto.
9978
9979 2011-02-18 Tom Tromey <tromey@redhat.com>
9980
9981 * common/ax.def: New file.
9982 * ax.h (enum agent_op): Use ax.def.
9983 * ax-general.c (aop_map): Use ax.def.
9984
9985 2011-02-18 Tom Tromey <tromey@redhat.com>
9986
9987 * ax-general.c (aop_map): Add pick and rot.
9988 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9989 <DW_OP_rot>: Implement.
9990 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9991 (ax_pick): Declare.
9992 * ax-general.c (ax_pick): New function.
9993
9994 2011-02-18 Tom Tromey <tromey@redhat.com>
9995
9996 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9997
9998 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9999 Tom Tromey <tromey@redhat.com>
10000
10001 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10002 make_symbol_overload_list_block with NULL BLOCK.
10003 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10004
10005 2011-02-18 Pedro Alves <pedro@codesourcery.com>
10006
10007 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10008 * breakpoint.h (get_number_or_range): Declare.
10009 * printcmd.c (ALL_DISPLAYS): Declare.
10010 (delete_display): Reimplement taking a display pointer.
10011 (undisplay_command): Accept a range of displays to delete, using
10012 get_number_or_range.
10013
10014 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10015
10016 * c-valprint.c (c_val_print): Add embedded_offset to address
10017 for arrays of unspecified length.
10018 * p-valprint.c (pascal_val_print): Likewise.
10019
10020 2011-02-18 Yao Qi <yao@codesourcery.com>
10021
10022 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10023 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10024 (thumb_process_displaced_insn): New.
10025 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10026 call to arm_process_displaced_insn.
10027 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10028
10029 2011-02-17 Tom Tromey <tromey@redhat.com>
10030
10031 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10032 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10033 compile_dwarf_to_ax. No longer static. Call
10034 dwarf2_compile_cfa_to_ax.
10035 (locexpr_tracepoint_var_ref): Update.
10036 (loclist_tracepoint_var_ref): Update.
10037 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10038 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10039 argument; add 'gdbarch' and 'pc'.
10040 (dwarf2_compile_cfa_to_ax): New function.
10041 (dwarf2_frame_cache): Update.
10042
10043 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10044
10045 * ada-lang.c (ada_type_of_array): Fix the size of the array
10046 in the case of an unconstrained packed array.
10047
10048 2011-02-17 Yao Qi <yao@codesourcery.com>
10049
10050 * common/Makefile.in: Add more targets for make.
10051
10052 2011-02-16 Tom Tromey <tromey@redhat.com>
10053
10054 * dwarf2loc.c (unimplemented): Fix typo.
10055
10056 2011-02-16 Tom Tromey <tromey@redhat.com>
10057
10058 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10059 (compile_dwarf_to_ax) <default>: Use unimplemented.
10060 <DW_OP_deref>: Update.
10061 (disassemble_dwarf_expression): Update.
10062 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10063 (decode_locdesc): Update.
10064 * dwarf2expr.h (dwarf_stack_op_name): Update.
10065
10066 2011-02-16 Tom Tromey <tromey@redhat.com>
10067
10068 * ax.h (struct aop_map) <name>: Now const.
10069
10070 2011-02-16 Tom Tromey <tromey@redhat.com>
10071
10072 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10073 than axs_rvalue.
10074
10075 2011-02-16 Yao Qi <yao@codesourcery.com>
10076
10077 * infrun.c (get_displaced_step_closure_by_addr): New.
10078 * inferior.h: Declare it.
10079 * arm-tdep.c: (arm_pc_is_thumb): Call
10080 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10081 returns non-NULL.
10082
10083 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10084 Jan Kratochvil <jan.kratochvil@redhat.com>
10085
10086 gdb/
10087 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10088
10089 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10090 Jan Kratochvil <jan.kratochvil@redhat.com>
10091
10092 * value.c (value_contents_copy_raw): Extend describing comment.
10093 Assert that the destination contents we're overwriting are wholly
10094 available.
10095 (value_contents_copy): Extend describing comment.
10096
10097 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10098 Jan Kratochvil <jan.kratochvil@redhat.com>
10099
10100 * value.c (value_available_contents_eq): Remove redundant local
10101 variables. Fix available contents comparision.
10102 * value.h (value_available_contents_eq): Extend describing
10103 comment.
10104
10105 2011-02-16 Yao Qi <yao@codesourcery.com>
10106
10107 * thread.c (info_threads_command): Add missing i18n markup and remove
10108 trailing newline.
10109
10110 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10111
10112 * breakpoint.c (longjmp_names): New variable.
10113 (struct breakpoint_objfile_data): New type.
10114 (breakpoint_objfile_key): New variable.
10115 (msym_not_found): New variable.
10116 (msym_not_found_p): New predicate.
10117 (get_breakpoint_objfile_data): New function.
10118 (create_overlay_event_breakpoint): Check per-objfile cache for
10119 symbols first.
10120 (create_longjmp_master_breakpoint): Likewise.
10121 (create_std_terminate_master_breakpoint): Likewise.
10122 (create_exception_master_breakpoint): Likewise.
10123 (_initialize_breakpoint): Register per-objfile data key.
10124
10125 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10126
10127 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10128 parameter value.
10129 (create_longjmp_master_breakpoint): Loop over longjmp names.
10130 (create_std_terminate_master_breakpoint): Const-propagate parameter
10131 value.
10132 (update_breakpoints_after_exec): Adjust.
10133 (breakpoint_re_set): Adjust.
10134
10135 2011-02-15 Michael Snyder <msnyder@vmware.com>
10136
10137 * thread.c (info_threads_command): Process arg as thread id,
10138 or list of thread ids.
10139 (thread_find_command): New command.
10140 (_initialize_thread): Document argument for info threads.
10141 Document 'thread find' command.
10142 * NEWS: Document new command "thread find".
10143
10144 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10145
10146 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10147 * aclocal.m4: Regenerated with aclocal-1.11.1.
10148 * common/configure: Regenerate with autoconf-2.64.
10149
10150 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10151
10152 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10153 bool data type to a size of one byte.
10154
10155 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10156 Jan Kratochvil <jan.kratochvil@redhat.com>
10157
10158 * target.c (memory_xfer_live_readonly_partial): Document where to
10159 look for interface description.
10160
10161 2011-02-15 Yao Qi <yao@codesourcery.com>
10162
10163 PR tdep/12352
10164 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10165 order to store PC value on stack instead of text section.
10166
10167 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10168
10169 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10170 the EFP register set size.
10171 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10172 data from the VMX register.
10173 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10174 and write data from/to the VMX register.
10175
10176 2011-02-14 Michael Snyder <msnyder@vmware.com>
10177
10178 * command.h (enum command_class): New class 'no_set_class', for
10179 "show" commands without a corresponding "set" command.
10180 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10181 * copying.c (_initialize_copying): Ditto for "show copying" and
10182 "show warranty".
10183 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10184 "show version".
10185 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10186 which there is no corresponding "set" command (eg. "show copying").
10187
10188 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10189 Jan Kratochvil <jan.kratochvil@redhat.com>
10190
10191 * exec.c (section_table_available_memory): Change `len' parameter
10192 type to ULONGEST.
10193 * exec.h (section_table_available_memory): Ditto.
10194 * value.h (read_value_memory): Rename the `offset' parameter to
10195 `embedded_offset'.
10196
10197 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10198 Jan Kratochvil <jan.kratochvil@redhat.com>
10199
10200 * memrange.c (compare_mem_ranges): Mention sort order in
10201 describing comment.
10202 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10203 * tracepoint.c (traceframe_available_memory): Extend comment to
10204 mention what happens to RESULT when the target does not support
10205 the query.
10206
10207 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10208 Jan Kratochvil <jan.kratochvil@redhat.com>
10209
10210 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10211 range.
10212
10213 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10214
10215 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10216 No longer handle NULL values.
10217
10218 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10219
10220 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10221 * value.c: Include "exceptions.h".
10222 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10223 generic error.
10224 * cp-abi.c: Include gdb_assert.h.
10225 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10226 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10227 errors.
10228 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10229 parameters. No longer returns -1 on error.
10230 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10231 `val' parameters.
10232 * cp-valprint.c: Include exceptions.h.
10233 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10234 the baseclass_offset. Handle unavailable base classes. Use
10235 val_print_invalid_address.
10236 * p-valprint.c: Include exceptions.h.
10237 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10238 when fetching the baseclass_offset. No longer expect
10239 baseclass_offset returning -1. Handle unavailable base classes.
10240 Use val_print_invalid_address.
10241 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10242 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10243 `embedded_offset' and `val' parameters. Adjust.
10244 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10245 parameter, and change its type to gdb_byte pointer. Add
10246 `embedded_offset' and `val' parameters. Adjust. No longer expect
10247 baseclass_offset returning -1.
10248 (value_dynamic_cast): Use value_contents_for_printing rather than
10249 value_contents. Adjust.
10250 (search_struct_field): No longer expect baseclass_offset returning
10251 -1.
10252 (search_struct_method): If reading memory from the target is
10253 necessary, wrap it in a new value to pass to baseclass_offset. No
10254 longer expect baseclass_offset returning -1.
10255 (find_method_list): No longer expect baseclass_offset returning
10256 -1. Use value_contents_for_printing rather than value_contents.
10257 * valprint.c (val_print_invalid_address): New function.
10258 * valprint.h (val_print_invalid_address): Declare.
10259 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10260 and `val' parameters. No longer expect baseclass_offset returning
10261 -1. Adjust.
10262 * gnu-v2-abi.c: Include "exceptions.h".
10263 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10264 parameters. Handle unavailable memory. Recurse through
10265 gnuv2_baseclass_offset directly, rather than through
10266 baseclass_offset. No longer returns -1 on not found, instead
10267 throw an error.
10268 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10269 `val' parameters. Adjust.
10270
10271 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10272
10273 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10274 almost but not quite adjacent.
10275
10276 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10277
10278 * value.h (value_entirely_available): Declare.
10279 * value.c (value_entirely_available): New function.
10280 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10281 real type if the pointer is unavailable.
10282
10283 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10284
10285 * valops.c (value_repeat): Use read_value_memory instead of
10286 read_memory.
10287
10288 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10289
10290 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10291 * value.c (value_contents_copy_raw, value_contents_copy): New
10292 functions.
10293 (value_primitive_field): Use value_contents_copy_raw instead of
10294 memcpy.
10295 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10296 memcpy.
10297 (value_array, value_slice): Ditto.
10298 * valarith.c (value_subscripted_rvalue): Use
10299 value_contents_copy_raw instead of memcpy.
10300
10301 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10302
10303 <unavailable> references.
10304
10305 * valops.c (get_value_at): Use value_from_contents_and_address,
10306 avoiding read_memory.
10307
10308 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10309
10310 * c-valprint.c (c_val_print): Print a string with unavailable
10311 contents as an array.
10312
10313 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10314
10315 * value.h (unpack_bits_as_long): Delete declaration.
10316 (unpack_value_bits_as_long): Declare.
10317 (unpack_value_field_as_long): Declare.
10318 (value_field_bitfield): Declare.
10319 * value.c (unpack_bits_as_long): Rename to...
10320 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10321 value parameters. Return the extracted result in a new output
10322 parameter. If the value contents are unavailable, return false,
10323 otherwise return true.
10324 (unpack_value_bits_as_long): New.
10325 (unpack_field_as_long): Rename to...
10326 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10327 Add embedded_offset and value parameters. Return the extracted
10328 result in a new output parameter. If the value contents are
10329 unavailable, return false, otherwise return true.
10330 (unpack_value_field_as_long): New.
10331 (unpack_field_as_long_1): New.
10332 (unpack_field_as_long): Reimplement as wrapper around
10333 unpack_value_field_as_long_1.
10334 (value_field_bitfield): New function.
10335 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10336 unpack_value_bits_as_long. Mark the value as unavailable, if it
10337 is unavailable.
10338 * jv-valprint.c (java_print_value_fields): Use
10339 value_field_bitfield.
10340 * p-valprint.c (pascal_object_print_value_fields): Use
10341 value_field_bitfield.
10342 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10343
10344 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10345
10346 * value.c (get_internalvar_integer): Also return the int value of
10347 TYPE_CODE_INT INTERNALVAR_VALUE values.
10348 (set_internalvar): Don't special case TYPE_CODE_INT.
10349
10350 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10351
10352 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10353 INTERNALVAR_POINTER.
10354 <pointer>: Delete.
10355 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10356 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10357 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10358
10359 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10360
10361 * value.h (value_available_contents_eq): Declare.
10362 * value.c (find_first_range_overlap): New function.
10363 (value_available_contents_eq): New function.
10364 * valprint.c (val_print_array_elements): Use
10365 value_available_contents_eq.
10366 * ada-valprint.c (val_print_packed_array_elements): Use
10367 value_available_contents_eq.
10368 * jv-valprint.c (java_value_print): Use
10369 value_available_contents_eq.
10370
10371 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10372
10373 * target.c (target_read_live_memory): New function.
10374 (memory_xfer_live_readonly_partial): New.
10375 (memory_xfer_partial): If reading from a traceframe, fallback to
10376 reading unavailable read-only memory from read-only regions of
10377 live target memory.
10378 * tracepoint.c (disconnect_tracing): Adjust.
10379 (set_current_traceframe): New, factored out from
10380 set_traceframe_number.
10381 (set_traceframe_number): Reimplement to only change the traceframe
10382 number on the GDB side.
10383 (do_restore_current_traceframe_cleanup): Adjust.
10384 (make_cleanup_restore_traceframe_number): New.
10385 (cur_traceframe_number): New global.
10386 (tfile_open): Set cur_traceframe_number to no traceframe.
10387 (set_tfile_traceframe): New function.
10388 (tfile_trace_find): If looking up a traceframe using any method
10389 other than by number, make sure the current tfile traceframe
10390 matches gdb's current traceframe. Update the current tfile
10391 traceframe if the lookup succeeded.
10392 (tfile_fetch_registers, tfile_xfer_partial)
10393 (tfile_get_trace_state_variable_value): Make sure the remote
10394 traceframe matches gdb's current traceframe.
10395 * remote.c (remote_traceframe_number): New global.
10396 (remote_open_1): Set it to -1.
10397 (set_remote_traceframe): New function.
10398 (remote_fetch_registers, remote_store_registers)
10399 (remote_xfer_memory, remote_xfer_partial)
10400 (remote_get_trace_state_variable_value): Make sure the remote
10401 traceframe matches gdb's current traceframe.
10402 (remote_trace_find): If looking up a traceframe using any method
10403 other than by number, make sure the current remote traceframe
10404 matches gdb's current traceframe. Update the current remote
10405 traceframe if the lookup succeeded.
10406 * infrun.c (fetch_inferior_event): Adjust.
10407 * tracepoint.h (set_current_traceframe): Declare.
10408 (get_traceframe_number, set_traceframe_number): Add describing
10409 comments.
10410
10411 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10412
10413 Mark pieces of values as unavailable if the corresponding memory
10414 is unavailable.
10415
10416 * valops.c: Include tracepoint.h.
10417 (value_fetch_lazy): Use read_value_memory.
10418 (read_value_memory): New.
10419 * value.h (read_value_memory): Declare.
10420 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10421 * exec.c (section_table_available_memory): New function.
10422 * exec.h (section_table_available_memory): Declare.
10423
10424 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10425
10426 * Makefile.in (SFILES): Add memrange.c.
10427 (HFILES_NO_SRCDIR): Add memrange.h.
10428 (COMMON_OBS): Add memrange.o.
10429 * memrange.c: New file.
10430 * memrange.h: New file.
10431 * tracepoint.c: Include memrange.h.
10432 (struct mem_range): Delete.
10433 (mem_range_s): Delete.
10434 (traceframe_available_memory): New function.
10435 * tracepoint.h (traceframe_available_memory): Declare.
10436
10437 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10438
10439 * target.h (struct traceframe_info): Forward declare.
10440 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10441 (struct target_ops) <to_traceframe_info>: New field.
10442 (target_traceframe_info): New.
10443 * target.c (update_current_target): Inherit and default
10444 to_traceframe_info.
10445 * remote.c (PACKET_qXfer_traceframe_info): New.
10446 (remote_protocol_features): Register qXfer:traceframe-info:read.
10447 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10448 (remote_traceframe_info): New.
10449 (init_remote_ops): Install it.
10450 (_initialize_remote): Install "set/show remote traceframe-info"
10451 commands.
10452 * tracepoint.h (parse_traceframe_info): Declare.
10453 * tracepoint.c (struct mem_range): New.
10454 (mem_range_s): New typedef.
10455 (struct traceframe_info): New.
10456 (traceframe_info): New global.
10457 (free_traceframe_info): New function.
10458 (clear_traceframe_info): New function.
10459 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10460 info.
10461 (build_traceframe_info): New function.
10462 (tfile_traceframe_info): New function.
10463 (init_tfile_ops): Install tfile_traceframe_info.
10464 (traceframe_info_start_memory, free_result): New functions.
10465 (memory_attributes, traceframe_info_elements): New globals.
10466 (parse_traceframe_info, get_traceframe_info): New functions.
10467 * features/traceframe-info.dtd: New file.
10468 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10469
10470 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10471
10472 Base support for <unavailable> value contents.
10473
10474 * value.h (value_bytes_available): Declare.
10475 (mark_value_bytes_unavailable): Declare.
10476 * value.c (struct range): New struct.
10477 (range_s): New typedef.
10478 (ranges_overlap): New function.
10479 (range_lessthan): New function.
10480 (ranges_contain_p): New function.
10481 (struct value) <unavailable>: New field.
10482 (value_bytes_available): New function.
10483 (mark_value_bytes_unavailable): New function.
10484 (require_not_optimized_out): Constify parameter.
10485 (require_available): New function.
10486 (value_contents_all, value_contents): Require all bytes be
10487 available.
10488 (value_free): Free `unavailable'.
10489 (value_copy): Copy `unavailable'.
10490 * valprint.h (val_print_unavailable): Declare.
10491 * valprint.c (valprint_check_validity): Rename `offset' parameter
10492 to `embedded_offset'. If printing a scalar, check whether the
10493 value chunk is available.
10494 (val_print_unavailable): New.
10495 (val_print_scalar_formatted): Check whether the value is
10496 available.
10497 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10498 pretty-printing unavailable values.
10499
10500 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10501
10502 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10503 * c-typeprint.c (c_type_print_args): Update the function comment. New
10504 variable param_type, initialize it. Remove const/volatile qualifiers
10505 for language_cplus and !show_artificial. Use param_type.
10506
10507 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10508
10509 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10510 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10511 * symtab.h (struct symtab) <next>: Comment extension.
10512
10513 2011-02-12 Yao Qi <yao@codesourcery.com>
10514
10515 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10516
10517 2011-02-11 Yao Qi <yao@codesourcery.com>
10518
10519 * common/Makefile.in: Add copyright header.
10520
10521 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10522
10523 * infrun.c (proceed): Move switching out and in of tfind mode from
10524 here ...
10525 (fetch_inferior_event): ... to here.
10526
10527 2011-02-11 Yao Qi <yao@codesourcery.com>
10528
10529 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10530 libcommon.a.
10531 * configure.ac: Add common to sub dir.
10532 * configure: Regenerate.
10533
10534 2011-02-11 Yao Qi <yao@codesourcery.com>
10535
10536 Build libcommon.a.
10537
10538 * common/Makefile.in: New.
10539 * common/configure.ac: New.
10540 * common/aclocal.m4: New.
10541 * common/configure: Generate.
10542
10543 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10544
10545 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10546 side of the parenthesis.
10547
10548 Merge from GCC:
10549 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10550 * vec.h (VEC_block_remove): Fix comment.
10551
10552 2011-02-08 Michael Snyder <msnyder@vmware.com>
10553
10554 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10555
10556 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10557
10558 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10559 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10560 psubd and paddd.
10561
10562 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10563
10564 PR 12361.
10565 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10566 phsubsw.
10567 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10568 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10569
10570 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10571
10572 * dwarf2read.c (read_subroutine_type): Set special calling
10573 convention flag for functions compiled by IBM XL C for OpenCL.
10574 * ppc-sysv-tdep.c: Include "dwarf2.h"
10575 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10576 calling convention.
10577 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10578 IBM OpenCL vector types calling convention.
10579 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10580 (ppc_sysv_abi_broken_return_value): Likewise.
10581 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10582 types calling convention.
10583 (ppc64_sysv_abi_return_value): Likewise.
10584 * spu-tdep.c: Include "dwarf2.h"
10585 (spu_return_value): Implement IBM OpenCL vector types calling
10586 convention.
10587
10588 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10589
10590 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10591 correct ABI for AltiVec vector arguments.
10592
10593 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10594
10595 * valprint.c (val_print): Extend comment.
10596 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10597 interface explanation to val_print.
10598 (ada_val_print_array): Adjust comment to current interface.
10599 (print_field_values): Adjust comment to current interface.
10600 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10601 explanation to val_print.
10602 * f-valprint.c (f_val_print): Ditto.
10603 * jv-valprint.c (java_val_print): Ditto.
10604 * m2-valprint.c (m2_val_print): Ditto.
10605 * p-valprint.c (pascal_val_print): Ditto.
10606
10607 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10608
10609 * breakpoint.c (parse_breakpoint_sals): Fix description.
10610
10611 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10612 Oguz Kayral <oguzkayral@gmail.com>
10613
10614 * python/py-inferior.c (python_on_normal_stop): New function.
10615 (python_on_resume): New function.
10616 (python_inferior_exit): New function.
10617 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10618 inferior_exit observers.
10619 * python/py-evtregistry.c: New file.
10620 * python/py-threadevent.c : New file.
10621 * python/py-event.c: New file.
10622 * python/py-evts.c: New file.
10623 * python/py-continueevent.c: New file.
10624 * python/py-bpevent.c: New file.
10625 * python/py-signalevent.c: New file.
10626 * python/py-exetiedevent.c: New file.
10627 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10628 Move struct breakpoint_object from here...
10629 * python/python-internal.h: ... to here.
10630 * python/py-event.h: New file.
10631 * python/py-events.h: New file.
10632 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10633 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10634 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10635 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10636 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10637 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10638 Add build rules for all the above.
10639
10640 2011-02-04 Tom Tromey <tromey@redhat.com>
10641
10642 * dwarf2read.c (dwarf2_section_empty_p): New function.
10643 (dwarf2_read_section): Use dwarf2_section_empty_p.
10644 (dwarf2_section_size): New function.
10645 (dwarf2_get_section_info): Unconditionally read section.
10646 (dwarf2_read_index): Use dwarf2_section_empty_p.
10647 (partial_read_comp_unit_head): Use dwarf2_section_size.
10648 (dwarf2_symbol_mark_computed): Likewise.
10649
10650 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10651
10652 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10653
10654 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10655
10656 * mips-linux-tdep.c: Include xml-syscall.h.
10657 (mips_linux_get_syscall_number): New function.
10658 (mips_linux_init_abi): Add calls to
10659 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10660 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10661 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10662 * syscalls/mips-n32-linux.xml: New file.
10663 * syscalls/mips-n64-linux.xml: New file.
10664 * syscalls/mips-o32-linux.xml: New file.
10665
10666 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10667
10668 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10669 Complain about inverted range entries.
10670 (dwarf2_record_block_ranges): Likewise.
10671
10672 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10673
10674 Fix some typos.
10675 * breakpoint.c (update_watchpoint): Fix name of the
10676 update_global_location_list function.
10677 (print_one_breakpoint): Fix typo.
10678 (_initialize_breakpoint): Remove extra space in hbreak help
10679 string.
10680 * breakpoint.h (struct bp_location) <length>: Fix field
10681 description.
10682
10683 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10684
10685 * regcache.c (registers_changed_ptid): Don't explictly always
10686 clear `current_regcache'. Only clear current_thread_ptid and
10687 current_thread_arch when PTID matches. Only reinit the frame
10688 cache if PTID matches the current inferior_ptid. Move alloca(0)
10689 call to ...
10690 (registers_changed): ... here.
10691
10692 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10693
10694 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10695 starts with __stack_chk_guard as stack guard symbol.
10696
10697 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10698
10699 * disasm.c (compare_lines): Handle the end of sequence markers
10700 within the line table to better support disassembling over
10701 compilation unit boundaries.
10702
10703 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10704
10705 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10706 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10707 implementation even if no symbols are available.
10708 (thumb_analyze_prologue): Update call to skip_prologue_function.
10709 (arm_analyze_prologue): Likewise.
10710
10711 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10712
10713 * arm-tdep.c: Include "observer.h".
10714 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10715 (arm_exidx_data_key): New static variable.
10716 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10717 (struct arm_exidx_data): Likewise.
10718 (arm_exidx_data_free): New function.
10719 (arm_compare_exidx_entries): Likewise.
10720 (arm_obj_section_from_vma): Likewise.
10721 (arm_exidx_new_objfile): Likewise.
10722 (arm_find_exidx_entry): Likewise.
10723 (arm_exidx_fill_cache): Likewise.
10724 (arm_exidx_unwind_sniffer): Likewise.
10725 (arm_exidx_unwind): New global variable.
10726 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10727 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10728 observer. Register arm_exidx_data_key as objfile data.
10729
10730 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10731
10732 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10733 due to accessing uninitialized variable. Fix indentation.
10734
10735 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10736
10737 * c-valprint.c (c_value_print): When doing virtual base pointer
10738 adjustment, create a new value with adjusted contents rather than
10739 changing the contents of the value being printed (and getting it
10740 wrong).
10741
10742 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10743
10744 * xml-support.c (xml_find_attribute): New.
10745 (xinclude_start_include): Use it.
10746 * xml-support.h (xml_find_attribute): Declare.
10747 * memory-map.c (memory_map_start_memory)
10748 (memory_map_start_property): Use xml_find_attribute.
10749 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10750 xml_find_attribute.
10751 * remote.c (start_thread): Use xml_find_attribute.
10752 * solib-target.c (library_list_start_segment)
10753 (library_list_start_section, library_list_start_library)
10754 (library_list_start_list): Use xml_find_attribute.
10755 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10756 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10757 (tdesc_start_field): Use xml_find_attribute.
10758
10759 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10760
10761 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10762 (BUILD_OCL_VTYPES): Update.
10763
10764 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10765
10766 * configure.ac: Work around non-GNU sed limitation when computing
10767 python version number.
10768 * configure: Regenerate.
10769
10770 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10771
10772 Fix debug printing of TYPE_INSTANCE.
10773 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10774 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10775
10776 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10777
10778 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10779 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10780 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10781 * ada-operator.inc: Rename the file to ...
10782 * ada-operator.def: ... here, wrap all the entries by macro OP.
10783 * expprint.c (op_name_standard): Remove all the entries. Include
10784 "std-operator.def" instead.
10785 * expression.h (enum exp_opcode): Include "std-operator.def" and
10786 "ada-operator.def". Move all the entries ...
10787 * std-operator.def: ... here, wrap all the entries by macro OP.
10788
10789 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10790
10791 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10792 * breakpoint.c (remove_jit_event_breakpoints): New function.
10793 * jit.c (jit_descriptor_addr): Delete.
10794 (registering_code): Delete.
10795 (clear_int): Delete.
10796 (jit_inferior_data): New variable.
10797 (struct jit_inferior_data): New type.
10798 (get_jit_inferior_data): New function.
10799 (jit_inferior_data_cleanup): New function.
10800 (jit_read_descriptor): Adjust.
10801 (jit_register_code): Adjust.
10802 (jit_breakpoint_re_set_internal): New function; move code here ...
10803 (jit_inferior_init): ... from here.
10804 (jit_breakpoint_re_set): Adjust.
10805 (jit_reset_inferior_data_and_breakpoints): New function.
10806 (jit_inferior_created_observer): Adjust.
10807 (jit_inferior_exit_hook): Adjust.
10808 (jit_executable_changed_observer): New function.
10809 (jit_event_handler): Adjust.
10810 (_initialize_jit): Adjust.
10811
10812 2011-01-31 Michael Snyder <msnyder@vmware.com>
10813
10814 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10815 line.
10816
10817 2011-01-31 Tom Tromey <tromey@redhat.com>
10818
10819 PR python/12216:
10820 * python/python.c (execute_gdb_command): Call
10821 prevent_dont_repeat.
10822 * top.c (suppress_dont_repeat): New global.
10823 (dont_repeat): Use it.
10824 (prevent_dont_repeat): New function.
10825 * command.h (prevent_dont_repeat): Declare.
10826
10827 2011-01-31 Tom Tromey <tromey@redhat.com>
10828
10829 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10830 * python/py-breakpoint.c (bppy_set_silent): Use
10831 breakpoint_set_silent.
10832 (bppy_set_thread): Use breakpoint_set_thread.
10833 (bppy_set_task): Use breakpoint_set_task.
10834 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10835 (breakpoint_set_task): Declare.
10836 (make_breakpoint_silent): Remove.
10837 * breakpoint.c (breakpoint_set_silent): New function.
10838 (breakpoint_set_thread): Likewise.
10839 (breakpoint_set_task): Likewise.
10840 (make_breakpoint_silent): Remove.
10841
10842 2011-01-31 Tom Tromey <tromey@redhat.com>
10843
10844 * breakpoint.h (user_breakpoint_p): Declare.
10845 * breakpoint.c (user_breakpoint_p): New function.
10846 (breakpoint_1): Use it.
10847 (save_breakpoints): Likewise.
10848
10849 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10850
10851 * configure.ac: Add handling of Python distribution on Windows.
10852 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10853 sysconfig variables are not defined, then do not use them.
10854 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10855 instead. On Windows, return all paths using forward-slashes
10856 rather than backslashes.
10857
10858 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10859
10860 * configure.ac: Remove fallback behavior for building
10861 against Python. Remove tweaking of Python include path.
10862 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10863 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10864 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10865 Always restore CPPFLAGS and LIBS after linking test.
10866 * configure: Regenerated.
10867 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10868 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10869 * python/python-internal.h: Adjust includes of Python .h files.
10870
10871 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10872
10873 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10874 in error message.
10875
10876 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10877
10878 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10879 value test.
10880
10881 2011-01-31 Yao Qi <yao@codesourcery.com>
10882
10883 * arm-linux-nat.c: Update calls to regcache_register_status
10884 instead of regcache_valid_p.
10885 * aix-thread.c: Likewise.
10886 * i386gnu-nat.c: Likewise.
10887
10888 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10889
10890 Fix crash.
10891 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10892 touching TYPE_FIELD_ARTIFICIAL.
10893
10894 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10895
10896 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10897 Committers.
10898
10899 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10900
10901 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10902 selected, don't try iterating over the traceframe's blocks.
10903 (tfile_has_stack): If there's no traceframe selected, then there's
10904 no stack.
10905 (tfile_has_registers): If there's no traceframe selected, then
10906 there's no registers.
10907
10908 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10909
10910 * target.c (memory_xfer_partial): No need to restore shadows if we
10911 haven't read anything.
10912
10913 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10914
10915 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10916 and val_print_scalar_formatted.
10917
10918 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10919
10920 * tracepoint.c (tfile_read): New.
10921 (tfile_open): Use it.
10922 (tfile_get_traceframe_address): Use it.
10923 (tfile_trace_find): Use it.
10924 (walk_blocks_callback_func): New typedef.
10925 (match_blocktype): New function.
10926 (traceframe_walk_blocks): New function.
10927 (traceframe_find_block_type): New function.
10928 (tfile_fetch_registers, tfile_xfer_partial)
10929 (tfile_get_trace_state_variable_value): Use
10930 traceframe_find_block_type and tfile_read.
10931
10932 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10933
10934 * remote-mips.c: Add internationalization mark ups. Remove
10935 trailing \n from already marked up strings.
10936
10937 2011-01-26 Tom Tromey <tromey@redhat.com>
10938
10939 * python/py-prettyprint.c (print_string_repr): Clear
10940 'addressprint' option when calling val_print_string.
10941 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10942 option when calling val_print_string.
10943
10944 2011-01-26 Tom Tromey <tromey@redhat.com>
10945
10946 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10947 GDB_PY_LL_ARG.
10948 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10949 macros.
10950 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10951 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10952 (gdb_py_long_as_ulongest): New defines.
10953 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10954 (gdb_py_int_as_long): Declare.
10955 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10956 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10957 (valpy_long): Add comment.
10958 * python/py-utils.c (get_addr_from_python): Use
10959 gdb_py_long_as_ulongest. Handle overflow properly.
10960 (gdb_py_object_from_longest): New function.
10961 (gdb_py_object_from_ulongest): Likewise.
10962 (gdb_py_int_as_long): Likewise.
10963 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10964 * python/py-symtab.c (salpy_get_pc): Use
10965 gdb_py_long_from_ulongest.
10966 (salpy_get_line): Use PyInt_FromLong.
10967 * python/py-param.c (set_parameter_value): Use
10968 gdb_py_int_as_long.
10969 * python/py-lazy-string.c (stpy_get_address): Use
10970 gdb_py_long_from_ulongest.
10971 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10972 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10973 * python/py-breakpoint.c (bppy_set_thread): Use
10974 gdb_py_int_as_long.
10975 (bppy_set_task): Likewise.
10976 (bppy_set_ignore_count): Likewise.
10977 (bppy_set_hit_count): Likewise.
10978 * python/py-block.c (blpy_get_start): Use
10979 gdb_py_object_from_ulongest.
10980 (blpy_get_end): Likewise.
10981 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10982
10983 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10984
10985 PR/symtab 11766:
10986 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10987 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10988 equality test for objfile, initialize addr_low if needed.
10989
10990 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10991
10992 * tui/tui-regs.c (tui_register_format): Remove dead code.
10993
10994 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10995
10996 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10997 instead of print_scalar_formatted.
10998 (print_scalar_formatted): Don't handle 's' format strings here,
10999 and add an assertion that we never see such format here.
11000 * valprint.h (val_print_scalar_formatted): Declare.
11001 * valprint.c (val_print_scalar_formatted): New.
11002 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11003 instead of print_scalar_formatted.
11004 * jv-valprint.c (java_val_print): Ditto.
11005 * p-valprint.c (pascal_val_print): Ditto.
11006 * ada-valprint.c (ada_val_print_1): Ditto.
11007 * f-valprint.c (f_val_print): Ditto.
11008 * infcmd.c (registers_info): Ditto.
11009 * m2-valprint.c (m2_val_print): Ditto.
11010
11011 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11012
11013 * m2-valprint.c (print_unbounded_array): Pass
11014 value_contents_for_printing rather than value_contents, to
11015 m2_print_array_contents. Also pass in the value.
11016
11017 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11018
11019 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11020 (save_gdb_index_command): Switch to .gdb_index version 4.
11021
11022 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11023
11024 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11025 than frame_register, and always pass a valid value to val_print.
11026
11027 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11028
11029 Centralize printing "<optimized out>".
11030
11031 * valprint.h (val_print_optimized_out): Declare.
11032 * cp-valprint.c (cp_print_value_fields): Use
11033 val_print_optimized_out.
11034 * jv-valprint.c (java_print_value_fields): Ditto.
11035 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11036 * printcmd.c (print_formatted): Ditto.
11037 * valprint.c (valprint_check_validity): Ditto.
11038 (value_check_printable): Ditto.
11039 (val_print_optimized_out): New.
11040
11041 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11042
11043 * infcmd.c (default_print_registers_info): Allocate values so to
11044 never pass a NULL value to val_print.
11045
11046 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11047
11048 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11049 boolean. Make sure to always pass a value that matches the
11050 contents buffer to callees. Preserve `address' for following
11051 iterations.
11052 * value.c (value_contents_for_printing_const): New.
11053 (value_address): Constify value argument.
11054 * value.h (value_contents_for_printing_const): Declare.
11055 (value_address): Constify value argument.
11056
11057 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11058
11059 * regcache.c (struct regcache_descr): Rename
11060 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11061 and sizeof_cooked_register_valid_p to
11062 sizeof_cooked_register_status.
11063 (init_regcache_descr): Adjust.
11064 (struct regcache): Rename register_valid_p field to
11065 register_status.
11066 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11067 (do_cooked_read): Adjust.
11068 (regcache_valid_p): Rename to ...
11069 (regcache_register_status): ... this. Adjust.
11070 (regcache_invalidate): Adjust.
11071 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11072 Adjust.
11073 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11074 as unavailable, not valid.
11075 (regcache_dump): Adjust.
11076 * regcache.h (enum register_status): New.
11077 (regcache_register_status): Declare.
11078 (regcache_invalidate): Delete declaration.
11079 * corelow.c (get_core_registers): Adjust.
11080 * tracepoint.c (tfile_fetch_registers): Adjust.
11081 * trad-frame.c (REG_VALUE): Rename to ...
11082 (TF_REG_VALUE): ... this.
11083 (REG_UNKNOWN): Rename to ...
11084 (TF_REG_UNKNOWN): ... this.
11085 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11086 * mi/mi-main.c (register_changed_p): Adjust.
11087
11088 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11089
11090 * regcache.c (struct regcache_descr): Remove outdated comment.
11091 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11092 overallocate hack.
11093 (regcache_xmalloc): Rename to ...
11094 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11095 Allocate the regcache type accordingly.
11096 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11097 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11098 cooked registers, not raw.
11099 (regcache_dup_no_passthrough): Delete.
11100 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11101 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11102 mention obsolete write_register_bytes.
11103 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11104
11105 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11106
11107 Stop remote_read_bytes from handling partial reads itself.
11108
11109 * remote-fileio.c: Include target.h.
11110 (remote_fileio_write_bytes): Delete.
11111 (remote_fileio_func_open, remote_fileio_func_write)
11112 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11113 target_read_memory.
11114 (remote_fileio_func_stat): Use target_read_memory and
11115 target_write_memory.
11116 (remote_fileio_func_gettimeofday): Use target_write_memory.
11117 (remote_fileio_func_system): Use target_read_memory.
11118 * remote.c (remote_write_bytes): Make it static.
11119 (remote_read_bytes): Don't handle partial reads here.
11120 * remote.h (remote_read_bytes): Delete declaration.
11121
11122 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11123
11124 Simplify XML parsing a bit.
11125
11126 * xml-support.h (gdb_xml_parse_quick): Declare.
11127 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11128 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11129 parameter.
11130 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11131 gdb_xml_create_parser_and_cleanup_1.
11132 (gdb_xml_parse_quick): New.
11133 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11134 * osdata.c (osdata_parse): Ditto.
11135 * remote.c (remote_threads_info): Ditto.
11136 * solib-target.c (solib_target_parse_libraries): Ditto.
11137 * xml-syscall.c (syscall_parse_xml): Ditto.
11138 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11139
11140 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11141
11142 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11143 with remote-mips.o added to gdb_target_obs.
11144 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11145
11146 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11147
11148 * ada-valprint.c (val_print_packed_array_elements): Pass the
11149 correct struct value to val_print.
11150 (ada_val_print_1): Ditto.
11151
11152 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11153
11154 Don't lose embedded_offset in printing routines throughout.
11155
11156 * valprint.h (val_print_array_elements): Change prototype.
11157 * valprint.c (val_print_array_elements): Add `embedded_offset'
11158 parameter, and adjust to pass it down to val_print, while passing
11159 `valaddr' or `address' unmodified. Take embedded_offset into
11160 account when checking repetitions.
11161 * c-valprint.c (c_val_print): Pass embedded_offset to
11162 val_print_array_elements instead of adjusting `valaddr' and
11163 `address'.
11164 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11165 embedded_offset to val_print_array_elements instead of adjusting
11166 `valaddr'.
11167 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11168 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11169 val_print_array_elements and pascal_object_print_value_fields
11170 instead of adjusting `valaddr'.
11171 (pascal_object_print_value_fields): Add `offset' parameter, and
11172 adjust to use it.
11173 (pascal_object_print_value): Add `offset' parameter, and adjust to
11174 use it.
11175 (pascal_object_print_static_field): Use
11176 value_contents_for_printing/value_embedded_offset, rather than
11177 value_contents.
11178 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11179 parameter, and adjust to use it. Use
11180 value_contents_for_printing/value_embedded_offset, rather than
11181 value_contents.
11182 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11183 (ada_val_print_array): Add `offset' parameter, and adjust to use
11184 it.
11185 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11186 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11187 Instead work with offsets. Use
11188 value_contents_for_printing/value_embedded_offset, rather than
11189 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11190 and use value_from_pointer to extract a target pointer, rather
11191 than value_from_longest.
11192 (print_variant_part): Add `offset' parameter. Replace
11193 `outer_valaddr' parameter by a new `outer_offset' parameter.
11194 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11195 (ada_value_print): Use
11196 value_contents_for_printing/value_embedded_offset, rather than
11197 value_contents.
11198 (print_record): Add `offset' parameter, and adjust to pass it
11199 down.
11200 (print_field_values): Add `offset' parameter. Replace
11201 `outer_valaddr' parameter by a new `outer_offset' parameter.
11202 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11203 Use value_contents_for_printing/value_embedded_offset, rather than
11204 value_contents.
11205 * d-valprint.c (dynamic_array_type): Use
11206 value_contents_for_printing/value_embedded_offset, rather than
11207 value_contents.
11208 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11209 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11210 (java_print_value_fields): Take `offset' into account. Don't
11211 re-adjust `valaddr'. Instead pass down adjusted offsets.
11212 (java_val_print): Take `embedded_offset' into account. Pass it to
11213 java_print_value_fields.
11214 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11215 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11216 down adjusted offsets.
11217 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11218 (f_val_print): Take `embedded_offset' into account.
11219
11220 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11221
11222 * inflow.c: Include "gdbcmd.h".
11223 (interactive_mode): New static global, moved here from top.c.
11224 (show_interactive_mode): New function, moved here from top.c.
11225 use gdb_has_a_terminal instead of input_from_terminal_p to
11226 determine the current mode.
11227 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11228 setting.
11229 (_initialize_inflow): Add the "set/show interactive-mode"
11230 commands. Moved here from top.c, after having adjusted slightly
11231 the help text.
11232 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11233 to inflow.c.
11234 (input_from_terminal_p): Remove handling of "interactive-mode"
11235 setting, moved to infow.c.
11236 (init_main): Remove creation of the "set/show interactive-mode"
11237 commands, moved to inflow.c.
11238
11239 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11240
11241 * NEWS: Add entry for native ia64-hpux support.
11242
11243 2011-01-19 Tom Tromey <tromey@redhat.com>
11244
11245 PR mi/8618:
11246 * thread.c (free_thread): Free 'name'.
11247 (print_thread_info): Emit thread name. Change CLI output.
11248 (thread_name_command): New function.
11249 (do_captured_thread_select): Emit newline.
11250 (_initialize_thread): Register 'thread name' command.
11251 * target.h (struct target_ops) <to_thread_name>: New field.
11252 (target_thread_name): New macro.
11253 * target.c (update_current_target): Handle to_thread_name.
11254 * python/py-infthread.c (thpy_get_name): New function.
11255 (thpy_set_name): Likewise.
11256 (thread_object_getset): Add "name".
11257 * linux-nat.c (linux_nat_thread_name): New function.
11258 (linux_nat_add_target): Set to_thread_name.
11259 * gdbthread.h (struct thread_info) <name>: New field.
11260
11261 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11262
11263 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11264 (ada_val_print_1): Likewise.
11265
11266 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11267
11268 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11269 upper limit address is not greater than the function end address
11270 when the upper limit could not be computed using the debugging
11271 info.
11272
11273 2011-01-17 Tom Tromey <tromey@redhat.com>
11274
11275 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11276 get_regcomp_error.
11277 * utils.c: Include gdb_regex.h.
11278 (do_regfree_cleanup): New function.
11279 (make_regfree_cleanup): Likewise.
11280 (get_regcomp_error): Likewise.
11281 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11282
11283 2011-01-17 Tom Tromey <tromey@redhat.com>
11284
11285 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11286 re_compile_fastmap.
11287
11288 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11289
11290 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11291 for internal variables.
11292 (last_was_structop): New static variable.
11293 (COMPLETE): New token.
11294 (field_exp): New rule to group all '.' suffix handling.
11295 Add mark_struct_expression calls when approriate to be able
11296 to correctly find fields for completion.
11297 (yylex): Adapt to handle field completion and set INTVAR when
11298 required.
11299
11300 2011-01-14 Yao Qi <yao@codesourcery.com>
11301
11302 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11303 save_reggroup, restore_reggroup and all_reggroup.
11304
11305 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11306
11307 * ada-valprint. (ada_printchar): Use the correct type length
11308 in call to ada_emit_char.
11309 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11310
11311 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11312
11313 * solib-som.h (hpux_major_release): Declare variable here.
11314 * solib-som.c: Remove <sys/utsname.h> header.
11315 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11316 (hpux_major_release): Make global, change default value to
11317 DEFAULT_HPUX_MAJOR_RELEASE.
11318 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11319 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11320 Add "solib-som.h" header.
11321 (set_hpux_major_release): New function.
11322 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11323
11324 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11325
11326 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11327
11328 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11329
11330 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11331 new-line at end of warning message.
11332 (ia64_hpux_store_register): Remove trailing new-line at end of
11333 error message.
11334 * ia64-hpux-tdep.c: Rephrase comment.
11335 * solib-ia64-hpux.c (struct dld_info): Change type of field
11336 dld_flags from "long long" to ULONGEST.
11337
11338 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11339
11340 * target.h (deprecated_child_ops): Delete declaration.
11341 * target.c (deprecated_child_ops): Delete definition.
11342
11343 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11344
11345 * Makefile.in (hpux-thread.o): Delete rule.
11346 * configure.ac: Don't check for HPUX DCE threads support.
11347 * configure, config.in: Regenerate.
11348 * hppa-hpux-nat.c (child_suppress_run): Delete.
11349 (hppa_hpux_child_can_run): Delete.
11350 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11351 * hpux-thread.c: Delete.
11352
11353 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11354
11355 * hpux-thread.c (hpux_pid_to_str): Delete.
11356
11357 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11358
11359 * ada-valprint.c (ada_emit_char): Remove strange code.
11360 Check that c is <= UCHAR_MAX before passing it to isascii.
11361 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11362
11363 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11364
11365 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11366 to the case where instream is stdin.
11367
11368 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11369
11370 * ia64-tdep.h (struct regcache): Forward declare.
11371 (struct ia64_infcall_ops): New struct type.
11372 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11373 and "infcall_ops".
11374 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11375 Renames ia64_find_global_pointer.
11376 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11377 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11378 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11379 methods.
11380 (ia64_infcall_ops): New static global constant.
11381 (ia64_gdbarch_init): Set tdep->infcall_ops.
11382 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11383 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11384 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11385 (ia64_hpux_dummy_code): New static global constant.
11386 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11387 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11388 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11389 New function.
11390 (ia64_hpux_infcall_ops): New static global constant.
11391 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11392 for inferior function calls to work properly on ia64-hpux.
11393
11394 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11395
11396 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11397 * ia64-tdep.h (struct frame_info): forward declaration.
11398 (struct gdbarch_tdep): Add field size_of_register_frame.
11399 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11400 to determine the size of the register frame.
11401 (ia64_size_of_register_frame): New function.
11402 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11403 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11404 (IA64_HPUX_UREG_REASON): New macro.
11405 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11406 New functions.
11407 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11408 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11409 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11410 objects.
11411
11412 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11413
11414 Add support for ia64-hpux.
11415 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11416 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11417
11418 * configure.host: Add handling for ia64-hpux hosts. Add associated
11419 floatformats.
11420 * configure.tgt: Add handling for ia64-hpux targets.
11421 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11422 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11423 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11424
11425 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11426
11427 [ttrace] Compute thread list immediately after attach.
11428 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11429 New subprogram.
11430 (inf_ttrace_attach): Use it.
11431
11432 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11433
11434 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11435 if we could not determine the frame's function address. Instead,
11436 use the frame's PC, and then continue.
11437
11438 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11439
11440 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11441 not already defined.
11442
11443 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11444
11445 * ia64-tdep.c (ia64_struct_type_p): New function.
11446 (ia64_extract_return_value): Handle integral values that are
11447 less than 8 bytes long.
11448 (ia64_push_dummy_call): Likewise.
11449
11450 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11451
11452 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11453 floatformat_ia64_ext.
11454 (floatformat_ia64_ext_big): New static const.
11455 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11456
11457 2011-01-12 Tom Tromey <tromey@redhat.com>
11458
11459 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11460 messages.
11461 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11462 (mi_cmd_thread_list_ids): Likewise.
11463 (mi_cmd_data_list_changed_registers): Likewise.
11464 (mi_cmd_data_list_register_values): Likewise.
11465 (mi_cmd_data_write_register_values): Likewise.
11466 (mi_cmd_data_evaluate_expression): Likewise.
11467 (mi_cmd_data_read_memory): Likewise.
11468 (mi_cmd_data_read_memory_bytes): Likewise.
11469 (mi_cmd_data_write_memory): Likewise.
11470 (mi_cmd_enable_timings): Likewise.
11471 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11472 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11473 (mi_cmd_var_delete): Likewise.
11474 (mi_cmd_var_set_format): Likewise.
11475 (mi_cmd_var_show_format): Likewise.
11476 (mi_cmd_var_info_num_children): Likewise.
11477 (mi_cmd_var_list_children): Likewise.
11478 (mi_cmd_var_info_type): Likewise.
11479 (mi_cmd_var_info_expression): Likewise.
11480 (mi_cmd_var_show_attributes): Likewise.
11481 (mi_cmd_var_assign): Likewise.
11482 (mi_cmd_var_update): Likewise.
11483 (mi_cmd_enable_pretty_printing): Likewise.
11484 (mi_cmd_var_set_update_range): Likewise.
11485 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11486 messages.
11487 (mi_cmd_target_file_put): Likewise.
11488 (mi_cmd_target_file_delete): Likewise.
11489 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11490 messages.
11491 (mi_cmd_stack_info_depth): Likewise.
11492 (mi_cmd_stack_list_locals): Likewise.
11493 (mi_cmd_stack_list_args): Likewise.
11494 (mi_cmd_stack_select_frame): Likewise.
11495 (mi_cmd_stack_select_frame): Likewise.
11496 (mi_cmd_stack_info_frame): Likewise.
11497 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11498 messages.
11499 (mi_cmd_file_list_exec_source_files): Likewise.
11500 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11501 (mi_cmd_env_cd): Likewise.
11502 (mi_cmd_env_path): Likewise.
11503 (mi_cmd_env_dir): Likewise.
11504 (mi_cmd_inferior_tty_show): Likewise.
11505 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11506 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11507 (mi_cmd_break_watch): Likewise.
11508
11509 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11510
11511 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11512 (ppc_linux_insert_hw_breakpoint): Likewise.
11513 (ppc_linux_remove_hw_breakpoint): Likewise.
11514 (ppc_linux_insert_watchpoint): Likewise.
11515
11516 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11517 Jan Kratochvil <jan.kratochvil@redhat.com>
11518
11519 PR fortran/11104 and DWARF unbound arrays detection.
11520 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11521 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11522 unspecified upper bound.
11523 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11524 variables array_size_array, tmp_type and offset_item. New variable
11525 array. Remove call to f77_get_upperbound. New variables array_type
11526 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11527 the final call to deprecated_set_value_type.
11528
11529 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11530
11531 Make value allocations more lazy.
11532 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11533 instead of allocate_value and set_value_lazy when possible.
11534 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11535 instead of allocate_value and set_value_lazy.
11536 * findvar.c (value_of_register_lazy): Likewise.
11537 (read_var_value): Remove V preallocation, call just check_typedef in
11538 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11539 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11540 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11541 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11542 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11543 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11544 the end, remove set_value_lazy there.
11545 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11546 instead of allocate_value and set_value_lazy when possible.
11547 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11548 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11549 of allocate_value and set_value_lazy.
11550 (value_from_contents_and_address): Use allocate_value_lazy instead of
11551 allocate_value and set_value_lazy when possible.
11552
11553 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11554
11555 * disasm.c (dump_insns): Support dumping opcodes for MI.
11556 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11557 dumping of instruction opcodes.
11558
11559 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11560
11561 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11562 appropiately.
11563
11564 2011-01-11 Tom Tromey <tromey@redhat.com>
11565
11566 * thread.c (do_captured_thread_select): Emit newline before
11567 printing frame.
11568
11569 2011-01-11 Michael Snyder <msnyder@vmware.com>
11570
11571 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11572 * score-tdep.c: Ditto.
11573 * score-tdep.h: Ditto.
11574 * ser-base.c: Ditto.
11575 * ser-go32.c: Ditto.
11576 * serial.c: Ditto.
11577 * serial.h: Ditto.
11578 * ser-mingw.c: Ditto.
11579 * ser-pipe.c: Ditto.
11580 * ser-tcp.c: Ditto.
11581 * ser-unix.c: Ditto.
11582 * sh64-tdep.c: Ditto.
11583 * shnbsd-nat.c: Ditto.
11584 * sh-tdep.c: Ditto.
11585 * sh-tdep.h: Ditto.
11586 * solib.c: Ditto.
11587 * solib-darwin.c: Ditto.
11588 * solib-frv.c: Ditto.
11589 * solib.h: Ditto.
11590 * solib-irix.c: Ditto.
11591 * solib-osf.c: Ditto.
11592 * solib-pa64.c: Ditto.
11593 * solib-som.c: Ditto.
11594 * solib-spu.c: Ditto.
11595 * solib-sunos.c: Ditto.
11596 * solib-svr4.c: Ditto.
11597 * solist.h: Ditto.
11598 * sol-thread.c: Ditto.
11599 * somread.c: Ditto.
11600 * source.c: Ditto.
11601 * source.h: Ditto.
11602 * sparc64-linux-tdep.c: Ditto.
11603 * sparc64-tdep.c: Ditto.
11604 * sparc-linux-nat.c: Ditto.
11605 * sparc-linux-tdep.c: Ditto.
11606 * sparc-sol2-nat.c: Ditto.
11607 * sparc-sol2-tdep.c: Ditto.
11608 * sparc-tdep.c: Ditto.
11609 * sparc-tdep.h: Ditto.
11610 * spu-tdep.c: Ditto.
11611 * stabsread.c: Ditto.
11612 * stabsread.h: Ditto.
11613 * stack.c: Ditto.
11614 * symfile.c: Ditto.
11615 * symfile.h: Ditto.
11616 * symmisc.c: Ditto.
11617 * symtab.c: Ditto.
11618 * symtab.h: Ditto.
11619 * target.c: Ditto.
11620 * target-descriptions.c: Ditto.
11621 * target-descriptions.h: Ditto.
11622 * target.h: Ditto.
11623 * target-memory.c: Ditto.
11624 * terminal.h: Ditto.
11625 * thread.c: Ditto.
11626 * top.c: Ditto.
11627 * tracepoint.c: Ditto.
11628 * tracepoint.h: Ditto.
11629 * trad-frame.h: Ditto.
11630 * typeprint.c: Ditto.
11631
11632 2011-01-11 Michael Snyder <msnyder@vmware.com>
11633
11634 * ui-file.c: Comment cleanup, mostly periods and spaces.
11635 * ui-file.h: Ditto.
11636 * ui-out.c: Ditto.
11637 * ui-out.h: Ditto.
11638 * utils.c: Ditto.
11639 * v850-tdep.c: Ditto.
11640 * valarith.c: Ditto.
11641 * valops.c: Ditto.
11642 * valprint.c: Ditto.
11643 * valprint.h: Ditto.
11644 * value.c: Ditto.
11645 * value.h: Ditto.
11646 * varobj.c: Ditto.
11647 * varobj.h: Ditto.
11648 * vax-tdep.c: Ditto.
11649 * vec.c: Ditto.
11650 * vec.h: Ditto.
11651 * version.h: Ditto.
11652 * windows-nat.c: Ditto.
11653 * windows-tdep.c: Ditto.
11654 * xcoffread.c: Ditto.
11655 * xcoffsolib.c: Ditto.
11656 * xml-support.c: Ditto.
11657 * xstormy16-tdep.c: Ditto.
11658 * xtensa-tdep.c: Ditto.
11659 * xtensa-tdep.h: Ditto.
11660
11661 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11662
11663 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11664 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11665
11666 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11667 Thiago Jung Bauermann <bauerman@br.ibm.com>
11668
11669 Implement support for PowerPC BookE ranged watchpoints.
11670 * breakpoint.h
11671 (struct breakpoint_ops) <resources_needed>: New method.
11672 Initialize to NULL in all existing breakpoint_ops instances.
11673 (struct breakpoint) <exact>: New field.
11674 (target_exact_watchpoints): Declare external global.
11675 * breakpoint.c (target_exact_watchpoints): New global flag.
11676 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11677 b->enable_state to bp_enabled before calling
11678 hw_watchpoint_used_count.
11679 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11680 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11681 if available.
11682 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11683 if the watchpoint is exact.
11684 (resources_needed_watchpoint): New function.
11685 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11686 (watch_command_1): Set b->exact if the user asked for an exact
11687 watchpoint and one can be set.
11688 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11689 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11690 the user asks for an exact watchpoint and one can be set. Return
11691 number of needed debug registers to watch the expression.
11692 * gdbtypes.c (is_scalar_type): New function, based on
11693 valprint.c:scalar_type_p.
11694 (is_scalar_type_recursive): New function.
11695 * gdbtypes.h (is_scalar_type_recursive): Declare.
11696 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11697 handle regions when ranged watchpoints are available.
11698 (create_watchpoint_request): New function.
11699 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11700 create_watchpoint_request.
11701 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11702 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11703 `set powerpc' and `show powerpc' commands.
11704 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11705 Mention documentation comment in the target macro.
11706 (target_region_ok_for_hw_watchpoint): Document return value.
11707
11708 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11709
11710 * breakpoint.c (update_watchpoint): Decide on using a software or
11711 hardware watchpoint after the bp_locations are created.
11712
11713 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11714
11715 Convert hardware watchpoints to use breakpoint_ops.
11716 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11717 <insert_location>: ... this. Return int instead of void.
11718 Accept pointer to struct bp_location instead of pointer to
11719 struct breakpoint. Adapt all implementations.
11720 (breakpoint_ops) <remove>: Rename to...
11721 <remove_location>: ... this. Accept pointer to struct bp_location
11722 instead of pointer to struct breakpoint. Adapt all implementations.
11723 * breakpoint.c (insert_catchpoint): Delete function.
11724 (insert_bp_location): Call the watchpoint or catchpoint's
11725 breakpoint_ops.insert method.
11726 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11727 breakpoint_ops.remove method.
11728 (insert_watchpoint, remove_watchpoint): New functions.
11729 (watchpoint_breakpoint_ops): New structure.
11730 (watch_command_1): Initialize the OPS field.
11731 * inf-child.c (inf_child_insert_fork_catchpoint)
11732 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11733 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11734 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11735 Delete functions.
11736 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11737 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11738 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11739 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11740 * target.c (update_current_target): Change default implementation of
11741 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11742 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11743 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11744 to_set_syscall_catchpoint to return_one.
11745 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11746 (debug_to_insert_exec_catchpoint): Report return value.
11747 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11748 (to_insert_exec_catchpoint): Change declaration to return int instead
11749 of void.
11750
11751 2011-01-11 Michael Snyder <msnyder@vmware.com>
11752
11753 * arm-tdep.c: Internationalization.
11754 * c-lang.c: Ditto.
11755 * charset.c: Ditto.
11756 * fork-child.c: Ditto.
11757 * nto-procfs.c: Ditto.
11758 * ppc-sysv-tdep.c: Ditto.
11759 * procfs.c: Ditto.
11760 * remote-mips.c: Ditto.
11761 * remote.c: Ditto.
11762 * rs6000-nat.c: Ditto.
11763 * rs6000-tdep.c: Ditto.
11764 * target.c: Ditto.
11765 * valops.c: Ditto.
11766 * value.c: Ditto.
11767 * xml-support.c: Ditto.
11768 * mi/mi-cmd-break.c: Ditto.
11769 * mi/mi-cmd-var.c: Ditto.
11770 * mi/mi-interp.c: Ditto.
11771 * mi/mi-main.c: Ditto.
11772
11773 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11774
11775 * remote-sim.c (gdbsim_store_register): Update API to
11776 sim_store_register to check more error conditions.
11777
11778 2011-01-10 Michael Snyder <msnyder@vmware.com>
11779
11780 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11781 * nto-tdep.c: Ditto.
11782 * nto-tdep.h: Ditto.
11783 * objc-exp.y: Ditto.
11784 * objc-lang.c: Ditto.
11785 * objfiles.c: Ditto.
11786 * objfiles.h: Ditto.
11787 * observer.c: Ditto.
11788 * opencl-lang.c: Ditto.
11789 * osabi.c: Ditto.
11790 * parse.c: Ditto.
11791 * parser-defs.h: Ditto.
11792 * p-exp.y: Ditto.
11793 * p-lang.c: Ditto.
11794 * posix-hdep.c: Ditto.
11795 * ppcbug-rom.c: Ditto.
11796 * ppc-linux-nat.c: Ditto.
11797 * ppc-linux-tdep.c: Ditto.
11798 * ppc-linux-tdep.h: Ditto.
11799 * ppcnbsd-tdep.c: Ditto.
11800 * ppcobsd-tdep.c: Ditto.
11801 * ppcobsd-tdep.h: Ditto.
11802 * ppc-sysv-tdep.c: Ditto.
11803 * ppc-tdep.h: Ditto.
11804 * printcmd.c: Ditto.
11805 * proc-abi.c: Ditto.
11806 * proc-flags.c: Ditto.
11807 * procfs.c: Ditto.
11808 * proc-utils.h: Ditto.
11809 * progspace.h: Ditto.
11810 * prologue-value.c: Ditto.
11811 * prologue-value.h: Ditto.
11812 * psympriv.h: Ditto.
11813 * psymtab.c: Ditto.
11814 * p-typeprint.c: Ditto.
11815 * p-valprint.c: Ditto.
11816 * ravenscar-sparc-thread.c: Ditto.
11817 * ravenscar-thread.c: Ditto.
11818 * ravenscar-thread.h: Ditto.
11819 * record.c: Ditto.
11820 * regcache.c: Ditto.
11821 * regcache.h: Ditto.
11822 * remote.c: Ditto.
11823 * remote-fileio.c: Ditto.
11824 * remote-fileio.h: Ditto.
11825 * remote.h: Ditto.
11826 * remote-m32r-sdi.c: Ditto.
11827 * remote-mips.c: Ditto.
11828 * remote-sim.c: Ditto.
11829 * rs6000-aix-tdep.c: Ditto.
11830 * rs6000-nat.c: Ditto.
11831 * rs6000-tdep.c: Ditto.
11832
11833 2011-01-10 Michael Snyder <msnyder@vmware.com>
11834
11835 * charset.c (validate): Internationalization.
11836 * coffread.c (read_one_sym): Ditto.
11837 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11838 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11839 * inflow.c (new_tty): Ditto.
11840 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11841 * m32c-tdep.c (m32c_return_value): Ditto.
11842 * mep-tdep.c (mep_store_return_value): Ditto.
11843 * score-tdep.c (score7_fetch_insn): Ditto.
11844 * ser-mingw.c (pipe_windows_open): Ditto.
11845 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11846 * spu-tdep.c (spu_register_type): Ditto.
11847 * tracepoint.c (trace_find_command): Ditto.
11848 * valarith.c (value_pos): Ditto.
11849
11850 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11851
11852 * ada-valprint.c (printstr): Minor comment reformatting.
11853
11854 2011-01-08 Michael Snyder <msnyder@vmware.com>
11855
11856 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11857 markup.
11858
11859 2011-01-08 Michael Snyder <msnyder@vmware.com>
11860
11861 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11862 * hppa-hpux-tdep.c: Ditto.
11863 * hppa-linux-nat.c: Ditto.
11864 * hppa-linux-tdep.c: Ditto.
11865 * hppanbsd-tdep.c: Ditto.
11866 * hppa-tdep.c: Ditto.
11867 * hppa-tdep.h: Ditto.
11868 * hpux-thread.c: Ditto.
11869 * i386-cygwin-tdep.c: Ditto.
11870 * i386-darwin-nat.c: Ditto.
11871 * i386gnu-nat.c: Ditto.
11872 * i386-linux-nat.c: Ditto.
11873 * i386-linux-tdep.c: Ditto.
11874 * i386-nat.c: Ditto.
11875 * i386-nat.h: Ditto.
11876 * i386nbsd-tdep.c: Ditto.
11877 * i386-sol2-nat.c: Ditto.
11878 * i386-stub.c: Ditto.
11879 * i386-tdep.c: Ditto.
11880 * i386-tdep.h: Ditto.
11881 * i387-tdep.c: Ditto.
11882 * ia64-linux-nat.c: Ditto.
11883 * ia64-linux-tdep.c: Ditto.
11884 * ia64-tdep.c: Ditto.
11885 * infcall.c: Ditto.
11886 * infcall.h: Ditto.
11887 * infcmd.c: Ditto.
11888 * inferior.c: Ditto.
11889 * inferior.h: Ditto.
11890 * infloop.c: Ditto.
11891 * inflow.c: Ditto.
11892 * infrun.c: Ditto.
11893 * interps.c: Ditto.
11894 * interps.h: Ditto.
11895 * iq2000-tdep.c: Ditto.
11896 * irix5-nat.c: Ditto.
11897 * jit.c: Ditto.
11898 * jit.h: Ditto.
11899 * jv-exp.y: Ditto.
11900 * jv-lang.c: Ditto.
11901 * jv-lang.h: Ditto.
11902 * jv-typeprint.c: Ditto.
11903 * jv-valprint.c: Ditto.
11904 * language.c: Ditto.
11905 * language.h: Ditto.
11906 * linespec.c: Ditto.
11907 * linux-fork.c: Ditto.
11908 * linux-nat.c: Ditto.
11909 * linux-thread-db.c: Ditto.
11910 * lm32-tdep.c: Ditto.
11911
11912 2011-01-08 Michael Snyder <msnyder@vmware.com>
11913
11914 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11915 * m2-lang.c: Ditto.
11916 * m2-typeprint.c: Ditto.
11917 * m2-valprint.c: Ditto.
11918 * m32c-tdep.c: Ditto.
11919 * m32r-linux-nat.c: Ditto.
11920 * m32r-rom.c: Ditto.
11921 * m32r-tdep.c: Ditto.
11922 * m32r-tdep.h: Ditto.
11923 * m68hc11-tdep.c: Ditto.
11924 * m58klinux-nat.c: Ditto.
11925 * m68k-tdep.c: Ditto.
11926 * m88k-tdep.c: Ditto.
11927 * m88k-tdep.h: Ditto.
11928 * machoread.c: Ditto.
11929 * macrocmd.c: Ditto.
11930 * macroexp.c: Ditto.
11931 * macrotab.c: Ditto.
11932 * main.c: Ditto.
11933 * maint.c: Ditto.
11934 * mdebugread.c: Ditto.
11935 * mdebugread.h: Ditto.
11936 * memattr.c: Ditto.
11937 * memattr.h: Ditto.
11938 * memory-map.h: Ditto.
11939 * mep-tdep.c: Ditto.
11940 * microblaze-rom.c: Ditto.
11941 * microblaze-tdep.c: Ditto.
11942 * minsyms.c: Ditto.
11943 * mips-irix-tdep.c: Ditto.
11944 * mips-linux-nat.c: Ditto.
11945 * mips-linux-tdep.c: Ditto.
11946 * mips-linux-tdep.h: Ditto.
11947 * mipsnbsd-nat.c: Ditto.
11948 * mipsnbsd-tdep.c: Ditto.
11949 * mipsread.c: Ditto.
11950 * mips-tdep.c: Ditto.
11951 * mips-tdep.h: Ditto.
11952 * mn10300-linux-tdep.c: Ditto.
11953 * mn10300-tdep.c: Ditto.
11954 * mn10300-tdep.h: Ditto.
11955 * monitor.c: Ditto.
11956 * monitor.h: Ditto.
11957 * moxie-tdep.c: Ditto.
11958 * moxie-tdep.h: Ditto.
11959 * mt-tdep.c: Ditto.
11960
11961 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11962
11963 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11964
11965 2011-01-08 Robert Millan <rmh@gnu.org>
11966
11967 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11968
11969 2011-01-07 Michael Snyder <msnyder@vmware.com>
11970
11971 * charset.c (_initialize_charset): Fix typo in string.
11972
11973 2011-01-07 Michael Snyder <msnyder@vmware.com>
11974
11975 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11976 for i18n.
11977 * tui/tui-layout.c (tui_set_layout_for_display_command):
11978 Split line so that operator goes to beginning of line.
11979 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11980 assignment out of if statement.
11981
11982 2011-01-07 Michael Snyder <msnyder@vmware.com>
11983
11984 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11985 * ada-lang.h: Ditto.
11986 * ada-tasks.c: Ditto.
11987 * ada-valprint.c: Ditto.
11988 * aix-threads.c: Ditto.
11989 * alpha-linux-nat.c: Ditto.
11990 * alpha-linux-tdep.c: Ditto.
11991 * alpha-mdebug-tdep.c: Ditto.
11992 * alpha-nat.c: Ditto.
11993 * alpha-osf1-tdep.c: Ditto.
11994 * alpha-tdep.c: Ditto.
11995 * alphabsd-nat.c: Ditto.
11996 * alphabsd-tdep.c: Ditto.
11997 * amd64-darwin-tdep.c: Ditto.
11998 * amd64-linux-nat.c: Ditto.
11999 * amd64-linux-tdep.c: Ditto.
12000 * amd64-sol2-tdep.c: Ditto.
12001 * amd64-tdep.c: Ditto.
12002 * amd64-fbsd-tdep.c: Ditto.
12003 * amd64-nbsd-tdep.c: Ditto.
12004 * amd64-obsd-tdep.c: Ditto.
12005 * amd64-linux-nat.c: Ditto.
12006 * amd64-linux-tdep.c: Ditto.
12007 * arm-tdep.c: Ditto.
12008 * arm-tdep.h: Ditto.
12009 * armnbsd-nat.c: Ditto.
12010 * avr-tdep.c: Ditto.
12011 * bfin-tdep.c: Ditto.
12012 * bsd-kvm.c: Ditto.
12013 * c-typeprintc: Ditto.
12014 * c-valprint.c: Ditto.
12015 * coff-pe-read.h: Ditto.
12016 * coffreead.c: Ditto.
12017 * cris-tdep.c: Ditto.
12018 * d-lang.c: Ditto.
12019 * darwin-nat-info.c: Ditto.
12020 * darwin-nat.c: Ditto.
12021 * dbug-rom.c: Ditto.
12022 * dbxread.c: Ditto.
12023 * dcache.c: Ditto.
12024 * dcache.h: Ditto.
12025 * dec-thread.c: Ditto.
12026 * defs.h: Ditto.
12027 * demangle.c: Ditto.
12028 * dicos-tdep.c: Ditto.
12029 * dictionary.c: Ditto.
12030 * dictionary.h: Ditto.
12031 * dink32-rom.c: Ditto.
12032 * disasm.c: Ditto.
12033 * doublest.c: Ditto.
12034 * dsrec.c: Ditto.
12035 * dummy-frame.c: Ditto.
12036 * dwarf2-frame.c: Ditto.
12037 * dwarf2expr.c: Ditto.
12038 * dwarf2loc.c: Ditto.
12039 * dwarf2read.c: Ditto.
12040 * elfread.c: Ditto.
12041 * environ.c: Ditto.
12042 * eval.c: Ditto.
12043 * event-top.h: Ditto.
12044 * exceptions.c: Ditto.
12045 * exceptions.h: Ditto.
12046 * exec.c: Ditto.
12047 * expprint.c: Ditto.
12048 * expression.h: Ditto.
12049 * f-exp.y: Ditto.
12050 * f-lang.c: Ditto.
12051 * f-lang.h: Ditto.
12052 * f-typeprint.c: Ditto.
12053 * f-valprint.c: Ditto.
12054 * fbsd-nat.c: Ditto.
12055 * findvar.c: Ditto.
12056 * fork-child.c: Ditto.
12057 * frame.c: Ditto.
12058 * frame.h: Ditto.
12059 * frv-linux-tdep.c: Ditto.
12060 * frv-tdep.c: Ditto.
12061 * gcore.c: Ditto.
12062 * gdb-stabs.h: Ditto.
12063 * gdb_assert.h: Ditto.
12064 * gdb_string.h: Ditto.
12065 * gdb_thread_db.h: Ditto.
12066 * gdb_wait.h: Ditto.
12067 * gdbarch.sh: Ditto.
12068 * gdbcore.h: Ditto.
12069 * gdbthread.h: Ditto.
12070 * gdbtypes.c: Ditto.
12071 * gdbtypes.h: Ditto.
12072 * gnu-nat.c: Ditto.
12073 * gnu-nat.h: Ditto.
12074 * gnu-v2-abi.c: Ditto.
12075 * gnu-v3-abi.c: Ditto.
12076 * go32-nat.c: Ditto.
12077 * gdbarch.c: Regenerate.
12078 * gdbarch.h: Regenerate.
12079
12080 2011-01-07 Michael Snyder <msnyder@vmware.com>
12081
12082 * ax-gdb.c: Adjust some long output strings.
12083 * breakpoint.c: Ditto.
12084 * charset.c: Ditto.
12085 * cp-abi.c: Ditto.
12086 * infcall.c: Ditto.
12087 * infrun.c: Ditto.
12088 * linux-nat.c: Ditto.
12089 * solib-pa64.c: Ditto.
12090 * solib-som.c: Ditto.
12091
12092 2011-01-06 Tom Tromey <tromey@redhat.com>
12093
12094 PR python/12367:
12095 * NEWS: Add item.
12096 * python/python.c (GdbMethods): Add "newest_frame" method.
12097 * python/python-internal.h (gdbpy_newest_frame): Declare.
12098 * python/py-frame.c (gdbpy_newest_frame): New function.
12099
12100 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12101
12102 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12103 * jit.c (jit_debug): New variable.
12104 (show_jit_debug): New function.
12105 (struct target_buffer): Use ULONGEST.
12106 (bfd_open_from_target_memory): Likewise.
12107 (jit_register_code, jit_inferior_init): Add debug output.
12108 (_initialize_jit): Register "debug jit" command.
12109
12110 2011-01-06 Tom Tromey <tromey@redhat.com>
12111
12112 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12113 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12114 and ARCH_FRAME.
12115
12116 2011-01-06 Tom Tromey <tromey@redhat.com>
12117
12118 * python/py-frame.c (frapy_block): Use get_frame_block.
12119
12120 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12121
12122 Do not stop on SIGPRIO signals by default
12123 * infrun.c (_initialize_infrun): Unset signal_stop and
12124 signal_print for TARGET_SIGNAL_PRIO.
12125
12126 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12127
12128 * ada-tasks.c: Fix style violation in comment.
12129
12130 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12131
12132 * linespec.c (decode_compound, find_method): Remove trailing \n
12133 at end of error string.
12134 * solib-irix.c (irix_current_sos): Likewise.
12135 * varobj.c (uninstall_variable): Likewise.
12136
12137 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12138
12139 * copyright.py: New script.
12140 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12141 Launch emacs without exec'ing. Call copyright.py afterwards.
12142
12143 2011-01-05 Michael Snyder <msnyder@vmware.com>
12144
12145 * addrmap.c: Shorten lines of >= 80 columns.
12146 * arch-utils.c: Ditto.
12147 * arch-utils.h: Ditto.
12148 * ax-gdb.c: Ditto.
12149 * ax-general.c: Ditto.
12150 * bcache.c: Ditto.
12151 * blockframe.c: Ditto.
12152 * breakpoint.c: Ditto.
12153 * buildsym.c: Ditto.
12154 * c-lang.c: Ditto.
12155 * c-typeprint.c: Ditto.
12156 * charset.c: Ditto.
12157 * coffread.c: Ditto.
12158 * command.h: Ditto.
12159 * corelow.c: Ditto.
12160 * cp-abi.c: Ditto.
12161 * cp-namespace.c: Ditto.
12162 * cp-support.c: Ditto.
12163 * dbug-rom.c: Ditto.
12164 * dbxread.c: Ditto.
12165 * defs.h: Ditto.
12166 * dfp.c: Ditto.
12167 * dfp.h: Ditto.
12168 * dictionary.c: Ditto.
12169 * disasm.c: Ditto.
12170 * doublest.c: Ditto.
12171 * dwarf2-frame.c: Ditto.
12172 * dwarf2expr.c: Ditto.
12173 * dwarf2loc.c: Ditto.
12174 * dwarf2read.c: Ditto.
12175 * elfread.c: Ditto.
12176 * eval.c: Ditto.
12177 * event-loop.c: Ditto.
12178 * event-loop.h: Ditto.
12179 * exceptions.h: Ditto.
12180 * exec.c: Ditto.
12181 * expprint.c: Ditto.
12182 * expression.h: Ditto.
12183 * f-lang.c: Ditto.
12184 * f-valprint.c: Ditto.
12185 * findcmd.c: Ditto.
12186 * frame-base.c: Ditto.
12187 * frame-unwind.c: Ditto.
12188 * frame-unwind.h: Ditto.
12189 * frame.c: Ditto.
12190 * frame.h: Ditto.
12191 * gcore.c: Ditto.
12192 * gdb-stabs.h: Ditto.
12193 * gdb_assert.h: Ditto.
12194 * gdb_dirent.h: Ditto.
12195 * gdb_obstack.h: Ditto.
12196 * gdbcore.h: Ditto.
12197 * gdbtypes.c: Ditto.
12198 * gdbtypes.h: Ditto.
12199 * inf-ttrace.c: Ditto.
12200 * infcall.c: Ditto.
12201 * infcmd.c: Ditto.
12202 * inflow.c: Ditto.
12203 * infrun.c: Ditto.
12204 * inline-frame.h: Ditto.
12205 * language.c: Ditto.
12206 * language.h: Ditto.
12207 * libunwind-frame.c: Ditto.
12208 * libunwind-frame.h: Ditto.
12209 * linespec.c: Ditto.
12210 * linux-nat.c: Ditto.
12211 * linux-nat.h: Ditto.
12212 * linux-thread-db.c: Ditto.
12213 * machoread.c: Ditto.
12214 * macroexp.c: Ditto.
12215 * macrotab.c: Ditto.
12216 * main.c: Ditto.
12217 * maint.c: Ditto.
12218 * mdebugread.c: Ditto.
12219 * memattr.c: Ditto.
12220 * minsyms.c: Ditto.
12221 * monitor.c: Ditto.
12222 * monitor.h: Ditto.
12223 * objfiles.c: Ditto.
12224 * objfiles.h: Ditto.
12225 * osabi.c: Ditto.
12226 * p-typeprint.c: Ditto.
12227 * p-valprint.c: Ditto.
12228 * parse.c: Ditto.
12229 * printcmd.c: Ditto.
12230 * proc-events.c: Ditto.
12231 * procfs.c: Ditto.
12232 * progspace.c: Ditto.
12233 * progspace.h: Ditto.
12234 * psympriv.h: Ditto.
12235 * psymtab.c: Ditto.
12236 * record.c: Ditto.
12237 * regcache.c: Ditto.
12238 * regcache.h: Ditto.
12239 * remote-fileio.c: Ditto.
12240 * remote.c: Ditto.
12241 * ser-mingw.c: Ditto.
12242 * ser-tcp.c: Ditto.
12243 * ser-unix.c: Ditto.
12244 * serial.c: Ditto.
12245 * serial.h: Ditto.
12246 * solib-frv.c: Ditto.
12247 * solib-irix.c: Ditto.
12248 * solib-osf.c: Ditto.
12249 * solib-pa64.c: Ditto.
12250 * solib-som.c: Ditto.
12251 * solib-sunos.c: Ditto.
12252 * solib-svr4.c: Ditto.
12253 * solib-target.c: Ditto.
12254 * solib.c: Ditto.
12255 * somread.c: Ditto.
12256 * source.c: Ditto.
12257 * stabsread.c: Ditto.
12258 * stabsread.c: Ditto.
12259 * stack.c: Ditto.
12260 * stack.h: Ditto.
12261 * symfile-mem.c: Ditto.
12262 * symfile.c: Ditto.
12263 * symfile.h: Ditto.
12264 * symmisc.c: Ditto.
12265 * symtab.c: Ditto.
12266 * symtab.h: Ditto.
12267 * target-descriptions.c: Ditto.
12268 * target-memory.c: Ditto.
12269 * target.c: Ditto.
12270 * target.h: Ditto.
12271 * terminal.h: Ditto.
12272 * thread.c: Ditto.
12273 * top.c: Ditto.
12274 * tracepoint.c: Ditto.
12275 * tracepoint.h: Ditto.
12276 * ui-file.c: Ditto.
12277 * ui-file.h: Ditto.
12278 * ui-out.h: Ditto.
12279 * user-regs.c: Ditto.
12280 * user-regs.h: Ditto.
12281 * utils.c: Ditto.
12282 * valarith.c: Ditto.
12283 * valops.c: Ditto.
12284 * valprint.c: Ditto.
12285 * valprint.h: Ditto.
12286 * value.c: Ditto.
12287 * varobj.c: Ditto.
12288 * varobj.h: Ditto.
12289 * vec.h: Ditto.
12290 * xcoffread.c: Ditto.
12291 * xcoffsolib.c: Ditto.
12292 * xcoffsolib.h: Ditto.
12293 * xml-syscall.c: Ditto.
12294 * xml-tdesc.c: Ditto.
12295
12296 2011-01-05 Michael Snyder <msnyder@vmware.com>
12297
12298 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12299 * cli/cli-decode.c: Ditto.
12300 * cli/cli-dump.c: Ditto.
12301 * cli/cli-logging.c: Ditto.
12302 * cli/cli-script.c: Ditto.
12303 * cli/cli-setshow.c: Ditto.
12304 * common/signals.c: Ditto.
12305 * mi/mi-cmd-break.c: Ditto.
12306 * mi/mi-cmd-disas.c: Ditto.
12307 * mi/mi-cmd-stack.c: Ditto.
12308 * mi/mi-cmd-var.c: Ditto.
12309 * mi/mi-cmds.c: Ditto.
12310 * mi/mi-common.h: Ditto.
12311 * mi/mi-console.c: Ditto.
12312 * mi/mi-interp.c: Ditto.
12313 * mi/mi-main.c: Ditto.
12314 * osf-share/cma_attr.c: Ditto.
12315 * osf-share/cma_deb_core.h: Ditto.
12316 * osf-share/cma_debug_client.h: Ditto.
12317 * osf-share/cma_handle.h: Ditto.
12318 * osf-share/cma_mutex.h: Ditto.
12319 * osf-share/cma_stack_int.h: Ditto.
12320 * osf-share/cma_tcb_defs.h: Ditto.
12321 * python/py-auto-load.c: Ditto.
12322 * python/py-breakpoint.c: Ditto.
12323 * python/py-cmd.c: Ditto.
12324 * python/py-frame.c: Ditto.
12325 * python/py-objfile.c: Ditto.
12326 * python/py-param.c: Ditto.
12327 * python/py-progspace.c: Ditto.
12328 * python/py-symbol.c: Ditto.
12329 * python/py-value.c: Ditto.
12330 * python/python-internal.h: Ditto.
12331 * python/python.c: Ditto.
12332 * tui/tui-data.c: Ditto.
12333 * tui/tui-disasm.c: Ditto.
12334 * tui/tui-hooks.c: Ditto.
12335 * tui/tui-io.c: Ditto.
12336 * tui/tui-layout.c: Ditto.
12337 * tui/tui-regs.c: Ditto.
12338 * tui/tui-source.c: Ditto.
12339 * tui/tui-stack.c: Ditto.
12340 * tui/tui-win.c: Ditto.
12341 * tui/tui-windata.c: Ditto.
12342 * tui/tui-winsource.c: Ditto.
12343
12344 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12345
12346 * configure.ac, gdb.1: Copyright year update.
12347
12348 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12349
12350 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12351 this_pc_in_block, morestack_msym and morestack_name. Check for
12352 "__morestack" minimal symbol there.
12353
12354 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12355
12356 * symfile.c (find_sym_fns): Add call to dont_repeat.
12357
12358 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12359
12360 Copyright year update in most files (performed by copyright.sh).
12361
12362 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12363
12364 * top.c (print_gdb_version): Update copyright year in version output.
12365
12366 For older changes see ChangeLog-2010.
12367 \f
12368 Local Variables:
12369 mode: change-log
12370 left-margin: 8
12371 fill-column: 74
12372 version-control: never
12373 coding: utf-8
12374 End:
This page took 0.318122 seconds and 5 git commands to generate.