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