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