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