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