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