improve Ada exception catchpoint MI notification
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-04-01 Joel Brobecker <brobecker@adacore.com>
2
3 * breakpoint.h (bpdisp_text): Add declaration.
4 * breakpoint.c (bpdisp_text): Make non-static.
5 * ada-lang.c: #include "mi/mi-common.h".
6 (print_it_exception): Rewrite to improve GDB/MI output.
7
8 2011-04-01 Pedro Alves <pedro@codesourcery.com>
9
10 * arm-tdep.h (struct address_space): Add forward declaration.
11
12 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
13
14 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
15 * arm-tdep.c (arm_override_mode): New global.
16 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
17 execution mode heuristics.
18 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
19 second single-step breakpoint if needed, using
20 arm_insert_single_step_breakpoint.
21 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
22 ARM execution mode, do not call thumb_get_next_pc_raw.
23 (arm_get_next_pc): Encode execution mode in return value. Call
24 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
25 (arm_insert_single_step_breakpoint): New function.
26 (arm_software_single_step): Call it.
27 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
28 argument to return execution mode of sigreturn target.
29 (arm_linux_syscall_next_pc): Use it.
30 (arm_linux_copy_svc): Update call.
31 (arm_linux_software_single_step): Call
32 arm_insert_single_step_breakpoint.
33
34 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
35
36 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
37 the comment.
38
39 2011-03-31 Tom Tromey <tromey@redhat.com>
40
41 * varobj.c (update_dynamic_varobj_children): Properly handle
42 errors from iterator.
43
44 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
45
46 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
47 struct linkage name twice.
48
49 2011-03-31 Tom Tromey <tromey@redhat.com>
50
51 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
52 missing ">" to message.
53
54 2011-03-31 Tom Tromey <tromey@redhat.com>
55
56 * varobj.c (instantiate_pretty_printer): Remove duplicate
57 'return'.
58
59 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
60
61 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
62 if neither saved value nor register available (e.g. signal frame).
63
64 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
65
66 * macroexp.c (expand): Avoid uninitialized variable
67 compiler warning.
68
69 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
70
71 * breakpoint.c (break_range_command): Fix typo in comment.
72
73 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
74 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
75
76 Implement support for PowerPC BookE ranged breakpoints.
77 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
78 * breakpoint.h (struct bp_target_info) <length>: New member
79 variable.
80 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
81 instead of struct breakpoint as argument, and also add ASPACE
82 and BP_ADDR arguments. Update all callers.
83 (struct breakpoint_ops) <print_one_detail>: New method.
84 (struct breakpoint) <addr_string_range_end>: New member variable.
85 * breakpoint.c (breakpoint_location_address_match): Add function
86 prototype.
87 (insert_bp_location): Set bl->target_info.length.
88 (breakpoint_here_p): Call breakpoint_location_address_match.
89 (moribund_breakpoint_here_p): Likewise.
90 (regular_breakpoint_inserted_here_p): Likewise.
91 (breakpoint_thread_match): Likewise.
92 (bpstat_stop_status): Likewise.
93 (bpstat_check_location): Move call to
94 breakpoint_ops.breakpoint_hit to the top.
95 (print_one_breakpoint_location): Call
96 breakpoint_ops.print_one_detail if available.
97 (breakpoint_address_match_range): New function.
98 (breakpoint_location_address_match): Likewise.
99 (breakpoint_locations_match): Compare the length field of the
100 locations too.
101 (hw_breakpoint_used_count): Count resources used by all locations
102 in a breakpoint, and use breakpoint_ops.resources_needed if
103 available.
104 (breakpoint_hit_ranged_breakpoint): New function.
105 (resources_needed_ranged_breakpoint): Likewise.
106 (print_it_ranged_breakpoint): Likewise.
107 (print_one_ranged_breakpoint): Likewise.
108 (print_one_detail_ranged_breakpoint): Likewise.
109 (print_mention_ranged_breakpoint): Likewise.
110 (print_recreate_ranged_breakpoint): Likewise.
111 (ranged_breakpoint_ops): New structure.
112 (find_breakpoint_range_end): New function.
113 (break_range_command): Likewise.
114 (delete_breakpoint): Free addr_string_range_end.
115 (update_breakpoint_locations): Add SALS_END argument. Update
116 all callers. Calculate breakpoint length if a non-zero SALS_END
117 is given. Call breakpoint_locations_match instead of
118 breakpoint_address_match.
119 (reset_breakpoint): Find SaL of the end of the range if B is a
120 ranged breakpoint.
121 (_initialize_breakpoint): Register break-range command.
122 * defs.h (print_core_address): Add function prototype.
123 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
124 function.
125 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
126 (ppc_linux_remove_hw_breakpoint): Likewise.
127 (_initialize_ppc_linux_nat): Initialize
128 to_ranged_break_num_registers.
129 * target.c (update_current_target): Add comment about
130 to_ranged_break_num_registers.
131 (target_ranged_break_num_registers): New function.
132 * target.h (struct target_ops) <to_ranged_break_num_registers>:
133 New method.
134 (target_ranged_break_num_registers): Add function prototype.
135 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
136 * utils.c (print_core_address): ... here.
137
138 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
139
140 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
141 variable compiler warning.
142
143 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
144
145 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
146 code from here ...
147 (re_set_breakpoint): ... to here ...
148 (addr_string_to_sals): ... and here.
149
150 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
151
152 * Makefile.in (SFILES): Add missing C sources.
153 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
154 Add missing headers.
155
156 2011-03-29 Mike Frysinger <vapier@gentoo.org>
157
158 * .gitignore: New file.
159
160 2011-03-29 Mike Frysinger <vapier@gentoo.org>
161
162 * NEWS: Mention new cfi device simulation.
163
164 2011-03-29 Tom Tromey <tromey@redhat.com>
165
166 * dwarf2read.c (fixup_partial_die): Handle linkage name on
167 otherwise anonymous types.
168 (dwarf2_name): Likewise.
169 * valops.c (value_struct_elt_for_reference): Refine artificial
170 type logic. Call error if j==-1.
171
172 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
173
174 Fix false GCC warning.
175 * infcall.c (find_function_addr): Initialize funaddr.
176
177 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
178
179 Fix mingw compilation with --enable-targets=all.
180 * remote-mips.c (gdb_usleep.h): Include header.
181 (mips_enter_debug): Use gdb_usleep instead of sleep.
182
183 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
184
185 Support resolution of STT_GNU_IFUNC via breakpoints.
186 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
187 bp_gnu_ifunc_resolver_return.
188 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
189 the loop. Support bp_gnu_ifunc_resolver and
190 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
191 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
192 breakpoints.
193 (bptype_string, print_one_breakpoint_location): Support
194 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
195 (user_settable_breakpoint): Return true also for
196 bp_gnu_ifunc_resolver.
197 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
198 bp_gnu_ifunc_resolver_return.
199 (set_breakpoint_location_function): New parameter explicit_loc,
200 describe it. Call find_pc_partial_function_gnu_ifunc with new
201 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
202 EXPLICIT_LOC is not set.
203 (set_raw_breakpoint): Set EXPLICIT_LOC for
204 set_breakpoint_location_function.
205 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
206 set_breakpoint_location_function.
207 (mention): Support bp_gnu_ifunc_resolver and
208 bp_gnu_ifunc_resolver_return.
209 (add_location_to_breakpoint): Set EXPLICIT_LOC for
210 set_breakpoint_location_function.
211 (update_breakpoint_locations): Remove static.
212 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
213 bp_gnu_ifunc_resolver_return.
214 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
215 bp_gnu_ifunc_resolver_return.
216 (update_breakpoint_locations): New declaration.
217 * elfread.c: Include gdbthread.h and regcache.h.
218 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
219 functions.
220 (elf_gnu_ifunc_fns): Install them.
221 * minsyms.c (stub_gnu_ifunc_resolver_stop)
222 (stub_gnu_ifunc_resolver_return_stop): New functions.
223 (stub_gnu_ifunc_fns): Install them.
224 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
225 and gnu_ifunc_resolver_return_stop.
226 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
227
228 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
229
230 STT_GNU_IFUNC reader implementation.
231 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
232 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
233 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
234 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
235 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
236 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
237 (elf_gnu_ifunc_resolve_addr): New.
238 (elf_symfile_read): Call elf_rel_plt_read.
239 (elf_gnu_ifunc_fns): New.
240 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
241 Install elf_gnu_ifunc_fns.
242 * infcall.c (find_function_return_type): New function.
243 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
244 * minsyms.c (stub_gnu_ifunc_resolve_addr)
245 (stub_gnu_ifunc_resolve_name): New functions.
246 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
247 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
248 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
249
250 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
251
252 Code cleanup for later STT_GNU_IFUNC support.
253 * infcall.c (find_function_addr): Remove variable code, use explicit
254 dereferences for it. Move VALUE_TYPE initialization later.
255
256 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
257
258 GDB find_pc_partial_function support for STT_GNU_IFUNC.
259 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
260 (clear_pc_function_cache): Clear it.
261 (find_pc_partial_function): Rename to ...
262 (find_pc_partial_function_gnu_ifunc): ... this function. New
263 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
264 (find_pc_partial_function): New wrapper for this function.
265 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
266
267 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
268
269 GDB internal type support for STT_GNU_IFUNC.
270 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
271 (elf_symtab_read): Set mst_text_gnu_ifunc for
272 BSF_GNU_INDIRECT_FUNCTION.
273 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
274 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
275 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
276 nodebug_got_plt_symbol.
277 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
278 (TYPE_GNU_IFUNC): New.
279 (struct main_type): New field flag_gnu_ifunc.
280 (struct builtin_type): New field builtin_func_func.
281 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
282 nodebug_got_plt_symbol.
283 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
284 (in_gnu_ifunc_stub): New.
285 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
286 mst_text_gnu_ifunc.
287 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
288 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
289 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
290 in_gnu_ifunc_stub.
291 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
292 * symtab.c (search_symbols): Likewise.
293 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
294 and mst_slot_got_plt.
295 (in_gnu_ifunc_stub): New declaration.
296
297 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
298
299 Support a ring of related breakpoints.
300 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
301 other functions, add gdb_assert.
302 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
303 watchpoint_del_at_next_stop.
304 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
305 (bpstat_stop_status): Handle ring in related_breakpoint.
306 (set_raw_breakpoint_without_location): Initialize ring in
307 related_breakpoint.
308 (delete_breakpoint): Handle ring in related_breakpoint, use
309 watchpoint_del_at_next_stop.
310 (map_breakpoint_numbers): Handle ring in related_breakpoint.
311
312 2011-03-28 Tom Tromey <tromey@redhat.com>
313
314 PR symtab/12441:
315 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
316 with `language_minimal'.
317
318 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
319
320 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
321 instead of checking for STT_ARM_TFUNC symbol type.
322
323 2011-03-25 Tom Tromey <tromey@redhat.com>
324
325 * linespec.c (symbol_found): Restore line-based result for
326 non-LOC_LABEL symbols.
327
328 2011-03-25 Kai Tietz <ktietz@redhat.com>
329
330 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
331 instead of strcmp for comparison.
332 (tui_source_is_displayed): Likewise.
333 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
334
335 2011-03-24 Mark Wielaard <mjw@redhat.com>
336
337 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
338 complaint.
339 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
340 (find_partial_die_in_comp_unit): Likewise in comment.
341 (read_attribute_value): Likewise.
342 (lookup_die_type): Likewise.
343 (dwarf_form_name): Likewise.
344 (dump_die_shallow): Likewise.
345 (follow_die_ref_or_sig): Likewise.
346
347 2011-03-24 Tom Tromey <tromey@redhat.com>
348
349 PR breakpoints/11816:
350 * linespec.c (decode_line_1): Parse `function:label' linespecs.
351 (decode_compound): Update.
352 (find_function_symbol): New function.
353 (decode_dollar): Update.
354 (decode_label): Add 'function_symbol' parameter. Handle
355 function-relative labels.
356 (decode_variable): Update.
357 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
358 not its line. Set `special_display' and canonical name for
359 labels.
360
361 2011-03-24 Tom Tromey <tromey@redhat.com>
362
363 * linespec.h (struct linespec_result) <special_display>: New
364 field.
365 * breakpoint.h (struct breakpoint) <display_canonical>: New
366 field.
367 * breakpoint.c (print_breakpoint_location): Respect
368 display_canonical.
369 (create_breakpoint_sal): Add 'display_canonical' parameter.
370 (create_breakpoints_sal): Update.
371 (create_breakpoint): Update.
372
373 2011-03-24 Tom Tromey <tromey@redhat.com>
374
375 * symtab.c (decode_line_spec): Update.
376 * linespec.c (build_canonical_line_spec): Change type of
377 'canonical'.
378 (decode_line_2, decode_line_1, decode_objc, decode_compound)
379 (find_method, decode_all_digits, decode_dollar, decode_label)
380 (symbol_found): Likewise.
381 (init_linespec_result): New function.
382 * breakpoint.c (struct captured_parse_breakpoint_args)
383 <canonical_p>: New field, replaces addr_string_p.
384 (create_breakpoints_sal): Add 'canonical' parameter, replacing
385 'addr_string'.
386 (parse_breakpoint_sals): Likewise.
387 (do_captured_parse_breakpoint): Update.
388 (create_breakpoint): Use struct linespec_result.
389 (until_break_command): Update.
390 (breakpoint_re_set_one): Update.
391 (decode_line_spec_1): Update.
392 * linespec.h (struct linespec_result): New.
393 (init_linespec_result): Declare.
394
395 2011-03-23 Pedro Alves <pedro@codesourcery.com>
396
397 * regcache.c (regcache_raw_read): If the target didn't supply a
398 given raw register, mark it as unavailable.
399
400 2011-03-23 Kai Tietz <ktietz@redhat.com>
401
402 * breakpoint.c (clear_command): Use filename_cmp
403 instead of strcmp for comparison.
404 * buildsym.c (watch_main_source_file_lossage): Likewise.
405 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
406 checking just for slash.
407 * dbxread.c (read_dbx_symtab): Use lbasename instead of
408 strrchr and filename_cmp instead of strcmp for filenames.
409 (add_old_header_file): Use filename_cmp
410 instead of strcmp for comparison.
411 * exec.c (exec_set_section_address): Likewise.
412 * macrotab.c (macro_lookup_inclusion): Likewise.
413 (macro_lookup_inclusion): Likewise.
414 * elfread.c (_initialize_elfread): Likewise.
415 (elfstab_offset_sections): Likewise.
416 (elfstab_offset_sections): Use lbasename instead of
417 strrchr.
418 * mdebugread.c (parse_partial_symbols): Likewise.
419 (arse_partial_symbols): Use filename_(n)cmp instead of
420 str(n)cmp for comparison.
421 * minsyms.c (lookup_minimal_symbol): Likewise.
422 * psymtab.c (read_psymtabs_with_filename): Likewise.
423 * solib.c (solib_read_symbols): Likewise.
424 (reload_shared_libraries_1): Likewise.
425 * symmisc.c (maintenance_print_symbols): Likewise.
426 * symfile.c (separate_debug_file_exists): Likewise.
427 (reread_symbols): Likewise.
428 (find_separate_debug_file_by_debuglink): Likewise.
429 * remote-fileio.c (remote_fileio_func_rename): Likewise.
430 * source.c (add_path): Likewise.
431 * symtab.c (filename_seen): Likewise.
432 (file_matches): Likewise.
433 (print_symbol_info): Likewise.
434 (maybe_add_partial_symtab_filename): Likewise.
435 (make_source_files_completion_list): Likewise.
436 * xml-syscall.c (init_sysinfo): Likewise.
437 * windows-nat.c (_initialize_check_for_gdb_ini): Use
438 IS_DIR_SEPARATOR for checking for trailing path separator.
439
440 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
441
442 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
443 label abort_expression.
444 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
445 DWARF_VALUE_OPTIMIZED_OUT.
446
447 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
448
449 Code cleanup.
450 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
451 to linkage_name. Invert its value. Update the function comment.
452 (c_type_print_varspec_suffix): Invert it at the caller.
453 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
454
455 2011-03-22 Pedro Alves <pedro@codesourcery.com>
456
457 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
458 errors when reading the `stop_pc'.
459 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
460 get_frame_pc.
461
462 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
463
464 * NEWS: Document gdb.Write stream keyword.
465
466 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
467
468 Revert:
469 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
470 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
471 (dwarf2_add_field): Fix new_field->accessibility for
472 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
473
474 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
475
476 PR python/12183
477
478 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
479 other error classes. Do not print stack trace.
480
481 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
482
483 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
484 (dwarf2_add_field): Fix new_field->accessibility for
485 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
486
487 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
488
489 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
490 encountering a load via a non-SP register.
491
492 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
493
494 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
495 field in returned unwinder.
496
497 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
498
499 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
500
501 2012-03-21 Joel Brobecker <brobecker@adacore.com>
502
503 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
504 of xmalloc.
505
506 2012-03-18 Pedro Alves <pedro@codesourcery.com>
507
508 * frame.c (frame_unwind_register): Throw an error if unwinding the
509 register failed.
510 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
511 an unwind stop reason.
512 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
513 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
514 UNWIND_UNAVAILABLE>: New.
515 * inline-frame.c (inline_frame_unwind): Install
516 default_frame_unwind_stop_reason.
517 * frame-unwind.c: Include "exceptions.h".
518 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
519 (default_frame_unwind_stop_reason): New.
520 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
521 (default_frame_unwind_stop_reason): Declare.
522 (struct frame_unwind) <stop_reason>: New function pointer.
523
524 * dummy-frame.c: Install default_frame_unwind_stop_reason.
525 * dwarf2-frame.c: Include exceptions.h.
526 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
527 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
528 computing the CFA. If such an error was thrown, set
529 unavailable_retaddr.
530 (dwarf2_frame_unwind_stop_reason): New.
531 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
532 unavailable.
533 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
534 (dwarf2_signal_frame_unwind): Ditto.
535
536 * amd64-tdep.c: Include "exceptions.h".
537 (struct amd64_frame_cache): New field "base_p".
538 (amd64_init_frame_cache): Clear it.
539 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
540 Avoid reading registers with functions that throw if the register
541 is not necessary to compute the frame base.
542 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
543 swallowing NOT_AVAILABLE_ERROR.
544 (amd64_frame_unwind_stop_reason): New.
545 (amd64_frame_this_id): Don't build a frame id if the frame base
546 was unavailable.
547 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
548 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
549 base_p if the frame base was computable.
550 (amd64_sigtramp_frame_unwind_stop_reason): New.
551 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
552 frame base was unavailable.
553 (amd64_sigtramp_frame_unwind): Install
554 amd64_sigtramp_frame_unwind_stop_reason.
555 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
556 base_p if the frame base was computable.
557 (amd64_epilogue_frame_unwind_stop_reason): New.
558 (amd64_epilogue_frame_this_id): Don't build a frame id if the
559 frame base was unavailable.
560 (amd64_epilogue_frame_unwind): Install
561 amd64_epilogue_frame_unwind_stop_reason.
562 * i386-tdep.c: Include "exceptions.h".
563 (struct i386_frame_cache): New field "base_p".
564 (i386_init_frame_cache): Clear it.
565 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
566 Avoid reading registers with functions that throw if the register
567 is not necessary to compute the frame base.
568 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
569 swallowing NOT_AVAILABLE_ERROR.
570 (i386_frame_unwind_stop_reason): New.
571 (i386_frame_this_id): Don't build a frame id if the frame base was
572 unavailable.
573 (i386_frame_prev_register): Handle unavailable SP.
574 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
575 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
576 base_p if the frame base was computable.
577 (i386_epilogue_frame_unwind_stop_reason): New.
578 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
579 base was unavailable.
580 (i386_epilogue_frame_unwind): Install
581 i386_epilogue_frame_unwind_stop_reason.
582 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
583 base_p if the frame base was computable.
584 (i386_sigtramp_frame_unwind_stop_reason): New.
585 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
586 base was unavailable.
587 (i386_sigtramp_frame_unwind): Install
588 i386_sigtramp_frame_unwind_stop_reason.
589 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
590 type's size, not the register's.
591 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
592
593 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
594 default_frame_unwind_stop_reason.
595 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
596 (alpha_heuristic_frame_unwind): Ditto.
597 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
598 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
599 * avr-tdep.c (avr_frame_unwind): Ditto.
600 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
601 Ditto.
602 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
603 * frv-tdep.c (frv_frame_unwind): Ditto.
604 * h8300-tdep.c (h8300_frame_unwind): Ditto.
605 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
606 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
607 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
608 (hppa_stub_frame_unwind): Ditto.
609 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
610 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
611 (ia64_libunwind_frame_unwind)
612 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
613 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
614 * lm32-tdep.c (lm32_frame_unwind): Ditto.
615 * m32c-tdep.c (m32c_unwind): Ditto.
616 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
617 * m32r-tdep.c (m32r_frame_unwind): Ditto.
618 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
619 * m68k-tdep.c (m68k_frame_unwind): Ditto.
620 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
621 * m88k-tdep.c (m88k_frame_unwind): Ditto.
622 * mep-tdep.c (mep_frame_unwind): Ditto.
623 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
624 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
625 (mips_stub_frame_unwind): Ditto.
626 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
627 * moxie-tdep.c (moxie_frame_unwind): Ditto.
628 * mt-tdep.c (mt_frame_unwind): Ditto.
629 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
630 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
631 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
632 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
633 (s390_sigtramp_frame_unwind): Ditto.
634 * score-tdep.c (score_prologue_unwind): Ditto.
635 * sh-tdep.c (sh_frame_unwind): Ditto.
636 * sh64-tdep.c (sh64_frame_unwind): Ditto.
637 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
638 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
639 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
640 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
641 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
642 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
643 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
644 (sparc64obsd_trapframe_unwind): Ditto.
645 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
646 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
647 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
648 * v850-tdep.c (v850_frame_unwind): Ditto.
649 * vax-tdep.c (vax_frame_unwind): Ditto.
650 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
651 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
652 * xtensa-tdep.c (xtensa_unwind): Ditto.
653
654 2011-03-18 Pedro Alves <pedro@codesourcery.com>
655
656 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
657 there's always a frame. Use get_frame_pc_if_available instead of
658 get_frame_pc, and if there's no PC available, don't look up a
659 symtab.
660
661 2011-03-18 Pedro Alves <pedro@codesourcery.com>
662
663 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
664 unavailable PC.
665
666 2011-03-18 Pedro Alves <pedro@codesourcery.com>
667
668 * tracepoint.c (set_traceframe_context): Handle unavailable PC
669 gracefully.
670
671 2011-03-18 Pedro Alves <pedro@codesourcery.com>
672
673 * frame.h (frame_unwind_caller_pc_if_available): Declare.
674 * frame.c (frame_unwind_caller_pc_if_available): New.
675 * stack.c (frame_info): Handle unavailable PC.
676
677 2011-03-18 Pedro Alves <pedro@codesourcery.com>
678
679 * frame.c (frame_unwind_pc): Rename to ...
680 (frame_unwind_pc_if_available): ... this. New `pc' output
681 parameter. Change return type to int. Gracefully handle
682 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
683 happened, or 1 otherwise.
684 (frame_unwind_pc): Reimplement on top of
685 frame_unwind_pc_if_available.
686 (get_frame_func): Rename to ...
687 (get_frame_func_if_available): New `pc' output parameter. Change
688 return type to int. Gracefully handle the PC not being available.
689 (get_frame_func): Reimplement on top of
690 get_frame_func_if_available.
691 (select_frame): Handle the PC being unavailable.
692 (get_prev_frame): Handle the PC being unavailable.
693 (get_frame_pc_if_available): New.
694 (get_frame_address_in_block_if_available): New.
695 (find_frame_sal): Handle the frame PC not being available.
696 * frame.h (get_frame_pc_if_available): Declare.
697 (get_frame_address_in_block_if_available): Declare.
698 (get_frame_func_if_available): Declare.
699 * stack.c (print_frame_info): Handle the PC being unavailable.
700 (find_frame_funname): Ditto.
701 (print_frame): Handle the PC being unavailable.
702 (get_frame_language): Ditto.
703 * blockframe.c (get_frame_block): Ditto.
704 * macroscope.c (default_macro_scope): Ditto.
705 * tui/tui-stack.c (tui_show_frame_info): Ditto.
706
707 2011-03-18 Pedro Alves <pedro@codesourcery.com>
708
709 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
710 NOT_AVAILABLE_ERROR when evaluating the location expression.
711
712 2011-03-18 Pedro Alves <pedro@codesourcery.com>
713
714 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
715 returning that the register piece is unavailable/optimized out.
716 (write_pieced_value): Handle get_frame_register_bytes returning
717 that the register piece is unavailable/optimized out when doing a
718 read-modify write of a bitfield.
719 * findvar.c (value_from_register): Handle get_frame_register_bytes
720 returning that the register piece is unavailable/optimized out.
721 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
722 and `unavailablep'. Throw error on bad debug info. Use
723 frame_register instead of frame_register_read, to fill in the new
724 arguments.
725 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
726 and `unavailablep'.
727 * valops.c: (value_assign): Adjust, and handle
728 get_frame_register_bytes failing.
729 * spu-tdep.c: Include exceptions.h.
730 (spu_software_single_step): Adjust, and handle
731 get_frame_register_bytes failing.
732 (spu_get_longjmp_target): Ditto.
733 * gdbarch.sh (register_to_value): Change to return int. New
734 parameters `optimizedp' and `unavailablep'.
735 * gdbarch.h, gdbarch.c: Regenerate.
736 * i386-tdep.c (i386_register_to_value): Adjust to new
737 gdbarch_register_to_value interface.
738 * i387-tdep.c (i387_register_to_value): Ditto.
739 * i387-tdep.h (i387_register_to_value): Ditto.
740 * alpha-tdep.c (alpha_register_to_value): Ditto.
741 * ia64-tdep.c (ia64_register_to_value): Ditto.
742 * m68k-tdep.c (m68k_register_to_value): Ditto.
743 * mips-tdep.c (mips_register_to_value): Ditto.
744 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
745
746 2011-03-18 Pedro Alves <pedro@codesourcery.com>
747
748 * findvar.c (value_of_register): Mark the value as unavailable, if
749 the register is unavailable.
750 * frame.h (frame_register_unwind): New `unavailablep' parameter.
751 (frame_register): New `unavailablep' parameter.
752 (frame_register_read): Update comment.
753 * frame.c (frame_register_unwind): New `unavailablep' parameter.
754 Set it if the register is unavailable. If the register is
755 unavailable, clear the output buffer.
756 (frame_register): New `unavailablep' parameter. Pass it down.
757 (frame_unwind_register): Adjust.
758 (put_frame_register): Adjust.
759 (frame_register_read): Adjust. Also return false if the register
760 is not available.
761 (frame_register_unwind_location): Adjust.
762 * sentinel-frame.c (sentinel_frame_prev_register): If the register
763 is unavailable, mark the value accordingly.
764 * stack.c (frame_info): Handle unavailable registers.
765
766 2011-03-18 Pedro Alves <pedro@codesourcery.com>
767
768 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
769 simplify, using regcache_cooked_read.
770
771 2011-03-18 Pedro Alves <pedro@codesourcery.com>
772
773 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
774 (regcache_raw_read_unsigned, regcache_raw_read_signed)
775 (regcache_raw_read_unsigned, regcache_raw_read_part)
776 (regcache_cooked_read, regcache_cooked_read_signed)
777 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
778 (regcache_cooked_read_ftype): Change return to enum
779 register_status.
780 * regcache.c: Include exceptions.h
781 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
782 (do_cooked_read): Change return to enum register_status. Always
783 forward to regcache_cooked_read.
784 (regcache_raw_read): Change return to enum register_status. If
785 the register is not REG_VALID, memset the buffer. Return the
786 register's status.
787 (regcache_raw_read_signed): Handle non-REG_VALID registers and
788 return the register's status.
789 (regcache_raw_read_unsigned): Ditto.
790 (regcache_cooked_read): Change return to enum register_status.
791 Assert that with read-only regcaches, the register's status must
792 be known. If the regcache is read-only, and the register is not
793 REG_VALID, memset the buffer. Return the register's status.
794 (regcache_cooked_read_signed): Change return to enum
795 register_status. Handle non-REG_VALID registers and return the
796 register's status.
797 (regcache_cooked_read_unsigned): Change return to enum
798 register_status. Handle non-REG_VALID registers and return the
799 register's status.
800 (regcache_xfer_part, regcache_raw_read_part)
801 (regcache_cooked_read_part): Change return to enum
802 register_status. Return the register's status.
803 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
804 unavailable.
805 (regcache_dump): Handle unavailable cooked registers.
806 * frame.c (do_frame_register_read): Adjust interface to match
807 regcache_cooked_read_ftype.
808 * gdbarch.sh (pseudo_register_read): Change return to enum
809 register_status.
810 * gdbarch.h, gdbarch.c: Regenerate.
811
812 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
813 register_status.
814 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
815 register_status. If reading a raw register indicates the raw
816 register is not valid, return the raw register's status,
817 otherwise, return REG_VALID.
818 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
819 register_status. Handle non-REG_VALID raw registers and return
820 the register's status.
821 * arm-tdep.c (arm_neon_quad_read)
822 (arm_pseudo_read): Change return to enum register_status. Handle
823 non-REG_VALID raw registers and return the register's status.
824 * avr-tdep.c (avr_pseudo_register_read): Ditto.
825 * frv-tdep.c (frv_pseudo_register_read): Ditto.
826 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
827 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
828 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
829 register_status.
830 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
831 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
832 (m32c_part_write, m32c_cat_read, m32c_cat_write)
833 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
834 (m32c_pseudo_register_read): Change return to enum
835 register_status. Adjust.
836 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
837 enum register_status. Return the register's status.
838 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
839 register_status. Return the register's status.
840 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
841 * mips-tdep.c (mips_pseudo_register_read): Ditto.
842 * mt-tdep.c (mt_pseudo_register_read): Ditto.
843 * rs6000-tdep.c (move_ev_register_func): New typedef.
844 (e500_move_ev_register): Use it. Change return to enum
845 register_status. Return the register's status.
846 (do_regcache_raw_read): New function.
847 (do_regcache_raw_write): New function.
848 (e500_pseudo_register_read): Change return to enum
849 register_status. Return the register's status. Use
850 do_regcache_raw_read.
851 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
852 (dfp_pseudo_register_read): Change return to enum register_status.
853 Return the register's status.
854 (vsx_pseudo_register_read): Ditto.
855 (efpr_pseudo_register_read): Ditto.
856 (rs6000_pseudo_register_read): Ditto.
857 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
858 register_status. Return the register's status.
859 * sh64-tdep.c (pseudo_register_read_portions): New function.
860 (sh64_pseudo_register_read): Change return to enum
861 register_status. Use pseudo_register_read_portions. Return the
862 register's status.
863 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
864 register_status. Return the register's status.
865 * sh-tdep.c (pseudo_register_read_portions): New function.
866 (sh_pseudo_register_read): Change return to enum register_status.
867 Use pseudo_register_read_portions. Return the register's status.
868 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
869 enum register_status. Return the register's status.
870 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
871 * spu-tdep.c (spu_pseudo_register_read_spu)
872 (spu_pseudo_register_read): Ditto.
873 * xtensa-tdep.c (xtensa_register_read_masked)
874 (xtensa_pseudo_register_read): Ditto.
875 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
876
877 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
878
879 * python/py-value.c (valpy_getitem): Fix formatting of error function
880 call.
881
882 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
883
884 ARI fixes: Add missing internationalization markups throughout
885 C source files.
886 * darwin-nat-info.c: Ditto.
887 * record.c: Ditto.
888 * remote.c: Ditto.
889 * mi/mi-main.c: Ditto.
890
891 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
892
893 ARI fixes: Add missing internationalization markups throughout
894 yacc files.
895 * c-exp.y: Ditto.
896 * cp-name-parser.y: Ditto.
897 * f-exp.y: Ditto.
898 * m2-exp.y: Ditto.
899 * objc-exp.y: Ditto.
900 * p-exp.y: Ditto.
901
902 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
903
904 ARI fixes: Messages should have no trailing new lines.
905 * darwin-nat.c (mach_check_error): Remove trailing new line from
906 warning function call message.
907 * record.c (bfdcore_read): Idem for error call.
908
909 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
910
911 * common/signals.c (target_signal_from_host): Add _ markup to error
912 function call message.
913 (target_signal_to_host): Add _ markup and remove trailing new line
914 from warning call message.
915 (target_signal_from_command): Add _ markup to error function call
916 message.
917
918 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
919
920 PR python/12149
921
922 * python/python.c (gdbpy_write): Accept a stream argument and
923 operate to the appropriate stream.
924 (gdbpy_flush): Likewise.
925 (_initialize_python): Add stream constants.
926 (finish_python_initialization): Add GdbOutputErrorFile class.
927
928 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
929
930 * MAINTAINERS: Add myself as a write-after-approval maintainer.
931
932 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
933
934 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
935 to store_signed_integer. Add debug message when relocating CALL
936 instructions. Fix formatting of debug message.
937 * i386-tdep.c (i386_relocate_instruction): Ditto.
938
939 2011-03-17 Joel Brobecker <brobecker@gnat.com>
940
941 * target.h (struct target_ops): Remove to_lookup_symbol field.
942 (target_lookup_symbol): Delete macro.
943 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
944 (update_current_target, setup_target_debug): Remove handling
945 of to_lookup_symbol target_ops field.
946 * ada-tasks.c (get_known_tasks_addr): Remove use of
947 target_lookup_symbol.
948 * coffread.c (coff_symtab_read): Likewise.
949 * dbxread.c (read_dbx_symtab): Ditto.
950
951 2011-03-17 Joel Brobecker <brobecker@gnat.com>
952
953 PR gdb/12116:
954 * configure.ac: Add getthrds declaration check.
955 * configure, config.in: Regenerate.
956 * aix-thread.c (getthrds): Declare only if not already declared
957 in procinfo.h. More declaration out of get_signaled_thread to
958 global scope.
959
960 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
961
962 * python/py-symtab.c: Populate symtab_object_methods,
963 sal_object_methods.
964 (stpy_is_valid): New function.
965 (salpy_is_valid): Ditto.
966 * python/py-symbol.c: Declare symbol_object_methods. Populate.
967 (sympy_is_valid): New function.
968 * python/py-objfile.c: Declare objfile_object_methods. Populate.
969 (objfpy_is_valid): New function.
970 * python/py-inferior.c: Populate inferior_object_methods.
971 (infpy_is_valid): New function.
972 * python/py-infthread.c: Populate thread_object_methods.
973 (thpy_is_valid): New function.
974 * python/py-block.c: Declare block_object_methods. Populate. Declare
975 block_iterator_object_methods. Populate.
976 (blpy_is_valid): New function.
977 (blpy_iter_is_valid): Ditto.
978
979 2011-03-16 Keith Seitz <keiths@redhat.com>
980
981 * linespec.c (find_methods): Canonicalize NAME before looking
982 up the symbol.
983 (name_end): New function.
984 (keep_name_info): New function.
985 (decode_line_1): Use keep_name_info.
986 (decode_compound): Likewise.
987 * cli/cli-utils.h (remove_trailing_whitespace): New function.
988 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
989
990 PR c++/12273
991 * linespec.c (locate_first_half): Keep overload information, too.
992 (decode_compound): Use a string to represent break characters
993 to escape the loop.
994 If P points to a break character, do not increment it.
995 For C++ and Java, keep overload information and relevant keywords.
996 If we cannot find a symbol, search the minimal symbols.
997
998 PR c++/11734
999 * linespec.c (decode_compound): Rename SAVED_ARG to
1000 THE_REAL_SAVED_ARG.
1001 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1002 single-quotes.
1003 Pass a valid block to lookup_symbol.
1004 (lookup_prefix_sym): Likewise.
1005 (find_method): Construct search name based on SYM_CLASS instead
1006 of SAVED_ARG.
1007 * psymtab.c (lookup_partial_symbol): Add language parameter.
1008 (lookup_symbol_aux_psymtabs): Likewise.
1009 Don't assume that the psymtab we found was the right one. Search
1010 for the desired symbol in the symtab to be certain.
1011 (psymtab_search_name): New function.
1012 (lookup_partial_symbol): Use psymtab_search_name.
1013 Add language parameter.
1014 (read_symtabs_for_function): Add language parameter and pass to
1015 lookup_partial_symbol.
1016 (find_symbol_file_from_partial): Likewise.
1017
1018 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1019
1020 PR gdb/12528
1021 * dwarf2read.c (noop_record_line): New function.
1022 (dwarf_decode_lines): Ignore line tables for GCd functions.
1023
1024 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1025
1026 Fix ARI warnings about new lines at the end of messages, which
1027 are unneeded as there is a new line added at the end of the message
1028 automatically.
1029 * darwin-nat.c (darwin_stop_inferior): Ditto.
1030 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1031 * dfp.c (decimal_to_number): Ditto.
1032 * exec.c (print_section_info): Ditto.
1033 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1034 * osdata.c (get_osdata): Ditto.
1035 * record.c (bfdcore_write): Ditto.
1036 * remote-mips.c (mips_readchar): Ditto.
1037 * remote.c (read_ptid): Ditto.
1038 * ser-mingw.c (ser_windows_raw): Ditto.
1039 * tracepoint.c (add_local_symbols): Ditto.
1040 * windows-nat.c (fake_create_process): Ditto.
1041
1042 2011-03-16 Tom Tromey <tromey@redhat.com>
1043
1044 * tracepoint.c (stop_tracing): Don't declare.
1045 * event-top.c (after_char_processing_hook): Add `(void)'.
1046
1047 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
1048
1049 * NEWS: Add Parameter sub-classing description.
1050
1051 2011-03-16 Kai Tietz <ktietz@redhat.com>
1052
1053 * MAINTAINERS: Update my e-mail address.
1054
1055 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
1056
1057 * MAINTAINERS: Add myself for write after approval privileges.
1058
1059 2011-03-15 Michael Snyder <msnyder@vmware.com>
1060
1061 * frame.c (find_frame_sal): Assert sym is not null.
1062
1063 * dbxread.c (process_one_symbol): Assert 'name' is not null.
1064
1065 * objc-lang.c (selectors_info): Check strchr for null result.
1066
1067 * stabsread.c (define_symbol): Guard against bad stabstring input.
1068
1069 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1070
1071 Remove trailing spaces and tabulations from pascal language
1072 support sources.
1073 p-exp.y: Ditto.
1074 p-lang.c: Ditto.
1075 p-lang.h: Ditto.
1076 p-valprint.c: Ditto.
1077
1078 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1079
1080 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
1081 than LOW. Comment it.
1082 (read_partial_die): Call complaint for inappropriate zero LOWPC or
1083 HIGHPC not strictly higher than LOWPC.
1084
1085 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1086
1087 Fix formatting of function declarations returning a pointer in
1088 previous commit.
1089 * varobj.c (varobj_add_child): Ditto.
1090 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
1091 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
1092
1093 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1094
1095 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
1096 for the "generic" vector ABI used with GCC 4.3 and later.
1097 (ppc64_sysv_abi_return_value): Likewise.
1098
1099 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1100
1101 * infcall.c (call_function_by_hand): Function return value is
1102 always a non_lval, even when using struct_return.
1103
1104 2011-03-15 Pedro Alves <pedro@codesourcery.com>
1105
1106 * printcmd.c (ALL_DISPLAYS_SAFE): New.
1107 (map_display_numbers): New.
1108 (do_delete_display): New.
1109 (undisplay_command): Use map_display_numbers.
1110 (do_enable_disable_display): New.
1111 (enable_disable_display_command): New function.
1112 (enable_display): Delete.
1113 (enable_display_command): New.
1114 (disable_display_command): Reimplement.
1115 (_initialize_printcmd): Adjust "enable display" command to use
1116 `enable_display_command' as callback.
1117
1118 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1119
1120 * NEWS: Add Python breakpoint 'stop' operation.
1121
1122 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1123
1124 * NEWS: Delete duplicate entry. Fix typo.
1125
1126 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1127
1128 Fix ARI warning about function names in first column.
1129 Put prototype declaration on same line as return type.
1130 * objc-exp.y: Ditto.
1131 * p-exp.y: Ditto.
1132 * python/py-stopevent.h: Ditto.
1133 For long function names, split parameters to
1134 allow function name on same line as return type.
1135 * solib-pa64.c: Ditto.
1136 * varobj.c: Ditto.
1137 * varobj.h: Ditto.
1138 For long function declaration, use single line.
1139 * hppa-tdep.h: Ditto.
1140 * inferior.h: Ditto.
1141
1142 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1143
1144 * python/python.h: Declare gdbpy_should_stop and
1145 gdbpy_breakpoint_has_py_cond.
1146 * python/python.c: Add python.h to includes. Remove python.h from
1147 HAVE_PYTHON definition
1148 (gdbpy_should_stop): New dummy function.
1149 (gdbpy_breakpoint_has_py_cond): New dummy function.
1150 * python/py-breakpoint.c (bppy_init): Rewrite to allow
1151 sub-classing capabilities.
1152 (gdbpy_should_stop): New function.
1153 (gdbpy_breakpoint_has_py_cond): New function.
1154 (local_setattro): New function.
1155 * breakpoint.c (condition_command): Add check for Python 'stop'
1156 operation.
1157 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
1158 operation function as part of stop/continue tests.
1159
1160 2011-03-14 Tom Tromey <tromey@redhat.com>
1161
1162 PR gdb/12576:
1163 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
1164 (needs_frame_dwarf_call): Likewise.
1165
1166 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1167
1168 Fix ARI warning about functions without parameters that do not
1169 use (void).
1170 * breakpoint.c (all_tracepoints): Replace () by (void).
1171 * f-exp.y (match_string_literal): Ditto.
1172 (yylex): Ditto.
1173 * m2-exp.y (yylex): Ditto.
1174 * mep-tdep.c (current_me_module): Ditto.
1175 (current_options): Ditto.
1176 (current_cop_data_bus_width): Ditto.
1177 (current_cr_names): Ditto.
1178 (current_cr_is_float): Ditto.
1179 (current_ccr_names): Ditto.
1180 * objc-exp.y (yylex): Ditto.
1181 * p-exp.y (yylex): Ditto.
1182 * remote.c (send_interrupt_sequence): Ditto.
1183 * tracepoint.c (current_trace_status): Ditto.
1184 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
1185 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
1186
1187 2011-03-11 Michael Snyder <msnyder@vmware.com>
1188
1189 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
1190 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
1191 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
1192 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
1193 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
1194
1195 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
1196 (delete_async_event_handler): Ditto.
1197
1198 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
1199
1200 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
1201
1202 * top.c (set_verbose): Assert showcmd was found.
1203
1204 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
1205
1206 * xtensa-tdep.c (warning_once): Correct style issues.
1207
1208 2011-03-11 Yao Qi <yao@codesourcery.com>
1209
1210 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
1211
1212 2011-03-11 Andreas Schwab <schwab@redhat.com>
1213
1214 * common/aclocal.m4: Remove.
1215
1216 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1217
1218 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
1219 (xtensa_write_register, xtensa_read_register): Likewise.
1220 (xtensa_hextochar): Removed.
1221 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
1222
1223 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1224
1225 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
1226 (xtensa_call0_frame_cache_t): Update comments. New fields added.
1227 (xtensa_alloc_frame_cache): Add initialization for new fields.
1228 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
1229 (warning_once): New function.
1230 (xtensa_insn_kind): New item c0opc_and.
1231 (call0_classify_opcode): Add the case for AND instruction.
1232 (call0_track_op): Change arguments. New local variable litbase.
1233 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
1234 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
1235 in the prologue.
1236 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
1237 (call0_analyze_prologue): Update the comments. Change arguments.
1238 Add the variety of updates to handle extended prologues, which now can
1239 conduct dynamic stack adjustments.
1240 (call0_frame_cache): Likewise.
1241 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
1242 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
1243
1244 2011-03-10 Michael Snyder <msnyder@vmware.com>
1245
1246 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
1247 (cmd_qtframe): Ditto.
1248 (cmd_qtbuffer): Ditto.
1249 (cmd_bigqtbuffer): Ditto.
1250
1251 2011-03-10 Tom Tromey <tromey@redhat.com>
1252
1253 * tracepoint.c (trace_actions_command): Update.
1254 * thread.c (thread_apply_command): Update.
1255 * reverse.c (delete_bookmark_command): Update.
1256 (bookmarks_info): Update.
1257 * printcmd.c (undisplay_command): Update.
1258 * memattr.c (mem_enable_command): Update.
1259 (mem_disable_command): Update.
1260 (mem_delete_command): Update.
1261 * inferior.c (detach_inferior_command): Update.
1262 (kill_inferior_command): Update.
1263 (remove_inferior_command): Update.
1264 * cli/cli-utils.h (struct get_number_or_range_state): New.
1265 (init_number_or_range): Declare.
1266 (get_number_or_range): Update.
1267 * cli/cli-utils.c (init_number_or_range): New function.
1268 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
1269 static variables.
1270 (number_is_in_list): Update.
1271 * breakpoint.h (get_tracepoint_by_number): Update.
1272 * breakpoint.c (map_breakpoint_numbers): Update for change to
1273 get_number_or_range.
1274 (find_location_by_number): Use get_number, not
1275 get_number_or_range.
1276 (trace_pass_set_count): New function.
1277 (trace_pass_command): Update for change to get_number_or_range.
1278 Rework loop logic.
1279 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
1280 'state' parameter.
1281
1282 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
1283
1284 * python/py-param.c (add_setshow_generic): Add set/show callback
1285 parameters. Register Python object context.
1286 (get_show_value): New function.
1287 (get_set_value): New function.
1288 (call_doc_function): New function.
1289 (get_doc_string): Move behind get_show_value/get_set_value.
1290
1291 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
1292
1293 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
1294
1295 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
1296
1297 * xtensa-tdep.c (xtensa_read_register): Add comment.
1298 (xtensa_write_register): Likewise.
1299 (xtensa_hextochar): Add comment and update to match coding conventions.
1300 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
1301 (execute_l32e, execute_s32e, execute_code): Update comments.
1302 (xtensa_exception_handler_t): Update to match coding conventions.
1303 (xtensa_insn_kind): Likewise.
1304
1305 2011-03-09 Michael Snyder <msnyder@vmware.com>
1306
1307 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
1308
1309 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1310
1311 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
1312
1313 2011-03-09 Tom Tromey <tromey@redhat.com>
1314
1315 * thread.c (restore_selected_frame): Handle frame_level == -1.
1316 (make_cleanup_restore_current_thread): Use
1317 get_selected_frame_if_set.
1318 * frame.h (get_selected_frame_if_set): Declare.
1319 * frame.c (get_selected_frame_if_set): New function.
1320
1321 2011-03-09 Pedro Alves <pedro@codesourcery.com>
1322
1323 * cli/cli-cmds.c (shell_escape): Use lbasename.
1324 * coffread.c (coff_start_symtab): Constify parameter.
1325 (complete_symtab): Constify `name' parameter.
1326 (coff_symtab_read): Constify `filestring' local.
1327 (coff_getfilename): Constify return and `result' local.
1328 Use lbasename.
1329 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
1330 * linux-fork.c (info_checkpoints_command): Use lbasename.
1331 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
1332 * minsyms.c (lookup_minimal_symbol): Use lbasename.
1333 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
1334 * procfs.c (procfs_make_note_section): Use lbasename.
1335 * tui/tui-io.c (printable_part): Constity return and parameter.
1336 Use lbasename.
1337 (print_filename): Constify parameters, and local `s'.
1338 (tui_rl_display_match_list): Constify local `temp'.
1339
1340 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1341
1342 Revert:
1343 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1344 Fix DWARF-3+ DW_AT_accessibility default assumption.
1345 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1346 cu->header.version >= 3.
1347
1348 2011-03-09 Yao Qi <yao@codesourcery.com>
1349
1350 * common/Makefile.in: Remove.
1351 * common/configure: Remove.
1352 * common/configure.ac: Remove.
1353
1354 2011-03-09 Yao Qi <yao@codesourcery.com>
1355
1356 Revert:
1357 2011-02-11 Yao Qi <yao@codesourcery.com>
1358
1359 * common/Makefile.in: Add copyright header.
1360
1361 2011-02-11 Yao Qi <yao@codesourcery.com>
1362
1363 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1364 libcommon.a.
1365 * configure.ac: Add common to sub dir.
1366 * configure: Regenerate.
1367
1368 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1369
1370 * xtensa-tdep.c (call0_ret): New function.
1371 (xtensa_skip_prologue): Speed up analysis.
1372
1373 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1374
1375 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
1376 while executing MI command -data-list-changed-registers.
1377
1378 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1379
1380 * xtensa-tdep.c (xtensa_read_register): New function.
1381 (xtensa_write_register): New function.
1382 (xtensa_find_register_by_name): New function.
1383 (xtensa_windowed_frame_cache): Update comments in type description.
1384 (xtensa_frame_cache): Likewise.
1385 (xtensa_window_interrupt_insn): New function.
1386 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
1387 (xtensa_insn_kind): Add new instructions.
1388 (rwx_special_register): New function.
1389 (call0_classify_opcode): Add new instructions to the analysis.
1390 (a0_saved, a7_saved, a11_saved): New variables.
1391 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
1392 (execute_l32e): New function.
1393 (execute_s32e): New function.
1394 (xtensa_exception_handler_t): New type.
1395 (execute_code): New function.
1396 (xtensa_window_interrupt_frame_cache): New function to conduct frame
1397 analysis for Xtensa Window Exception handlers.
1398
1399 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1400
1401 * xtensa-tdep.c (TX_PS): New.
1402 (windowing_enabled): Update to count for Call0 ABI.
1403 (xtensa_hextochar): New.
1404 (xtensa_init_reggroups): Make algorithm generic.
1405 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
1406
1407 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1408
1409 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
1410
1411 2011-03-08 Michael Snyder <msnyder@vmware.com>
1412
1413 * i386-tdep.c (i386_follow_jump): Check return value of
1414 target_read_memory.
1415 (i386_analyze_struct_return): Ditto.
1416 (i386_skip_probe): Ditto.
1417 (i386_match_insn): Ditto.
1418 (i386_skip_noop): Ditto.
1419 (i386_analyze_frame_setup): Ditto.
1420 (i386_analyze_register_saves): Ditto.
1421 (i386_skip_prologue): Ditto.
1422 (i386_skip_main_prologue): Ditto.
1423
1424 * target.c (read_whatever_is_readable): Fix memory leak.
1425
1426 * i386-tdep.c (i386_process_record): Document fall through.
1427
1428 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1429
1430 Fix DWARF-3+ DW_AT_accessibility default assumption.
1431 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1432 cu->header.version >= 3.
1433
1434 2011-03-08 Pedro Alves <pedro@codesourcery.com>
1435
1436 * remote.c (remote_check_symbols): Skip if the target has no
1437 execution.
1438
1439 2011-03-08 Joel Brobecker <brobecker@adacore.com>
1440
1441 * target.c (read_whatever_is_readable): Reformat comment,
1442 with a minor typo fix. Minor reformatting of the code.
1443
1444 2011-03-08 Yao Qi <yao@codesourcery.com>
1445
1446 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
1447 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
1448 Use cached result instead of calling displaced_in_arm_mode again.
1449 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
1450 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
1451 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
1452 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
1453 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
1454 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
1455 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
1456 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
1457 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1458 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
1459 (arm_catch_kernel_helper_return): Likewise.
1460 * gdb/arm-tdep.h : Update function declarations.
1461
1462 2011-03-07 Michael Snyder <msnyder@vmware.com>
1463
1464 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
1465
1466 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
1467
1468 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
1469
1470 * elfread.c (elf_symtab_read): Stop memory leak.
1471
1472 * main.c (captured_main): Fix memory leak.
1473
1474 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
1475
1476 * ada-lang.c (compare_names): Call is_name_suffix with string1
1477 instead of string2.
1478
1479 2011-03-07 Tom Tromey <tromey@redhat.com>
1480
1481 * xcoffread.c (xcoff_sym_fns): Update.
1482 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
1483 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
1484 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
1485 (symbol_file_add_with_addrs_or_offsets): Likewise.
1486 (reread_symbols): Handle OBJF_PSYMTABS_READ.
1487 * somread.c (som_sym_fns): Update.
1488 * psymtab.h (require_partial_symbols): Declare.
1489 * psymtab.c (require_partial_symbols): New function.
1490 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
1491 (ALL_OBJFILE_PSYMTABS): Undef.
1492 (ALL_PSYMTABS): Move from psympriv.h.
1493 (lookup_partial_symtab, find_pc_sect_psymtab)
1494 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
1495 (find_last_source_symtab_from_partial)
1496 (forget_cached_source_info_partial)
1497 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
1498 (expand_partial_symbol_tables, read_psymtabs_with_filename)
1499 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
1500 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
1501 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
1502 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
1503 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
1504 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
1505 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
1506 psymtabs.
1507 * mipsread.c (ecoff_sym_fns): Update.
1508 * machoread.c (macho_sym_fns): Update.
1509 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
1510 (read_psyms): New function.
1511 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
1512 (elf_sym_fns_lazy_psyms): New global.
1513 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
1514 dwarf2_build_psymtabs.
1515 * dbxread.c (aout_sym_fns): Update.
1516 * coffread.c (coff_sym_fns): Update.
1517
1518 2011-03-07 Tom Tromey <tromey@redhat.com>
1519
1520 * infrun.c (print_exited_reason): Include inferior id and pid in
1521 message.
1522
1523 2011-03-07 Tom Tromey <tromey@redhat.com>
1524
1525 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
1526 parameter.
1527 (target_has_execution_1): Update.
1528 (target_has_execution_current): Declare.
1529 (target_has_execution): Call target_has_execution_current.
1530 (default_child_has_execution): Update.
1531 * target.c (default_child_has_execution): Add 'the_ptid'
1532 parameter.
1533 (target_has_execution_1): Likewise.
1534 (target_has_execution_current): New function.
1535 (add_target): Update.
1536 (init_dummy_target): Update.
1537 * remote-m32r-sdi.c (m32r_has_execution): New function.
1538 (init_m32r_ops): Use it.
1539 * record.c (record_core_has_execution): Now static. Add
1540 'the_ptid' parameter.
1541 * inferior.c (have_live_inferiors): Don't save current thread.
1542 Use target_has_execution_1.
1543
1544 2011-03-07 Yao Qi <yao@codesourcery.com>
1545
1546 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
1547
1548 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1549
1550 * elfread.c (elf_symtab_read): Minor reformatting.
1551
1552 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1553
1554 * objc-lang.c (selectors_info): Minor reformatting.
1555
1556 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1557
1558 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
1559
1560 2011-03-07 Joel Brobecker <brobecker@adacore.com>
1561 Michael Snyder <msnyder@vmware.com>
1562
1563 * ada-valprint.c (ada_val_print_array): Move the declaration of
1564 "byte_order" and "elttype" inside the block where these variables
1565 are actually used. Remove some special handling for the case
1566 where "elttype" and "eltlen" are null. Replace by a comment
1567 and a couple of assertion checks.
1568
1569 2011-03-05 Michael Snyder <msnyder@vmware.com>
1570
1571 * source.c (add_path): Replace semicolon at end of block.
1572 * dwarf2expr.c (execute_stack_op): Ditto.
1573
1574 2011-03-05 Mike Frysinger <vapier@gentoo.org>
1575
1576 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
1577 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
1578 (bfin-*-*): Likewise.
1579
1580 2011-03-05 Michael Snyder <msnyder@vmware.com>
1581
1582 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
1583 * mdebugread.c (parse_symbol): Ditto.
1584 * parse.c (parse_exp_in_context): Ditto.
1585 * source.c (add_path): Ditto.
1586 * utils.c (gnu_debuglink_crc32): Ditto.
1587 * varobj.c (variable_language): Ditto.
1588
1589 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
1590
1591 2011-03-04 Michael Snyder <msnyder@vmware.com>
1592
1593 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
1594
1595 * symfile.c (simple_overlay_update): Check for null return value
1596 from lookup_minimal_symbol.
1597
1598 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
1599
1600 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1601
1602 * eval.c (parse_and_eval_address_1): Remove function.
1603 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
1604 instead of parse_and_eval_address_1.
1605 * value.h (parse_and_eval_address_1): Remove prototype.
1606
1607 2011-03-04 Michael Snyder <msnyder@vmware.com>
1608
1609 * remote.c (putpkt_binary): Document that case stmt falls through.
1610
1611 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1612
1613 * breakpointc (print_it_typical): Move NULL check from here...
1614 (print_bp_stop_message): ... to here.
1615
1616 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1617
1618 * breakpoint.c (enable_command): Use break instead of continue,
1619 and fill in a missing break.
1620 (disable_command): Ditto.
1621
1622 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1623
1624 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
1625 (terminal_save_ours): Remove misleading comment.
1626 (inflow_inferior_data_cleanup): Free ttystate.
1627 (inflow_inferior_exit): Likewise.
1628 (copy_terminal_info): Copy ttystate.
1629
1630 * serial.c (serial_copy_tty_state): New function.
1631 * serial.h (serial_copy_tty_state): Add prototype.
1632 (struct serial_ops): Add copy_tty_state callback.
1633 * ser-base.c (ser_base_copy_tty_state): New function.
1634 * ser-base.h (ser_base_copy_tty_state): Add prototype.
1635 * ser-go32.c (dos_copy_tty_state): New function.
1636 (dos_ops): Install copy_tty_state callback.
1637 * ser-mingw.c (_initialize_ser_windows): Likewise.
1638 * ser-pipe.c (_initialize_ser_pipe): Likewise.
1639 * ser-unix.c (hardwire_copy_tty_state): New function.
1640 (_initialize_ser_hardwire): Install it.
1641
1642 2011-03-04 Michael Snyder <msnyder@vmware.com>
1643
1644 * breakpoint.c (create_breakpoint): Add missing break statement.
1645
1646 Reverting this patch:
1647 * infcall.c (call_function_by_hand): Add break statements for lint.
1648
1649 Reverting this patch:
1650 * cli/cli-script.c (script_from_file): Add break for lint.
1651
1652 2011-03-04 Michael Snyder <msnyder@vmware.com>
1653
1654 * solib.c (reload_shared_libraries_1): Close memory leak.
1655
1656 2011-03-03 Tom Tromey <tromey@redhat.com>
1657
1658 PR gdb/12538:
1659 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
1660 DW_STRING is NULL.
1661
1662 2011-03-03 Michael Snyder <msnyder@vmware.com>
1663
1664 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
1665 fields of struct 'st' to zero.
1666
1667 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
1668 sal.pspace before calling set_current_source_symtab_and_line.
1669
1670 2011-03-03 Yao Qi <yao@codesourcery.com>
1671
1672 * Makefile.in (configure-common): Remove. Let Makefile
1673 in dir common to rebuild itself.
1674 (common/Makefile): Likewise.
1675
1676 2011-03-03 Joel Brobecker <brobecker@adacore.com>
1677
1678 * utils.c (parse_escape): Add i18n markup in error message.
1679
1680 2011-03-03 Yao Qi <yao@codesourcery.com>
1681
1682 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
1683 ARM_PC_REGNUM.
1684 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
1685 (displaced_write_reg, displaced_read_reg): Likewise.
1686 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
1687 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1688 (cleanup_branch): Replace magic number 14 and 15 with
1689 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
1690
1691 2011-03-02 Michael Snyder <msnyder@vmware.com>
1692
1693 * maint.c (maintenance_do_deprecate): No need to check for NULL.
1694
1695 * cli/cli-script.c (script_from_file): Add break for lint.
1696
1697 * mdebugread.c (parse_partial_symbols): Fix indent.
1698
1699 * target-descriptions.c (tdesc_gdb_type): No need to call
1700 xstrdup, callee saves a copy.
1701
1702 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
1703
1704 * infcall.c (call_function_by_hand): Add break statements for lint.
1705
1706 * utils.c (parse_escape): Escape the escape char.
1707
1708 * python/py-inferior.c (build_inferior_list): Error out if
1709 PyList_Append fails.
1710 (gdbpy_inferiors): Error out if build_inferior_list fails.
1711
1712 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
1713 a function call.
1714
1715 * record.c (record_restore): Move printf to before error return.
1716
1717 2011-03-02 Yao Qi <yao@codesourcery.com>
1718
1719 * arm-tdep.h (struct displaced_step_closure): Add two new fields
1720 is_thumb and insn_size.
1721 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
1722 on both ARM and Thumb mode.
1723 (arm_process_displaced_insn): Set is_thumb and insn_size.
1724 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
1725 (arm_displaced_step_fixup): Likewise.
1726
1727 2011-03-01 Michael Snyder <msnyder@vmware.com>
1728
1729 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
1730
1731 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
1732
1733 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
1734
1735 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
1736
1737 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
1738 with xmalloc.
1739
1740 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
1741 which shadows function parameter.
1742
1743 * tracepoint.c (create_tsv_from_upload): Superfluous call
1744 to xstrdup. Callee already calls xstrdup.
1745
1746 * linespec.c (decode_line_1): Remove unnecessary null check.
1747
1748 * tracepoint.c (scope_info): Fix mem leak, remove underused
1749 variable.
1750
1751 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
1752 superfluous null check.
1753
1754 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
1755 (value_of_builtin_frame_fp_reg): Ditto.
1756
1757 * event-top.c (display_gdb_prompt): Remove superfluous null check.
1758
1759 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
1760 be null.
1761
1762 * linespec.c (decode_line_1): Check for null before dereference.
1763
1764 * reverse.c (record_restore): Move null-check to before pointer
1765 dereference.
1766
1767 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
1768
1769 * objc-lang.c (selectors_info): Add explanitory comment.
1770 (classes_info): Ditto.
1771
1772 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1773
1774 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
1775 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
1776 versions of the trampoline. Handle Thumb vs. ARM addresses.
1777 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
1778 (arm_linux_init_abi): Install it.
1779 * arm-tdep.c (arm_psr_thumb_bit): Make global.
1780 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
1781
1782 2011-02-28 Michael Snyder <msnyder@vmware.com>
1783
1784 * ui-out.c (ui_out_field_core_addr): Make local char buffer
1785 a little bigger, to avoid possibility of an overflow.
1786
1787 * breakpoint.c (breakpoint_adjustment_warning): Make local char
1788 buffers a little bigger, to avoid possibility of an overflow.
1789
1790 * coffread.c (coff_getfilename): Add check to avoid overflow.
1791
1792 * objc-lang.c (selectors_info): Add a small safety margin to
1793 avoid overflow.
1794 (classes_info): Error out on too long REGEXP.
1795
1796 * infrun.c (handle_inferior_event): Remove unused function call.
1797
1798 * fork-child.c (fork_inferior): Remove ifdef'd code and
1799 unused variable.
1800
1801 * linux-thread-db.c (attach_thread): Discard unused value.
1802
1803 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
1804
1805 * remote.c (remote_get_noisy_reply): Discard unused value.
1806 (remote_vcont_resume): Ditto.
1807 (remote_stop_ns): Ditto.
1808
1809 * linespec.c (decode_objc): Delete unused variable.
1810
1811 * tui/tui-regs.c (tui_register_format): Delete unused variable.
1812
1813 * dwarf2read.c (add_partial_symbol): Discard unused values.
1814 (read_base_type): Delete unused variable.
1815
1816 * dbxread.c (read_dbx_symtab): Discard unused value.
1817
1818 * eval.c (evaluate_subexp_standard): Delete unused variable,
1819 and discard unused values.
1820
1821 * infcmd.c (_initialize_infcmd): Discard unused values.
1822
1823 * stabsread.c (rs6000_builtin_type): Missing break statement.
1824
1825 * dbxread.c (process_one_symbol): Discard unused value.
1826
1827 * coffread.c (coff_end_symtab): Delete unused variable.
1828
1829 * dwarf2read.c (dw2_get_file_names): Discard unused value.
1830 (dwarf2_add_typedef): Delete unused variable.
1831 (read_namespace): Ditto.
1832 (dwarf_decode_macros): Ditto.
1833
1834 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
1835
1836 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
1837
1838 * p-valprint.c (pascal_val_print): Discard unused value.
1839
1840 * utils.c (nquery): Call va_end before return;
1841 (yquery): Ditto.
1842 (query): Ditto.
1843
1844 * proc-service.c (ps_plog): Call va_end before return.
1845
1846 2011-02-28 Tom Tromey <tromey@redhat.com>
1847
1848 * python/python.c (gdbpy_value_cst): New global.
1849 (_initialize_python): Initialize it.
1850 * python/python-internal.h (gdbpy_value_cst): Declare.
1851 * python/py-value.c (convert_value_from_python): Use
1852 gdbpy_value_cst.
1853
1854 2011-02-28 Michael Snyder <msnyder@vmware.com>
1855
1856 * python/py-cmd.c (cmdpy_init): Fix memory leak.
1857
1858 * breakpoint.c (catch_syscall_completer): Free malloced list.
1859
1860 * jv-lang.c (java_primitive_type_from_name): Add missing break.
1861
1862 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
1863 (lval_func_check_synthetic_pointer): Ditto.
1864 (lval_func_free_closure): Fix use-after-free.
1865
1866 2011-02-28 Tom Tromey <tromey@redhat.com>
1867
1868 * psymtab.c (expand_partial_symbol_tables): Use
1869 ALL_OBJFILE_PSYMTABS.
1870
1871 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1872
1873 * objc-lang.c (selectors_info): Error on too long REGEXP.
1874
1875 2011-02-28 Michael Snyder <msnyder@vmware.com>
1876
1877 * python/py-param.c (set_parameter_value): Add missing
1878 break statement.
1879
1880 * linux-record.c (record_linux_system_call): Add missing
1881 break statement.
1882
1883 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1884
1885 * breakpoint.c (print_one_breakpoint_location): Remove unused
1886 argument PRINT_ADDRESS_BITS. Update callers.
1887 (print_one_breakpoint): Likewise.
1888
1889 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1890
1891 * breakpoint.c (wrap_indent_at_field): New function.
1892 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
1893 Allocate ui_stream locally instead of using STB argument.
1894 (print_one_breakpoint_location): Update call.
1895 * ui-out.c (ui_out_query_field): New function.
1896 * ui-out.h (ui_out_query_field): Add prototype.
1897
1898 2011-02-28 Joel Brobecker <brobecker@adacore.com>
1899
1900 From Michael Snyder <msnyder@vmware.com>
1901 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
1902
1903 2011-02-27 Michael Snyder <msnyder@vmware.com>
1904
1905 * objc-lang.c (selectors_info): Prevent string overrun.
1906
1907 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
1908 error in strncpy.
1909
1910 * symtab.c (rbreak_command): Move variable 'file_name' to
1911 outer scope.
1912
1913 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
1914 param with a local variable of the same name.
1915
1916 2011-02-27 Michael Snyder <msnyder@vmware.com>
1917
1918 * value.c (value_from_history_ref): New function.
1919 * value.h (value_from_history_ref): Export.
1920 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
1921 to parse value history references.
1922 * cli/cli-utils.h (get_number_trailer): Update comment.
1923
1924 2011-02-27 Michael Snyder <msnyder@vmware.com>
1925
1926 * inferior.c (detach_inferior_command): Use get_number_or_range.
1927 (kill_inferior_command): Ditto.
1928 (remove_inferior_command): Ditto.
1929 (initialize_inferiors): Make command names plural.
1930 Update help strings.
1931
1932 2011-02-27 Michael Snyder <msnyder@vmware.com>
1933
1934 * darwin-nat-info.c: Fix comment typo.
1935 * dwarf2expr.h: Ditto.
1936 * fbsd-nat.c: Ditto.
1937 * fbsd-nat.h: Ditto.
1938 * frame-unwind.h: Ditto.
1939 * frame.h: Ditto.
1940 * hppa-hpux-tdep.c: Ditto.
1941 * i386-linux-nat.c: Ditto.
1942 * linux-nat.c: Ditto.
1943 * nbsd-nat.c: Ditto.
1944 * nbsd-nat.h: Ditto.
1945 * ppc-linux-tdep.c: Ditto.
1946 * serial.c: Ditto.
1947 * ui-file.h: Ditto.
1948 * tui/tui-winsource.c: Ditto.
1949
1950 2011-02-26 Michael Snyder <msnyder@vmware.com>
1951
1952 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
1953
1954 * maint.c (maintenance_do_deprecate): Plug a memory leak.
1955
1956 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
1957 with a local variable of the same name.
1958
1959 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
1960 param with a local variable of the same name.
1961 (i387_supply_xsave): Ditto.
1962
1963 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
1964 that it does not shadow a function parameter.
1965
1966 * i386-nat.c (i386_length_and_rw_bits): Document that case
1967 statement is meant to fall through.
1968
1969 * expprint.c (dump_subexp_body_standard): Document that case
1970 statement is meant to fall through.
1971
1972 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
1973 dead if statement. Condition can't be false.
1974
1975 2011-02-25 Michael Snyder <msnyder@vmware.com>
1976
1977 * arm-tdep.c: Fix typos in comments.
1978 * bsd-uthread.c: Ditto.
1979 * completer.c: Ditto.
1980 * corelow.c: Ditto.
1981 * cp-namespace.c: Ditto.
1982 * cp-support.c: Ditto.
1983 * cris-tdep.c: Ditto.
1984 * dbxread.c: Ditto.
1985 * dwarf2read.c: Ditto.
1986 * frame.h: Ditto.
1987 * gdbtypes.h: Ditto.
1988 * inferior.h: Ditto.
1989 * mdebugread.c: Ditto.
1990 * mips-tdep.c: Ditto.
1991 * ppc-linux-nat.c: Ditto.
1992 * ppc-linux-tdep.c: Ditto.
1993 * printcmd.c: Ditto.
1994 * sol-thread.c: Ditto.
1995 * solib-frv.c: Ditto.
1996 * solist.h: Ditto.
1997 * sparc64-tdep.c: Ditto.
1998 * spu-tdep.c: Ditto.
1999 * stabsread.c: Ditto.
2000 * symfile.c: Ditto.
2001 * valops.c: Ditto.
2002 * varobj.c: Ditto.
2003 * vax-nat.c: Ditto.
2004 * python/py-block.c: Ditto.
2005 * python/py-symbol.c: Ditto.
2006 * python/py-symtab.c: Ditto.
2007 * python/py-value.c: Ditto.
2008 * tui/tui-win.c: Ditto.
2009
2010 2011-02-25 Michael Snyder <msnyder@vmware.com>
2011
2012 * inferior.c (print_inferior): Accept a string instead of an int
2013 for requested_inferiors, and use get_number_or_range to parse it.
2014 (info_inferiors_command): Pass args string to print_inferior.
2015 (initialize_inferiors): Change help string for info inferiors.
2016 * inferior.h (print_inferior): Export prototype change.
2017
2018 2011-02-25 Tom Tromey <tromey@redhat.com>
2019
2020 * common/ax.def (invalid2): Set to 0x31.
2021
2022 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2023
2024 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2025 L and plongest.
2026 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2027 use L and plongest.
2028 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2029
2030 2011-02-24 Michael Snyder <msnyder@vmware.com>
2031
2032 * Makefile.in (clean): Make clean should remove generated files
2033 observer.h and observer.inc.
2034
2035 2011-02-24 Joel Brobecker <brobecker@adacore.com>
2036
2037 Revert the following patch (not approved yet):
2038 2011-02-21 Hui Zhu <teawater@gmail.com>
2039 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2040 * ax-gdb.c (gen_printf_expr_callback): New function.
2041 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2042 * ax-general.c (ax_memcpy): New function.
2043 (ax_print): Handle "printf".
2044 (ax_reqs): Ditto.
2045 * ax.h (ax_memcpy): Forward declare.
2046 * common/ax.def (invalid2): Removed.
2047 (printf): New entry.
2048 * printcmd.c (printcmd.h): New include.
2049 (string_printf): New function.
2050 (ui_printf): Removed.
2051 (printf_command): Remove static. Call string_printf.
2052 (eval_command): Call string_printf.
2053 * printcmd.h: New file.
2054 * tracepoint.c (validate_actionline,
2055 encode_actions_1): handle printf_command.
2056
2057 2011-02-23 Tom Tromey <tromey@redhat.com>
2058
2059 * ax-general.c (ax_pick): Add missing newline.
2060
2061 2011-02-23 Michael Snyder <msnyder@vmware.com>
2062
2063 * breakpoint.c (breakpoint_1): Change first argument from an int
2064 to a char pointer, so that the function now accepts a list of
2065 breakpoints rather than just one. Use new function
2066 'number_is_in_list' to implement.
2067 (breakpoints_info): Pass char * instead of int to breakpoint_1.
2068 (watchpoints_info): Ditto.
2069 (tracepoints_info): Ditto.
2070 (maintenance_info_breakpoints): Ditto.
2071 (_initialize_breakpoint): Update help strings to reflect the fact
2072 that these functions can now take more than one argument.
2073 * cli/cli-utils.c (number_is_in_list): New function.
2074 * cli/cli-utils.h (number_is_in_list): Export.
2075
2076 2011-02-23 Michael Snyder <msnyder@vmware.com>
2077
2078 * memattr.c (mem_enable_command): Use get_number_or_range.
2079 (mem_disable_command): Ditto.
2080 (mem_delete_command): Ditto.
2081 (_initialize_mem): Tweak usage message to reflect multiple
2082 arguments.
2083
2084 2011-02-22 Doug Evans <dje@google.com>
2085
2086 Add gdb.lookup_global_symbol python function.
2087 * NEWS: Add entry.
2088 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
2089 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
2090 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
2091
2092 2011-02-22 Tom Tromey <tromey@redhat.com>
2093
2094 * language.c (language_class_name_from_physname): Rename
2095 'curr_language' argument to 'lang'; use in body.
2096
2097 2011-02-22 Michael Snyder <msnyder@vmware.com>
2098
2099 * cli/cli-utils.c (number_is_in_list): Check for zero return.
2100
2101 2011-02-22 Pedro Alves <pedro@codesourcery.com>
2102
2103 * frame-unwind.h: Fix comment to mention the this frame, not the
2104 next.
2105
2106 2011-02-22 Tom Tromey <tromey@redhat.com>
2107
2108 * symfile.c (auto_solib_limit): Remove.
2109 * symfile.h (auto_solib_limit): Remove.
2110
2111 2011-02-22 Joel Brobecker <brobecker@adacore.com>
2112
2113 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
2114
2115 2011-02-21 Michael Snyder <msnyder@vmware.com>
2116
2117 * gdbthread.h (print_thread_info): Change prototype.
2118 * thread.c (print_thread_info): Accept char* instead of int for
2119 requested_threads argument. Use new function number_is_in_list
2120 to determine which threads to list.
2121 (info_threads_command): Pass char* to print_thread_info.
2122 * cli/cli-utils.c (number_is_in_list): New function.
2123 * cli/cli-utils.h (number_is_in_list): Export.
2124 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
2125 print_thread_info.
2126 (print_one_inferior): Ditto.
2127 (mi_cmd_list_thread_groups): Ditto.
2128
2129 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2130
2131 * common/Makefile.in (CFLAGS): New.
2132 (COMPILE): Add $(CFLAGS).
2133
2134 2011-02-21 Tom Tromey <tromey@redhat.com>
2135
2136 * breakpoint.c (catch_syscall_command_1): Fix typo.
2137
2138 2011-02-21 Tom Tromey <tromey@redhat.com>
2139
2140 * reverse.c: Include cli-utils.h.
2141 * printcmd.c: Include cli-utils.h.
2142 (string_printf): Use skip_spaces.
2143 * cli/cli-utils.h: New file.
2144 * cli/cli-utils.c: New file.
2145 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
2146 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
2147 * breakpoint.h (get_number, get_number_or_range): Move to
2148 cli-utils.h.
2149 * breakpoint.c: Include cli-utils.h.
2150 (get_number_trailer, get_number, get_number_or_range)
2151 (ep_skip_leading_whitespace): Move to cli-utils.c.
2152 (create_breakpoint_sal, find_condition_and_thread)
2153 (decode_static_tracepoint_spec, watch_command_1)
2154 (watch_maybe_just_location, ep_parse_optional_if_clause)
2155 (catch_fork_command_1, catch_exec_command_1)
2156 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
2157 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
2158 (SUBDIR_CLI_SRCS): Add cli-utils.c.
2159 (HFILES_NO_SRCDIR): Add cli-utils.h.
2160 (cli-utils.o): New target.
2161
2162 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2163
2164 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
2165 before calling discard_all_inferiors.
2166
2167 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2168
2169 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
2170 (struct builtin_opencl_type): Remove.
2171 (builtin_opencl_type): Change return type to "struct type **".
2172 (lookup_opencl_vector_type): Update caller.
2173 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
2174 (build_opencl_types): Install plain array of "struct type *"
2175 instead of "struct builtin_opencl_type".
2176
2177 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2178 Ulrich Weigand <uweigand@de.ibm.com>
2179
2180 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
2181 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
2182 (struct arm_linux_hwbp_cap): New type.
2183 (arm_linux_get_hwbp_cap): New function.
2184 (arm_linux_get_hw_breakpoint_count): Likewise.
2185 (arm_linux_get_hw_watchpoint_count): Likewise.
2186 (arm_linux_can_use_hw_breakpoint): Likewise.
2187 (arm_hwbp_type): New type.
2188 (arm_hwbp_control_t): Likewise.
2189 (struct arm_linux_hw_breakpoint): Likewise.
2190 (struct arm_linux_thread_points): Likewise.
2191 (arm_threads): New global variable.
2192 (arm_linux_find_breakpoints_by_tid): New function.
2193 (arm_hwbp_control_initialize): Likewise.
2194 (arm_hwbp_control_is_enabled): Likewise.
2195 (arm_hwbp_control_disable): Likewise.
2196 (arm_linux_hw_breakpoint_initialize): Likewise.
2197 (arm_linux_get_hwbp_type): Likewise.
2198 (arm_linux_hw_watchpoint_initialize): Likewise.
2199 (arm_linux_hw_breakpoint_equal): Likewise.
2200 (arm_linux_insert_hw_breakpoint1): Likewise.
2201 (arm_linux_remove_hw_breakpoint1): Likewise.
2202 (arm_linux_insert_hw_breakpoint): Likewise.
2203 (arm_linux_remove_hw_breakpoint): Likewise.
2204 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
2205 (arm_linux_insert_watchpoint): Likewise.
2206 (arm_linux_remove_watchpoint): Likewise.
2207 (arm_linux_stopped_data_address): Likewise.
2208 (arm_linux_stopped_by_watchpoint): Likewise.
2209 (arm_linux_watchpoint_addr_within_range): Likewise.
2210 (arm_linux_new_thread): Likewise.
2211 (arm_linux_thread_exit): Likewise.
2212 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
2213 related target callbacks. Register arm_linux_new_thread and
2214 arm_linux_thread_exit.
2215 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
2216 * arm-tdep.c (arm_pc_is_thumb): Make global.
2217 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
2218
2219 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2220
2221 * breakpoint.c (update_watchpoint): Do not attempt to recreate
2222 per-frame locations while within a function epilogue.
2223
2224 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2225
2226 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
2227 to GNU coding standards.
2228
2229 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2230
2231 Allow use of mingw native on Windows 95 OS.
2232 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
2233 (ser_windows_close): Only call CancelIo if function exists.
2234 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
2235 to check for existence of CancelIo function in kernel32 DLL.
2236
2237 2011-02-21 Hui Zhu <teawater@gmail.com>
2238
2239 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2240 * ax-gdb.c (gen_printf_expr_callback): New function.
2241 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2242 * ax-general.c (ax_memcpy): New function.
2243 (ax_print): Handle "printf".
2244 (ax_reqs): Ditto.
2245 * ax.h (ax_memcpy): Forward declare.
2246 * common/ax.def (invalid2): Removed.
2247 (printf): New entry.
2248 * printcmd.c (printcmd.h): New include.
2249 (string_printf): New function.
2250 (ui_printf): Removed.
2251 (printf_command): Remove static. Call string_printf.
2252 (eval_command): Call string_printf.
2253 * printcmd.h: New file.
2254 * tracepoint.c (validate_actionline,
2255 encode_actions_1): handle printf_command.
2256
2257 2011-02-19 Michael Snyder <msnyder@vmware.com>
2258
2259 * reverse.c (delete_one_bookmark): Argument is now bookmark
2260 id rather than pointer to bookmark struct.
2261 (delete_bookmark_command): Use get_number_or_range.
2262 (goto_bookmark_command): Parse with get_number instead of strtoul.
2263 (bookmark_1): New function. Print info for one bookmark.
2264 (bookmarks_info): Use get_number_or_range and bookmark_1.
2265
2266 2011-02-18 Michael Snyder <msnyder@vmware.com>
2267
2268 * thread.c (info_threads_command): Re-implement using
2269 get_number_or_range.
2270 (thread_apply_command): Ditto.
2271
2272 2011-02-18 Tom Tromey <tromey@redhat.com>
2273
2274 * common/ax.def: New file.
2275 * ax.h (enum agent_op): Use ax.def.
2276 * ax-general.c (aop_map): Use ax.def.
2277
2278 2011-02-18 Tom Tromey <tromey@redhat.com>
2279
2280 * ax-general.c (aop_map): Add pick and rot.
2281 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
2282 <DW_OP_rot>: Implement.
2283 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
2284 (ax_pick): Declare.
2285 * ax-general.c (ax_pick): New function.
2286
2287 2011-02-18 Tom Tromey <tromey@redhat.com>
2288
2289 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
2290
2291 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2292 Tom Tromey <tromey@redhat.com>
2293
2294 * cp-support.c (make_symbol_overload_list_namespace): Do not call
2295 make_symbol_overload_list_block with NULL BLOCK.
2296 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
2297
2298 2011-02-18 Pedro Alves <pedro@codesourcery.com>
2299
2300 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
2301 * breakpoint.h (get_number_or_range): Declare.
2302 * printcmd.c (ALL_DISPLAYS): Declare.
2303 (delete_display): Reimplement taking a display pointer.
2304 (undisplay_command): Accept a range of displays to delete, using
2305 get_number_or_range.
2306
2307 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2308
2309 * c-valprint.c (c_val_print): Add embedded_offset to address
2310 for arrays of unspecified length.
2311 * p-valprint.c (pascal_val_print): Likewise.
2312
2313 2011-02-18 Yao Qi <yao@codesourcery.com>
2314
2315 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
2316 (arm_process_displaced_insn): .. here. Remove parameter INSN.
2317 (thumb_process_displaced_insn): New.
2318 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
2319 call to arm_process_displaced_insn.
2320 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
2321
2322 2011-02-17 Tom Tromey <tromey@redhat.com>
2323
2324 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
2325 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
2326 compile_dwarf_to_ax. No longer static. Call
2327 dwarf2_compile_cfa_to_ax.
2328 (locexpr_tracepoint_var_ref): Update.
2329 (loclist_tracepoint_var_ref): Update.
2330 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
2331 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
2332 argument; add 'gdbarch' and 'pc'.
2333 (dwarf2_compile_cfa_to_ax): New function.
2334 (dwarf2_frame_cache): Update.
2335
2336 2011-02-17 Joel Brobecker <brobecker@adacore.com>
2337
2338 * ada-lang.c (ada_type_of_array): Fix the size of the array
2339 in the case of an unconstrained packed array.
2340
2341 2011-02-17 Yao Qi <yao@codesourcery.com>
2342
2343 * common/Makefile.in: Add more targets for make.
2344
2345 2011-02-16 Tom Tromey <tromey@redhat.com>
2346
2347 * dwarf2loc.c (unimplemented): Fix typo.
2348
2349 2011-02-16 Tom Tromey <tromey@redhat.com>
2350
2351 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
2352 (compile_dwarf_to_ax) <default>: Use unimplemented.
2353 <DW_OP_deref>: Update.
2354 (disassemble_dwarf_expression): Update.
2355 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
2356 (decode_locdesc): Update.
2357 * dwarf2expr.h (dwarf_stack_op_name): Update.
2358
2359 2011-02-16 Tom Tromey <tromey@redhat.com>
2360
2361 * ax.h (struct aop_map) <name>: Now const.
2362
2363 2011-02-16 Tom Tromey <tromey@redhat.com>
2364
2365 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
2366 than axs_rvalue.
2367
2368 2011-02-16 Yao Qi <yao@codesourcery.com>
2369
2370 * infrun.c (get_displaced_step_closure_by_addr): New.
2371 * inferior.h: Declare it.
2372 * arm-tdep.c: (arm_pc_is_thumb): Call
2373 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
2374 returns non-NULL.
2375
2376 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2377 Jan Kratochvil <jan.kratochvil@redhat.com>
2378
2379 gdb/
2380 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
2381
2382 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2383 Jan Kratochvil <jan.kratochvil@redhat.com>
2384
2385 * value.c (value_contents_copy_raw): Extend describing comment.
2386 Assert that the destination contents we're overwriting are wholly
2387 available.
2388 (value_contents_copy): Extend describing comment.
2389
2390 2011-02-16 Pedro Alves <pedro@codesourcery.com>
2391 Jan Kratochvil <jan.kratochvil@redhat.com>
2392
2393 * value.c (value_available_contents_eq): Remove redundant local
2394 variables. Fix available contents comparision.
2395 * value.h (value_available_contents_eq): Extend describing
2396 comment.
2397
2398 2011-02-16 Yao Qi <yao@codesourcery.com>
2399
2400 * thread.c (info_threads_command): Add missing i18n markup and remove
2401 trailing newline.
2402
2403 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2404
2405 * breakpoint.c (longjmp_names): New variable.
2406 (struct breakpoint_objfile_data): New type.
2407 (breakpoint_objfile_key): New variable.
2408 (msym_not_found): New variable.
2409 (msym_not_found_p): New predicate.
2410 (get_breakpoint_objfile_data): New function.
2411 (create_overlay_event_breakpoint): Check per-objfile cache for
2412 symbols first.
2413 (create_longjmp_master_breakpoint): Likewise.
2414 (create_std_terminate_master_breakpoint): Likewise.
2415 (create_exception_master_breakpoint): Likewise.
2416 (_initialize_breakpoint): Register per-objfile data key.
2417
2418 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2419
2420 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
2421 parameter value.
2422 (create_longjmp_master_breakpoint): Loop over longjmp names.
2423 (create_std_terminate_master_breakpoint): Const-propagate parameter
2424 value.
2425 (update_breakpoints_after_exec): Adjust.
2426 (breakpoint_re_set): Adjust.
2427
2428 2011-02-15 Michael Snyder <msnyder@vmware.com>
2429
2430 * thread.c (info_threads_command): Process arg as thread id,
2431 or list of thread ids.
2432 (thread_find_command): New command.
2433 (_initialize_thread): Document argument for info threads.
2434 Document 'thread find' command.
2435 * NEWS: Document new command "thread find".
2436
2437 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2438
2439 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
2440 * aclocal.m4: Regenerated with aclocal-1.11.1.
2441 * common/configure: Regenerate with autoconf-2.64.
2442
2443 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
2444
2445 * opencl-lang.c (build_opencl_types): Set the size of the built-in
2446 bool data type to a size of one byte.
2447
2448 2011-02-15 Pedro Alves <pedro@codesourcery.com>
2449 Jan Kratochvil <jan.kratochvil@redhat.com>
2450
2451 * target.c (memory_xfer_live_readonly_partial): Document where to
2452 look for interface description.
2453
2454 2011-02-15 Yao Qi <yao@codesourcery.com>
2455
2456 PR tdep/12352
2457 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
2458 order to store PC value on stack instead of text section.
2459
2460 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2461
2462 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
2463 the EFP register set size.
2464 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
2465 data from the VMX register.
2466 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
2467 and write data from/to the VMX register.
2468
2469 2011-02-14 Michael Snyder <msnyder@vmware.com>
2470
2471 * command.h (enum command_class): New class 'no_set_class', for
2472 "show" commands without a corresponding "set" command.
2473 * value.c (_initialize_values): Use 'no_set_class' for "show values".
2474 * copying.c (_initialize_copying): Ditto for "show copying" and
2475 "show warranty".
2476 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
2477 "show version".
2478 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
2479 which there is no corresponding "set" command (eg. "show copying").
2480
2481 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2482 Jan Kratochvil <jan.kratochvil@redhat.com>
2483
2484 * exec.c (section_table_available_memory): Change `len' parameter
2485 type to ULONGEST.
2486 * exec.h (section_table_available_memory): Ditto.
2487 * value.h (read_value_memory): Rename the `offset' parameter to
2488 `embedded_offset'.
2489
2490 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2491 Jan Kratochvil <jan.kratochvil@redhat.com>
2492
2493 * memrange.c (compare_mem_ranges): Mention sort order in
2494 describing comment.
2495 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
2496 * tracepoint.c (traceframe_available_memory): Extend comment to
2497 mention what happens to RESULT when the target does not support
2498 the query.
2499
2500 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2501 Jan Kratochvil <jan.kratochvil@redhat.com>
2502
2503 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
2504 range.
2505
2506 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2507
2508 * value.c (value_bits_valid, value_bits_synthetic_pointer):
2509 No longer handle NULL values.
2510
2511 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2512
2513 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
2514 * value.c: Include "exceptions.h".
2515 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
2516 generic error.
2517 * cp-abi.c: Include gdb_assert.h.
2518 (baseclass_offset): Add `embedded_offset' and `val' parameters.
2519 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
2520 errors.
2521 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
2522 parameters. No longer returns -1 on error.
2523 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
2524 `val' parameters.
2525 * cp-valprint.c: Include exceptions.h.
2526 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
2527 the baseclass_offset. Handle unavailable base classes. Use
2528 val_print_invalid_address.
2529 * p-valprint.c: Include exceptions.h.
2530 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
2531 when fetching the baseclass_offset. No longer expect
2532 baseclass_offset returning -1. Handle unavailable base classes.
2533 Use val_print_invalid_address.
2534 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
2535 `valaddr' parameter, and change its type to gdb_byte pointer. Add
2536 `embedded_offset' and `val' parameters. Adjust.
2537 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
2538 parameter, and change its type to gdb_byte pointer. Add
2539 `embedded_offset' and `val' parameters. Adjust. No longer expect
2540 baseclass_offset returning -1.
2541 (value_dynamic_cast): Use value_contents_for_printing rather than
2542 value_contents. Adjust.
2543 (search_struct_field): No longer expect baseclass_offset returning
2544 -1.
2545 (search_struct_method): If reading memory from the target is
2546 necessary, wrap it in a new value to pass to baseclass_offset. No
2547 longer expect baseclass_offset returning -1.
2548 (find_method_list): No longer expect baseclass_offset returning
2549 -1. Use value_contents_for_printing rather than value_contents.
2550 * valprint.c (val_print_invalid_address): New function.
2551 * valprint.h (val_print_invalid_address): Declare.
2552 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
2553 and `val' parameters. No longer expect baseclass_offset returning
2554 -1. Adjust.
2555 * gnu-v2-abi.c: Include "exceptions.h".
2556 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
2557 parameters. Handle unavailable memory. Recurse through
2558 gnuv2_baseclass_offset directly, rather than through
2559 baseclass_offset. No longer returns -1 on not found, instead
2560 throw an error.
2561 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
2562 `val' parameters. Adjust.
2563
2564 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2565
2566 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
2567 almost but not quite adjacent.
2568
2569 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2570
2571 * value.h (value_entirely_available): Declare.
2572 * value.c (value_entirely_available): New function.
2573 * c-valprint.c (c_value_print): Don't try fetching the pointer's
2574 real type if the pointer is unavailable.
2575
2576 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2577
2578 * valops.c (value_repeat): Use read_value_memory instead of
2579 read_memory.
2580
2581 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2582
2583 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
2584 * value.c (value_contents_copy_raw, value_contents_copy): New
2585 functions.
2586 (value_primitive_field): Use value_contents_copy_raw instead of
2587 memcpy.
2588 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
2589 memcpy.
2590 (value_array, value_slice): Ditto.
2591 * valarith.c (value_subscripted_rvalue): Use
2592 value_contents_copy_raw instead of memcpy.
2593
2594 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2595
2596 <unavailable> references.
2597
2598 * valops.c (get_value_at): Use value_from_contents_and_address,
2599 avoiding read_memory.
2600
2601 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2602
2603 * c-valprint.c (c_val_print): Print a string with unavailable
2604 contents as an array.
2605
2606 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2607
2608 * value.h (unpack_bits_as_long): Delete declaration.
2609 (unpack_value_bits_as_long): Declare.
2610 (unpack_value_field_as_long): Declare.
2611 (value_field_bitfield): Declare.
2612 * value.c (unpack_bits_as_long): Rename to...
2613 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
2614 value parameters. Return the extracted result in a new output
2615 parameter. If the value contents are unavailable, return false,
2616 otherwise return true.
2617 (unpack_value_bits_as_long): New.
2618 (unpack_field_as_long): Rename to...
2619 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
2620 Add embedded_offset and value parameters. Return the extracted
2621 result in a new output parameter. If the value contents are
2622 unavailable, return false, otherwise return true.
2623 (unpack_value_field_as_long): New.
2624 (unpack_field_as_long_1): New.
2625 (unpack_field_as_long): Reimplement as wrapper around
2626 unpack_value_field_as_long_1.
2627 (value_field_bitfield): New function.
2628 * valops.c (value_fetch_lazy): When fetching a bitfield, use
2629 unpack_value_bits_as_long. Mark the value as unavailable, if it
2630 is unavailable.
2631 * jv-valprint.c (java_print_value_fields): Use
2632 value_field_bitfield.
2633 * p-valprint.c (pascal_object_print_value_fields): Use
2634 value_field_bitfield.
2635 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
2636
2637 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2638
2639 * value.c (get_internalvar_integer): Also return the int value of
2640 TYPE_CODE_INT INTERNALVAR_VALUE values.
2641 (set_internalvar): Don't special case TYPE_CODE_INT.
2642
2643 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2644
2645 * value.c (struct internalvar) <enum internalvar_kind>: Remove
2646 INTERNALVAR_POINTER.
2647 <pointer>: Delete.
2648 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
2649 (set_internalvar): Remove special TYPE_CODE_PTR handling.
2650 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
2651
2652 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2653
2654 * value.h (value_available_contents_eq): Declare.
2655 * value.c (find_first_range_overlap): New function.
2656 (value_available_contents_eq): New function.
2657 * valprint.c (val_print_array_elements): Use
2658 value_available_contents_eq.
2659 * ada-valprint.c (val_print_packed_array_elements): Use
2660 value_available_contents_eq.
2661 * jv-valprint.c (java_value_print): Use
2662 value_available_contents_eq.
2663
2664 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2665
2666 * target.c (target_read_live_memory): New function.
2667 (memory_xfer_live_readonly_partial): New.
2668 (memory_xfer_partial): If reading from a traceframe, fallback to
2669 reading unavailable read-only memory from read-only regions of
2670 live target memory.
2671 * tracepoint.c (disconnect_tracing): Adjust.
2672 (set_current_traceframe): New, factored out from
2673 set_traceframe_number.
2674 (set_traceframe_number): Reimplement to only change the traceframe
2675 number on the GDB side.
2676 (do_restore_current_traceframe_cleanup): Adjust.
2677 (make_cleanup_restore_traceframe_number): New.
2678 (cur_traceframe_number): New global.
2679 (tfile_open): Set cur_traceframe_number to no traceframe.
2680 (set_tfile_traceframe): New function.
2681 (tfile_trace_find): If looking up a traceframe using any method
2682 other than by number, make sure the current tfile traceframe
2683 matches gdb's current traceframe. Update the current tfile
2684 traceframe if the lookup succeeded.
2685 (tfile_fetch_registers, tfile_xfer_partial)
2686 (tfile_get_trace_state_variable_value): Make sure the remote
2687 traceframe matches gdb's current traceframe.
2688 * remote.c (remote_traceframe_number): New global.
2689 (remote_open_1): Set it to -1.
2690 (set_remote_traceframe): New function.
2691 (remote_fetch_registers, remote_store_registers)
2692 (remote_xfer_memory, remote_xfer_partial)
2693 (remote_get_trace_state_variable_value): Make sure the remote
2694 traceframe matches gdb's current traceframe.
2695 (remote_trace_find): If looking up a traceframe using any method
2696 other than by number, make sure the current remote traceframe
2697 matches gdb's current traceframe. Update the current remote
2698 traceframe if the lookup succeeded.
2699 * infrun.c (fetch_inferior_event): Adjust.
2700 * tracepoint.h (set_current_traceframe): Declare.
2701 (get_traceframe_number, set_traceframe_number): Add describing
2702 comments.
2703
2704 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2705
2706 Mark pieces of values as unavailable if the corresponding memory
2707 is unavailable.
2708
2709 * valops.c: Include tracepoint.h.
2710 (value_fetch_lazy): Use read_value_memory.
2711 (read_value_memory): New.
2712 * value.h (read_value_memory): Declare.
2713 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
2714 * exec.c (section_table_available_memory): New function.
2715 * exec.h (section_table_available_memory): Declare.
2716
2717 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2718
2719 * Makefile.in (SFILES): Add memrange.c.
2720 (HFILES_NO_SRCDIR): Add memrange.h.
2721 (COMMON_OBS): Add memrange.o.
2722 * memrange.c: New file.
2723 * memrange.h: New file.
2724 * tracepoint.c: Include memrange.h.
2725 (struct mem_range): Delete.
2726 (mem_range_s): Delete.
2727 (traceframe_available_memory): New function.
2728 * tracepoint.h (traceframe_available_memory): Declare.
2729
2730 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2731
2732 * target.h (struct traceframe_info): Forward declare.
2733 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
2734 (struct target_ops) <to_traceframe_info>: New field.
2735 (target_traceframe_info): New.
2736 * target.c (update_current_target): Inherit and default
2737 to_traceframe_info.
2738 * remote.c (PACKET_qXfer_traceframe_info): New.
2739 (remote_protocol_features): Register qXfer:traceframe-info:read.
2740 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
2741 (remote_traceframe_info): New.
2742 (init_remote_ops): Install it.
2743 (_initialize_remote): Install "set/show remote traceframe-info"
2744 commands.
2745 * tracepoint.h (parse_traceframe_info): Declare.
2746 * tracepoint.c (struct mem_range): New.
2747 (mem_range_s): New typedef.
2748 (struct traceframe_info): New.
2749 (traceframe_info): New global.
2750 (free_traceframe_info): New function.
2751 (clear_traceframe_info): New function.
2752 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
2753 info.
2754 (build_traceframe_info): New function.
2755 (tfile_traceframe_info): New function.
2756 (init_tfile_ops): Install tfile_traceframe_info.
2757 (traceframe_info_start_memory, free_result): New functions.
2758 (memory_attributes, traceframe_info_elements): New globals.
2759 (parse_traceframe_info, get_traceframe_info): New functions.
2760 * features/traceframe-info.dtd: New file.
2761 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
2762
2763 2011-02-14 Pedro Alves <pedro@codesourcery.com>
2764
2765 Base support for <unavailable> value contents.
2766
2767 * value.h (value_bytes_available): Declare.
2768 (mark_value_bytes_unavailable): Declare.
2769 * value.c (struct range): New struct.
2770 (range_s): New typedef.
2771 (ranges_overlap): New function.
2772 (range_lessthan): New function.
2773 (ranges_contain_p): New function.
2774 (struct value) <unavailable>: New field.
2775 (value_bytes_available): New function.
2776 (mark_value_bytes_unavailable): New function.
2777 (require_not_optimized_out): Constify parameter.
2778 (require_available): New function.
2779 (value_contents_all, value_contents): Require all bytes be
2780 available.
2781 (value_free): Free `unavailable'.
2782 (value_copy): Copy `unavailable'.
2783 * valprint.h (val_print_unavailable): Declare.
2784 * valprint.c (valprint_check_validity): Rename `offset' parameter
2785 to `embedded_offset'. If printing a scalar, check whether the
2786 value chunk is available.
2787 (val_print_unavailable): New.
2788 (val_print_scalar_formatted): Check whether the value is
2789 available.
2790 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
2791 pretty-printing unavailable values.
2792
2793 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2794
2795 Fix const/volatile qualifiers of C++ types, PR c++/12328.
2796 * c-typeprint.c (c_type_print_args): Update the function comment. New
2797 variable param_type, initialize it. Remove const/volatile qualifiers
2798 for language_cplus and !show_artificial. Use param_type.
2799
2800 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2801
2802 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
2803 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
2804 * symtab.h (struct symtab) <next>: Comment extension.
2805
2806 2011-02-12 Yao Qi <yao@codesourcery.com>
2807
2808 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
2809
2810 2011-02-11 Yao Qi <yao@codesourcery.com>
2811
2812 * common/Makefile.in: Add copyright header.
2813
2814 2011-02-11 Pedro Alves <pedro@codesourcery.com>
2815
2816 * infrun.c (proceed): Move switching out and in of tfind mode from
2817 here ...
2818 (fetch_inferior_event): ... to here.
2819
2820 2011-02-11 Yao Qi <yao@codesourcery.com>
2821
2822 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2823 libcommon.a.
2824 * configure.ac: Add common to sub dir.
2825 * configure: Regenerate.
2826
2827 2011-02-11 Yao Qi <yao@codesourcery.com>
2828
2829 Build libcommon.a.
2830
2831 * common/Makefile.in: New.
2832 * common/configure.ac: New.
2833 * common/aclocal.m4: New.
2834 * common/configure: Generate.
2835
2836 2011-02-10 Pedro Alves <pedro@codesourcery.com>
2837
2838 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
2839 side of the parenthesis.
2840
2841 Merge from GCC:
2842 2010-07-13 Jakub Jelinek <jakub@redhat.com>
2843 * vec.h (VEC_block_remove): Fix comment.
2844
2845 2011-02-08 Michael Snyder <msnyder@vmware.com>
2846
2847 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
2848
2849 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2850
2851 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
2852 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
2853 psubd and paddd.
2854
2855 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2856
2857 PR 12361.
2858 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
2859 phsubsw.
2860 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
2861 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
2862
2863 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2864
2865 * dwarf2read.c (read_subroutine_type): Set special calling
2866 convention flag for functions compiled by IBM XL C for OpenCL.
2867 * ppc-sysv-tdep.c: Include "dwarf2.h"
2868 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
2869 calling convention.
2870 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
2871 IBM OpenCL vector types calling convention.
2872 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
2873 (ppc_sysv_abi_broken_return_value): Likewise.
2874 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
2875 types calling convention.
2876 (ppc64_sysv_abi_return_value): Likewise.
2877 * spu-tdep.c: Include "dwarf2.h"
2878 (spu_return_value): Implement IBM OpenCL vector types calling
2879 convention.
2880
2881 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2882
2883 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
2884 correct ABI for AltiVec vector arguments.
2885
2886 2011-02-07 Pedro Alves <pedro@codesourcery.com>
2887
2888 * valprint.c (val_print): Extend comment.
2889 * ada-valprint.c (ada_valprint): Rewrite comment deferring
2890 interface explanation to val_print.
2891 (ada_val_print_array): Adjust comment to current interface.
2892 (print_field_values): Adjust comment to current interface.
2893 * c-valprint.c (c_val_print): Rewrite comment deferring interface
2894 explanation to val_print.
2895 * f-valprint.c (f_val_print): Ditto.
2896 * jv-valprint.c (java_val_print): Ditto.
2897 * m2-valprint.c (m2_val_print): Ditto.
2898 * p-valprint.c (pascal_val_print): Ditto.
2899
2900 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
2901
2902 * breakpoint.c (parse_breakpoint_sals): Fix description.
2903
2904 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
2905 Oguz Kayral <oguzkayral@gmail.com>
2906
2907 * python/py-inferior.c (python_on_normal_stop): New function.
2908 (python_on_resume): New function.
2909 (python_inferior_exit): New function.
2910 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
2911 inferior_exit observers.
2912 * python/py-evtregistry.c: New file.
2913 * python/py-threadevent.c : New file.
2914 * python/py-event.c: New file.
2915 * python/py-evts.c: New file.
2916 * python/py-continueevent.c: New file.
2917 * python/py-bpevent.c: New file.
2918 * python/py-signalevent.c: New file.
2919 * python/py-exetiedevent.c: New file.
2920 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
2921 Move struct breakpoint_object from here...
2922 * python/python-internal.h: ... to here.
2923 * python/py-event.h: New file.
2924 * python/py-events.h: New file.
2925 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
2926 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
2927 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
2928 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
2929 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
2930 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
2931 Add build rules for all the above.
2932
2933 2011-02-04 Tom Tromey <tromey@redhat.com>
2934
2935 * dwarf2read.c (dwarf2_section_empty_p): New function.
2936 (dwarf2_read_section): Use dwarf2_section_empty_p.
2937 (dwarf2_section_size): New function.
2938 (dwarf2_get_section_info): Unconditionally read section.
2939 (dwarf2_read_index): Use dwarf2_section_empty_p.
2940 (partial_read_comp_unit_head): Use dwarf2_section_size.
2941 (dwarf2_symbol_mark_computed): Likewise.
2942
2943 2011-02-04 David Daney <ddaney@caviumnetworks.com>
2944
2945 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
2946
2947 2011-02-04 David Daney <ddaney@caviumnetworks.com>
2948
2949 * mips-linux-tdep.c: Include xml-syscall.h.
2950 (mips_linux_get_syscall_number): New function.
2951 (mips_linux_init_abi): Add calls to
2952 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
2953 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2954 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
2955 * syscalls/mips-n32-linux.xml: New file.
2956 * syscalls/mips-n64-linux.xml: New file.
2957 * syscalls/mips-o32-linux.xml: New file.
2958
2959 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2960
2961 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
2962 Complain about inverted range entries.
2963 (dwarf2_record_block_ranges): Likewise.
2964
2965 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2966
2967 Fix some typos.
2968 * breakpoint.c (update_watchpoint): Fix name of the
2969 update_global_location_list function.
2970 (print_one_breakpoint): Fix typo.
2971 (_initialize_breakpoint): Remove extra space in hbreak help
2972 string.
2973 * breakpoint.h (struct bp_location) <length>: Fix field
2974 description.
2975
2976 2011-02-04 Pedro Alves <pedro@codesourcery.com>
2977
2978 * regcache.c (registers_changed_ptid): Don't explictly always
2979 clear `current_regcache'. Only clear current_thread_ptid and
2980 current_thread_arch when PTID matches. Only reinit the frame
2981 cache if PTID matches the current inferior_ptid. Move alloca(0)
2982 call to ...
2983 (registers_changed): ... here.
2984
2985 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
2986
2987 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
2988 starts with __stack_chk_guard as stack guard symbol.
2989
2990 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
2991
2992 * disasm.c (compare_lines): Handle the end of sequence markers
2993 within the line table to better support disassembling over
2994 compilation unit boundaries.
2995
2996 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2997
2998 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
2999 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3000 implementation even if no symbols are available.
3001 (thumb_analyze_prologue): Update call to skip_prologue_function.
3002 (arm_analyze_prologue): Likewise.
3003
3004 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3005
3006 * arm-tdep.c: Include "observer.h".
3007 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3008 (arm_exidx_data_key): New static variable.
3009 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3010 (struct arm_exidx_data): Likewise.
3011 (arm_exidx_data_free): New function.
3012 (arm_compare_exidx_entries): Likewise.
3013 (arm_obj_section_from_vma): Likewise.
3014 (arm_exidx_new_objfile): Likewise.
3015 (arm_find_exidx_entry): Likewise.
3016 (arm_exidx_fill_cache): Likewise.
3017 (arm_exidx_unwind_sniffer): Likewise.
3018 (arm_exidx_unwind): New global variable.
3019 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3020 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3021 observer. Register arm_exidx_data_key as objfile data.
3022
3023 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3024
3025 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3026 due to accessing uninitialized variable. Fix indentation.
3027
3028 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3029
3030 * c-valprint.c (c_value_print): When doing virtual base pointer
3031 adjustment, create a new value with adjusted contents rather than
3032 changing the contents of the value being printed (and getting it
3033 wrong).
3034
3035 2011-02-02 Pedro Alves <pedro@codesourcery.com>
3036
3037 * xml-support.c (xml_find_attribute): New.
3038 (xinclude_start_include): Use it.
3039 * xml-support.h (xml_find_attribute): Declare.
3040 * memory-map.c (memory_map_start_memory)
3041 (memory_map_start_property): Use xml_find_attribute.
3042 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3043 xml_find_attribute.
3044 * remote.c (start_thread): Use xml_find_attribute.
3045 * solib-target.c (library_list_start_segment)
3046 (library_list_start_section, library_list_start_library)
3047 (library_list_start_list): Use xml_find_attribute.
3048 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3049 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3050 (tdesc_start_field): Use xml_find_attribute.
3051
3052 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
3053
3054 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3055 (BUILD_OCL_VTYPES): Update.
3056
3057 2011-02-02 Joel Brobecker <brobecker@adacore.com>
3058
3059 * configure.ac: Work around non-GNU sed limitation when computing
3060 python version number.
3061 * configure: Regenerate.
3062
3063 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3064
3065 Fix debug printing of TYPE_INSTANCE.
3066 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
3067 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
3068
3069 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3070
3071 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
3072 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
3073 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
3074 * ada-operator.inc: Rename the file to ...
3075 * ada-operator.def: ... here, wrap all the entries by macro OP.
3076 * expprint.c (op_name_standard): Remove all the entries. Include
3077 "std-operator.def" instead.
3078 * expression.h (enum exp_opcode): Include "std-operator.def" and
3079 "ada-operator.def". Move all the entries ...
3080 * std-operator.def: ... here, wrap all the entries by macro OP.
3081
3082 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3083
3084 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
3085 * breakpoint.c (remove_jit_event_breakpoints): New function.
3086 * jit.c (jit_descriptor_addr): Delete.
3087 (registering_code): Delete.
3088 (clear_int): Delete.
3089 (jit_inferior_data): New variable.
3090 (struct jit_inferior_data): New type.
3091 (get_jit_inferior_data): New function.
3092 (jit_inferior_data_cleanup): New function.
3093 (jit_read_descriptor): Adjust.
3094 (jit_register_code): Adjust.
3095 (jit_breakpoint_re_set_internal): New function; move code here ...
3096 (jit_inferior_init): ... from here.
3097 (jit_breakpoint_re_set): Adjust.
3098 (jit_reset_inferior_data_and_breakpoints): New function.
3099 (jit_inferior_created_observer): Adjust.
3100 (jit_inferior_exit_hook): Adjust.
3101 (jit_executable_changed_observer): New function.
3102 (jit_event_handler): Adjust.
3103 (_initialize_jit): Adjust.
3104
3105 2011-01-31 Michael Snyder <msnyder@vmware.com>
3106
3107 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
3108 line.
3109
3110 2011-01-31 Tom Tromey <tromey@redhat.com>
3111
3112 PR python/12216:
3113 * python/python.c (execute_gdb_command): Call
3114 prevent_dont_repeat.
3115 * top.c (suppress_dont_repeat): New global.
3116 (dont_repeat): Use it.
3117 (prevent_dont_repeat): New function.
3118 * command.h (prevent_dont_repeat): Declare.
3119
3120 2011-01-31 Tom Tromey <tromey@redhat.com>
3121
3122 * infcmd.c (finish_backward): Use breakpoint_set_silent.
3123 * python/py-breakpoint.c (bppy_set_silent): Use
3124 breakpoint_set_silent.
3125 (bppy_set_thread): Use breakpoint_set_thread.
3126 (bppy_set_task): Use breakpoint_set_task.
3127 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
3128 (breakpoint_set_task): Declare.
3129 (make_breakpoint_silent): Remove.
3130 * breakpoint.c (breakpoint_set_silent): New function.
3131 (breakpoint_set_thread): Likewise.
3132 (breakpoint_set_task): Likewise.
3133 (make_breakpoint_silent): Remove.
3134
3135 2011-01-31 Tom Tromey <tromey@redhat.com>
3136
3137 * breakpoint.h (user_breakpoint_p): Declare.
3138 * breakpoint.c (user_breakpoint_p): New function.
3139 (breakpoint_1): Use it.
3140 (save_breakpoints): Likewise.
3141
3142 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3143
3144 * configure.ac: Add handling of Python distribution on Windows.
3145 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
3146 sysconfig variables are not defined, then do not use them.
3147 On Windows, if LIBPL is not defined, then use prefix + '/libs'
3148 instead. On Windows, return all paths using forward-slashes
3149 rather than backslashes.
3150
3151 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3152
3153 * configure.ac: Remove fallback behavior for building
3154 against Python. Remove tweaking of Python include path.
3155 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
3156 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
3157 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
3158 Always restore CPPFLAGS and LIBS after linking test.
3159 * configure: Regenerated.
3160 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
3161 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
3162 * python/python-internal.h: Adjust includes of Python .h files.
3163
3164 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3165
3166 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
3167 in error message.
3168
3169 2011-01-31 Joel Brobecker <brobecker@adacore.com>
3170
3171 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
3172 value test.
3173
3174 2011-01-31 Yao Qi <yao@codesourcery.com>
3175
3176 * arm-linux-nat.c: Update calls to regcache_register_status
3177 instead of regcache_valid_p.
3178 * aix-thread.c: Likewise.
3179 * i386gnu-nat.c: Likewise.
3180
3181 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3182
3183 Fix crash.
3184 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
3185 touching TYPE_FIELD_ARTIFICIAL.
3186
3187 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
3188
3189 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
3190 Committers.
3191
3192 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3193
3194 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
3195 selected, don't try iterating over the traceframe's blocks.
3196 (tfile_has_stack): If there's no traceframe selected, then there's
3197 no stack.
3198 (tfile_has_registers): If there's no traceframe selected, then
3199 there's no registers.
3200
3201 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3202
3203 * target.c (memory_xfer_partial): No need to restore shadows if we
3204 haven't read anything.
3205
3206 2011-01-28 Pedro Alves <pedro@codesourcery.com>
3207
3208 * mips-tdep.c (mips_print_register): Use get_frame_register_value
3209 and val_print_scalar_formatted.
3210
3211 2011-01-27 Pedro Alves <pedro@codesourcery.com>
3212
3213 * tracepoint.c (tfile_read): New.
3214 (tfile_open): Use it.
3215 (tfile_get_traceframe_address): Use it.
3216 (tfile_trace_find): Use it.
3217 (walk_blocks_callback_func): New typedef.
3218 (match_blocktype): New function.
3219 (traceframe_walk_blocks): New function.
3220 (traceframe_find_block_type): New function.
3221 (tfile_fetch_registers, tfile_xfer_partial)
3222 (tfile_get_trace_state_variable_value): Use
3223 traceframe_find_block_type and tfile_read.
3224
3225 2011-01-26 Kevin Buettner <kevinb@redhat.com>
3226
3227 * remote-mips.c: Add internationalization mark ups. Remove
3228 trailing \n from already marked up strings.
3229
3230 2011-01-26 Tom Tromey <tromey@redhat.com>
3231
3232 * python/py-prettyprint.c (print_string_repr): Clear
3233 'addressprint' option when calling val_print_string.
3234 (print_children): Handle Val_pretty_default. Clear 'addressprint'
3235 option when calling val_print_string.
3236
3237 2011-01-26 Tom Tromey <tromey@redhat.com>
3238
3239 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
3240 GDB_PY_LL_ARG.
3241 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
3242 macros.
3243 (gdb_py_longest, gdb_py_ulongest): New typedefs.
3244 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
3245 (gdb_py_long_as_ulongest): New defines.
3246 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
3247 (gdb_py_int_as_long): Declare.
3248 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
3249 GDB_PY_LL_ARG, gdb_py_object_from_longest.
3250 (valpy_long): Add comment.
3251 * python/py-utils.c (get_addr_from_python): Use
3252 gdb_py_long_as_ulongest. Handle overflow properly.
3253 (gdb_py_object_from_longest): New function.
3254 (gdb_py_object_from_ulongest): Likewise.
3255 (gdb_py_int_as_long): Likewise.
3256 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
3257 * python/py-symtab.c (salpy_get_pc): Use
3258 gdb_py_long_from_ulongest.
3259 (salpy_get_line): Use PyInt_FromLong.
3260 * python/py-param.c (set_parameter_value): Use
3261 gdb_py_int_as_long.
3262 * python/py-lazy-string.c (stpy_get_address): Use
3263 gdb_py_long_from_ulongest.
3264 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
3265 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
3266 * python/py-breakpoint.c (bppy_set_thread): Use
3267 gdb_py_int_as_long.
3268 (bppy_set_task): Likewise.
3269 (bppy_set_ignore_count): Likewise.
3270 (bppy_set_hit_count): Likewise.
3271 * python/py-block.c (blpy_get_start): Use
3272 gdb_py_object_from_ulongest.
3273 (blpy_get_end): Likewise.
3274 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
3275
3276 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
3277
3278 PR/symtab 11766:
3279 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
3280 * gdb/solib.c (solib_read_symbols): Check for addr_low in
3281 equality test for objfile, initialize addr_low if needed.
3282
3283 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3284
3285 * tui/tui-regs.c (tui_register_format): Remove dead code.
3286
3287 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3288
3289 * printcmd.c (print_formatted): Use val_print_scalar_formatted
3290 instead of print_scalar_formatted.
3291 (print_scalar_formatted): Don't handle 's' format strings here,
3292 and add an assertion that we never see such format here.
3293 * valprint.h (val_print_scalar_formatted): Declare.
3294 * valprint.c (val_print_scalar_formatted): New.
3295 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
3296 instead of print_scalar_formatted.
3297 * jv-valprint.c (java_val_print): Ditto.
3298 * p-valprint.c (pascal_val_print): Ditto.
3299 * ada-valprint.c (ada_val_print_1): Ditto.
3300 * f-valprint.c (f_val_print): Ditto.
3301 * infcmd.c (registers_info): Ditto.
3302 * m2-valprint.c (m2_val_print): Ditto.
3303
3304 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3305
3306 * m2-valprint.c (print_unbounded_array): Pass
3307 value_contents_for_printing rather than value_contents, to
3308 m2_print_array_contents. Also pass in the value.
3309
3310 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3311
3312 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
3313 (save_gdb_index_command): Switch to .gdb_index version 4.
3314
3315 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3316
3317 * mi/mi-main.c (get_register): Use get_frame_register_value rather
3318 than frame_register, and always pass a valid value to val_print.
3319
3320 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3321
3322 Centralize printing "<optimized out>".
3323
3324 * valprint.h (val_print_optimized_out): Declare.
3325 * cp-valprint.c (cp_print_value_fields): Use
3326 val_print_optimized_out.
3327 * jv-valprint.c (java_print_value_fields): Ditto.
3328 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3329 * printcmd.c (print_formatted): Ditto.
3330 * valprint.c (valprint_check_validity): Ditto.
3331 (value_check_printable): Ditto.
3332 (val_print_optimized_out): New.
3333
3334 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3335
3336 * infcmd.c (default_print_registers_info): Allocate values so to
3337 never pass a NULL value to val_print.
3338
3339 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3340
3341 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
3342 boolean. Make sure to always pass a value that matches the
3343 contents buffer to callees. Preserve `address' for following
3344 iterations.
3345 * value.c (value_contents_for_printing_const): New.
3346 (value_address): Constify value argument.
3347 * value.h (value_contents_for_printing_const): Declare.
3348 (value_address): Constify value argument.
3349
3350 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3351
3352 * regcache.c (struct regcache_descr): Rename
3353 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
3354 and sizeof_cooked_register_valid_p to
3355 sizeof_cooked_register_status.
3356 (init_regcache_descr): Adjust.
3357 (struct regcache): Rename register_valid_p field to
3358 register_status.
3359 (regcache_xmalloc_1, regcache_xfree, regcache_save)
3360 (do_cooked_read): Adjust.
3361 (regcache_valid_p): Rename to ...
3362 (regcache_register_status): ... this. Adjust.
3363 (regcache_invalidate): Adjust.
3364 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
3365 Adjust.
3366 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
3367 as unavailable, not valid.
3368 (regcache_dump): Adjust.
3369 * regcache.h (enum register_status): New.
3370 (regcache_register_status): Declare.
3371 (regcache_invalidate): Delete declaration.
3372 * corelow.c (get_core_registers): Adjust.
3373 * tracepoint.c (tfile_fetch_registers): Adjust.
3374 * trad-frame.c (REG_VALUE): Rename to ...
3375 (TF_REG_VALUE): ... this.
3376 (REG_UNKNOWN): Rename to ...
3377 (TF_REG_UNKNOWN): ... this.
3378 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
3379 * mi/mi-main.c (register_changed_p): Adjust.
3380
3381 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3382
3383 * regcache.c (struct regcache_descr): Remove outdated comment.
3384 (init_regcache_descr): Remove sizeof_raw_register_valid_p
3385 overallocate hack.
3386 (regcache_xmalloc): Rename to ...
3387 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
3388 Allocate the regcache type accordingly.
3389 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
3390 (regcache_xfree): Asser the source is also readonly. Copy sizeof
3391 cooked registers, not raw.
3392 (regcache_dup_no_passthrough): Delete.
3393 (get_thread_arch_regcache): Use regcache_xmalloc_1.
3394 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
3395 mention obsolete write_register_bytes.
3396 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
3397
3398 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3399
3400 Stop remote_read_bytes from handling partial reads itself.
3401
3402 * remote-fileio.c: Include target.h.
3403 (remote_fileio_write_bytes): Delete.
3404 (remote_fileio_func_open, remote_fileio_func_write)
3405 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
3406 target_read_memory.
3407 (remote_fileio_func_stat): Use target_read_memory and
3408 target_write_memory.
3409 (remote_fileio_func_gettimeofday): Use target_write_memory.
3410 (remote_fileio_func_system): Use target_read_memory.
3411 * remote.c (remote_write_bytes): Make it static.
3412 (remote_read_bytes): Don't handle partial reads here.
3413 * remote.h (remote_read_bytes): Delete declaration.
3414
3415 2011-01-25 Pedro Alves <pedro@codesourcery.com>
3416
3417 Simplify XML parsing a bit.
3418
3419 * xml-support.h (gdb_xml_parse_quick): Declare.
3420 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
3421 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
3422 parameter.
3423 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
3424 gdb_xml_create_parser_and_cleanup_1.
3425 (gdb_xml_parse_quick): New.
3426 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
3427 * osdata.c (osdata_parse): Ditto.
3428 * remote.c (remote_threads_info): Ditto.
3429 * solib-target.c (solib_target_parse_libraries): Ditto.
3430 * xml-syscall.c (syscall_parse_xml): Ditto.
3431 * xml-tdesc.c (tdesc_parse_xml): Ditto.
3432
3433 2011-01-24 Kevin Buettner <kevinb@redhat.com>
3434
3435 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
3436 with remote-mips.o added to gdb_target_obs.
3437 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
3438
3439 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3440
3441 * ada-valprint.c (val_print_packed_array_elements): Pass the
3442 correct struct value to val_print.
3443 (ada_val_print_1): Ditto.
3444
3445 2011-01-24 Pedro Alves <pedro@codesourcery.com>
3446
3447 Don't lose embedded_offset in printing routines throughout.
3448
3449 * valprint.h (val_print_array_elements): Change prototype.
3450 * valprint.c (val_print_array_elements): Add `embedded_offset'
3451 parameter, and adjust to pass it down to val_print, while passing
3452 `valaddr' or `address' unmodified. Take embedded_offset into
3453 account when checking repetitions.
3454 * c-valprint.c (c_val_print): Pass embedded_offset to
3455 val_print_array_elements instead of adjusting `valaddr' and
3456 `address'.
3457 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
3458 embedded_offset to val_print_array_elements instead of adjusting
3459 `valaddr'.
3460 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
3461 * p-valprint.c (pascal_val_print): Pass embedded_offset to
3462 val_print_array_elements and pascal_object_print_value_fields
3463 instead of adjusting `valaddr'.
3464 (pascal_object_print_value_fields): Add `offset' parameter, and
3465 adjust to use it.
3466 (pascal_object_print_value): Add `offset' parameter, and adjust to
3467 use it.
3468 (pascal_object_print_static_field): Use
3469 value_contents_for_printing/value_embedded_offset, rather than
3470 value_contents.
3471 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
3472 parameter, and adjust to use it. Use
3473 value_contents_for_printing/value_embedded_offset, rather than
3474 value_contents.
3475 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
3476 (ada_val_print_array): Add `offset' parameter, and adjust to use
3477 it.
3478 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
3479 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
3480 Instead work with offsets. Use
3481 value_contents_for_printing/value_embedded_offset, rather than
3482 value_contents. Change `defer_val_int' local type to CORE_ADDR,
3483 and use value_from_pointer to extract a target pointer, rather
3484 than value_from_longest.
3485 (print_variant_part): Add `offset' parameter. Replace
3486 `outer_valaddr' parameter by a new `outer_offset' parameter.
3487 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3488 (ada_value_print): Use
3489 value_contents_for_printing/value_embedded_offset, rather than
3490 value_contents.
3491 (print_record): Add `offset' parameter, and adjust to pass it
3492 down.
3493 (print_field_values): Add `offset' parameter. Replace
3494 `outer_valaddr' parameter by a new `outer_offset' parameter.
3495 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3496 Use value_contents_for_printing/value_embedded_offset, rather than
3497 value_contents.
3498 * d-valprint.c (dynamic_array_type): Use
3499 value_contents_for_printing/value_embedded_offset, rather than
3500 value_contents.
3501 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
3502 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3503 (java_print_value_fields): Take `offset' into account. Don't
3504 re-adjust `valaddr'. Instead pass down adjusted offsets.
3505 (java_val_print): Take `embedded_offset' into account. Pass it to
3506 java_print_value_fields.
3507 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
3508 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
3509 down adjusted offsets.
3510 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
3511 (f_val_print): Take `embedded_offset' into account.
3512
3513 2011-01-21 Joel Brobecker <brobecker@adacore.com>
3514
3515 * inflow.c: Include "gdbcmd.h".
3516 (interactive_mode): New static global, moved here from top.c.
3517 (show_interactive_mode): New function, moved here from top.c.
3518 use gdb_has_a_terminal instead of input_from_terminal_p to
3519 determine the current mode.
3520 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
3521 setting.
3522 (_initialize_inflow): Add the "set/show interactive-mode"
3523 commands. Moved here from top.c, after having adjusted slightly
3524 the help text.
3525 * top.c (interactive_mode, show_interactive_mode): Delete, moved
3526 to inflow.c.
3527 (input_from_terminal_p): Remove handling of "interactive-mode"
3528 setting, moved to infow.c.
3529 (init_main): Remove creation of the "set/show interactive-mode"
3530 commands, moved to inflow.c.
3531
3532 2011-01-19 Joel Brobecker <brobecker@adacore.com>
3533
3534 * NEWS: Add entry for native ia64-hpux support.
3535
3536 2011-01-19 Tom Tromey <tromey@redhat.com>
3537
3538 PR mi/8618:
3539 * thread.c (free_thread): Free 'name'.
3540 (print_thread_info): Emit thread name. Change CLI output.
3541 (thread_name_command): New function.
3542 (do_captured_thread_select): Emit newline.
3543 (_initialize_thread): Register 'thread name' command.
3544 * target.h (struct target_ops) <to_thread_name>: New field.
3545 (target_thread_name): New macro.
3546 * target.c (update_current_target): Handle to_thread_name.
3547 * python/py-infthread.c (thpy_get_name): New function.
3548 (thpy_set_name): Likewise.
3549 (thread_object_getset): Add "name".
3550 * linux-nat.c (linux_nat_thread_name): New function.
3551 (linux_nat_add_target): Set to_thread_name.
3552 * gdbthread.h (struct thread_info) <name>: New field.
3553
3554 2011-01-18 Joel Brobecker <brobecker@adacore.com>
3555
3556 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
3557 (ada_val_print_1): Likewise.
3558
3559 2011-01-18 Joel Brobecker <brobecker@adacore.com>
3560
3561 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
3562 upper limit address is not greater than the function end address
3563 when the upper limit could not be computed using the debugging
3564 info.
3565
3566 2011-01-17 Tom Tromey <tromey@redhat.com>
3567
3568 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
3569 get_regcomp_error.
3570 * utils.c: Include gdb_regex.h.
3571 (do_regfree_cleanup): New function.
3572 (make_regfree_cleanup): Likewise.
3573 (get_regcomp_error): Likewise.
3574 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
3575
3576 2011-01-17 Tom Tromey <tromey@redhat.com>
3577
3578 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
3579 re_compile_fastmap.
3580
3581 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3582
3583 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
3584 for internal variables.
3585 (last_was_structop): New static variable.
3586 (COMPLETE): New token.
3587 (field_exp): New rule to group all '.' suffix handling.
3588 Add mark_struct_expression calls when approriate to be able
3589 to correctly find fields for completion.
3590 (yylex): Adapt to handle field completion and set INTVAR when
3591 required.
3592
3593 2011-01-14 Yao Qi <yao@codesourcery.com>
3594
3595 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
3596 save_reggroup, restore_reggroup and all_reggroup.
3597
3598 2011-01-14 Joel Brobecker <brobecker@adacore.com>
3599
3600 * ada-valprint. (ada_printchar): Use the correct type length
3601 in call to ada_emit_char.
3602 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
3603
3604 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3605
3606 * solib-som.h (hpux_major_release): Declare variable here.
3607 * solib-som.c: Remove <sys/utsname.h> header.
3608 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
3609 (hpux_major_release): Make global, change default value to
3610 DEFAULT_HPUX_MAJOR_RELEASE.
3611 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
3612 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
3613 Add "solib-som.h" header.
3614 (set_hpux_major_release): New function.
3615 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
3616
3617 2011-01-14 Mike Frysinger <vapier@gentoo.org>
3618
3619 * configure.tgt (*-*-uclinux*): Match more Linux os targets
3620
3621 2011-01-14 Joel Brobecker <brobecker@adacore.com>
3622
3623 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
3624 new-line at end of warning message.
3625 (ia64_hpux_store_register): Remove trailing new-line at end of
3626 error message.
3627 * ia64-hpux-tdep.c: Rephrase comment.
3628 * solib-ia64-hpux.c (struct dld_info): Change type of field
3629 dld_flags from "long long" to ULONGEST.
3630
3631 2011-01-14 Pedro Alves <pedro@codesourcery.com>
3632
3633 * target.h (deprecated_child_ops): Delete declaration.
3634 * target.c (deprecated_child_ops): Delete definition.
3635
3636 2011-01-14 Pedro Alves <pedro@codesourcery.com>
3637
3638 * Makefile.in (hpux-thread.o): Delete rule.
3639 * configure.ac: Don't check for HPUX DCE threads support.
3640 * configure, config.in: Regenerate.
3641 * hppa-hpux-nat.c (child_suppress_run): Delete.
3642 (hppa_hpux_child_can_run): Delete.
3643 (_initialize_hppa_hpux_nat): Don't override to_can_run.
3644 * hpux-thread.c: Delete.
3645
3646 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3647
3648 * hpux-thread.c (hpux_pid_to_str): Delete.
3649
3650 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3651
3652 * ada-valprint.c (ada_emit_char): Remove strange code.
3653 Check that c is <= UCHAR_MAX before passing it to isascii.
3654 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
3655
3656 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3657
3658 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
3659 to the case where instream is stdin.
3660
3661 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3662
3663 * ia64-tdep.h (struct regcache): Forward declare.
3664 (struct ia64_infcall_ops): New struct type.
3665 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
3666 and "infcall_ops".
3667 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
3668 Renames ia64_find_global_pointer.
3669 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
3670 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
3671 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
3672 methods.
3673 (ia64_infcall_ops): New static global constant.
3674 (ia64_gdbarch_init): Set tdep->infcall_ops.
3675 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
3676 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
3677 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
3678 (ia64_hpux_dummy_code): New static global constant.
3679 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
3680 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
3681 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
3682 New function.
3683 (ia64_hpux_infcall_ops): New static global constant.
3684 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
3685 for inferior function calls to work properly on ia64-hpux.
3686
3687 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3688
3689 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
3690 * ia64-tdep.h (struct frame_info): forward declaration.
3691 (struct gdbarch_tdep): Add field size_of_register_frame.
3692 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
3693 to determine the size of the register frame.
3694 (ia64_size_of_register_frame): New function.
3695 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
3696 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
3697 (IA64_HPUX_UREG_REASON): New macro.
3698 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
3699 New functions.
3700 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
3701 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
3702 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
3703 objects.
3704
3705 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3706
3707 Add support for ia64-hpux.
3708 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
3709 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
3710
3711 * configure.host: Add handling for ia64-hpux hosts. Add associated
3712 floatformats.
3713 * configure.tgt: Add handling for ia64-hpux targets.
3714 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
3715 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
3716 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
3717
3718 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3719
3720 [ttrace] Compute thread list immediately after attach.
3721 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
3722 New subprogram.
3723 (inf_ttrace_attach): Use it.
3724
3725 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3726
3727 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
3728 if we could not determine the frame's function address. Instead,
3729 use the frame's PC, and then continue.
3730
3731 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3732
3733 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
3734 not already defined.
3735
3736 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3737
3738 * ia64-tdep.c (ia64_struct_type_p): New function.
3739 (ia64_extract_return_value): Handle integral values that are
3740 less than 8 bytes long.
3741 (ia64_push_dummy_call): Likewise.
3742
3743 2011-01-13 Joel Brobecker <brobecker@adacore.com>
3744
3745 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
3746 floatformat_ia64_ext.
3747 (floatformat_ia64_ext_big): New static const.
3748 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
3749
3750 2011-01-12 Tom Tromey <tromey@redhat.com>
3751
3752 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
3753 messages.
3754 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
3755 (mi_cmd_thread_list_ids): Likewise.
3756 (mi_cmd_data_list_changed_registers): Likewise.
3757 (mi_cmd_data_list_register_values): Likewise.
3758 (mi_cmd_data_write_register_values): Likewise.
3759 (mi_cmd_data_evaluate_expression): Likewise.
3760 (mi_cmd_data_read_memory): Likewise.
3761 (mi_cmd_data_read_memory_bytes): Likewise.
3762 (mi_cmd_data_write_memory): Likewise.
3763 (mi_cmd_enable_timings): Likewise.
3764 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
3765 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
3766 (mi_cmd_var_delete): Likewise.
3767 (mi_cmd_var_set_format): Likewise.
3768 (mi_cmd_var_show_format): Likewise.
3769 (mi_cmd_var_info_num_children): Likewise.
3770 (mi_cmd_var_list_children): Likewise.
3771 (mi_cmd_var_info_type): Likewise.
3772 (mi_cmd_var_info_expression): Likewise.
3773 (mi_cmd_var_show_attributes): Likewise.
3774 (mi_cmd_var_assign): Likewise.
3775 (mi_cmd_var_update): Likewise.
3776 (mi_cmd_enable_pretty_printing): Likewise.
3777 (mi_cmd_var_set_update_range): Likewise.
3778 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
3779 messages.
3780 (mi_cmd_target_file_put): Likewise.
3781 (mi_cmd_target_file_delete): Likewise.
3782 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
3783 messages.
3784 (mi_cmd_stack_info_depth): Likewise.
3785 (mi_cmd_stack_list_locals): Likewise.
3786 (mi_cmd_stack_list_args): Likewise.
3787 (mi_cmd_stack_select_frame): Likewise.
3788 (mi_cmd_stack_select_frame): Likewise.
3789 (mi_cmd_stack_info_frame): Likewise.
3790 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
3791 messages.
3792 (mi_cmd_file_list_exec_source_files): Likewise.
3793 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
3794 (mi_cmd_env_cd): Likewise.
3795 (mi_cmd_env_path): Likewise.
3796 (mi_cmd_env_dir): Likewise.
3797 (mi_cmd_inferior_tty_show): Likewise.
3798 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
3799 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
3800 (mi_cmd_break_watch): Likewise.
3801
3802 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
3803
3804 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
3805 (ppc_linux_insert_hw_breakpoint): Likewise.
3806 (ppc_linux_remove_hw_breakpoint): Likewise.
3807 (ppc_linux_insert_watchpoint): Likewise.
3808
3809 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
3810 Jan Kratochvil <jan.kratochvil@redhat.com>
3811
3812 PR fortran/11104 and DWARF unbound arrays detection.
3813 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
3814 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
3815 unspecified upper bound.
3816 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
3817 variables array_size_array, tmp_type and offset_item. New variable
3818 array. Remove call to f77_get_upperbound. New variables array_type
3819 and index. Call value_subscripted_rvalue for each dimenasion. Remove
3820 the final call to deprecated_set_value_type.
3821
3822 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3823
3824 Make value allocations more lazy.
3825 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
3826 instead of allocate_value and set_value_lazy when possible.
3827 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
3828 instead of allocate_value and set_value_lazy.
3829 * findvar.c (value_of_register_lazy): Likewise.
3830 (read_var_value): Remove V preallocation, call just check_typedef in
3831 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
3832 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
3833 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
3834 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
3835 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
3836 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
3837 the end, remove set_value_lazy there.
3838 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
3839 instead of allocate_value and set_value_lazy when possible.
3840 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
3841 * value.c (allocate_computed_value): Use allocate_value_lazy instead
3842 of allocate_value and set_value_lazy.
3843 (value_from_contents_and_address): Use allocate_value_lazy instead of
3844 allocate_value and set_value_lazy when possible.
3845
3846 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
3847
3848 * disasm.c (dump_insns): Support dumping opcodes for MI.
3849 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
3850 dumping of instruction opcodes.
3851
3852 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
3853
3854 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
3855 appropiately.
3856
3857 2011-01-11 Tom Tromey <tromey@redhat.com>
3858
3859 * thread.c (do_captured_thread_select): Emit newline before
3860 printing frame.
3861
3862 2011-01-11 Michael Snyder <msnyder@vmware.com>
3863
3864 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
3865 * score-tdep.c: Ditto.
3866 * score-tdep.h: Ditto.
3867 * ser-base.c: Ditto.
3868 * ser-go32.c: Ditto.
3869 * serial.c: Ditto.
3870 * serial.h: Ditto.
3871 * ser-mingw.c: Ditto.
3872 * ser-pipe.c: Ditto.
3873 * ser-tcp.c: Ditto.
3874 * ser-unix.c: Ditto.
3875 * sh64-tdep.c: Ditto.
3876 * shnbsd-nat.c: Ditto.
3877 * sh-tdep.c: Ditto.
3878 * sh-tdep.h: Ditto.
3879 * solib.c: Ditto.
3880 * solib-darwin.c: Ditto.
3881 * solib-frv.c: Ditto.
3882 * solib.h: Ditto.
3883 * solib-irix.c: Ditto.
3884 * solib-osf.c: Ditto.
3885 * solib-pa64.c: Ditto.
3886 * solib-som.c: Ditto.
3887 * solib-spu.c: Ditto.
3888 * solib-sunos.c: Ditto.
3889 * solib-svr4.c: Ditto.
3890 * solist.h: Ditto.
3891 * sol-thread.c: Ditto.
3892 * somread.c: Ditto.
3893 * source.c: Ditto.
3894 * source.h: Ditto.
3895 * sparc64-linux-tdep.c: Ditto.
3896 * sparc64-tdep.c: Ditto.
3897 * sparc-linux-nat.c: Ditto.
3898 * sparc-linux-tdep.c: Ditto.
3899 * sparc-sol2-nat.c: Ditto.
3900 * sparc-sol2-tdep.c: Ditto.
3901 * sparc-tdep.c: Ditto.
3902 * sparc-tdep.h: Ditto.
3903 * spu-tdep.c: Ditto.
3904 * stabsread.c: Ditto.
3905 * stabsread.h: Ditto.
3906 * stack.c: Ditto.
3907 * symfile.c: Ditto.
3908 * symfile.h: Ditto.
3909 * symmisc.c: Ditto.
3910 * symtab.c: Ditto.
3911 * symtab.h: Ditto.
3912 * target.c: Ditto.
3913 * target-descriptions.c: Ditto.
3914 * target-descriptions.h: Ditto.
3915 * target.h: Ditto.
3916 * target-memory.c: Ditto.
3917 * terminal.h: Ditto.
3918 * thread.c: Ditto.
3919 * top.c: Ditto.
3920 * tracepoint.c: Ditto.
3921 * tracepoint.h: Ditto.
3922 * trad-frame.h: Ditto.
3923 * typeprint.c: Ditto.
3924
3925 2011-01-11 Michael Snyder <msnyder@vmware.com>
3926
3927 * ui-file.c: Comment cleanup, mostly periods and spaces.
3928 * ui-file.h: Ditto.
3929 * ui-out.c: Ditto.
3930 * ui-out.h: Ditto.
3931 * utils.c: Ditto.
3932 * v850-tdep.c: Ditto.
3933 * valarith.c: Ditto.
3934 * valops.c: Ditto.
3935 * valprint.c: Ditto.
3936 * valprint.h: Ditto.
3937 * value.c: Ditto.
3938 * value.h: Ditto.
3939 * varobj.c: Ditto.
3940 * varobj.h: Ditto.
3941 * vax-tdep.c: Ditto.
3942 * vec.c: Ditto.
3943 * vec.h: Ditto.
3944 * version.h: Ditto.
3945 * windows-nat.c: Ditto.
3946 * windows-tdep.c: Ditto.
3947 * xcoffread.c: Ditto.
3948 * xcoffsolib.c: Ditto.
3949 * xml-support.c: Ditto.
3950 * xstormy16-tdep.c: Ditto.
3951 * xtensa-tdep.c: Ditto.
3952 * xtensa-tdep.h: Ditto.
3953
3954 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
3955
3956 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
3957 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
3958
3959 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3960 Thiago Jung Bauermann <bauerman@br.ibm.com>
3961
3962 Implement support for PowerPC BookE ranged watchpoints.
3963 * breakpoint.h
3964 (struct breakpoint_ops) <resources_needed>: New method.
3965 Initialize to NULL in all existing breakpoint_ops instances.
3966 (struct breakpoint) <exact>: New field.
3967 (target_exact_watchpoints): Declare external global.
3968 * breakpoint.c (target_exact_watchpoints): New global flag.
3969 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
3970 b->enable_state to bp_enabled before calling
3971 hw_watchpoint_used_count.
3972 (hw_watchpoint_used_count): Iterate over all bp_locations in a
3973 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
3974 if available.
3975 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
3976 if the watchpoint is exact.
3977 (resources_needed_watchpoint): New function.
3978 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
3979 (watch_command_1): Set b->exact if the user asked for an exact
3980 watchpoint and one can be set.
3981 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
3982 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
3983 the user asks for an exact watchpoint and one can be set. Return
3984 number of needed debug registers to watch the expression.
3985 * gdbtypes.c (is_scalar_type): New function, based on
3986 valprint.c:scalar_type_p.
3987 (is_scalar_type_recursive): New function.
3988 * gdbtypes.h (is_scalar_type_recursive): Declare.
3989 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
3990 handle regions when ranged watchpoints are available.
3991 (create_watchpoint_request): New function.
3992 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3993 create_watchpoint_request.
3994 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
3995 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
3996 `set powerpc' and `show powerpc' commands.
3997 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3998 Mention documentation comment in the target macro.
3999 (target_region_ok_for_hw_watchpoint): Document return value.
4000
4001 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4002
4003 * breakpoint.c (update_watchpoint): Decide on using a software or
4004 hardware watchpoint after the bp_locations are created.
4005
4006 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4007
4008 Convert hardware watchpoints to use breakpoint_ops.
4009 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4010 <insert_location>: ... this. Return int instead of void.
4011 Accept pointer to struct bp_location instead of pointer to
4012 struct breakpoint. Adapt all implementations.
4013 (breakpoint_ops) <remove>: Rename to...
4014 <remove_location>: ... this. Accept pointer to struct bp_location
4015 instead of pointer to struct breakpoint. Adapt all implementations.
4016 * breakpoint.c (insert_catchpoint): Delete function.
4017 (insert_bp_location): Call the watchpoint or catchpoint's
4018 breakpoint_ops.insert method.
4019 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4020 breakpoint_ops.remove method.
4021 (insert_watchpoint, remove_watchpoint): New functions.
4022 (watchpoint_breakpoint_ops): New structure.
4023 (watch_command_1): Initialize the OPS field.
4024 * inf-child.c (inf_child_insert_fork_catchpoint)
4025 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4026 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4027 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4028 Delete functions.
4029 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4030 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4031 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4032 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4033 * target.c (update_current_target): Change default implementation of
4034 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4035 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4036 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4037 to_set_syscall_catchpoint to return_one.
4038 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4039 (debug_to_insert_exec_catchpoint): Report return value.
4040 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4041 (to_insert_exec_catchpoint): Change declaration to return int instead
4042 of void.
4043
4044 2011-01-11 Michael Snyder <msnyder@vmware.com>
4045
4046 * arm-tdep.c: Internationalization.
4047 * c-lang.c: Ditto.
4048 * charset.c: Ditto.
4049 * fork-child.c: Ditto.
4050 * nto-procfs.c: Ditto.
4051 * ppc-sysv-tdep.c: Ditto.
4052 * procfs.c: Ditto.
4053 * remote-mips.c: Ditto.
4054 * remote.c: Ditto.
4055 * rs6000-nat.c: Ditto.
4056 * rs6000-tdep.c: Ditto.
4057 * target.c: Ditto.
4058 * valops.c: Ditto.
4059 * value.c: Ditto.
4060 * xml-support.c: Ditto.
4061 * mi/mi-cmd-break.c: Ditto.
4062 * mi/mi-cmd-var.c: Ditto.
4063 * mi/mi-interp.c: Ditto.
4064 * mi/mi-main.c: Ditto.
4065
4066 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
4067
4068 * remote-sim.c (gdbsim_store_register): Update API to
4069 sim_store_register to check more error conditions.
4070
4071 2011-01-10 Michael Snyder <msnyder@vmware.com>
4072
4073 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
4074 * nto-tdep.c: Ditto.
4075 * nto-tdep.h: Ditto.
4076 * objc-exp.y: Ditto.
4077 * objc-lang.c: Ditto.
4078 * objfiles.c: Ditto.
4079 * objfiles.h: Ditto.
4080 * observer.c: Ditto.
4081 * opencl-lang.c: Ditto.
4082 * osabi.c: Ditto.
4083 * parse.c: Ditto.
4084 * parser-defs.h: Ditto.
4085 * p-exp.y: Ditto.
4086 * p-lang.c: Ditto.
4087 * posix-hdep.c: Ditto.
4088 * ppcbug-rom.c: Ditto.
4089 * ppc-linux-nat.c: Ditto.
4090 * ppc-linux-tdep.c: Ditto.
4091 * ppc-linux-tdep.h: Ditto.
4092 * ppcnbsd-tdep.c: Ditto.
4093 * ppcobsd-tdep.c: Ditto.
4094 * ppcobsd-tdep.h: Ditto.
4095 * ppc-sysv-tdep.c: Ditto.
4096 * ppc-tdep.h: Ditto.
4097 * printcmd.c: Ditto.
4098 * proc-abi.c: Ditto.
4099 * proc-flags.c: Ditto.
4100 * procfs.c: Ditto.
4101 * proc-utils.h: Ditto.
4102 * progspace.h: Ditto.
4103 * prologue-value.c: Ditto.
4104 * prologue-value.h: Ditto.
4105 * psympriv.h: Ditto.
4106 * psymtab.c: Ditto.
4107 * p-typeprint.c: Ditto.
4108 * p-valprint.c: Ditto.
4109 * ravenscar-sparc-thread.c: Ditto.
4110 * ravenscar-thread.c: Ditto.
4111 * ravenscar-thread.h: Ditto.
4112 * record.c: Ditto.
4113 * regcache.c: Ditto.
4114 * regcache.h: Ditto.
4115 * remote.c: Ditto.
4116 * remote-fileio.c: Ditto.
4117 * remote-fileio.h: Ditto.
4118 * remote.h: Ditto.
4119 * remote-m32r-sdi.c: Ditto.
4120 * remote-mips.c: Ditto.
4121 * remote-sim.c: Ditto.
4122 * rs6000-aix-tdep.c: Ditto.
4123 * rs6000-nat.c: Ditto.
4124 * rs6000-tdep.c: Ditto.
4125
4126 2011-01-10 Michael Snyder <msnyder@vmware.com>
4127
4128 * charset.c (validate): Internationalization.
4129 * coffread.c (read_one_sym): Ditto.
4130 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
4131 * h8300-tdep.c (H8300_extract_return_value): Ditto.
4132 * inflow.c (new_tty): Ditto.
4133 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
4134 * m32c-tdep.c (m32c_return_value): Ditto.
4135 * mep-tdep.c (mep_store_return_value): Ditto.
4136 * score-tdep.c (score7_fetch_insn): Ditto.
4137 * ser-mingw.c (pipe_windows_open): Ditto.
4138 * sh64-tdep.c (sh64_extract_return_value): Ditto.
4139 * spu-tdep.c (spu_register_type): Ditto.
4140 * tracepoint.c (trace_find_command): Ditto.
4141 * valarith.c (value_pos): Ditto.
4142
4143 2011-01-10 Joel Brobecker <brobecker@adacore.com>
4144
4145 * ada-valprint.c (printstr): Minor comment reformatting.
4146
4147 2011-01-08 Michael Snyder <msnyder@vmware.com>
4148
4149 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
4150 markup.
4151
4152 2011-01-08 Michael Snyder <msnyder@vmware.com>
4153
4154 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
4155 * hppa-hpux-tdep.c: Ditto.
4156 * hppa-linux-nat.c: Ditto.
4157 * hppa-linux-tdep.c: Ditto.
4158 * hppanbsd-tdep.c: Ditto.
4159 * hppa-tdep.c: Ditto.
4160 * hppa-tdep.h: Ditto.
4161 * hpux-thread.c: Ditto.
4162 * i386-cygwin-tdep.c: Ditto.
4163 * i386-darwin-nat.c: Ditto.
4164 * i386gnu-nat.c: Ditto.
4165 * i386-linux-nat.c: Ditto.
4166 * i386-linux-tdep.c: Ditto.
4167 * i386-nat.c: Ditto.
4168 * i386-nat.h: Ditto.
4169 * i386nbsd-tdep.c: Ditto.
4170 * i386-sol2-nat.c: Ditto.
4171 * i386-stub.c: Ditto.
4172 * i386-tdep.c: Ditto.
4173 * i386-tdep.h: Ditto.
4174 * i387-tdep.c: Ditto.
4175 * ia64-linux-nat.c: Ditto.
4176 * ia64-linux-tdep.c: Ditto.
4177 * ia64-tdep.c: Ditto.
4178 * infcall.c: Ditto.
4179 * infcall.h: Ditto.
4180 * infcmd.c: Ditto.
4181 * inferior.c: Ditto.
4182 * inferior.h: Ditto.
4183 * infloop.c: Ditto.
4184 * inflow.c: Ditto.
4185 * infrun.c: Ditto.
4186 * interps.c: Ditto.
4187 * interps.h: Ditto.
4188 * iq2000-tdep.c: Ditto.
4189 * irix5-nat.c: Ditto.
4190 * jit.c: Ditto.
4191 * jit.h: Ditto.
4192 * jv-exp.y: Ditto.
4193 * jv-lang.c: Ditto.
4194 * jv-lang.h: Ditto.
4195 * jv-typeprint.c: Ditto.
4196 * jv-valprint.c: Ditto.
4197 * language.c: Ditto.
4198 * language.h: Ditto.
4199 * linespec.c: Ditto.
4200 * linux-fork.c: Ditto.
4201 * linux-nat.c: Ditto.
4202 * linux-thread-db.c: Ditto.
4203 * lm32-tdep.c: Ditto.
4204
4205 2011-01-08 Michael Snyder <msnyder@vmware.com>
4206
4207 * m2-exp.y: Comment cleanup, mostly periods and spaces.
4208 * m2-lang.c: Ditto.
4209 * m2-typeprint.c: Ditto.
4210 * m2-valprint.c: Ditto.
4211 * m32c-tdep.c: Ditto.
4212 * m32r-linux-nat.c: Ditto.
4213 * m32r-rom.c: Ditto.
4214 * m32r-tdep.c: Ditto.
4215 * m32r-tdep.h: Ditto.
4216 * m68hc11-tdep.c: Ditto.
4217 * m58klinux-nat.c: Ditto.
4218 * m68k-tdep.c: Ditto.
4219 * m88k-tdep.c: Ditto.
4220 * m88k-tdep.h: Ditto.
4221 * machoread.c: Ditto.
4222 * macrocmd.c: Ditto.
4223 * macroexp.c: Ditto.
4224 * macrotab.c: Ditto.
4225 * main.c: Ditto.
4226 * maint.c: Ditto.
4227 * mdebugread.c: Ditto.
4228 * mdebugread.h: Ditto.
4229 * memattr.c: Ditto.
4230 * memattr.h: Ditto.
4231 * memory-map.h: Ditto.
4232 * mep-tdep.c: Ditto.
4233 * microblaze-rom.c: Ditto.
4234 * microblaze-tdep.c: Ditto.
4235 * minsyms.c: Ditto.
4236 * mips-irix-tdep.c: Ditto.
4237 * mips-linux-nat.c: Ditto.
4238 * mips-linux-tdep.c: Ditto.
4239 * mips-linux-tdep.h: Ditto.
4240 * mipsnbsd-nat.c: Ditto.
4241 * mipsnbsd-tdep.c: Ditto.
4242 * mipsread.c: Ditto.
4243 * mips-tdep.c: Ditto.
4244 * mips-tdep.h: Ditto.
4245 * mn10300-linux-tdep.c: Ditto.
4246 * mn10300-tdep.c: Ditto.
4247 * mn10300-tdep.h: Ditto.
4248 * monitor.c: Ditto.
4249 * monitor.h: Ditto.
4250 * moxie-tdep.c: Ditto.
4251 * moxie-tdep.h: Ditto.
4252 * mt-tdep.c: Ditto.
4253
4254 2011-01-08 Mike Frysinger <vapier@gentoo.org>
4255
4256 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
4257
4258 2011-01-08 Robert Millan <rmh@gnu.org>
4259
4260 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
4261
4262 2011-01-07 Michael Snyder <msnyder@vmware.com>
4263
4264 * charset.c (_initialize_charset): Fix typo in string.
4265
4266 2011-01-07 Michael Snyder <msnyder@vmware.com>
4267
4268 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
4269 for i18n.
4270 * tui/tui-layout.c (tui_set_layout_for_display_command):
4271 Split line so that operator goes to beginning of line.
4272 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
4273 assignment out of if statement.
4274
4275 2011-01-07 Michael Snyder <msnyder@vmware.com>
4276
4277 * ada-lang.c: Comment cleanup, mostly periods and spaces.
4278 * ada-lang.h: Ditto.
4279 * ada-tasks.c: Ditto.
4280 * ada-valprint.c: Ditto.
4281 * aix-threads.c: Ditto.
4282 * alpha-linux-nat.c: Ditto.
4283 * alpha-linux-tdep.c: Ditto.
4284 * alpha-mdebug-tdep.c: Ditto.
4285 * alpha-nat.c: Ditto.
4286 * alpha-osf1-tdep.c: Ditto.
4287 * alpha-tdep.c: Ditto.
4288 * alphabsd-nat.c: Ditto.
4289 * alphabsd-tdep.c: Ditto.
4290 * amd64-darwin-tdep.c: Ditto.
4291 * amd64-linux-nat.c: Ditto.
4292 * amd64-linux-tdep.c: Ditto.
4293 * amd64-sol2-tdep.c: Ditto.
4294 * amd64-tdep.c: Ditto.
4295 * amd64-fbsd-tdep.c: Ditto.
4296 * amd64-nbsd-tdep.c: Ditto.
4297 * amd64-obsd-tdep.c: Ditto.
4298 * amd64-linux-nat.c: Ditto.
4299 * amd64-linux-tdep.c: Ditto.
4300 * arm-tdep.c: Ditto.
4301 * arm-tdep.h: Ditto.
4302 * armnbsd-nat.c: Ditto.
4303 * avr-tdep.c: Ditto.
4304 * bfin-tdep.c: Ditto.
4305 * bsd-kvm.c: Ditto.
4306 * c-typeprintc: Ditto.
4307 * c-valprint.c: Ditto.
4308 * coff-pe-read.h: Ditto.
4309 * coffreead.c: Ditto.
4310 * cris-tdep.c: Ditto.
4311 * d-lang.c: Ditto.
4312 * darwin-nat-info.c: Ditto.
4313 * darwin-nat.c: Ditto.
4314 * dbug-rom.c: Ditto.
4315 * dbxread.c: Ditto.
4316 * dcache.c: Ditto.
4317 * dcache.h: Ditto.
4318 * dec-thread.c: Ditto.
4319 * defs.h: Ditto.
4320 * demangle.c: Ditto.
4321 * dicos-tdep.c: Ditto.
4322 * dictionary.c: Ditto.
4323 * dictionary.h: Ditto.
4324 * dink32-rom.c: Ditto.
4325 * disasm.c: Ditto.
4326 * doublest.c: Ditto.
4327 * dsrec.c: Ditto.
4328 * dummy-frame.c: Ditto.
4329 * dwarf2-frame.c: Ditto.
4330 * dwarf2expr.c: Ditto.
4331 * dwarf2loc.c: Ditto.
4332 * dwarf2read.c: Ditto.
4333 * elfread.c: Ditto.
4334 * environ.c: Ditto.
4335 * eval.c: Ditto.
4336 * event-top.h: Ditto.
4337 * exceptions.c: Ditto.
4338 * exceptions.h: Ditto.
4339 * exec.c: Ditto.
4340 * expprint.c: Ditto.
4341 * expression.h: Ditto.
4342 * f-exp.y: Ditto.
4343 * f-lang.c: Ditto.
4344 * f-lang.h: Ditto.
4345 * f-typeprint.c: Ditto.
4346 * f-valprint.c: Ditto.
4347 * fbsd-nat.c: Ditto.
4348 * findvar.c: Ditto.
4349 * fork-child.c: Ditto.
4350 * frame.c: Ditto.
4351 * frame.h: Ditto.
4352 * frv-linux-tdep.c: Ditto.
4353 * frv-tdep.c: Ditto.
4354 * gcore.c: Ditto.
4355 * gdb-stabs.h: Ditto.
4356 * gdb_assert.h: Ditto.
4357 * gdb_string.h: Ditto.
4358 * gdb_thread_db.h: Ditto.
4359 * gdb_wait.h: Ditto.
4360 * gdbarch.sh: Ditto.
4361 * gdbcore.h: Ditto.
4362 * gdbthread.h: Ditto.
4363 * gdbtypes.c: Ditto.
4364 * gdbtypes.h: Ditto.
4365 * gnu-nat.c: Ditto.
4366 * gnu-nat.h: Ditto.
4367 * gnu-v2-abi.c: Ditto.
4368 * gnu-v3-abi.c: Ditto.
4369 * go32-nat.c: Ditto.
4370 * gdbarch.c: Regenerate.
4371 * gdbarch.h: Regenerate.
4372
4373 2011-01-07 Michael Snyder <msnyder@vmware.com>
4374
4375 * ax-gdb.c: Adjust some long output strings.
4376 * breakpoint.c: Ditto.
4377 * charset.c: Ditto.
4378 * cp-abi.c: Ditto.
4379 * infcall.c: Ditto.
4380 * infrun.c: Ditto.
4381 * linux-nat.c: Ditto.
4382 * solib-pa64.c: Ditto.
4383 * solib-som.c: Ditto.
4384
4385 2011-01-06 Tom Tromey <tromey@redhat.com>
4386
4387 PR python/12367:
4388 * NEWS: Add item.
4389 * python/python.c (GdbMethods): Add "newest_frame" method.
4390 * python/python-internal.h (gdbpy_newest_frame): Declare.
4391 * python/py-frame.c (gdbpy_newest_frame): New function.
4392
4393 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4394
4395 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
4396 * jit.c (jit_debug): New variable.
4397 (show_jit_debug): New function.
4398 (struct target_buffer): Use ULONGEST.
4399 (bfd_open_from_target_memory): Likewise.
4400 (jit_register_code, jit_inferior_init): Add debug output.
4401 (_initialize_jit): Register "debug jit" command.
4402
4403 2011-01-06 Tom Tromey <tromey@redhat.com>
4404
4405 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
4406 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
4407 and ARCH_FRAME.
4408
4409 2011-01-06 Tom Tromey <tromey@redhat.com>
4410
4411 * python/py-frame.c (frapy_block): Use get_frame_block.
4412
4413 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4414
4415 Do not stop on SIGPRIO signals by default
4416 * infrun.c (_initialize_infrun): Unset signal_stop and
4417 signal_print for TARGET_SIGNAL_PRIO.
4418
4419 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4420
4421 * ada-tasks.c: Fix style violation in comment.
4422
4423 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4424
4425 * linespec.c (decode_compound, find_method): Remove trailing \n
4426 at end of error string.
4427 * solib-irix.c (irix_current_sos): Likewise.
4428 * varobj.c (uninstall_variable): Likewise.
4429
4430 2011-01-06 Joel Brobecker <brobecker@adacore.com>
4431
4432 * copyright.py: New script.
4433 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
4434 Launch emacs without exec'ing. Call copyright.py afterwards.
4435
4436 2011-01-05 Michael Snyder <msnyder@vmware.com>
4437
4438 * addrmap.c: Shorten lines of >= 80 columns.
4439 * arch-utils.c: Ditto.
4440 * arch-utils.h: Ditto.
4441 * ax-gdb.c: Ditto.
4442 * ax-general.c: Ditto.
4443 * bcache.c: Ditto.
4444 * blockframe.c: Ditto.
4445 * breakpoint.c: Ditto.
4446 * buildsym.c: Ditto.
4447 * c-lang.c: Ditto.
4448 * c-typeprint.c: Ditto.
4449 * charset.c: Ditto.
4450 * coffread.c: Ditto.
4451 * command.h: Ditto.
4452 * corelow.c: Ditto.
4453 * cp-abi.c: Ditto.
4454 * cp-namespace.c: Ditto.
4455 * cp-support.c: Ditto.
4456 * dbug-rom.c: Ditto.
4457 * dbxread.c: Ditto.
4458 * defs.h: Ditto.
4459 * dfp.c: Ditto.
4460 * dfp.h: Ditto.
4461 * dictionary.c: Ditto.
4462 * disasm.c: Ditto.
4463 * doublest.c: Ditto.
4464 * dwarf2-frame.c: Ditto.
4465 * dwarf2expr.c: Ditto.
4466 * dwarf2loc.c: Ditto.
4467 * dwarf2read.c: Ditto.
4468 * elfread.c: Ditto.
4469 * eval.c: Ditto.
4470 * event-loop.c: Ditto.
4471 * event-loop.h: Ditto.
4472 * exceptions.h: Ditto.
4473 * exec.c: Ditto.
4474 * expprint.c: Ditto.
4475 * expression.h: Ditto.
4476 * f-lang.c: Ditto.
4477 * f-valprint.c: Ditto.
4478 * findcmd.c: Ditto.
4479 * frame-base.c: Ditto.
4480 * frame-unwind.c: Ditto.
4481 * frame-unwind.h: Ditto.
4482 * frame.c: Ditto.
4483 * frame.h: Ditto.
4484 * gcore.c: Ditto.
4485 * gdb-stabs.h: Ditto.
4486 * gdb_assert.h: Ditto.
4487 * gdb_dirent.h: Ditto.
4488 * gdb_obstack.h: Ditto.
4489 * gdbcore.h: Ditto.
4490 * gdbtypes.c: Ditto.
4491 * gdbtypes.h: Ditto.
4492 * inf-ttrace.c: Ditto.
4493 * infcall.c: Ditto.
4494 * infcmd.c: Ditto.
4495 * inflow.c: Ditto.
4496 * infrun.c: Ditto.
4497 * inline-frame.h: Ditto.
4498 * language.c: Ditto.
4499 * language.h: Ditto.
4500 * libunwind-frame.c: Ditto.
4501 * libunwind-frame.h: Ditto.
4502 * linespec.c: Ditto.
4503 * linux-nat.c: Ditto.
4504 * linux-nat.h: Ditto.
4505 * linux-thread-db.c: Ditto.
4506 * machoread.c: Ditto.
4507 * macroexp.c: Ditto.
4508 * macrotab.c: Ditto.
4509 * main.c: Ditto.
4510 * maint.c: Ditto.
4511 * mdebugread.c: Ditto.
4512 * memattr.c: Ditto.
4513 * minsyms.c: Ditto.
4514 * monitor.c: Ditto.
4515 * monitor.h: Ditto.
4516 * objfiles.c: Ditto.
4517 * objfiles.h: Ditto.
4518 * osabi.c: Ditto.
4519 * p-typeprint.c: Ditto.
4520 * p-valprint.c: Ditto.
4521 * parse.c: Ditto.
4522 * printcmd.c: Ditto.
4523 * proc-events.c: Ditto.
4524 * procfs.c: Ditto.
4525 * progspace.c: Ditto.
4526 * progspace.h: Ditto.
4527 * psympriv.h: Ditto.
4528 * psymtab.c: Ditto.
4529 * record.c: Ditto.
4530 * regcache.c: Ditto.
4531 * regcache.h: Ditto.
4532 * remote-fileio.c: Ditto.
4533 * remote.c: Ditto.
4534 * ser-mingw.c: Ditto.
4535 * ser-tcp.c: Ditto.
4536 * ser-unix.c: Ditto.
4537 * serial.c: Ditto.
4538 * serial.h: Ditto.
4539 * solib-frv.c: Ditto.
4540 * solib-irix.c: Ditto.
4541 * solib-osf.c: Ditto.
4542 * solib-pa64.c: Ditto.
4543 * solib-som.c: Ditto.
4544 * solib-sunos.c: Ditto.
4545 * solib-svr4.c: Ditto.
4546 * solib-target.c: Ditto.
4547 * solib.c: Ditto.
4548 * somread.c: Ditto.
4549 * source.c: Ditto.
4550 * stabsread.c: Ditto.
4551 * stabsread.c: Ditto.
4552 * stack.c: Ditto.
4553 * stack.h: Ditto.
4554 * symfile-mem.c: Ditto.
4555 * symfile.c: Ditto.
4556 * symfile.h: Ditto.
4557 * symmisc.c: Ditto.
4558 * symtab.c: Ditto.
4559 * symtab.h: Ditto.
4560 * target-descriptions.c: Ditto.
4561 * target-memory.c: Ditto.
4562 * target.c: Ditto.
4563 * target.h: Ditto.
4564 * terminal.h: Ditto.
4565 * thread.c: Ditto.
4566 * top.c: Ditto.
4567 * tracepoint.c: Ditto.
4568 * tracepoint.h: Ditto.
4569 * ui-file.c: Ditto.
4570 * ui-file.h: Ditto.
4571 * ui-out.h: Ditto.
4572 * user-regs.c: Ditto.
4573 * user-regs.h: Ditto.
4574 * utils.c: Ditto.
4575 * valarith.c: Ditto.
4576 * valops.c: Ditto.
4577 * valprint.c: Ditto.
4578 * valprint.h: Ditto.
4579 * value.c: Ditto.
4580 * varobj.c: Ditto.
4581 * varobj.h: Ditto.
4582 * vec.h: Ditto.
4583 * xcoffread.c: Ditto.
4584 * xcoffsolib.c: Ditto.
4585 * xcoffsolib.h: Ditto.
4586 * xml-syscall.c: Ditto.
4587 * xml-tdesc.c: Ditto.
4588
4589 2011-01-05 Michael Snyder <msnyder@vmware.com>
4590
4591 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
4592 * cli/cli-decode.c: Ditto.
4593 * cli/cli-dump.c: Ditto.
4594 * cli/cli-logging.c: Ditto.
4595 * cli/cli-script.c: Ditto.
4596 * cli/cli-setshow.c: Ditto.
4597 * common/signals.c: Ditto.
4598 * mi/mi-cmd-break.c: Ditto.
4599 * mi/mi-cmd-disas.c: Ditto.
4600 * mi/mi-cmd-stack.c: Ditto.
4601 * mi/mi-cmd-var.c: Ditto.
4602 * mi/mi-cmds.c: Ditto.
4603 * mi/mi-common.h: Ditto.
4604 * mi/mi-console.c: Ditto.
4605 * mi/mi-interp.c: Ditto.
4606 * mi/mi-main.c: Ditto.
4607 * osf-share/cma_attr.c: Ditto.
4608 * osf-share/cma_deb_core.h: Ditto.
4609 * osf-share/cma_debug_client.h: Ditto.
4610 * osf-share/cma_handle.h: Ditto.
4611 * osf-share/cma_mutex.h: Ditto.
4612 * osf-share/cma_stack_int.h: Ditto.
4613 * osf-share/cma_tcb_defs.h: Ditto.
4614 * python/py-auto-load.c: Ditto.
4615 * python/py-breakpoint.c: Ditto.
4616 * python/py-cmd.c: Ditto.
4617 * python/py-frame.c: Ditto.
4618 * python/py-objfile.c: Ditto.
4619 * python/py-param.c: Ditto.
4620 * python/py-progspace.c: Ditto.
4621 * python/py-symbol.c: Ditto.
4622 * python/py-value.c: Ditto.
4623 * python/python-internal.h: Ditto.
4624 * python/python.c: Ditto.
4625 * tui/tui-data.c: Ditto.
4626 * tui/tui-disasm.c: Ditto.
4627 * tui/tui-hooks.c: Ditto.
4628 * tui/tui-io.c: Ditto.
4629 * tui/tui-layout.c: Ditto.
4630 * tui/tui-regs.c: Ditto.
4631 * tui/tui-source.c: Ditto.
4632 * tui/tui-stack.c: Ditto.
4633 * tui/tui-win.c: Ditto.
4634 * tui/tui-windata.c: Ditto.
4635 * tui/tui-winsource.c: Ditto.
4636
4637 2011-01-05 Joel Brobecker <brobecker@adacore.com>
4638
4639 * configure.ac, gdb.1: Copyright year update.
4640
4641 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4642
4643 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
4644 this_pc_in_block, morestack_msym and morestack_name. Check for
4645 "__morestack" minimal symbol there.
4646
4647 2011-01-03 Joel Brobecker <brobecker@adacore.com>
4648
4649 * symfile.c (find_sym_fns): Add call to dont_repeat.
4650
4651 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4652
4653 Copyright year update in most files (performed by copyright.sh).
4654
4655 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4656
4657 * top.c (print_gdb_version): Update copyright year in version output.
4658
4659 For older changes see ChangeLog-2010.
4660 \f
4661 Local Variables:
4662 mode: change-log
4663 left-margin: 8
4664 fill-column: 74
4665 version-control: never
4666 coding: utf-8
4667 End:
This page took 0.131938 seconds and 4 git commands to generate.