* NEWS: Mention "info auto-load-scripts".
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2011-05-13 Doug Evans <dje@google.com>
2
3 * NEWS: Mention "info auto-load-scripts".
4 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5 script_not_found_warning_printed.
6 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
7 all callers updated. Initialize script_not_found_warning_printed.
8 (get_auto_load_pspace_data_for_loading): New function.
9 (maybe_add_script): New function.
10 (source_section_scripts): Simplify. Only print one warning regardless
11 of the number of auto-load scripts not found.
12 (clear_section_scripts): Clear script_not_found_warning_printed.
13 (auto_load_objfile_script): Record script in hash table.
14 (count_matching_scripts): New function.
15 (maybe_print_script): Renamed from maybe_print_section_script, all
16 callers updated. Rewrite to use ui_out_*.
17 (info_auto_load_scripts): Renamed from
18 maintenance_print_section_scripts, all callers updated.
19 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
20 renamed as "info auto-load-scripts".
21
22 2011-05-13 Tom Tromey <tromey@redhat.com>
23
24 * dwarf2expr.c (read_uleb128): Cast intermediate result.
25 (read_sleb128): Likewise.
26
27 2011-05-13 Tom Tromey <tromey@redhat.com>
28
29 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
30 offset display.
31
32 2011-05-13 Doug Evans <dje@google.com>
33
34 * linux-nat.c (debug_linux_nat_async): Delete.
35 Replace all references to use debug_linux_nat instead.
36 (show_debug_linux_nat_async): Delete.
37 (sigchld_handler): Call ui_file_write_async_safe instead of
38 fprintf_unfiltered.
39 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
40 * ui-file.c (struct ui_file): New member to_write_async_safe.
41 (null_file_write_async_safe): New function.
42 (ui_file_write_async_safe): New function.
43 (set_ui_file_write_async_safe): New function.
44 (ui_file_new): Initialize to_write_async_safe.
45 (stdio_file_write_async_safe): New function.
46 (struct stdio_file): New member fd.
47 (stdio_file_new): Initialize to_write_async_safe, fd.
48 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
49 fileno.
50 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
51 (set_ui_file_write_async_safe): Declare.
52 (ui_file_write_async_safe): Declare.
53
54 2011-05-13 Tom Tromey <tromey@redhat.com>
55
56 * utils.c (do_value_free): New function.
57 (make_cleanup_value_free): Likewise.
58 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
59 freeing correctly.
60 (dwarf2_loc_desc_needs_frame): Call
61 make_cleanup_value_free_to_mark.
62 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
63 * dwarf2expr.c (free_dwarf_expr_context): Don't call
64 value_free_to_mark.
65 (new_dwarf_expr_context): Don't call value_mark.
66 * dwarf2-frame.c (execute_stack_op): Call
67 make_cleanup_value_free_to_mark.
68 * defs.h (make_cleanup_value_free): Declare.
69
70 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
71
72 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
73 prepare_execute_command.
74 * top.c (prepare_execute_command): Return cleanup.
75 (execute_command): Use cleanup from prepare_execute_command.
76 * top.h (prepare_execute_command): Change prototype to return
77 cleanup.
78 * defs.h (struct value): Add opaque declaration.
79 (make_cleanup_value_free_to_mark): Add prototype.
80 * utils.c (do_value_free_to_mark): New function.
81 (make_cleanup_value_free_to_mark): Likewise.
82
83 2011-05-12 Tom Tromey <tromey@redhat.com>
84
85 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
86 cast left-hand-side to unsigned.
87
88 2011-05-12 Tom Tromey <tromey@redhat.com>
89
90 PR gdb/12617:
91 * value.h (value_from_contents): Declare.
92 * value.c (value_from_contents): New function.
93 * dwarf2read.c (dwarf_stack_op_name): Add new values.
94 (dwarf2_get_die_type): New function.
95 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
96 (allocate_piece_closure): Acquire reference to values.
97 (read_pieced_value): Update for value-based expressions.
98 (write_pieced_value): Likewise.
99 (free_pieced_value_closure): Call value_free as needed.
100 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
101 Update for value-based expressions.
102 * dwarf2loc.h (dwarf2_get_die_type): Declare.
103 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
104 <get_base_type>: New field.
105 (struct dwarf_expr_piece) <v.value>: Change type.
106 <v.regno>: New field.
107 (struct dwarf_expr_context) <mark>: New field.
108 (dwarf_expr_piece, dwarf_expr_fetch): Update.
109 (dwarf_expr_pop, dwarf_expr_push): Remove.
110 (dwarf_expr_push_address): Declare.
111 * dwarf2expr.c (dwarf_arch_cookie): New global.
112 (struct dwarf_gdbarch_types): New.
113 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
114 functions.
115 (dwarf_expr_push): Change type of 'value' argument. Update. Now
116 static.
117 (dwarf_expr_push_address): New function.
118 (dwarf_expr_pop): Now static.
119 (dwarf_expr_fetch): Change return type.
120 (dwarf_require_integral): New function.
121 (dwarf_expr_fetch): Simplify.
122 (add_piece): Update.
123 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
124 functions.
125 (execute_stack_op) <sign_ext>: Remove.
126 Use values for DWARF stack.
127 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
128 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
129 New cases.
130 (_initialize_dwarf2expr): New function.
131 (add_piece): Update.
132 (new_dwarf_expr_context): Set new field.
133 (free_dwarf_expr_context): Call value_free_to_mark.
134 * dwarf2-frame.c (no_base_type): New function.
135 (execute_stack_op): Set get_base_type field. Update.
136
137 2011-05-12 Tom Tromey <tromey@redhat.com>
138
139 * dwarf2read.c (read_common_block): Fix formatting.
140
141 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
142
143 * breakpoint.c (disable_breakpoint): Disable all locations
144 associated with a tracepoint on target if a trace experiment is
145 running.
146 (disable_command): Disable a specific tracepoint location on target if
147 a trace experiment is running.
148 (do_enable_breakpoint): Enable all locations associated with a
149 tracepoint on target if a trace experiment is running.
150 (enable_command) Enable a specific tracepoint location on target if a
151 trace experiment is running.
152 * target.c (update_current_target): Add INHERIT and de_fault clauses for
153 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
154 to_disable_tracepoint.
155 * target.h: Add declaration of struct bp_location.
156 (struct target_ops): Add new functions
157 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
158 to_disable_tracepoint to target operations.
159 (target_supports_enable_disable_tracepoint): New macro.
160 (target_enable_tracepoint): New macro.
161 (target_disable_tracepoint): New macro.
162 * remote.c (struct remote_state): Add new field.
163 (remote_enable_disable_tracepoint_feature): New.
164 (remote_protocol_features): Add new entry.
165 (remote_supports_enable_disable_tracepoint): New.
166 (remote_enable_tracepoint): New.
167 (remote_disable_tracepoint): New.
168 (init_remote_ops): Add remote_enable_tracepoint,
169 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
170 to remote operations.
171 * tracepoint.c (start_tracing): Allow tracing to start without any
172 tracepoints enabled with just a warning if they can be re-enabled
173 later.
174 * NEWS: Add news item for the new behaviour of the enable and disable
175 GDB commands when applied to tracepoints.
176 Add news items for the new remote packets QTEnable and QTDisable.
177
178 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
179
180 * config.in: Regenerate.
181 * configure: Regenerate.
182 * configure.ac <--with-system-readline> (for readline_echoing_p):
183 Remove the test.
184 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
185 (tui_old_rl_echoing_p): ... here.
186 (tui_setup_io): Rename extern declaration readline_echoing_p to
187 _rl_echoing_p. Adjust assignments for the both renames.
188
189 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
190
191 * symtab.c (lookup_symtab): Run cleanup before returning.
192
193 2011-05-11 Tom Tromey <tromey@redhat.com>
194
195 * dwarf2read.c (handle_data_member_location): New function.
196 (dwarf2_add_field): Use it.
197 (read_common_block): Likewise.
198
199 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
200
201 Make addrs->SECTINDEX always defined.
202 * symfile.c (relative_addr_info_to_section_offsets): Check for
203 SECTINDEX -1, not for zero ADDR.
204 (addrs_section_compar): Remove checking for invalid SECTINDEX.
205 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
206 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
207 on its validity.
208
209 2011-05-10 Doug Evans <dje@google.com>
210
211 * linux-thread-db.c: Whitespace cleanup.
212 (try_thread_db_load_1): Fix comment.
213
214 * linux-thread-db.c (set_libthread_db_search_path): New function.
215 (_initialize_thread_db): Add setter for libthread-db-search-path.
216
217 2011-05-09 Doug Evans <dje@google.com>
218
219 * NEWS: Mention --with-iconv-bin.
220 * configure.ac: New option --with-iconv-bin.
221 * configure: Regenerate.
222 * config.in: Regenerate.
223 * defs.h (relocate_gdb_directory): Declare.
224 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
225 removed progname parameter, and exported. All callers updated.
226 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
227
228 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
229 adding missing call to restore_child_signals_mask.
230
231 2011-05-09 Pedro Alves <pedro@codesourcery.com>
232
233 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
234 parameter.
235 * infrun.c (proceed, start_remote): Adjust.
236 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
237 and adjust to not handle it.
238 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
239 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
240 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
241 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
242 * windows-nat.c (do_initial_windows_stuff): Adjust.
243 * infcmd.c (attach_command): Adjust.
244 (notice_new_inferior): Adjust.
245
246 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
247
248 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
249 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
250 * spu-tdep.c (op_selb): Use correct value.
251
252 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
253
254 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
255 "parent" parameter to symbol_file_add_from_bfd call.
256
257 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
258 Thiago Jung Bauermann <bauerman@br.ibm.com>
259
260 Implement support for PowerPC BookE masked watchpoints.
261 * NEWS: Mention masked watchpoint support. Create "Changed commands"
262 section.
263 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
264 method. Initialize to NULL in all existing breakpoint_ops instances.
265 (struct breakpoint) <hw_wp_mask>: New field.
266 * breakpoint.c (is_masked_watchpoint): Add prototype.
267 (update_watchpoint): Don't set b->val for masked watchpoints. Call
268 breakpoint's breakpoint_ops.works_in_software_mode if available.
269 (watchpoints_triggered): Handle the case of a hardware masked
270 watchpoint trigger.
271 (watchpoint_check): Likewise.
272 (works_in_software_mode_watchpoint): New function.
273 (insert_masked_watchpoint, remove_masked_watchpoint)
274 (resources_needed_masked_watchpoint)
275 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
276 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
277 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
278 functions.
279 (masked_watchpoint_breakpoint_ops): New structure.
280 (watch_command_1): Check for the existence of the `mask' parameter.
281 Set b->ops according to the type of hardware watchpoint being created.
282 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
283 (ppc_linux_remove_mask_watchpoint)
284 (ppc_linux_masked_watch_num_registers): New functions.
285 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
286 to_remove_mask_watchpoint and to_masked_watch_num_registers.
287 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
288 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
289 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
290 (target_masked_watch_num_registers): New functions.
291 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
292 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
293 methods.
294 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
295 (target_masked_watch_num_registers): Add prototypes.
296
297 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
298
299 PR 12573
300 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
301 (producer_is_gcc_ge_4_0): New function.
302 (process_full_comp_unit): Set also symtab->locations_valid. Move the
303 symtab->language code.
304 (var_decode_location): Set cu->has_loclist.
305 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
306 skip. Intialize force_skip from locations_valid. Move the prologue
307 skipping code into two passes.
308 * symtab.h (struct symtab): Make the primary field a bitfield. New
309 field locations_valid.
310
311 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
312
313 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
314 (classify_inner_name): Call cp_lookup_nested_type with
315 yylval.tsym.type.
316 * cp-namespace.c (cp_lookup_nested_type): New variable
317 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
318 type_name_no_tag_or_error with saved_parent_type.
319 * dwarf2read.c (load_partial_dies): Read in any children of
320 DW_TAG_typedef with complaint in such case.
321 * gdbtypes.c (type_name_no_tag_or_error): New function.
322 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
323 * valops.c (destructor_name_p): New comment for parameter type. Remove
324 type const. Make dname and cp const. Call type_name_no_tag_or_error.
325 * value.h (destructor_name_p): Remove type const.
326
327 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
328
329 * symtab.c (compare_symbol_name): New function.
330 (completion_list_add_name, expand_partial_symbol_name): Call it,
331 remove the variable ncmp.
332 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
333 gdb_assert it.
334
335 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
336
337 Demote to sw watchpoint only in update_watchpoint.
338 * breakpoint.c (update_watchpoint): Change between software and
339 hardware watchpoint for all kinds of watchpoints, not just
340 read/write ones. Determine b->exact value here instead of
341 in watch_command_1. Error out if there are not enough resources
342 for a read or access hardware watchpoint.
343 (watch_command_1): Remove logic of checking whether there are
344 enough resources available, since update_watchpoint will do that
345 work now. Don't set b->exact here. Catch exceptions thrown by
346 update_watchpoint and delete the watchpoint.
347 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
348 Use target_exact_watchpoints instead.
349 (delete_breakpoint): Notify observers only if deleted watchpoint
350 has a breakpoint number assigned to it.
351
352 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
353
354 * MAINTAINERS: Add myself as a write-after-approval maintainer.
355
356 2011-05-05 Jerome Guitton <guitton@adacore.com>
357
358 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
359 New functions.
360 (i386_stack_tramp_frame_unwind): New static global.
361 (i386_match_pattern): New function, extracted from i386_match_insn.
362 (i386_match_insn): Use i386_match_pattern.
363 (i386_match_insn_block): New function.
364 (i386_tramp_chain_in_reg_insns)
365 (i386_tramp_chain_on_stack_insns): New static variables.
366 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
367 of unwinders.
368
369 2011-05-04 Joseph Myers <joseph@codesourcery.com>
370
371 * configure.host (xscale*): Don't handle target.
372 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
373 handle targets.
374
375 2011-05-04 Yao Qi <yao@codesourcery.com>
376
377 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
378
379 2011-05-03 Joel Brobecker <brobecker@adacore.com>
380
381 Revert:
382 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
383 | * elfread.c (elf_symtab_read): Stop memory leak.
384
385 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
386
387 * nto-tdep.c (nto_target): Replace deprecated call to
388 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
389
390 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
391
392 Fix false GCC warning.
393 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
394
395 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
396
397 * breakpoint.c (update_watchpoint): Move code to change
398 the enable state of breakpoint from here ...
399 (do_enable_breakpoint): ... to here.
400
401 2011-04-26 Andrew Gontarek <andrewg@cray.com>
402
403 * valprint.c (val_print_array_elements): Fixed poor performance
404 of printing very large arrays with repeat_count_threshold set
405 to unlimited. New comment.
406
407 2011-04-29 Tom Tromey <tromey@redhat.com>
408
409 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
410 (mi_parse): Likewise.
411 * breakpoint.c (break_range_command): Use sizeof char*, not
412 char**.
413 (create_breakpoint): Likewise.
414 (parse_breakpoint_sals): Likewise.
415
416 2011-04-29 Pedro Alves <pedro@codesourcery.com>
417
418 * linux-nat.c (linux_child_remove_fork_catchpoint)
419 (linux_child_remove_vfork_catchpoint)
420 (linux_child_remove_exec_catchpoint): New functions.
421 (linux_target_install_ops): Install them.
422
423 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
424
425 PR mi/12531
426
427 * varobj.c (install_default_visualizer): Do not install a
428 visualizer if the varobj is CPLUS_FAKE_CHILD.
429 (construct_visualizer): Likewise.
430
431 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
432
433 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
434 case insensitive comparison.
435
436 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
437
438 * infrun.c (proceed): Revert previous change.
439 (resume): Instead, handle the case of signal delivery while stepping
440 off a breakpoint location here, and only if software single-stepping
441 is used. Handle nested signals.
442
443 2011-04-28 Yao Qi <yao@codesourcery.com>
444
445 * arm-tdep.c (copy_unmodified): Rename to ...
446 (arm_copy_unmodified): .. this. New.
447 (copy_preload): Move common part to ...
448 (install_preload): .. this. New.
449 (arm_copy_preload): New.
450 (copy_preload_reg): Move common part to ...
451 (install_preload_reg): ... this. New.
452 (arm_copy_preload_reg): New.
453 (copy_b_bl_blx): Move common part to ...
454 (install_b_bl_blx): .. this. New.
455 (arm_copy_b_bl_blx): New.
456 (copy_bx_blx_reg): Move common part to ...
457 (install_bx_blx_reg): ... this. New.
458 (arm_copy_bx_blx_reg): New.
459 (copy_alu_reg): Move common part to ...
460 (install_alu_reg): ... this. New.
461 (arm_copy_alu_reg): New.
462 (copy_alu_shifted_reg): Move common part to ...
463 (install_alu_shifted_reg): ... this. New.
464 (copy_ldr_str_ldrb_strb): Move common part to ...
465 (install_ldr_str_ldrb_strb): ... this. New.
466 (arm_copy_ldr_str_ldrb_strb): New.
467 (copy_copro_load_store): Move some common part to ...
468 (install_copy_copro_load_store): ... this. New.
469 (arm_copy_copro_load_store): New.
470 (copy_svc): Delete.
471 (arm_copy_svc): Renamed from copy_svc.
472 (copy_undef): Delete.
473 (arm_copy_undef): Renamed from copy_undef.
474 (decode_ext_reg_ld_st): Delete.
475 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
476 (decode_svc_copro): Delete.
477 (arm_decode_svc_copro): Renamed from decode_svc_copro.
478 (copy_copro_load_store, copy_alu_imm): update callers.
479 (copy_extra_ld_st, copy_block_xfer): Likewise.
480 (decode_misc_memhint_neon, decode_unconditional): Likewise.
481 (decode_miscellaneous, decode_dp_misc): Likewise.
482 (decode_ld_st_word_ubyte, decode_media): Likewise.
483 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
484 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
485 (decode_unconditional, decode_miscellaneous): Likewise.
486 (decode_media, decode_b_bl_ldmstm): Likewise.
487 (arm_process_displaced_insn): Likewise..
488 (decode_misc_memhint_neon): Delete.
489 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
490 (decode_miscellaneous): Delete.
491 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
492 (decode_dp_misc): Delete.
493 (arm_decode_dp_misc): Renamed from decode_dp_misc.
494 (decode_ld_st_word_ubyte): Delete.
495 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
496 (decode_media): Delete.
497 (arm_decode_media): Renamed from decode_media.
498 (decode_b_bl_ldmstm): Delete.
499 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
500 (decode_ext_reg_ld_st): Delete.
501 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
502 (decode_unconditional): Delete.
503 (arm_decode_unconditional): Renamed from decode_unconditional.
504
505 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
506
507 Case insensitive lookups implementation.
508 * dwarf2read.c: Include ctype.h.
509 (struct mapped_index): New field version.
510 (mapped_index_string_hash): New parameter index_version. New comment
511 for it. Call tolower appropriately.
512 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
513 Choose the right index version for mapped_index_string_hash.
514 (dwarf2_read_index): Support also the index version 5. Initialize the
515 new struct mapped_index field version.
516 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
517 (find_slot): Explain the version needs. Pass INT_MAX for the new
518 parameter.
519 (write_psymtabs_to_index): Produce version 5.
520 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
521 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
522 * psymtab.c (lookup_partial_symbol): Find the
523 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
524 entries.
525 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
526 NAME lowercasing.
527 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
528 (completion_list_add_name): New variable ncmp, initialize it, use it.
529 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
530 * utils.c (strcmp_iw): Support case_sensitive_off.
531 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
532 New function comment part. New variables saved_string1,
533 saved_string2 and case_pass. Add a proper second pass.
534
535 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
536
537 Replace re_comp/re_exec by regcomp/regexec.
538 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
539 (search_symbols_name_matches): Use them, use regexec.
540 (search_symbols): New variable retval_chain, adjust the use of
541 old_chain against it. Replace re_comp by regcomp. Use the new struct
542 search_symbols_data fields, use regexec instead of re_exec.
543
544 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
545
546 Format the code for the next patch.
547 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
548 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
549 New variables c1 and c2.
550
551 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
552
553 * infrun.c (proceed): Do not single-step into signal delivery
554 when stepping off a breakpoint location.
555 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
556 (insert_step_resume_breakpoint_at_caller): Likewise.
557 (insert_step_resume_breakpoint_at_sal): Likewise.
558 (insert_longjmp_resume_breakpoint): Likewise.
559
560 2011-04-27 Yao Qi <yao@codesourcery.com>
561
562 * common/linux-ptrace.h: Remove include <sys/wait.h>.
563
564 2011-04-27 Joel Brobecker <brobecker@adacore.com>
565
566 * procfs.c (procfs_pass_signals): Fix advance declaration.
567
568 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
569
570 * target.h (struct target_ops): Remove to_notice_signals;
571 add to_pass_signals.
572 (target_notice_signals): Remove.
573 (target_pass_signals): Add prototype.
574 * target.c (update_current_target): Remove to_notice_signals;
575 mention to_pass_signals.
576 (target_pass_signals): New function.
577 (debug_to_notice_signals): Remove.
578 (setup_target_debug): Do not install debug_to_notice_signals.
579
580 * infrun.c (signal_pass): New global.
581 (resume): Call target_pass_signals.
582 (handle_inferior_event): Report all signals while stepping over
583 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
584 are re-inserted when stepping over a signal handler.
585 (signal_cache_update): New function.
586 (signal_stop_update): Call it.
587 (signal_print_update): Likewise.
588 (signal_pass_update): Likewise.
589 (handle_command): Call signal_cache_update and target_pass_signals
590 instead of target_notice_signals.
591 (_initialize_infrun): Initialize signal_pass.
592
593 * linux-nat.c (pass_mask): New global.
594 (linux_nat_pass_signals): New function.
595 (linux_nat_create_inferior): Report all signals initially.
596 (linux_nat_attach): Likewise.
597 (linux_nat_resume): Use pass_mask to decide whether to directly
598 handle an inferior signal.
599 (linux_nat_wait_1): Likewise.
600 (linux_nat_add_target): Install to_pass_signals callback.
601
602 * nto-procfs.c (notice_signals): Remove.
603 (procfs_resume): Do not call notice_signals.
604 (procfs_notice_signals): Remove.
605 (procfs_pass_signals): New function.
606 (init_procfs_ops): Install to_pass_signals callback instead of
607 to_notice_signals callback.
608 (_initialize_procfs): Report all signals initially.
609
610 * procfs.c (procfs_notice_signals): Remove.
611 (procfs_pass_signals): New function.
612 (procfs_target): Install to_pass_signals callback instead of
613 to_notice_signals callback.
614 (register_gdb_signals): Remove.
615 (procfs_debug_inferior): Report all signals initially.
616 (procfs_init_inferior): Remove redundant register_gdb_signals call.
617
618 * remote.c (remote_pass_signals): Add numsigs and pass_signals
619 parameters; use them instead of calling signal_..._state routines.
620 (remote_notice_signals): Remove.
621 (remote_start_remote): Report all signals initially.
622 (remote_resume): Do not call remote_pass_signals.
623 (_initialize_remote): Install to_pass_signals callback instead of
624 to_notice_signals callback.
625
626 2011-04-27 Pedro Alves <pedro@codesourcery.com>
627
628 * breakpoint.c (user_settable_breakpoint): Delete.
629 (user_breakpoint_p): Remove check on user_settable_breakpoint.
630 (delete_command): Check user_breakpoint_p instead of looking at
631 the breakpoint's type.
632 (disable_command): Ditto.
633 (enable_command): Ditto.
634 (delete_trace_command): Use user_breakpoint_p instead of looking
635 at the breakpoint number directly. When checking if there are
636 user visible tracepoints, in order to know whether to ask the user
637 for confirmation, check whether the breakpoint is actually a
638 tracepoint.
639
640 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
641
642 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
643 compilation.
644
645 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
646
647 MI breakpoint notifications.
648
649 * annotate.c (breakpoint_changed): Adjust parameter type.
650 * breakpoint.c (set_breakpoint_condition): Adjust to change
651 in breakpoint_modified type.
652 (breakpoint_set_commands): Likewise.
653 (do_map_commands_command): Likewise.
654 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
655 changed after bumping hit count.
656 (bpstat_stop_status): Likewise.
657 (print_one_breakpoint_location): Don't wrap in tuple here.
658 (print_one_breakpoint): Always print individual locations.
659 For locations, use unnamed tuple.
660 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
661 has changed.
662 (create_catchpoint, create_syscall_event_catchpoint): Call
663 breakpoint_created obsever.
664 (mention): Don't call breakpoint_created observer.
665 (create_breakpoint_sal): Call breakpoint_created observer.
666 (create_breakpoint, watch_command_1): Likewise.
667 (create_ada_exception_breakpoint): Likewise.
668 (delete_breakpoint): Call breakpoint_deleted breakpoint.
669 (locations_are_equal): New.
670 (update_breakpoint_locations): If locations were changed, notify.
671 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
672 Call breakpoint_modified observer.
673
674 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
675 (mi_cmd_break_insert): Don't set observers for modify and delete.
676 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
677 (mi_breakpoint_created, mi_breakpoint_deleted)
678 (mi_breakpoint_modified): New.
679 (mi_interpreter_init): Hook the above.
680 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
681 while -break-* commands are executing.
682 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
683 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
684 (mi_redirect): New.
685 (mi_ui_out_impl): Hook in mi_redirect.
686 (mi_field_skip): True to the name, skip the field, don't output
687 a field with an empty value.
688
689 * python/py-breakpoint.c (gdbpy_breakpoint_created)
690 (gdbpy_breakpoint_deleted): Adjust.
691 * tui/tui-hooks.c (tui_event_create_breakpoint)
692 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
693
694 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
695
696 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
697 (procfs_remove_hw_watchpoint): Likewise.
698
699 2011-04-26 Michael Walle <michael@walle.cc>
700
701 * remote.c (remote_start_remote): Ack packet after sending the
702 interrupt sequence.
703
704 2011-04-26 Yao Qi <yao@codesourcery.com>
705
706 * linux-nat.c: Move common macros to ...
707 Include linux-ptrace.h.
708 * common/linux-ptrace.h: ... here. New.
709
710 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
711
712 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
713 !objfile_has_partial_symbols. New comment.
714 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
715 SYM_READ_PSYMBOLS is not present. Extend the comment.
716 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
717
718 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
719
720 * defs.h (ENUM_BITFIELD): Remove.
721
722 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
723 Eli Zaretskii <eliz@gnu.org>
724
725 * NEWS: Document the new gdbserver --once option.
726
727 2011-04-21 Jie Zhang <jzhang918@gmail.com>
728
729 * MAINTAINERS: Update my email address.
730
731 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
732
733 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
734 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
735 function call if __STDC_ISO_10646__ macro is defined.
736 (intermediate_encoding): New prototype.
737 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
738 to generate compile time error for unsupported gdb_wchar_t size.
739 (ENDIAN_SUFFIX): New macro.
740 (intermediate_encoding): New function.
741
742 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
743
744 * ada-lang.c (struct add_partial_datum): Update the comment for
745 expand_partial_symbol_name.
746 (ada_add_partial_symbol_completions): Rename to ...
747 (ada_expand_partial_symbol_name): ... here, change return type, update
748 function comment, call symbol_completion_match instead of
749 symbol_completion_add.
750 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
751 and ada_expand_partial_symbol_name.
752 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
753 FILE_MATCHER.
754 (dw2_map_symbol_names): Remove.
755 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
756 * psymtab.c (map_symbol_names_psymtab): Remove.
757 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
758 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
759 order.
760 (psym_functions): Unlist map_symbol_names_psymtab.
761 (map_partial_symbol_names): Rename to ...
762 (expand_partial_symbol_names): ... here, change the FUN type, call
763 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
764 * psymtab.h (map_partial_symbol_names): Rename to ...
765 (expand_partial_symbol_names): ... here, change the FUN type.
766 * symfile.h (struct quick_symbol_functions): Update the description of
767 expand_symtabs_matching. Remove map_symbol_names.
768 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
769 (struct add_name_data): Update the comment for
770 expand_partial_symbol_name.
771 (add_partial_symbol_name): Rename to ...
772 (expand_partial_symbol_name): ... here. Replace
773 completion_list_add_name call by strncmp.
774 (default_make_symbol_completion_list_break_on): Use now
775 expand_partial_symbol_names and expand_partial_symbol_name.
776 * symtab.h (enum search_domain): New element ALL_DOMAIN.
777
778 2011-04-20 Tom Tromey <tromey@redhat.com>
779
780 * dwarf2read.c (save_gdb_index_command): Replace format
781 documentation with a pointer to the manual.
782
783 2011-04-20 Pedro Alves <pedro@codesourcery.com>
784
785 * regcache.c: Include remote.h.
786 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
787 (regcache_dump): Handle regcache_dump_remote.
788 (maintenance_print_remote_registers): New function.
789 (_initialize_regcache): Install "maint print remote-registers"
790 command.
791 * remote.c (map_regcache_remote_table): New function, factored out
792 from ...
793 (init_remote_state): ... here.
794 (remote_register_number_and_offset): New.
795 * remote.h (remote_register_number_and_offset): Declare.
796
797 2011-04-20 Pedro Alves <pedro@codesourcery.com>
798
799 * regcache.c (get_thread_arch_regcache): If creating a regcache for
800 null_ptid, assume and allow a NULL address space, instead of
801 asking the target for the ptid's address space.
802 * infrun.c (ptid_is_pid): Remove assertion.
803
804 2011-04-19 Tom Tromey <tromey@redhat.com>
805
806 * windows-tdep.c (windows_xfer_shared_library):
807 * windows-nat.c (get_module_name, windows_make_so):
808 * v850-tdep.c (v850_handle_pushm):
809 * utils.c (null_cleanup, gdb_realpath):
810 * ui-out.c (get_next_header):
811 * tracepoint.c (clear_traceframe_info):
812 * symtab.c (lookup_symtab):
813 * serial.h (struct serial_ops):
814 * mipsread.c (read_alphacoff_dynamic_symtab):
815 * infcmd.c (print_return_value):
816 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
817 * f-exp.y (parse_number):
818 * exceptions.c (catch_exceptions):
819 * dummy-frame.c (dummy_frame_this_id):
820 * defs.h (struct cleanup):
821 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
822 * arm-tdep.c (arm_push_dummy_call):
823 * amd64-tdep.h (amd64_collect_xsave):
824 * amd64-tdep.c (amd64_collect_xsave):
825 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
826 * README (typing): Remove duplicate words.
827 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
828 * infrun.c (siginfo_value_read): Fix typo.
829 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
830 * top.c (source_line_number): Add comma.
831
832 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
833
834 * thread.c (any_live_thread_of_process): Prioritize threads
835 that are not executing.
836 * gdbthread.h (any_live_thread_of_process): Update comment
837 as per above change.
838
839 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
840
841 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
842 (scan_xcoff_symtab): Likewise.
843
844 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
845
846 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
847 inside if clause.
848
849 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
850 Pedro Alves <pedro@codesourcery.com>
851
852 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
853 variables to simplify code and avoid == operator at end of
854 line as this is against GNU coding standards.
855
856 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
857
858 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
859 lm_name to name_lm to avoid conflict with lm_name function.
860
861 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
862
863 ARI fixes: Use only lowercase function name for static functions.
864 * nto-tdep.c (LM_ADDR): Rename to...
865 (lm_addr): New function name.
866 (nto_relocate_section_addresses): Adapt to change above.
867 * solib-sunos.c (LM_ADDR): Rename to...
868 (lm_addr): New function name.
869 (LM_NEXT): Rename to...
870 (lm_next): New function name.
871 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
872 function name changes above.
873 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
874 (lm_addr_from_link_map): New function name.
875 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
876 (has_lm_dynamic_from_link_map): New function name.
877 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
878 (lm_dynamic_from_link_map): New function name.
879 (LM_ADDR_CHECK): Rename to...
880 (lm_addr_check): New function name.
881 (LM_NEXT): Rename to...
882 (lm_next): New function name.
883 (LM_PREV): Rename to...
884 (lm_prev): New function name.
885 (LM_NAME): Rename to...
886 (lm_name): New function name.
887 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
888 (ignore_first_link_map_entry): New function name.
889 (svr4_keep_data_in_core): Adapt to function name changes above.
890 (svr4_current_sos): Likewise.
891 (enable_break): Likewise.
892 (svr4_relocate_section_addresses): Likewise.
893
894 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
895
896 ARI cleanup.
897 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
898 sprintf. Simplify code and avoid loosing memory.
899 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
900 (call0_frame_cache): Remove && operator from end of line.
901
902 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
903
904 Fix libraries displacement if they change whether they were prelinked.
905 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
906 does not match. Comment why.
907
908 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
909
910 * corelow.c: Include wrapper.h.
911 (core_open): Call now gdb_target_find_new_threads.
912 * wrapper.c: Include target.h.
913 (gdb_target_find_new_threads): New.
914 * wrapper.h (gdb_target_find_new_threads): New declaration.
915
916 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
917
918 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
919 even if !TARGET_HAS_EXECUTION.
920
921 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
922
923 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
924 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
925 bfd_get_synthetic_symtab.
926 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
927 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
928 parameter parent, remove the call to add_separate_debug_objfile.
929 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
930 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
931 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
932 parent, new comment for it, call add_separate_debug_objfile for it.
933 (symbol_file_add_separate): Pass objfile as the parameter parent,
934 remove the call to add_separate_debug_objfile.
935 (symbol_file_add_from_bfd): New parameter parent, pass it.
936 (symbol_file_add): Pass NULL to the new parameter parent.
937 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
938
939 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
940
941 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
942 BSF_SYNTHETIC.
943
944 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
945
946 Fix Python access to inlined frames.
947 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
948 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
949
950 2011-04-15 Tom Tromey <tromey@redhat.com>
951
952 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
953
954 2011-04-15 Gary Benson <gbenson@redhat.com>
955
956 * MAINTAINERS: Add myself to write-after-approval section.
957
958 2011-04-14 Mike Frysinger <vapier@gentoo.org>
959
960 * remote-sim.c (sim_command_completer): New function.
961 (_initialize_remote_sim): Set completer to sim_command_completer.
962
963 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
964
965 * breakpoint.c (print_exception_catchpoint): Rename to ...
966 (print_it_exception_catchpoint): ... this.
967 (gnu_v3_exception_catchpoint_ops): Update with new name
968 for print_it_exception_catchpoint.
969
970 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
971
972 * MAINTAINERS: Add myself for write after approval privileges.
973
974 2011-04-13 Marek Polacek <mpolacek@redhat.com>
975
976 * MAINTAINERS: Add myself as a write-after-approval maintainer.
977
978 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
979
980 * breakpoint.c (watch_command_1): Remove colon from exp_string.
981
982 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
983
984 * breakpoint.c (save_breakpoints): Verify whether
985 breakpoint_ops.print_recreate is defined before calling it.
986
987 2011-04-11 Gary Benson <gbenson@redhat.com>
988
989 Fix failure with --enable-maintainer-mode.
990 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
991
992 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
993
994 Code cleanup.
995 * symtab.c (search_symbols): Reorder the KIND description in the
996 function comment. Remove the unused 4th element of types, types2,
997 types3 and types4. New gdb_assert on KIND.
998 (symtab_symbol_info): Remove the unused 4th element of classnames.
999 New gdb_assert on KIND.
1000 * symtab.h (enum search_domain): New warning in the enum comment.
1001 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1002 TYPES_DOMAIN.
1003
1004 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1005
1006 Fix crash of gdb save-index on a STABS file.
1007 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1008 PSYMTABS_ADDRMAP.
1009
1010 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1011
1012 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1013 * dwarf2read.c: Include ctype.h.
1014 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1015 functions.
1016 (dwarf2_add_field): Fix new_field->accessibility by calling
1017 dwarf2_default_access_attribute. Restructure setting accessibility
1018 vs. virtuality.
1019 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1020 is_private and is_protected by calling
1021 dwarf2_default_access_attribute.
1022
1023 2011-04-08 Kevin Buettner <kevinb@redhat.com>
1024
1025 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1026 to the initialization.
1027
1028 2011-04-08 Steve Ellcey <sje@cup.hp.com>
1029
1030 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1031 initalization.
1032
1033 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1034
1035 Remove support for old Cygwin 1.5 versions.
1036 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1037 function on old Cygwin version.
1038 * windows-nat.c: Remove cygwin version check and always define
1039 __USEWIDE for Cygwin compilation.
1040
1041 2011-04-07 Yao Qi <yao@codesourcery.com>
1042
1043 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1044 and TO.
1045 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1046 (arm_copy_svc): Remove parameters INSN and TO.
1047 (decode_svc_copro): Update caller.
1048 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1049 from function pointer `copy_svc_os'.
1050
1051 2011-04-07 Yao Qi <yao@codesourcery.com>
1052
1053 * arm-tdep.c (cleanup_branch): Set a correct return address in
1054 LR for ARM and Thumb.
1055
1056 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1057
1058 Code cleanup.
1059 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1060 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1061 in the function comment, a new note on values compatibility.
1062 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1063 * symtab.h (SYMBOL_HASH_NEXT): New.
1064
1065 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1066
1067 * ppc-linux-nat.c (check_condition): Add len output parameter.
1068 Set it based on the memory region referenced in the condition
1069 expression. Update all callers.
1070
1071 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1072
1073 Fix crash regression on systems featuring .gdb_index.
1074 * objfiles.c (free_objfile): Move the
1075 forget_cached_source_info_for_objfile call earlier. Comment it.
1076 Extend the comment for objfile_free_data.
1077
1078 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1079
1080 Fix regression of displaying the debug format.
1081 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1082 subfile.
1083
1084 2011-04-04 Tom Tromey <tromey@redhat.com>
1085
1086 * cli/cli-interp.c (struct captured_execute_command_args):
1087 Remove.
1088 (do_captured_execute_command): Remove.
1089 (safe_execute_command): Use TRY_CATCH.
1090 * cli/cli-script.c (struct wrapped_read_command_file_args):
1091 Remove.
1092 (wrapped_read_command_file): Remove.
1093 (script_from_file): Use TRY_CATCH.
1094 * exceptions.c (catch_exception): Remove.
1095 * exceptions.h (catch_exception): Remove.
1096 (deprecated_throw_reason): Update comment.
1097 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1098 argument to 'context'.
1099 (mi_execute_command): Use TRY_CATCH.
1100 * remote.c (struct start_remote_args): Remove.
1101 (remote_start_remote): Update; change arguments.
1102 (remote_open_1): Use TRY_CATCH.
1103
1104 2011-04-04 Tom Tromey <tromey@redhat.com>
1105
1106 * tracepoint.c (scope_info): Update.
1107 * symtab.c (decode_line_spec): Update.
1108 * python/python.c (gdbpy_decode_line): Update.
1109 * linespec.h (decode_line_1): Update.
1110 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1111 (decode_compound, find_method, symtab_from_filename)
1112 (decode_variable): Likewise.
1113 * cli/cli-cmds.c (edit_command): Update.
1114 (list_command): Update.
1115 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1116 argument.
1117 (create_breakpoint): Update.
1118 (until_break_command): Update.
1119 (addr_string_to_sals): Update.
1120 (decode_line_spec_1): Update.
1121
1122 2011-04-04 Tom Tromey <tromey@redhat.com>
1123
1124 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1125 (do_captured_parse_breakpoint): Remove.
1126 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1127 Use TRY_CATCH directly.
1128
1129 2011-04-04 Tom Tromey <tromey@redhat.com>
1130
1131 * symtab.h (free_symtab): Remove.
1132 (forget_cached_source_info_for_objfile): Declare.
1133 * symmisc.c (free_symtab): Remove.
1134 * source.c (forget_cached_source_info_for_objfile): New function.
1135 (forget_cached_source_info): Use it.
1136 * objfiles.c (free_objfile): Simplify check before calling
1137 clear_current_source_symtab_and_line. Call
1138 forget_cached_source_info_for_objfile.
1139
1140 2011-04-04 Tom Tromey <tromey@redhat.com>
1141
1142 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1143 (new_symtab): Don't set `free_code' on symtab.
1144 (new_linetable): Properly handle size==0.
1145 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1146 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1147 free_func.
1148 * jv-lang.c (struct jv_per_objfile_data): New.
1149 (jv_per_objfile_free): Free the data.
1150 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1151 (get_java_class_symtab): Set the `dict' field on the
1152 jv_per_objfile_data.
1153 (free_class_block): Remove.
1154 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1155 the symtab.
1156
1157 2011-04-04 Tom Tromey <tromey@redhat.com>
1158
1159 * symfile.c (reread_symbols): Update.
1160 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1161 field.
1162 * objfiles.c (allocate_objfile): Update.
1163 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1164 declare.
1165 * cp-namespace.c (lookup_symbol_file): Don't call
1166 lookup_possible_namespace_symbol.
1167 (initialize_namespace_symtab, get_possible_namespace_block)
1168 (free_namespace_block, cp_check_possible_namespace_symbols)
1169 (check_possible_namespace_symbols_loop)
1170 (check_one_possible_namespace_symbol)
1171 (lookup_possible_namespace_symbol): Remove.
1172 (maintenance_cplus_namespace): Replace with notice.
1173 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1174
1175 2011-04-04 Tom Tromey <tromey@redhat.com>
1176
1177 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1178 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1179 * symmisc.c (free_symtab): Don't free debugformat.
1180 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1181 (record_debugformat, record_producer): Document.
1182 * buildsym.c (end_symtab): Don't save debugformat and producer
1183 names on obstack.
1184 (end_symtab): Don't free debugformat and producer fields.
1185 (record_debugformat): Don't call xstrdup.
1186 (record_producer): Likewise.
1187
1188 2011-04-04 Tom Tromey <tromey@redhat.com>
1189
1190 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1191 (source_line_charpos, source_charpos_line): Remove.
1192
1193 2011-04-04 Tom Tromey <tromey@redhat.com>
1194
1195 * symtab.h (domain_enum): Split in two...
1196 (enum search_domain): New.
1197 (search_symbols): Update.
1198 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1199 redundant declarations.
1200 (search_symbols): Change 'kind' argument to search_domain.
1201 Update.
1202 (print_symbol_info): Likewise.
1203 (symtab_symbol_info): Likewise.
1204 * symfile.h (struct quick_symbol_functions)
1205 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1206 <expand_symtabs_matching>: Likewise.
1207 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1208 (expand_symtabs_matching_via_partial): Update.
1209 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1210 (dw2_expand_symtabs_for_function): Update.
1211 * block.h: Moved anonymous enum...
1212 * defs.h (enum block_enum): ... here. Now named.
1213
1214 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1215
1216 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1217 * version.in: Bump version to 7.3.50.20110403-cvs.
1218
1219 2011-04-03 Joel Brobecker <brobecker@adacore.com>
1220
1221 * NEWS: Create a new section for the next release branch.
1222 Rename the section of the current branch, now that it has
1223 been cut.
1224
1225 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1226
1227 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1228 for "fpscr" in target description.
1229
1230 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1231
1232 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1233 initialize it. Delay HASH initialization. Strip the part after open
1234 parenthesis for languages with qualifiers. Call do_cleanups.
1235
1236 2011-04-01 Tom Tromey <tromey@redhat.com>
1237
1238 * utils.c (report_command_stats): Don't print `-' for negative
1239 number.
1240
1241 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1242
1243 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1244 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1245 typedefs.
1246
1247 2011-04-01 Joel Brobecker <brobecker@adacore.com>
1248
1249 * breakpoint.h (bpdisp_text): Add declaration.
1250 * breakpoint.c (bpdisp_text): Make non-static.
1251 * ada-lang.c: #include "mi/mi-common.h".
1252 (print_it_exception): Rewrite to improve GDB/MI output.
1253
1254 2011-04-01 Pedro Alves <pedro@codesourcery.com>
1255
1256 * arm-tdep.h (struct address_space): Add forward declaration.
1257
1258 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1259
1260 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1261 * arm-tdep.c (arm_override_mode): New global.
1262 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1263 execution mode heuristics.
1264 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1265 second single-step breakpoint if needed, using
1266 arm_insert_single_step_breakpoint.
1267 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1268 ARM execution mode, do not call thumb_get_next_pc_raw.
1269 (arm_get_next_pc): Encode execution mode in return value. Call
1270 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1271 (arm_insert_single_step_breakpoint): New function.
1272 (arm_software_single_step): Call it.
1273 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1274 argument to return execution mode of sigreturn target.
1275 (arm_linux_syscall_next_pc): Use it.
1276 (arm_linux_copy_svc): Update call.
1277 (arm_linux_software_single_step): Call
1278 arm_insert_single_step_breakpoint.
1279
1280 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1281
1282 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1283 the comment.
1284
1285 2011-03-31 Tom Tromey <tromey@redhat.com>
1286
1287 * varobj.c (update_dynamic_varobj_children): Properly handle
1288 errors from iterator.
1289
1290 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1291
1292 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1293 struct linkage name twice.
1294
1295 2011-03-31 Tom Tromey <tromey@redhat.com>
1296
1297 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1298 missing ">" to message.
1299
1300 2011-03-31 Tom Tromey <tromey@redhat.com>
1301
1302 * varobj.c (instantiate_pretty_printer): Remove duplicate
1303 'return'.
1304
1305 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1306
1307 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1308 if neither saved value nor register available (e.g. signal frame).
1309
1310 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1311
1312 * macroexp.c (expand): Avoid uninitialized variable
1313 compiler warning.
1314
1315 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1316
1317 * breakpoint.c (break_range_command): Fix typo in comment.
1318
1319 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1320 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1321
1322 Implement support for PowerPC BookE ranged breakpoints.
1323 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1324 * breakpoint.h (struct bp_target_info) <length>: New member
1325 variable.
1326 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1327 instead of struct breakpoint as argument, and also add ASPACE
1328 and BP_ADDR arguments. Update all callers.
1329 (struct breakpoint_ops) <print_one_detail>: New method.
1330 (struct breakpoint) <addr_string_range_end>: New member variable.
1331 * breakpoint.c (breakpoint_location_address_match): Add function
1332 prototype.
1333 (insert_bp_location): Set bl->target_info.length.
1334 (breakpoint_here_p): Call breakpoint_location_address_match.
1335 (moribund_breakpoint_here_p): Likewise.
1336 (regular_breakpoint_inserted_here_p): Likewise.
1337 (breakpoint_thread_match): Likewise.
1338 (bpstat_stop_status): Likewise.
1339 (bpstat_check_location): Move call to
1340 breakpoint_ops.breakpoint_hit to the top.
1341 (print_one_breakpoint_location): Call
1342 breakpoint_ops.print_one_detail if available.
1343 (breakpoint_address_match_range): New function.
1344 (breakpoint_location_address_match): Likewise.
1345 (breakpoint_locations_match): Compare the length field of the
1346 locations too.
1347 (hw_breakpoint_used_count): Count resources used by all locations
1348 in a breakpoint, and use breakpoint_ops.resources_needed if
1349 available.
1350 (breakpoint_hit_ranged_breakpoint): New function.
1351 (resources_needed_ranged_breakpoint): Likewise.
1352 (print_it_ranged_breakpoint): Likewise.
1353 (print_one_ranged_breakpoint): Likewise.
1354 (print_one_detail_ranged_breakpoint): Likewise.
1355 (print_mention_ranged_breakpoint): Likewise.
1356 (print_recreate_ranged_breakpoint): Likewise.
1357 (ranged_breakpoint_ops): New structure.
1358 (find_breakpoint_range_end): New function.
1359 (break_range_command): Likewise.
1360 (delete_breakpoint): Free addr_string_range_end.
1361 (update_breakpoint_locations): Add SALS_END argument. Update
1362 all callers. Calculate breakpoint length if a non-zero SALS_END
1363 is given. Call breakpoint_locations_match instead of
1364 breakpoint_address_match.
1365 (reset_breakpoint): Find SaL of the end of the range if B is a
1366 ranged breakpoint.
1367 (_initialize_breakpoint): Register break-range command.
1368 * defs.h (print_core_address): Add function prototype.
1369 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1370 function.
1371 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1372 (ppc_linux_remove_hw_breakpoint): Likewise.
1373 (_initialize_ppc_linux_nat): Initialize
1374 to_ranged_break_num_registers.
1375 * target.c (update_current_target): Add comment about
1376 to_ranged_break_num_registers.
1377 (target_ranged_break_num_registers): New function.
1378 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1379 New method.
1380 (target_ranged_break_num_registers): Add function prototype.
1381 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1382 * utils.c (print_core_address): ... here.
1383
1384 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1385
1386 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1387 variable compiler warning.
1388
1389 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1390
1391 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1392 code from here ...
1393 (re_set_breakpoint): ... to here ...
1394 (addr_string_to_sals): ... and here.
1395
1396 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1397
1398 * Makefile.in (SFILES): Add missing C sources.
1399 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1400 Add missing headers.
1401
1402 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1403
1404 * .gitignore: New file.
1405
1406 2011-03-29 Mike Frysinger <vapier@gentoo.org>
1407
1408 * NEWS: Mention new cfi device simulation.
1409
1410 2011-03-29 Tom Tromey <tromey@redhat.com>
1411
1412 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1413 otherwise anonymous types.
1414 (dwarf2_name): Likewise.
1415 * valops.c (value_struct_elt_for_reference): Refine artificial
1416 type logic. Call error if j==-1.
1417
1418 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1419
1420 Fix false GCC warning.
1421 * infcall.c (find_function_addr): Initialize funaddr.
1422
1423 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1424
1425 Fix mingw compilation with --enable-targets=all.
1426 * remote-mips.c (gdb_usleep.h): Include header.
1427 (mips_enter_debug): Use gdb_usleep instead of sleep.
1428
1429 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1430
1431 Support resolution of STT_GNU_IFUNC via breakpoints.
1432 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1433 bp_gnu_ifunc_resolver_return.
1434 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1435 the loop. Support bp_gnu_ifunc_resolver and
1436 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1437 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1438 breakpoints.
1439 (bptype_string, print_one_breakpoint_location): Support
1440 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1441 (user_settable_breakpoint): Return true also for
1442 bp_gnu_ifunc_resolver.
1443 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1444 bp_gnu_ifunc_resolver_return.
1445 (set_breakpoint_location_function): New parameter explicit_loc,
1446 describe it. Call find_pc_partial_function_gnu_ifunc with new
1447 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1448 EXPLICIT_LOC is not set.
1449 (set_raw_breakpoint): Set EXPLICIT_LOC for
1450 set_breakpoint_location_function.
1451 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1452 set_breakpoint_location_function.
1453 (mention): Support bp_gnu_ifunc_resolver and
1454 bp_gnu_ifunc_resolver_return.
1455 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1456 set_breakpoint_location_function.
1457 (update_breakpoint_locations): Remove static.
1458 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1459 bp_gnu_ifunc_resolver_return.
1460 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1461 bp_gnu_ifunc_resolver_return.
1462 (update_breakpoint_locations): New declaration.
1463 * elfread.c: Include gdbthread.h and regcache.h.
1464 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1465 functions.
1466 (elf_gnu_ifunc_fns): Install them.
1467 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1468 (stub_gnu_ifunc_resolver_return_stop): New functions.
1469 (stub_gnu_ifunc_fns): Install them.
1470 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1471 and gnu_ifunc_resolver_return_stop.
1472 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1473
1474 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1475
1476 STT_GNU_IFUNC reader implementation.
1477 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1478 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1479 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1480 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1481 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1482 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1483 (elf_gnu_ifunc_resolve_addr): New.
1484 (elf_symfile_read): Call elf_rel_plt_read.
1485 (elf_gnu_ifunc_fns): New.
1486 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1487 Install elf_gnu_ifunc_fns.
1488 * infcall.c (find_function_return_type): New function.
1489 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1490 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1491 (stub_gnu_ifunc_resolve_name): New functions.
1492 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1493 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1494 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1495
1496 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1497
1498 Code cleanup for later STT_GNU_IFUNC support.
1499 * infcall.c (find_function_addr): Remove variable code, use explicit
1500 dereferences for it. Move VALUE_TYPE initialization later.
1501
1502 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1503
1504 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1505 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1506 (clear_pc_function_cache): Clear it.
1507 (find_pc_partial_function): Rename to ...
1508 (find_pc_partial_function_gnu_ifunc): ... this function. New
1509 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1510 (find_pc_partial_function): New wrapper for this function.
1511 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1512
1513 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1514
1515 GDB internal type support for STT_GNU_IFUNC.
1516 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1517 (elf_symtab_read): Set mst_text_gnu_ifunc for
1518 BSF_GNU_INDIRECT_FUNCTION.
1519 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1520 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1521 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1522 nodebug_got_plt_symbol.
1523 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1524 (TYPE_GNU_IFUNC): New.
1525 (struct main_type): New field flag_gnu_ifunc.
1526 (struct builtin_type): New field builtin_func_func.
1527 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1528 nodebug_got_plt_symbol.
1529 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1530 (in_gnu_ifunc_stub): New.
1531 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1532 mst_text_gnu_ifunc.
1533 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1534 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1535 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1536 in_gnu_ifunc_stub.
1537 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1538 * symtab.c (search_symbols): Likewise.
1539 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1540 and mst_slot_got_plt.
1541 (in_gnu_ifunc_stub): New declaration.
1542
1543 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1544
1545 Support a ring of related breakpoints.
1546 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1547 other functions, add gdb_assert.
1548 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1549 watchpoint_del_at_next_stop.
1550 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1551 (bpstat_stop_status): Handle ring in related_breakpoint.
1552 (set_raw_breakpoint_without_location): Initialize ring in
1553 related_breakpoint.
1554 (delete_breakpoint): Handle ring in related_breakpoint, use
1555 watchpoint_del_at_next_stop.
1556 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1557
1558 2011-03-28 Tom Tromey <tromey@redhat.com>
1559
1560 PR symtab/12441:
1561 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1562 with `language_minimal'.
1563
1564 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1565
1566 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1567 instead of checking for STT_ARM_TFUNC symbol type.
1568
1569 2011-03-25 Tom Tromey <tromey@redhat.com>
1570
1571 * linespec.c (symbol_found): Restore line-based result for
1572 non-LOC_LABEL symbols.
1573
1574 2011-03-25 Kai Tietz <ktietz@redhat.com>
1575
1576 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1577 instead of strcmp for comparison.
1578 (tui_source_is_displayed): Likewise.
1579 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1580
1581 2011-03-24 Mark Wielaard <mjw@redhat.com>
1582
1583 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1584 complaint.
1585 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1586 (find_partial_die_in_comp_unit): Likewise in comment.
1587 (read_attribute_value): Likewise.
1588 (lookup_die_type): Likewise.
1589 (dwarf_form_name): Likewise.
1590 (dump_die_shallow): Likewise.
1591 (follow_die_ref_or_sig): Likewise.
1592
1593 2011-03-24 Tom Tromey <tromey@redhat.com>
1594
1595 PR breakpoints/11816:
1596 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1597 (decode_compound): Update.
1598 (find_function_symbol): New function.
1599 (decode_dollar): Update.
1600 (decode_label): Add 'function_symbol' parameter. Handle
1601 function-relative labels.
1602 (decode_variable): Update.
1603 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1604 not its line. Set `special_display' and canonical name for
1605 labels.
1606
1607 2011-03-24 Tom Tromey <tromey@redhat.com>
1608
1609 * linespec.h (struct linespec_result) <special_display>: New
1610 field.
1611 * breakpoint.h (struct breakpoint) <display_canonical>: New
1612 field.
1613 * breakpoint.c (print_breakpoint_location): Respect
1614 display_canonical.
1615 (create_breakpoint_sal): Add 'display_canonical' parameter.
1616 (create_breakpoints_sal): Update.
1617 (create_breakpoint): Update.
1618
1619 2011-03-24 Tom Tromey <tromey@redhat.com>
1620
1621 * symtab.c (decode_line_spec): Update.
1622 * linespec.c (build_canonical_line_spec): Change type of
1623 'canonical'.
1624 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1625 (find_method, decode_all_digits, decode_dollar, decode_label)
1626 (symbol_found): Likewise.
1627 (init_linespec_result): New function.
1628 * breakpoint.c (struct captured_parse_breakpoint_args)
1629 <canonical_p>: New field, replaces addr_string_p.
1630 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1631 'addr_string'.
1632 (parse_breakpoint_sals): Likewise.
1633 (do_captured_parse_breakpoint): Update.
1634 (create_breakpoint): Use struct linespec_result.
1635 (until_break_command): Update.
1636 (breakpoint_re_set_one): Update.
1637 (decode_line_spec_1): Update.
1638 * linespec.h (struct linespec_result): New.
1639 (init_linespec_result): Declare.
1640
1641 2011-03-23 Pedro Alves <pedro@codesourcery.com>
1642
1643 * regcache.c (regcache_raw_read): If the target didn't supply a
1644 given raw register, mark it as unavailable.
1645
1646 2011-03-23 Kai Tietz <ktietz@redhat.com>
1647
1648 * breakpoint.c (clear_command): Use filename_cmp
1649 instead of strcmp for comparison.
1650 * buildsym.c (watch_main_source_file_lossage): Likewise.
1651 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1652 checking just for slash.
1653 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1654 strrchr and filename_cmp instead of strcmp for filenames.
1655 (add_old_header_file): Use filename_cmp
1656 instead of strcmp for comparison.
1657 * exec.c (exec_set_section_address): Likewise.
1658 * macrotab.c (macro_lookup_inclusion): Likewise.
1659 (macro_lookup_inclusion): Likewise.
1660 * elfread.c (_initialize_elfread): Likewise.
1661 (elfstab_offset_sections): Likewise.
1662 (elfstab_offset_sections): Use lbasename instead of
1663 strrchr.
1664 * mdebugread.c (parse_partial_symbols): Likewise.
1665 (arse_partial_symbols): Use filename_(n)cmp instead of
1666 str(n)cmp for comparison.
1667 * minsyms.c (lookup_minimal_symbol): Likewise.
1668 * psymtab.c (read_psymtabs_with_filename): Likewise.
1669 * solib.c (solib_read_symbols): Likewise.
1670 (reload_shared_libraries_1): Likewise.
1671 * symmisc.c (maintenance_print_symbols): Likewise.
1672 * symfile.c (separate_debug_file_exists): Likewise.
1673 (reread_symbols): Likewise.
1674 (find_separate_debug_file_by_debuglink): Likewise.
1675 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1676 * source.c (add_path): Likewise.
1677 * symtab.c (filename_seen): Likewise.
1678 (file_matches): Likewise.
1679 (print_symbol_info): Likewise.
1680 (maybe_add_partial_symtab_filename): Likewise.
1681 (make_source_files_completion_list): Likewise.
1682 * xml-syscall.c (init_sysinfo): Likewise.
1683 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1684 IS_DIR_SEPARATOR for checking for trailing path separator.
1685
1686 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1687
1688 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1689 label abort_expression.
1690 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1691 DWARF_VALUE_OPTIMIZED_OUT.
1692
1693 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1694
1695 Code cleanup.
1696 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1697 to linkage_name. Invert its value. Update the function comment.
1698 (c_type_print_varspec_suffix): Invert it at the caller.
1699 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1700
1701 2011-03-22 Pedro Alves <pedro@codesourcery.com>
1702
1703 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1704 errors when reading the `stop_pc'.
1705 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1706 get_frame_pc.
1707
1708 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1709
1710 * NEWS: Document gdb.Write stream keyword.
1711
1712 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1713
1714 Revert:
1715 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1716 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1717 (dwarf2_add_field): Fix new_field->accessibility for
1718 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1719
1720 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1721
1722 PR python/12183
1723
1724 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1725 other error classes. Do not print stack trace.
1726
1727 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1728
1729 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1730 (dwarf2_add_field): Fix new_field->accessibility for
1731 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1732
1733 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1734
1735 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1736 encountering a load via a non-SP register.
1737
1738 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1739
1740 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1741 field in returned unwinder.
1742
1743 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1744
1745 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1746
1747 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1748
1749 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1750 of xmalloc.
1751
1752 2012-03-18 Pedro Alves <pedro@codesourcery.com>
1753
1754 * frame.c (frame_unwind_register): Throw an error if unwinding the
1755 register failed.
1756 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1757 an unwind stop reason.
1758 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1759 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1760 UNWIND_UNAVAILABLE>: New.
1761 * inline-frame.c (inline_frame_unwind): Install
1762 default_frame_unwind_stop_reason.
1763 * frame-unwind.c: Include "exceptions.h".
1764 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1765 (default_frame_unwind_stop_reason): New.
1766 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1767 (default_frame_unwind_stop_reason): Declare.
1768 (struct frame_unwind) <stop_reason>: New function pointer.
1769
1770 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1771 * dwarf2-frame.c: Include exceptions.h.
1772 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1773 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1774 computing the CFA. If such an error was thrown, set
1775 unavailable_retaddr.
1776 (dwarf2_frame_unwind_stop_reason): New.
1777 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1778 unavailable.
1779 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1780 (dwarf2_signal_frame_unwind): Ditto.
1781
1782 * amd64-tdep.c: Include "exceptions.h".
1783 (struct amd64_frame_cache): New field "base_p".
1784 (amd64_init_frame_cache): Clear it.
1785 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1786 Avoid reading registers with functions that throw if the register
1787 is not necessary to compute the frame base.
1788 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1789 swallowing NOT_AVAILABLE_ERROR.
1790 (amd64_frame_unwind_stop_reason): New.
1791 (amd64_frame_this_id): Don't build a frame id if the frame base
1792 was unavailable.
1793 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1794 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1795 base_p if the frame base was computable.
1796 (amd64_sigtramp_frame_unwind_stop_reason): New.
1797 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1798 frame base was unavailable.
1799 (amd64_sigtramp_frame_unwind): Install
1800 amd64_sigtramp_frame_unwind_stop_reason.
1801 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1802 base_p if the frame base was computable.
1803 (amd64_epilogue_frame_unwind_stop_reason): New.
1804 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1805 frame base was unavailable.
1806 (amd64_epilogue_frame_unwind): Install
1807 amd64_epilogue_frame_unwind_stop_reason.
1808 * i386-tdep.c: Include "exceptions.h".
1809 (struct i386_frame_cache): New field "base_p".
1810 (i386_init_frame_cache): Clear it.
1811 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1812 Avoid reading registers with functions that throw if the register
1813 is not necessary to compute the frame base.
1814 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1815 swallowing NOT_AVAILABLE_ERROR.
1816 (i386_frame_unwind_stop_reason): New.
1817 (i386_frame_this_id): Don't build a frame id if the frame base was
1818 unavailable.
1819 (i386_frame_prev_register): Handle unavailable SP.
1820 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1821 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1822 base_p if the frame base was computable.
1823 (i386_epilogue_frame_unwind_stop_reason): New.
1824 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1825 base was unavailable.
1826 (i386_epilogue_frame_unwind): Install
1827 i386_epilogue_frame_unwind_stop_reason.
1828 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1829 base_p if the frame base was computable.
1830 (i386_sigtramp_frame_unwind_stop_reason): New.
1831 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1832 base was unavailable.
1833 (i386_sigtramp_frame_unwind): Install
1834 i386_sigtramp_frame_unwind_stop_reason.
1835 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1836 type's size, not the register's.
1837 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1838
1839 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1840 default_frame_unwind_stop_reason.
1841 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1842 (alpha_heuristic_frame_unwind): Ditto.
1843 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1844 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1845 * avr-tdep.c (avr_frame_unwind): Ditto.
1846 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1847 Ditto.
1848 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1849 * frv-tdep.c (frv_frame_unwind): Ditto.
1850 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1851 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1852 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1853 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1854 (hppa_stub_frame_unwind): Ditto.
1855 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1856 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1857 (ia64_libunwind_frame_unwind)
1858 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1859 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1860 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1861 * m32c-tdep.c (m32c_unwind): Ditto.
1862 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1863 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1864 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1865 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1866 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1867 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1868 * mep-tdep.c (mep_frame_unwind): Ditto.
1869 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1870 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1871 (mips_stub_frame_unwind): Ditto.
1872 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1873 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1874 * mt-tdep.c (mt_frame_unwind): Ditto.
1875 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1876 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1877 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1878 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1879 (s390_sigtramp_frame_unwind): Ditto.
1880 * score-tdep.c (score_prologue_unwind): Ditto.
1881 * sh-tdep.c (sh_frame_unwind): Ditto.
1882 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1883 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1884 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1885 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1886 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1887 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1888 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1889 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1890 (sparc64obsd_trapframe_unwind): Ditto.
1891 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1892 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1893 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1894 * v850-tdep.c (v850_frame_unwind): Ditto.
1895 * vax-tdep.c (vax_frame_unwind): Ditto.
1896 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1897 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1898 * xtensa-tdep.c (xtensa_unwind): Ditto.
1899
1900 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1901
1902 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1903 there's always a frame. Use get_frame_pc_if_available instead of
1904 get_frame_pc, and if there's no PC available, don't look up a
1905 symtab.
1906
1907 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1908
1909 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1910 unavailable PC.
1911
1912 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1913
1914 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1915 gracefully.
1916
1917 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1918
1919 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1920 * frame.c (frame_unwind_caller_pc_if_available): New.
1921 * stack.c (frame_info): Handle unavailable PC.
1922
1923 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1924
1925 * frame.c (frame_unwind_pc): Rename to ...
1926 (frame_unwind_pc_if_available): ... this. New `pc' output
1927 parameter. Change return type to int. Gracefully handle
1928 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1929 happened, or 1 otherwise.
1930 (frame_unwind_pc): Reimplement on top of
1931 frame_unwind_pc_if_available.
1932 (get_frame_func): Rename to ...
1933 (get_frame_func_if_available): New `pc' output parameter. Change
1934 return type to int. Gracefully handle the PC not being available.
1935 (get_frame_func): Reimplement on top of
1936 get_frame_func_if_available.
1937 (select_frame): Handle the PC being unavailable.
1938 (get_prev_frame): Handle the PC being unavailable.
1939 (get_frame_pc_if_available): New.
1940 (get_frame_address_in_block_if_available): New.
1941 (find_frame_sal): Handle the frame PC not being available.
1942 * frame.h (get_frame_pc_if_available): Declare.
1943 (get_frame_address_in_block_if_available): Declare.
1944 (get_frame_func_if_available): Declare.
1945 * stack.c (print_frame_info): Handle the PC being unavailable.
1946 (find_frame_funname): Ditto.
1947 (print_frame): Handle the PC being unavailable.
1948 (get_frame_language): Ditto.
1949 * blockframe.c (get_frame_block): Ditto.
1950 * macroscope.c (default_macro_scope): Ditto.
1951 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1952
1953 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1954
1955 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1956 NOT_AVAILABLE_ERROR when evaluating the location expression.
1957
1958 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1959
1960 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1961 returning that the register piece is unavailable/optimized out.
1962 (write_pieced_value): Handle get_frame_register_bytes returning
1963 that the register piece is unavailable/optimized out when doing a
1964 read-modify write of a bitfield.
1965 * findvar.c (value_from_register): Handle get_frame_register_bytes
1966 returning that the register piece is unavailable/optimized out.
1967 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1968 and `unavailablep'. Throw error on bad debug info. Use
1969 frame_register instead of frame_register_read, to fill in the new
1970 arguments.
1971 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1972 and `unavailablep'.
1973 * valops.c: (value_assign): Adjust, and handle
1974 get_frame_register_bytes failing.
1975 * spu-tdep.c: Include exceptions.h.
1976 (spu_software_single_step): Adjust, and handle
1977 get_frame_register_bytes failing.
1978 (spu_get_longjmp_target): Ditto.
1979 * gdbarch.sh (register_to_value): Change to return int. New
1980 parameters `optimizedp' and `unavailablep'.
1981 * gdbarch.h, gdbarch.c: Regenerate.
1982 * i386-tdep.c (i386_register_to_value): Adjust to new
1983 gdbarch_register_to_value interface.
1984 * i387-tdep.c (i387_register_to_value): Ditto.
1985 * i387-tdep.h (i387_register_to_value): Ditto.
1986 * alpha-tdep.c (alpha_register_to_value): Ditto.
1987 * ia64-tdep.c (ia64_register_to_value): Ditto.
1988 * m68k-tdep.c (m68k_register_to_value): Ditto.
1989 * mips-tdep.c (mips_register_to_value): Ditto.
1990 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1991
1992 2011-03-18 Pedro Alves <pedro@codesourcery.com>
1993
1994 * findvar.c (value_of_register): Mark the value as unavailable, if
1995 the register is unavailable.
1996 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1997 (frame_register): New `unavailablep' parameter.
1998 (frame_register_read): Update comment.
1999 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2000 Set it if the register is unavailable. If the register is
2001 unavailable, clear the output buffer.
2002 (frame_register): New `unavailablep' parameter. Pass it down.
2003 (frame_unwind_register): Adjust.
2004 (put_frame_register): Adjust.
2005 (frame_register_read): Adjust. Also return false if the register
2006 is not available.
2007 (frame_register_unwind_location): Adjust.
2008 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2009 is unavailable, mark the value accordingly.
2010 * stack.c (frame_info): Handle unavailable registers.
2011
2012 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2013
2014 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2015 simplify, using regcache_cooked_read.
2016
2017 2011-03-18 Pedro Alves <pedro@codesourcery.com>
2018
2019 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2020 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2021 (regcache_raw_read_unsigned, regcache_raw_read_part)
2022 (regcache_cooked_read, regcache_cooked_read_signed)
2023 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2024 (regcache_cooked_read_ftype): Change return to enum
2025 register_status.
2026 * regcache.c: Include exceptions.h
2027 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2028 (do_cooked_read): Change return to enum register_status. Always
2029 forward to regcache_cooked_read.
2030 (regcache_raw_read): Change return to enum register_status. If
2031 the register is not REG_VALID, memset the buffer. Return the
2032 register's status.
2033 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2034 return the register's status.
2035 (regcache_raw_read_unsigned): Ditto.
2036 (regcache_cooked_read): Change return to enum register_status.
2037 Assert that with read-only regcaches, the register's status must
2038 be known. If the regcache is read-only, and the register is not
2039 REG_VALID, memset the buffer. Return the register's status.
2040 (regcache_cooked_read_signed): Change return to enum
2041 register_status. Handle non-REG_VALID registers and return the
2042 register's status.
2043 (regcache_cooked_read_unsigned): Change return to enum
2044 register_status. Handle non-REG_VALID registers and return the
2045 register's status.
2046 (regcache_xfer_part, regcache_raw_read_part)
2047 (regcache_cooked_read_part): Change return to enum
2048 register_status. Return the register's status.
2049 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2050 unavailable.
2051 (regcache_dump): Handle unavailable cooked registers.
2052 * frame.c (do_frame_register_read): Adjust interface to match
2053 regcache_cooked_read_ftype.
2054 * gdbarch.sh (pseudo_register_read): Change return to enum
2055 register_status.
2056 * gdbarch.h, gdbarch.c: Regenerate.
2057
2058 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2059 register_status.
2060 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2061 register_status. If reading a raw register indicates the raw
2062 register is not valid, return the raw register's status,
2063 otherwise, return REG_VALID.
2064 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2065 register_status. Handle non-REG_VALID raw registers and return
2066 the register's status.
2067 * arm-tdep.c (arm_neon_quad_read)
2068 (arm_pseudo_read): Change return to enum register_status. Handle
2069 non-REG_VALID raw registers and return the register's status.
2070 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2071 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2072 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2073 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2074 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2075 register_status.
2076 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2077 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2078 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2079 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2080 (m32c_pseudo_register_read): Change return to enum
2081 register_status. Adjust.
2082 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2083 enum register_status. Return the register's status.
2084 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2085 register_status. Return the register's status.
2086 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2087 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2088 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2089 * rs6000-tdep.c (move_ev_register_func): New typedef.
2090 (e500_move_ev_register): Use it. Change return to enum
2091 register_status. Return the register's status.
2092 (do_regcache_raw_read): New function.
2093 (do_regcache_raw_write): New function.
2094 (e500_pseudo_register_read): Change return to enum
2095 register_status. Return the register's status. Use
2096 do_regcache_raw_read.
2097 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2098 (dfp_pseudo_register_read): Change return to enum register_status.
2099 Return the register's status.
2100 (vsx_pseudo_register_read): Ditto.
2101 (efpr_pseudo_register_read): Ditto.
2102 (rs6000_pseudo_register_read): Ditto.
2103 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2104 register_status. Return the register's status.
2105 * sh64-tdep.c (pseudo_register_read_portions): New function.
2106 (sh64_pseudo_register_read): Change return to enum
2107 register_status. Use pseudo_register_read_portions. Return the
2108 register's status.
2109 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2110 register_status. Return the register's status.
2111 * sh-tdep.c (pseudo_register_read_portions): New function.
2112 (sh_pseudo_register_read): Change return to enum register_status.
2113 Use pseudo_register_read_portions. Return the register's status.
2114 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2115 enum register_status. Return the register's status.
2116 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2117 * spu-tdep.c (spu_pseudo_register_read_spu)
2118 (spu_pseudo_register_read): Ditto.
2119 * xtensa-tdep.c (xtensa_register_read_masked)
2120 (xtensa_pseudo_register_read): Ditto.
2121 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2122
2123 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2124
2125 * python/py-value.c (valpy_getitem): Fix formatting of error function
2126 call.
2127
2128 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2129
2130 ARI fixes: Add missing internationalization markups throughout
2131 C source files.
2132 * darwin-nat-info.c: Ditto.
2133 * record.c: Ditto.
2134 * remote.c: Ditto.
2135 * mi/mi-main.c: Ditto.
2136
2137 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2138
2139 ARI fixes: Add missing internationalization markups throughout
2140 yacc files.
2141 * c-exp.y: Ditto.
2142 * cp-name-parser.y: Ditto.
2143 * f-exp.y: Ditto.
2144 * m2-exp.y: Ditto.
2145 * objc-exp.y: Ditto.
2146 * p-exp.y: Ditto.
2147
2148 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2149
2150 ARI fixes: Messages should have no trailing new lines.
2151 * darwin-nat.c (mach_check_error): Remove trailing new line from
2152 warning function call message.
2153 * record.c (bfdcore_read): Idem for error call.
2154
2155 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2156
2157 * common/signals.c (target_signal_from_host): Add _ markup to error
2158 function call message.
2159 (target_signal_to_host): Add _ markup and remove trailing new line
2160 from warning call message.
2161 (target_signal_from_command): Add _ markup to error function call
2162 message.
2163
2164 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2165
2166 PR python/12149
2167
2168 * python/python.c (gdbpy_write): Accept a stream argument and
2169 operate to the appropriate stream.
2170 (gdbpy_flush): Likewise.
2171 (_initialize_python): Add stream constants.
2172 (finish_python_initialization): Add GdbOutputErrorFile class.
2173
2174 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2175
2176 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2177
2178 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2179
2180 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2181 to store_signed_integer. Add debug message when relocating CALL
2182 instructions. Fix formatting of debug message.
2183 * i386-tdep.c (i386_relocate_instruction): Ditto.
2184
2185 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2186
2187 * target.h (struct target_ops): Remove to_lookup_symbol field.
2188 (target_lookup_symbol): Delete macro.
2189 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2190 (update_current_target, setup_target_debug): Remove handling
2191 of to_lookup_symbol target_ops field.
2192 * ada-tasks.c (get_known_tasks_addr): Remove use of
2193 target_lookup_symbol.
2194 * coffread.c (coff_symtab_read): Likewise.
2195 * dbxread.c (read_dbx_symtab): Ditto.
2196
2197 2011-03-17 Joel Brobecker <brobecker@gnat.com>
2198
2199 PR gdb/12116:
2200 * configure.ac: Add getthrds declaration check.
2201 * configure, config.in: Regenerate.
2202 * aix-thread.c (getthrds): Declare only if not already declared
2203 in procinfo.h. More declaration out of get_signaled_thread to
2204 global scope.
2205
2206 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2207
2208 * python/py-symtab.c: Populate symtab_object_methods,
2209 sal_object_methods.
2210 (stpy_is_valid): New function.
2211 (salpy_is_valid): Ditto.
2212 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2213 (sympy_is_valid): New function.
2214 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2215 (objfpy_is_valid): New function.
2216 * python/py-inferior.c: Populate inferior_object_methods.
2217 (infpy_is_valid): New function.
2218 * python/py-infthread.c: Populate thread_object_methods.
2219 (thpy_is_valid): New function.
2220 * python/py-block.c: Declare block_object_methods. Populate. Declare
2221 block_iterator_object_methods. Populate.
2222 (blpy_is_valid): New function.
2223 (blpy_iter_is_valid): Ditto.
2224
2225 2011-03-16 Keith Seitz <keiths@redhat.com>
2226
2227 * linespec.c (find_methods): Canonicalize NAME before looking
2228 up the symbol.
2229 (name_end): New function.
2230 (keep_name_info): New function.
2231 (decode_line_1): Use keep_name_info.
2232 (decode_compound): Likewise.
2233 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2234 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2235
2236 PR c++/12273
2237 * linespec.c (locate_first_half): Keep overload information, too.
2238 (decode_compound): Use a string to represent break characters
2239 to escape the loop.
2240 If P points to a break character, do not increment it.
2241 For C++ and Java, keep overload information and relevant keywords.
2242 If we cannot find a symbol, search the minimal symbols.
2243
2244 PR c++/11734
2245 * linespec.c (decode_compound): Rename SAVED_ARG to
2246 THE_REAL_SAVED_ARG.
2247 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2248 single-quotes.
2249 Pass a valid block to lookup_symbol.
2250 (lookup_prefix_sym): Likewise.
2251 (find_method): Construct search name based on SYM_CLASS instead
2252 of SAVED_ARG.
2253 * psymtab.c (lookup_partial_symbol): Add language parameter.
2254 (lookup_symbol_aux_psymtabs): Likewise.
2255 Don't assume that the psymtab we found was the right one. Search
2256 for the desired symbol in the symtab to be certain.
2257 (psymtab_search_name): New function.
2258 (lookup_partial_symbol): Use psymtab_search_name.
2259 Add language parameter.
2260 (read_symtabs_for_function): Add language parameter and pass to
2261 lookup_partial_symbol.
2262 (find_symbol_file_from_partial): Likewise.
2263
2264 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2265
2266 PR gdb/12528
2267 * dwarf2read.c (noop_record_line): New function.
2268 (dwarf_decode_lines): Ignore line tables for GCd functions.
2269
2270 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2271
2272 Fix ARI warnings about new lines at the end of messages, which
2273 are unneeded as there is a new line added at the end of the message
2274 automatically.
2275 * darwin-nat.c (darwin_stop_inferior): Ditto.
2276 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2277 * dfp.c (decimal_to_number): Ditto.
2278 * exec.c (print_section_info): Ditto.
2279 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2280 * osdata.c (get_osdata): Ditto.
2281 * record.c (bfdcore_write): Ditto.
2282 * remote-mips.c (mips_readchar): Ditto.
2283 * remote.c (read_ptid): Ditto.
2284 * ser-mingw.c (ser_windows_raw): Ditto.
2285 * tracepoint.c (add_local_symbols): Ditto.
2286 * windows-nat.c (fake_create_process): Ditto.
2287
2288 2011-03-16 Tom Tromey <tromey@redhat.com>
2289
2290 * tracepoint.c (stop_tracing): Don't declare.
2291 * event-top.c (after_char_processing_hook): Add `(void)'.
2292
2293 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2294
2295 * NEWS: Add Parameter sub-classing description.
2296
2297 2011-03-16 Kai Tietz <ktietz@redhat.com>
2298
2299 * MAINTAINERS: Update my e-mail address.
2300
2301 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
2302
2303 * MAINTAINERS: Add myself for write after approval privileges.
2304
2305 2011-03-15 Michael Snyder <msnyder@vmware.com>
2306
2307 * frame.c (find_frame_sal): Assert sym is not null.
2308
2309 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2310
2311 * objc-lang.c (selectors_info): Check strchr for null result.
2312
2313 * stabsread.c (define_symbol): Guard against bad stabstring input.
2314
2315 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2316
2317 Remove trailing spaces and tabulations from pascal language
2318 support sources.
2319 p-exp.y: Ditto.
2320 p-lang.c: Ditto.
2321 p-lang.h: Ditto.
2322 p-valprint.c: Ditto.
2323
2324 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2325
2326 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2327 than LOW. Comment it.
2328 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2329 HIGHPC not strictly higher than LOWPC.
2330
2331 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2332
2333 Fix formatting of function declarations returning a pointer in
2334 previous commit.
2335 * varobj.c (varobj_add_child): Ditto.
2336 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2337 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2338
2339 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2340
2341 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2342 for the "generic" vector ABI used with GCC 4.3 and later.
2343 (ppc64_sysv_abi_return_value): Likewise.
2344
2345 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2346
2347 * infcall.c (call_function_by_hand): Function return value is
2348 always a non_lval, even when using struct_return.
2349
2350 2011-03-15 Pedro Alves <pedro@codesourcery.com>
2351
2352 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2353 (map_display_numbers): New.
2354 (do_delete_display): New.
2355 (undisplay_command): Use map_display_numbers.
2356 (do_enable_disable_display): New.
2357 (enable_disable_display_command): New function.
2358 (enable_display): Delete.
2359 (enable_display_command): New.
2360 (disable_display_command): Reimplement.
2361 (_initialize_printcmd): Adjust "enable display" command to use
2362 `enable_display_command' as callback.
2363
2364 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2365
2366 * NEWS: Add Python breakpoint 'stop' operation.
2367
2368 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2369
2370 * NEWS: Delete duplicate entry. Fix typo.
2371
2372 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2373
2374 Fix ARI warning about function names in first column.
2375 Put prototype declaration on same line as return type.
2376 * objc-exp.y: Ditto.
2377 * p-exp.y: Ditto.
2378 * python/py-stopevent.h: Ditto.
2379 For long function names, split parameters to
2380 allow function name on same line as return type.
2381 * solib-pa64.c: Ditto.
2382 * varobj.c: Ditto.
2383 * varobj.h: Ditto.
2384 For long function declaration, use single line.
2385 * hppa-tdep.h: Ditto.
2386 * inferior.h: Ditto.
2387
2388 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2389
2390 * python/python.h: Declare gdbpy_should_stop and
2391 gdbpy_breakpoint_has_py_cond.
2392 * python/python.c: Add python.h to includes. Remove python.h from
2393 HAVE_PYTHON definition
2394 (gdbpy_should_stop): New dummy function.
2395 (gdbpy_breakpoint_has_py_cond): New dummy function.
2396 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2397 sub-classing capabilities.
2398 (gdbpy_should_stop): New function.
2399 (gdbpy_breakpoint_has_py_cond): New function.
2400 (local_setattro): New function.
2401 * breakpoint.c (condition_command): Add check for Python 'stop'
2402 operation.
2403 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2404 operation function as part of stop/continue tests.
2405
2406 2011-03-14 Tom Tromey <tromey@redhat.com>
2407
2408 PR gdb/12576:
2409 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2410 (needs_frame_dwarf_call): Likewise.
2411
2412 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2413
2414 Fix ARI warning about functions without parameters that do not
2415 use (void).
2416 * breakpoint.c (all_tracepoints): Replace () by (void).
2417 * f-exp.y (match_string_literal): Ditto.
2418 (yylex): Ditto.
2419 * m2-exp.y (yylex): Ditto.
2420 * mep-tdep.c (current_me_module): Ditto.
2421 (current_options): Ditto.
2422 (current_cop_data_bus_width): Ditto.
2423 (current_cr_names): Ditto.
2424 (current_cr_is_float): Ditto.
2425 (current_ccr_names): Ditto.
2426 * objc-exp.y (yylex): Ditto.
2427 * p-exp.y (yylex): Ditto.
2428 * remote.c (send_interrupt_sequence): Ditto.
2429 * tracepoint.c (current_trace_status): Ditto.
2430 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2431 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2432
2433 2011-03-11 Michael Snyder <msnyder@vmware.com>
2434
2435 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2436 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2437 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2438 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2439 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2440
2441 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2442 (delete_async_event_handler): Ditto.
2443
2444 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2445
2446 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2447
2448 * top.c (set_verbose): Assert showcmd was found.
2449
2450 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2451
2452 * xtensa-tdep.c (warning_once): Correct style issues.
2453
2454 2011-03-11 Yao Qi <yao@codesourcery.com>
2455
2456 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2457
2458 2011-03-11 Andreas Schwab <schwab@redhat.com>
2459
2460 * common/aclocal.m4: Remove.
2461
2462 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2463
2464 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2465 (xtensa_write_register, xtensa_read_register): Likewise.
2466 (xtensa_hextochar): Removed.
2467 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2468
2469 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2470
2471 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2472 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2473 (xtensa_alloc_frame_cache): Add initialization for new fields.
2474 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2475 (warning_once): New function.
2476 (xtensa_insn_kind): New item c0opc_and.
2477 (call0_classify_opcode): Add the case for AND instruction.
2478 (call0_track_op): Change arguments. New local variable litbase.
2479 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2480 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2481 in the prologue.
2482 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2483 (call0_analyze_prologue): Update the comments. Change arguments.
2484 Add the variety of updates to handle extended prologues, which now can
2485 conduct dynamic stack adjustments.
2486 (call0_frame_cache): Likewise.
2487 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2488 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2489
2490 2011-03-10 Michael Snyder <msnyder@vmware.com>
2491
2492 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2493 (cmd_qtframe): Ditto.
2494 (cmd_qtbuffer): Ditto.
2495 (cmd_bigqtbuffer): Ditto.
2496
2497 2011-03-10 Tom Tromey <tromey@redhat.com>
2498
2499 * tracepoint.c (trace_actions_command): Update.
2500 * thread.c (thread_apply_command): Update.
2501 * reverse.c (delete_bookmark_command): Update.
2502 (bookmarks_info): Update.
2503 * printcmd.c (undisplay_command): Update.
2504 * memattr.c (mem_enable_command): Update.
2505 (mem_disable_command): Update.
2506 (mem_delete_command): Update.
2507 * inferior.c (detach_inferior_command): Update.
2508 (kill_inferior_command): Update.
2509 (remove_inferior_command): Update.
2510 * cli/cli-utils.h (struct get_number_or_range_state): New.
2511 (init_number_or_range): Declare.
2512 (get_number_or_range): Update.
2513 * cli/cli-utils.c (init_number_or_range): New function.
2514 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2515 static variables.
2516 (number_is_in_list): Update.
2517 * breakpoint.h (get_tracepoint_by_number): Update.
2518 * breakpoint.c (map_breakpoint_numbers): Update for change to
2519 get_number_or_range.
2520 (find_location_by_number): Use get_number, not
2521 get_number_or_range.
2522 (trace_pass_set_count): New function.
2523 (trace_pass_command): Update for change to get_number_or_range.
2524 Rework loop logic.
2525 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2526 'state' parameter.
2527
2528 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2529
2530 * python/py-param.c (add_setshow_generic): Add set/show callback
2531 parameters. Register Python object context.
2532 (get_show_value): New function.
2533 (get_set_value): New function.
2534 (call_doc_function): New function.
2535 (get_doc_string): Move behind get_show_value/get_set_value.
2536
2537 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
2538
2539 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2540
2541 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
2542
2543 * xtensa-tdep.c (xtensa_read_register): Add comment.
2544 (xtensa_write_register): Likewise.
2545 (xtensa_hextochar): Add comment and update to match coding conventions.
2546 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2547 (execute_l32e, execute_s32e, execute_code): Update comments.
2548 (xtensa_exception_handler_t): Update to match coding conventions.
2549 (xtensa_insn_kind): Likewise.
2550
2551 2011-03-09 Michael Snyder <msnyder@vmware.com>
2552
2553 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2554
2555 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2556
2557 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2558
2559 2011-03-09 Tom Tromey <tromey@redhat.com>
2560
2561 * thread.c (restore_selected_frame): Handle frame_level == -1.
2562 (make_cleanup_restore_current_thread): Use
2563 get_selected_frame_if_set.
2564 * frame.h (get_selected_frame_if_set): Declare.
2565 * frame.c (get_selected_frame_if_set): New function.
2566
2567 2011-03-09 Pedro Alves <pedro@codesourcery.com>
2568
2569 * cli/cli-cmds.c (shell_escape): Use lbasename.
2570 * coffread.c (coff_start_symtab): Constify parameter.
2571 (complete_symtab): Constify `name' parameter.
2572 (coff_symtab_read): Constify `filestring' local.
2573 (coff_getfilename): Constify return and `result' local.
2574 Use lbasename.
2575 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2576 * linux-fork.c (info_checkpoints_command): Use lbasename.
2577 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2578 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2579 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2580 * procfs.c (procfs_make_note_section): Use lbasename.
2581 * tui/tui-io.c (printable_part): Constity return and parameter.
2582 Use lbasename.
2583 (print_filename): Constify parameters, and local `s'.
2584 (tui_rl_display_match_list): Constify local `temp'.
2585
2586 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2587
2588 Revert:
2589 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2590 Fix DWARF-3+ DW_AT_accessibility default assumption.
2591 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2592 cu->header.version >= 3.
2593
2594 2011-03-09 Yao Qi <yao@codesourcery.com>
2595
2596 * common/Makefile.in: Remove.
2597 * common/configure: Remove.
2598 * common/configure.ac: Remove.
2599
2600 2011-03-09 Yao Qi <yao@codesourcery.com>
2601
2602 Revert:
2603 2011-02-11 Yao Qi <yao@codesourcery.com>
2604
2605 * common/Makefile.in: Add copyright header.
2606
2607 2011-02-11 Yao Qi <yao@codesourcery.com>
2608
2609 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2610 libcommon.a.
2611 * configure.ac: Add common to sub dir.
2612 * configure: Regenerate.
2613
2614 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2615
2616 * xtensa-tdep.c (call0_ret): New function.
2617 (xtensa_skip_prologue): Speed up analysis.
2618
2619 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2620
2621 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2622 while executing MI command -data-list-changed-registers.
2623
2624 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2625
2626 * xtensa-tdep.c (xtensa_read_register): New function.
2627 (xtensa_write_register): New function.
2628 (xtensa_find_register_by_name): New function.
2629 (xtensa_windowed_frame_cache): Update comments in type description.
2630 (xtensa_frame_cache): Likewise.
2631 (xtensa_window_interrupt_insn): New function.
2632 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2633 (xtensa_insn_kind): Add new instructions.
2634 (rwx_special_register): New function.
2635 (call0_classify_opcode): Add new instructions to the analysis.
2636 (a0_saved, a7_saved, a11_saved): New variables.
2637 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2638 (execute_l32e): New function.
2639 (execute_s32e): New function.
2640 (xtensa_exception_handler_t): New type.
2641 (execute_code): New function.
2642 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2643 analysis for Xtensa Window Exception handlers.
2644
2645 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2646
2647 * xtensa-tdep.c (TX_PS): New.
2648 (windowing_enabled): Update to count for Call0 ABI.
2649 (xtensa_hextochar): New.
2650 (xtensa_init_reggroups): Make algorithm generic.
2651 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2652
2653 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2654
2655 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2656
2657 2011-03-08 Michael Snyder <msnyder@vmware.com>
2658
2659 * i386-tdep.c (i386_follow_jump): Check return value of
2660 target_read_memory.
2661 (i386_analyze_struct_return): Ditto.
2662 (i386_skip_probe): Ditto.
2663 (i386_match_insn): Ditto.
2664 (i386_skip_noop): Ditto.
2665 (i386_analyze_frame_setup): Ditto.
2666 (i386_analyze_register_saves): Ditto.
2667 (i386_skip_prologue): Ditto.
2668 (i386_skip_main_prologue): Ditto.
2669
2670 * target.c (read_whatever_is_readable): Fix memory leak.
2671
2672 * i386-tdep.c (i386_process_record): Document fall through.
2673
2674 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2675
2676 Fix DWARF-3+ DW_AT_accessibility default assumption.
2677 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2678 cu->header.version >= 3.
2679
2680 2011-03-08 Pedro Alves <pedro@codesourcery.com>
2681
2682 * remote.c (remote_check_symbols): Skip if the target has no
2683 execution.
2684
2685 2011-03-08 Joel Brobecker <brobecker@adacore.com>
2686
2687 * target.c (read_whatever_is_readable): Reformat comment,
2688 with a minor typo fix. Minor reformatting of the code.
2689
2690 2011-03-08 Yao Qi <yao@codesourcery.com>
2691
2692 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2693 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2694 Use cached result instead of calling displaced_in_arm_mode again.
2695 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2696 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2697 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2698 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2699 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2700 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2701 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2702 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2703 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2704 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2705 (arm_catch_kernel_helper_return): Likewise.
2706 * gdb/arm-tdep.h : Update function declarations.
2707
2708 2011-03-07 Michael Snyder <msnyder@vmware.com>
2709
2710 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2711
2712 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2713
2714 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2715
2716 * elfread.c (elf_symtab_read): Stop memory leak.
2717
2718 * main.c (captured_main): Fix memory leak.
2719
2720 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2721
2722 * ada-lang.c (compare_names): Call is_name_suffix with string1
2723 instead of string2.
2724
2725 2011-03-07 Tom Tromey <tromey@redhat.com>
2726
2727 * xcoffread.c (xcoff_sym_fns): Update.
2728 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2729 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2730 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2731 (symbol_file_add_with_addrs_or_offsets): Likewise.
2732 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2733 * somread.c (som_sym_fns): Update.
2734 * psymtab.h (require_partial_symbols): Declare.
2735 * psymtab.c (require_partial_symbols): New function.
2736 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2737 (ALL_OBJFILE_PSYMTABS): Undef.
2738 (ALL_PSYMTABS): Move from psympriv.h.
2739 (lookup_partial_symtab, find_pc_sect_psymtab)
2740 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2741 (find_last_source_symtab_from_partial)
2742 (forget_cached_source_info_partial)
2743 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2744 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2745 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2746 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2747 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2748 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2749 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2750 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2751 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2752 psymtabs.
2753 * mipsread.c (ecoff_sym_fns): Update.
2754 * machoread.c (macho_sym_fns): Update.
2755 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2756 (read_psyms): New function.
2757 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2758 (elf_sym_fns_lazy_psyms): New global.
2759 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2760 dwarf2_build_psymtabs.
2761 * dbxread.c (aout_sym_fns): Update.
2762 * coffread.c (coff_sym_fns): Update.
2763
2764 2011-03-07 Tom Tromey <tromey@redhat.com>
2765
2766 * infrun.c (print_exited_reason): Include inferior id and pid in
2767 message.
2768
2769 2011-03-07 Tom Tromey <tromey@redhat.com>
2770
2771 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2772 parameter.
2773 (target_has_execution_1): Update.
2774 (target_has_execution_current): Declare.
2775 (target_has_execution): Call target_has_execution_current.
2776 (default_child_has_execution): Update.
2777 * target.c (default_child_has_execution): Add 'the_ptid'
2778 parameter.
2779 (target_has_execution_1): Likewise.
2780 (target_has_execution_current): New function.
2781 (add_target): Update.
2782 (init_dummy_target): Update.
2783 * remote-m32r-sdi.c (m32r_has_execution): New function.
2784 (init_m32r_ops): Use it.
2785 * record.c (record_core_has_execution): Now static. Add
2786 'the_ptid' parameter.
2787 * inferior.c (have_live_inferiors): Don't save current thread.
2788 Use target_has_execution_1.
2789
2790 2011-03-07 Yao Qi <yao@codesourcery.com>
2791
2792 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2793
2794 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2795
2796 * elfread.c (elf_symtab_read): Minor reformatting.
2797
2798 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2799
2800 * objc-lang.c (selectors_info): Minor reformatting.
2801
2802 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2803
2804 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2805
2806 2011-03-07 Joel Brobecker <brobecker@adacore.com>
2807 Michael Snyder <msnyder@vmware.com>
2808
2809 * ada-valprint.c (ada_val_print_array): Move the declaration of
2810 "byte_order" and "elttype" inside the block where these variables
2811 are actually used. Remove some special handling for the case
2812 where "elttype" and "eltlen" are null. Replace by a comment
2813 and a couple of assertion checks.
2814
2815 2011-03-05 Michael Snyder <msnyder@vmware.com>
2816
2817 * source.c (add_path): Replace semicolon at end of block.
2818 * dwarf2expr.c (execute_stack_op): Ditto.
2819
2820 2011-03-05 Mike Frysinger <vapier@gentoo.org>
2821
2822 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2823 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2824 (bfin-*-*): Likewise.
2825
2826 2011-03-05 Michael Snyder <msnyder@vmware.com>
2827
2828 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2829 * mdebugread.c (parse_symbol): Ditto.
2830 * parse.c (parse_exp_in_context): Ditto.
2831 * source.c (add_path): Ditto.
2832 * utils.c (gnu_debuglink_crc32): Ditto.
2833 * varobj.c (variable_language): Ditto.
2834
2835 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2836
2837 2011-03-04 Michael Snyder <msnyder@vmware.com>
2838
2839 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2840
2841 * symfile.c (simple_overlay_update): Check for null return value
2842 from lookup_minimal_symbol.
2843
2844 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2845
2846 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2847
2848 * eval.c (parse_and_eval_address_1): Remove function.
2849 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2850 instead of parse_and_eval_address_1.
2851 * value.h (parse_and_eval_address_1): Remove prototype.
2852
2853 2011-03-04 Michael Snyder <msnyder@vmware.com>
2854
2855 * remote.c (putpkt_binary): Document that case stmt falls through.
2856
2857 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2858
2859 * breakpointc (print_it_typical): Move NULL check from here...
2860 (print_bp_stop_message): ... to here.
2861
2862 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2863
2864 * breakpoint.c (enable_command): Use break instead of continue,
2865 and fill in a missing break.
2866 (disable_command): Ditto.
2867
2868 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2869
2870 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2871 (terminal_save_ours): Remove misleading comment.
2872 (inflow_inferior_data_cleanup): Free ttystate.
2873 (inflow_inferior_exit): Likewise.
2874 (copy_terminal_info): Copy ttystate.
2875
2876 * serial.c (serial_copy_tty_state): New function.
2877 * serial.h (serial_copy_tty_state): Add prototype.
2878 (struct serial_ops): Add copy_tty_state callback.
2879 * ser-base.c (ser_base_copy_tty_state): New function.
2880 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2881 * ser-go32.c (dos_copy_tty_state): New function.
2882 (dos_ops): Install copy_tty_state callback.
2883 * ser-mingw.c (_initialize_ser_windows): Likewise.
2884 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2885 * ser-unix.c (hardwire_copy_tty_state): New function.
2886 (_initialize_ser_hardwire): Install it.
2887
2888 2011-03-04 Michael Snyder <msnyder@vmware.com>
2889
2890 * breakpoint.c (create_breakpoint): Add missing break statement.
2891
2892 Reverting this patch:
2893 * infcall.c (call_function_by_hand): Add break statements for lint.
2894
2895 Reverting this patch:
2896 * cli/cli-script.c (script_from_file): Add break for lint.
2897
2898 2011-03-04 Michael Snyder <msnyder@vmware.com>
2899
2900 * solib.c (reload_shared_libraries_1): Close memory leak.
2901
2902 2011-03-03 Tom Tromey <tromey@redhat.com>
2903
2904 PR gdb/12538:
2905 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2906 DW_STRING is NULL.
2907
2908 2011-03-03 Michael Snyder <msnyder@vmware.com>
2909
2910 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2911 fields of struct 'st' to zero.
2912
2913 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2914 sal.pspace before calling set_current_source_symtab_and_line.
2915
2916 2011-03-03 Yao Qi <yao@codesourcery.com>
2917
2918 * Makefile.in (configure-common): Remove. Let Makefile
2919 in dir common to rebuild itself.
2920 (common/Makefile): Likewise.
2921
2922 2011-03-03 Joel Brobecker <brobecker@adacore.com>
2923
2924 * utils.c (parse_escape): Add i18n markup in error message.
2925
2926 2011-03-03 Yao Qi <yao@codesourcery.com>
2927
2928 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2929 ARM_PC_REGNUM.
2930 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2931 (displaced_write_reg, displaced_read_reg): Likewise.
2932 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2933 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2934 (cleanup_branch): Replace magic number 14 and 15 with
2935 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2936
2937 2011-03-02 Michael Snyder <msnyder@vmware.com>
2938
2939 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2940
2941 * cli/cli-script.c (script_from_file): Add break for lint.
2942
2943 * mdebugread.c (parse_partial_symbols): Fix indent.
2944
2945 * target-descriptions.c (tdesc_gdb_type): No need to call
2946 xstrdup, callee saves a copy.
2947
2948 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2949
2950 * infcall.c (call_function_by_hand): Add break statements for lint.
2951
2952 * utils.c (parse_escape): Escape the escape char.
2953
2954 * python/py-inferior.c (build_inferior_list): Error out if
2955 PyList_Append fails.
2956 (gdbpy_inferiors): Error out if build_inferior_list fails.
2957
2958 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2959 a function call.
2960
2961 * record.c (record_restore): Move printf to before error return.
2962
2963 2011-03-02 Yao Qi <yao@codesourcery.com>
2964
2965 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2966 is_thumb and insn_size.
2967 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2968 on both ARM and Thumb mode.
2969 (arm_process_displaced_insn): Set is_thumb and insn_size.
2970 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2971 (arm_displaced_step_fixup): Likewise.
2972
2973 2011-03-01 Michael Snyder <msnyder@vmware.com>
2974
2975 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2976
2977 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2978
2979 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2980
2981 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2982
2983 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2984 with xmalloc.
2985
2986 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2987 which shadows function parameter.
2988
2989 * tracepoint.c (create_tsv_from_upload): Superfluous call
2990 to xstrdup. Callee already calls xstrdup.
2991
2992 * linespec.c (decode_line_1): Remove unnecessary null check.
2993
2994 * tracepoint.c (scope_info): Fix mem leak, remove underused
2995 variable.
2996
2997 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2998 superfluous null check.
2999
3000 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3001 (value_of_builtin_frame_fp_reg): Ditto.
3002
3003 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3004
3005 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3006 be null.
3007
3008 * linespec.c (decode_line_1): Check for null before dereference.
3009
3010 * reverse.c (record_restore): Move null-check to before pointer
3011 dereference.
3012
3013 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3014
3015 * objc-lang.c (selectors_info): Add explanitory comment.
3016 (classes_info): Ditto.
3017
3018 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3019
3020 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3021 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3022 versions of the trampoline. Handle Thumb vs. ARM addresses.
3023 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3024 (arm_linux_init_abi): Install it.
3025 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3026 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3027
3028 2011-02-28 Michael Snyder <msnyder@vmware.com>
3029
3030 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3031 a little bigger, to avoid possibility of an overflow.
3032
3033 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3034 buffers a little bigger, to avoid possibility of an overflow.
3035
3036 * coffread.c (coff_getfilename): Add check to avoid overflow.
3037
3038 * objc-lang.c (selectors_info): Add a small safety margin to
3039 avoid overflow.
3040 (classes_info): Error out on too long REGEXP.
3041
3042 * infrun.c (handle_inferior_event): Remove unused function call.
3043
3044 * fork-child.c (fork_inferior): Remove ifdef'd code and
3045 unused variable.
3046
3047 * linux-thread-db.c (attach_thread): Discard unused value.
3048
3049 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3050
3051 * remote.c (remote_get_noisy_reply): Discard unused value.
3052 (remote_vcont_resume): Ditto.
3053 (remote_stop_ns): Ditto.
3054
3055 * linespec.c (decode_objc): Delete unused variable.
3056
3057 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3058
3059 * dwarf2read.c (add_partial_symbol): Discard unused values.
3060 (read_base_type): Delete unused variable.
3061
3062 * dbxread.c (read_dbx_symtab): Discard unused value.
3063
3064 * eval.c (evaluate_subexp_standard): Delete unused variable,
3065 and discard unused values.
3066
3067 * infcmd.c (_initialize_infcmd): Discard unused values.
3068
3069 * stabsread.c (rs6000_builtin_type): Missing break statement.
3070
3071 * dbxread.c (process_one_symbol): Discard unused value.
3072
3073 * coffread.c (coff_end_symtab): Delete unused variable.
3074
3075 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3076 (dwarf2_add_typedef): Delete unused variable.
3077 (read_namespace): Ditto.
3078 (dwarf_decode_macros): Ditto.
3079
3080 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3081
3082 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3083
3084 * p-valprint.c (pascal_val_print): Discard unused value.
3085
3086 * utils.c (nquery): Call va_end before return;
3087 (yquery): Ditto.
3088 (query): Ditto.
3089
3090 * proc-service.c (ps_plog): Call va_end before return.
3091
3092 2011-02-28 Tom Tromey <tromey@redhat.com>
3093
3094 * python/python.c (gdbpy_value_cst): New global.
3095 (_initialize_python): Initialize it.
3096 * python/python-internal.h (gdbpy_value_cst): Declare.
3097 * python/py-value.c (convert_value_from_python): Use
3098 gdbpy_value_cst.
3099
3100 2011-02-28 Michael Snyder <msnyder@vmware.com>
3101
3102 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3103
3104 * breakpoint.c (catch_syscall_completer): Free malloced list.
3105
3106 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3107
3108 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3109 (lval_func_check_synthetic_pointer): Ditto.
3110 (lval_func_free_closure): Fix use-after-free.
3111
3112 2011-02-28 Tom Tromey <tromey@redhat.com>
3113
3114 * psymtab.c (expand_partial_symbol_tables): Use
3115 ALL_OBJFILE_PSYMTABS.
3116
3117 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3118
3119 * objc-lang.c (selectors_info): Error on too long REGEXP.
3120
3121 2011-02-28 Michael Snyder <msnyder@vmware.com>
3122
3123 * python/py-param.c (set_parameter_value): Add missing
3124 break statement.
3125
3126 * linux-record.c (record_linux_system_call): Add missing
3127 break statement.
3128
3129 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3130
3131 * breakpoint.c (print_one_breakpoint_location): Remove unused
3132 argument PRINT_ADDRESS_BITS. Update callers.
3133 (print_one_breakpoint): Likewise.
3134
3135 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3136
3137 * breakpoint.c (wrap_indent_at_field): New function.
3138 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3139 Allocate ui_stream locally instead of using STB argument.
3140 (print_one_breakpoint_location): Update call.
3141 * ui-out.c (ui_out_query_field): New function.
3142 * ui-out.h (ui_out_query_field): Add prototype.
3143
3144 2011-02-28 Joel Brobecker <brobecker@adacore.com>
3145
3146 From Michael Snyder <msnyder@vmware.com>
3147 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3148
3149 2011-02-27 Michael Snyder <msnyder@vmware.com>
3150
3151 * objc-lang.c (selectors_info): Prevent string overrun.
3152
3153 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3154 error in strncpy.
3155
3156 * symtab.c (rbreak_command): Move variable 'file_name' to
3157 outer scope.
3158
3159 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3160 param with a local variable of the same name.
3161
3162 2011-02-27 Michael Snyder <msnyder@vmware.com>
3163
3164 * value.c (value_from_history_ref): New function.
3165 * value.h (value_from_history_ref): Export.
3166 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3167 to parse value history references.
3168 * cli/cli-utils.h (get_number_trailer): Update comment.
3169
3170 2011-02-27 Michael Snyder <msnyder@vmware.com>
3171
3172 * inferior.c (detach_inferior_command): Use get_number_or_range.
3173 (kill_inferior_command): Ditto.
3174 (remove_inferior_command): Ditto.
3175 (initialize_inferiors): Make command names plural.
3176 Update help strings.
3177
3178 2011-02-27 Michael Snyder <msnyder@vmware.com>
3179
3180 * darwin-nat-info.c: Fix comment typo.
3181 * dwarf2expr.h: Ditto.
3182 * fbsd-nat.c: Ditto.
3183 * fbsd-nat.h: Ditto.
3184 * frame-unwind.h: Ditto.
3185 * frame.h: Ditto.
3186 * hppa-hpux-tdep.c: Ditto.
3187 * i386-linux-nat.c: Ditto.
3188 * linux-nat.c: Ditto.
3189 * nbsd-nat.c: Ditto.
3190 * nbsd-nat.h: Ditto.
3191 * ppc-linux-tdep.c: Ditto.
3192 * serial.c: Ditto.
3193 * ui-file.h: Ditto.
3194 * tui/tui-winsource.c: Ditto.
3195
3196 2011-02-26 Michael Snyder <msnyder@vmware.com>
3197
3198 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3199
3200 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3201
3202 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3203 with a local variable of the same name.
3204
3205 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3206 param with a local variable of the same name.
3207 (i387_supply_xsave): Ditto.
3208
3209 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3210 that it does not shadow a function parameter.
3211
3212 * i386-nat.c (i386_length_and_rw_bits): Document that case
3213 statement is meant to fall through.
3214
3215 * expprint.c (dump_subexp_body_standard): Document that case
3216 statement is meant to fall through.
3217
3218 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3219 dead if statement. Condition can't be false.
3220
3221 2011-02-25 Michael Snyder <msnyder@vmware.com>
3222
3223 * arm-tdep.c: Fix typos in comments.
3224 * bsd-uthread.c: Ditto.
3225 * completer.c: Ditto.
3226 * corelow.c: Ditto.
3227 * cp-namespace.c: Ditto.
3228 * cp-support.c: Ditto.
3229 * cris-tdep.c: Ditto.
3230 * dbxread.c: Ditto.
3231 * dwarf2read.c: Ditto.
3232 * frame.h: Ditto.
3233 * gdbtypes.h: Ditto.
3234 * inferior.h: Ditto.
3235 * mdebugread.c: Ditto.
3236 * mips-tdep.c: Ditto.
3237 * ppc-linux-nat.c: Ditto.
3238 * ppc-linux-tdep.c: Ditto.
3239 * printcmd.c: Ditto.
3240 * sol-thread.c: Ditto.
3241 * solib-frv.c: Ditto.
3242 * solist.h: Ditto.
3243 * sparc64-tdep.c: Ditto.
3244 * spu-tdep.c: Ditto.
3245 * stabsread.c: Ditto.
3246 * symfile.c: Ditto.
3247 * valops.c: Ditto.
3248 * varobj.c: Ditto.
3249 * vax-nat.c: Ditto.
3250 * python/py-block.c: Ditto.
3251 * python/py-symbol.c: Ditto.
3252 * python/py-symtab.c: Ditto.
3253 * python/py-value.c: Ditto.
3254 * tui/tui-win.c: Ditto.
3255
3256 2011-02-25 Michael Snyder <msnyder@vmware.com>
3257
3258 * inferior.c (print_inferior): Accept a string instead of an int
3259 for requested_inferiors, and use get_number_or_range to parse it.
3260 (info_inferiors_command): Pass args string to print_inferior.
3261 (initialize_inferiors): Change help string for info inferiors.
3262 * inferior.h (print_inferior): Export prototype change.
3263
3264 2011-02-25 Tom Tromey <tromey@redhat.com>
3265
3266 * common/ax.def (invalid2): Set to 0x31.
3267
3268 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3269
3270 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3271 L and plongest.
3272 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3273 use L and plongest.
3274 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3275
3276 2011-02-24 Michael Snyder <msnyder@vmware.com>
3277
3278 * Makefile.in (clean): Make clean should remove generated files
3279 observer.h and observer.inc.
3280
3281 2011-02-24 Joel Brobecker <brobecker@adacore.com>
3282
3283 Revert the following patch (not approved yet):
3284 2011-02-21 Hui Zhu <teawater@gmail.com>
3285 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3286 * ax-gdb.c (gen_printf_expr_callback): New function.
3287 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3288 * ax-general.c (ax_memcpy): New function.
3289 (ax_print): Handle "printf".
3290 (ax_reqs): Ditto.
3291 * ax.h (ax_memcpy): Forward declare.
3292 * common/ax.def (invalid2): Removed.
3293 (printf): New entry.
3294 * printcmd.c (printcmd.h): New include.
3295 (string_printf): New function.
3296 (ui_printf): Removed.
3297 (printf_command): Remove static. Call string_printf.
3298 (eval_command): Call string_printf.
3299 * printcmd.h: New file.
3300 * tracepoint.c (validate_actionline,
3301 encode_actions_1): handle printf_command.
3302
3303 2011-02-23 Tom Tromey <tromey@redhat.com>
3304
3305 * ax-general.c (ax_pick): Add missing newline.
3306
3307 2011-02-23 Michael Snyder <msnyder@vmware.com>
3308
3309 * breakpoint.c (breakpoint_1): Change first argument from an int
3310 to a char pointer, so that the function now accepts a list of
3311 breakpoints rather than just one. Use new function
3312 'number_is_in_list' to implement.
3313 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3314 (watchpoints_info): Ditto.
3315 (tracepoints_info): Ditto.
3316 (maintenance_info_breakpoints): Ditto.
3317 (_initialize_breakpoint): Update help strings to reflect the fact
3318 that these functions can now take more than one argument.
3319 * cli/cli-utils.c (number_is_in_list): New function.
3320 * cli/cli-utils.h (number_is_in_list): Export.
3321
3322 2011-02-23 Michael Snyder <msnyder@vmware.com>
3323
3324 * memattr.c (mem_enable_command): Use get_number_or_range.
3325 (mem_disable_command): Ditto.
3326 (mem_delete_command): Ditto.
3327 (_initialize_mem): Tweak usage message to reflect multiple
3328 arguments.
3329
3330 2011-02-22 Doug Evans <dje@google.com>
3331
3332 Add gdb.lookup_global_symbol python function.
3333 * NEWS: Add entry.
3334 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3335 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3336 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3337
3338 2011-02-22 Tom Tromey <tromey@redhat.com>
3339
3340 * language.c (language_class_name_from_physname): Rename
3341 'curr_language' argument to 'lang'; use in body.
3342
3343 2011-02-22 Michael Snyder <msnyder@vmware.com>
3344
3345 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3346
3347 2011-02-22 Pedro Alves <pedro@codesourcery.com>
3348
3349 * frame-unwind.h: Fix comment to mention the this frame, not the
3350 next.
3351
3352 2011-02-22 Tom Tromey <tromey@redhat.com>
3353
3354 * symfile.c (auto_solib_limit): Remove.
3355 * symfile.h (auto_solib_limit): Remove.
3356
3357 2011-02-22 Joel Brobecker <brobecker@adacore.com>
3358
3359 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3360
3361 2011-02-21 Michael Snyder <msnyder@vmware.com>
3362
3363 * gdbthread.h (print_thread_info): Change prototype.
3364 * thread.c (print_thread_info): Accept char* instead of int for
3365 requested_threads argument. Use new function number_is_in_list
3366 to determine which threads to list.
3367 (info_threads_command): Pass char* to print_thread_info.
3368 * cli/cli-utils.c (number_is_in_list): New function.
3369 * cli/cli-utils.h (number_is_in_list): Export.
3370 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3371 print_thread_info.
3372 (print_one_inferior): Ditto.
3373 (mi_cmd_list_thread_groups): Ditto.
3374
3375 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3376
3377 * common/Makefile.in (CFLAGS): New.
3378 (COMPILE): Add $(CFLAGS).
3379
3380 2011-02-21 Tom Tromey <tromey@redhat.com>
3381
3382 * breakpoint.c (catch_syscall_command_1): Fix typo.
3383
3384 2011-02-21 Tom Tromey <tromey@redhat.com>
3385
3386 * reverse.c: Include cli-utils.h.
3387 * printcmd.c: Include cli-utils.h.
3388 (string_printf): Use skip_spaces.
3389 * cli/cli-utils.h: New file.
3390 * cli/cli-utils.c: New file.
3391 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3392 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3393 * breakpoint.h (get_number, get_number_or_range): Move to
3394 cli-utils.h.
3395 * breakpoint.c: Include cli-utils.h.
3396 (get_number_trailer, get_number, get_number_or_range)
3397 (ep_skip_leading_whitespace): Move to cli-utils.c.
3398 (create_breakpoint_sal, find_condition_and_thread)
3399 (decode_static_tracepoint_spec, watch_command_1)
3400 (watch_maybe_just_location, ep_parse_optional_if_clause)
3401 (catch_fork_command_1, catch_exec_command_1)
3402 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3403 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3404 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3405 (HFILES_NO_SRCDIR): Add cli-utils.h.
3406 (cli-utils.o): New target.
3407
3408 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3409
3410 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3411 before calling discard_all_inferiors.
3412
3413 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3414
3415 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3416 (struct builtin_opencl_type): Remove.
3417 (builtin_opencl_type): Change return type to "struct type **".
3418 (lookup_opencl_vector_type): Update caller.
3419 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3420 (build_opencl_types): Install plain array of "struct type *"
3421 instead of "struct builtin_opencl_type".
3422
3423 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3424 Ulrich Weigand <uweigand@de.ibm.com>
3425
3426 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3427 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3428 (struct arm_linux_hwbp_cap): New type.
3429 (arm_linux_get_hwbp_cap): New function.
3430 (arm_linux_get_hw_breakpoint_count): Likewise.
3431 (arm_linux_get_hw_watchpoint_count): Likewise.
3432 (arm_linux_can_use_hw_breakpoint): Likewise.
3433 (arm_hwbp_type): New type.
3434 (arm_hwbp_control_t): Likewise.
3435 (struct arm_linux_hw_breakpoint): Likewise.
3436 (struct arm_linux_thread_points): Likewise.
3437 (arm_threads): New global variable.
3438 (arm_linux_find_breakpoints_by_tid): New function.
3439 (arm_hwbp_control_initialize): Likewise.
3440 (arm_hwbp_control_is_enabled): Likewise.
3441 (arm_hwbp_control_disable): Likewise.
3442 (arm_linux_hw_breakpoint_initialize): Likewise.
3443 (arm_linux_get_hwbp_type): Likewise.
3444 (arm_linux_hw_watchpoint_initialize): Likewise.
3445 (arm_linux_hw_breakpoint_equal): Likewise.
3446 (arm_linux_insert_hw_breakpoint1): Likewise.
3447 (arm_linux_remove_hw_breakpoint1): Likewise.
3448 (arm_linux_insert_hw_breakpoint): Likewise.
3449 (arm_linux_remove_hw_breakpoint): Likewise.
3450 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3451 (arm_linux_insert_watchpoint): Likewise.
3452 (arm_linux_remove_watchpoint): Likewise.
3453 (arm_linux_stopped_data_address): Likewise.
3454 (arm_linux_stopped_by_watchpoint): Likewise.
3455 (arm_linux_watchpoint_addr_within_range): Likewise.
3456 (arm_linux_new_thread): Likewise.
3457 (arm_linux_thread_exit): Likewise.
3458 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3459 related target callbacks. Register arm_linux_new_thread and
3460 arm_linux_thread_exit.
3461 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3462 * arm-tdep.c (arm_pc_is_thumb): Make global.
3463 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3464
3465 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3466
3467 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3468 per-frame locations while within a function epilogue.
3469
3470 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3471
3472 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3473 to GNU coding standards.
3474
3475 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3476
3477 Allow use of mingw native on Windows 95 OS.
3478 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3479 (ser_windows_close): Only call CancelIo if function exists.
3480 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3481 to check for existence of CancelIo function in kernel32 DLL.
3482
3483 2011-02-21 Hui Zhu <teawater@gmail.com>
3484
3485 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3486 * ax-gdb.c (gen_printf_expr_callback): New function.
3487 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3488 * ax-general.c (ax_memcpy): New function.
3489 (ax_print): Handle "printf".
3490 (ax_reqs): Ditto.
3491 * ax.h (ax_memcpy): Forward declare.
3492 * common/ax.def (invalid2): Removed.
3493 (printf): New entry.
3494 * printcmd.c (printcmd.h): New include.
3495 (string_printf): New function.
3496 (ui_printf): Removed.
3497 (printf_command): Remove static. Call string_printf.
3498 (eval_command): Call string_printf.
3499 * printcmd.h: New file.
3500 * tracepoint.c (validate_actionline,
3501 encode_actions_1): handle printf_command.
3502
3503 2011-02-19 Michael Snyder <msnyder@vmware.com>
3504
3505 * reverse.c (delete_one_bookmark): Argument is now bookmark
3506 id rather than pointer to bookmark struct.
3507 (delete_bookmark_command): Use get_number_or_range.
3508 (goto_bookmark_command): Parse with get_number instead of strtoul.
3509 (bookmark_1): New function. Print info for one bookmark.
3510 (bookmarks_info): Use get_number_or_range and bookmark_1.
3511
3512 2011-02-18 Michael Snyder <msnyder@vmware.com>
3513
3514 * thread.c (info_threads_command): Re-implement using
3515 get_number_or_range.
3516 (thread_apply_command): Ditto.
3517
3518 2011-02-18 Tom Tromey <tromey@redhat.com>
3519
3520 * common/ax.def: New file.
3521 * ax.h (enum agent_op): Use ax.def.
3522 * ax-general.c (aop_map): Use ax.def.
3523
3524 2011-02-18 Tom Tromey <tromey@redhat.com>
3525
3526 * ax-general.c (aop_map): Add pick and rot.
3527 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3528 <DW_OP_rot>: Implement.
3529 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3530 (ax_pick): Declare.
3531 * ax-general.c (ax_pick): New function.
3532
3533 2011-02-18 Tom Tromey <tromey@redhat.com>
3534
3535 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3536
3537 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3538 Tom Tromey <tromey@redhat.com>
3539
3540 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3541 make_symbol_overload_list_block with NULL BLOCK.
3542 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3543
3544 2011-02-18 Pedro Alves <pedro@codesourcery.com>
3545
3546 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3547 * breakpoint.h (get_number_or_range): Declare.
3548 * printcmd.c (ALL_DISPLAYS): Declare.
3549 (delete_display): Reimplement taking a display pointer.
3550 (undisplay_command): Accept a range of displays to delete, using
3551 get_number_or_range.
3552
3553 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3554
3555 * c-valprint.c (c_val_print): Add embedded_offset to address
3556 for arrays of unspecified length.
3557 * p-valprint.c (pascal_val_print): Likewise.
3558
3559 2011-02-18 Yao Qi <yao@codesourcery.com>
3560
3561 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3562 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3563 (thumb_process_displaced_insn): New.
3564 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3565 call to arm_process_displaced_insn.
3566 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3567
3568 2011-02-17 Tom Tromey <tromey@redhat.com>
3569
3570 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3571 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3572 compile_dwarf_to_ax. No longer static. Call
3573 dwarf2_compile_cfa_to_ax.
3574 (locexpr_tracepoint_var_ref): Update.
3575 (loclist_tracepoint_var_ref): Update.
3576 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3577 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3578 argument; add 'gdbarch' and 'pc'.
3579 (dwarf2_compile_cfa_to_ax): New function.
3580 (dwarf2_frame_cache): Update.
3581
3582 2011-02-17 Joel Brobecker <brobecker@adacore.com>
3583
3584 * ada-lang.c (ada_type_of_array): Fix the size of the array
3585 in the case of an unconstrained packed array.
3586
3587 2011-02-17 Yao Qi <yao@codesourcery.com>
3588
3589 * common/Makefile.in: Add more targets for make.
3590
3591 2011-02-16 Tom Tromey <tromey@redhat.com>
3592
3593 * dwarf2loc.c (unimplemented): Fix typo.
3594
3595 2011-02-16 Tom Tromey <tromey@redhat.com>
3596
3597 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3598 (compile_dwarf_to_ax) <default>: Use unimplemented.
3599 <DW_OP_deref>: Update.
3600 (disassemble_dwarf_expression): Update.
3601 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3602 (decode_locdesc): Update.
3603 * dwarf2expr.h (dwarf_stack_op_name): Update.
3604
3605 2011-02-16 Tom Tromey <tromey@redhat.com>
3606
3607 * ax.h (struct aop_map) <name>: Now const.
3608
3609 2011-02-16 Tom Tromey <tromey@redhat.com>
3610
3611 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3612 than axs_rvalue.
3613
3614 2011-02-16 Yao Qi <yao@codesourcery.com>
3615
3616 * infrun.c (get_displaced_step_closure_by_addr): New.
3617 * inferior.h: Declare it.
3618 * arm-tdep.c: (arm_pc_is_thumb): Call
3619 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3620 returns non-NULL.
3621
3622 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3623 Jan Kratochvil <jan.kratochvil@redhat.com>
3624
3625 gdb/
3626 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3627
3628 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3629 Jan Kratochvil <jan.kratochvil@redhat.com>
3630
3631 * value.c (value_contents_copy_raw): Extend describing comment.
3632 Assert that the destination contents we're overwriting are wholly
3633 available.
3634 (value_contents_copy): Extend describing comment.
3635
3636 2011-02-16 Pedro Alves <pedro@codesourcery.com>
3637 Jan Kratochvil <jan.kratochvil@redhat.com>
3638
3639 * value.c (value_available_contents_eq): Remove redundant local
3640 variables. Fix available contents comparision.
3641 * value.h (value_available_contents_eq): Extend describing
3642 comment.
3643
3644 2011-02-16 Yao Qi <yao@codesourcery.com>
3645
3646 * thread.c (info_threads_command): Add missing i18n markup and remove
3647 trailing newline.
3648
3649 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3650
3651 * breakpoint.c (longjmp_names): New variable.
3652 (struct breakpoint_objfile_data): New type.
3653 (breakpoint_objfile_key): New variable.
3654 (msym_not_found): New variable.
3655 (msym_not_found_p): New predicate.
3656 (get_breakpoint_objfile_data): New function.
3657 (create_overlay_event_breakpoint): Check per-objfile cache for
3658 symbols first.
3659 (create_longjmp_master_breakpoint): Likewise.
3660 (create_std_terminate_master_breakpoint): Likewise.
3661 (create_exception_master_breakpoint): Likewise.
3662 (_initialize_breakpoint): Register per-objfile data key.
3663
3664 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3665
3666 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3667 parameter value.
3668 (create_longjmp_master_breakpoint): Loop over longjmp names.
3669 (create_std_terminate_master_breakpoint): Const-propagate parameter
3670 value.
3671 (update_breakpoints_after_exec): Adjust.
3672 (breakpoint_re_set): Adjust.
3673
3674 2011-02-15 Michael Snyder <msnyder@vmware.com>
3675
3676 * thread.c (info_threads_command): Process arg as thread id,
3677 or list of thread ids.
3678 (thread_find_command): New command.
3679 (_initialize_thread): Document argument for info threads.
3680 Document 'thread find' command.
3681 * NEWS: Document new command "thread find".
3682
3683 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3684
3685 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3686 * aclocal.m4: Regenerated with aclocal-1.11.1.
3687 * common/configure: Regenerate with autoconf-2.64.
3688
3689 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
3690
3691 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3692 bool data type to a size of one byte.
3693
3694 2011-02-15 Pedro Alves <pedro@codesourcery.com>
3695 Jan Kratochvil <jan.kratochvil@redhat.com>
3696
3697 * target.c (memory_xfer_live_readonly_partial): Document where to
3698 look for interface description.
3699
3700 2011-02-15 Yao Qi <yao@codesourcery.com>
3701
3702 PR tdep/12352
3703 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3704 order to store PC value on stack instead of text section.
3705
3706 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3707
3708 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3709 the EFP register set size.
3710 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3711 data from the VMX register.
3712 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3713 and write data from/to the VMX register.
3714
3715 2011-02-14 Michael Snyder <msnyder@vmware.com>
3716
3717 * command.h (enum command_class): New class 'no_set_class', for
3718 "show" commands without a corresponding "set" command.
3719 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3720 * copying.c (_initialize_copying): Ditto for "show copying" and
3721 "show warranty".
3722 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3723 "show version".
3724 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3725 which there is no corresponding "set" command (eg. "show copying").
3726
3727 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3728 Jan Kratochvil <jan.kratochvil@redhat.com>
3729
3730 * exec.c (section_table_available_memory): Change `len' parameter
3731 type to ULONGEST.
3732 * exec.h (section_table_available_memory): Ditto.
3733 * value.h (read_value_memory): Rename the `offset' parameter to
3734 `embedded_offset'.
3735
3736 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3737 Jan Kratochvil <jan.kratochvil@redhat.com>
3738
3739 * memrange.c (compare_mem_ranges): Mention sort order in
3740 describing comment.
3741 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3742 * tracepoint.c (traceframe_available_memory): Extend comment to
3743 mention what happens to RESULT when the target does not support
3744 the query.
3745
3746 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3747 Jan Kratochvil <jan.kratochvil@redhat.com>
3748
3749 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3750 range.
3751
3752 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3753
3754 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3755 No longer handle NULL values.
3756
3757 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3758
3759 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3760 * value.c: Include "exceptions.h".
3761 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3762 generic error.
3763 * cp-abi.c: Include gdb_assert.h.
3764 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3765 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3766 errors.
3767 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3768 parameters. No longer returns -1 on error.
3769 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3770 `val' parameters.
3771 * cp-valprint.c: Include exceptions.h.
3772 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3773 the baseclass_offset. Handle unavailable base classes. Use
3774 val_print_invalid_address.
3775 * p-valprint.c: Include exceptions.h.
3776 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3777 when fetching the baseclass_offset. No longer expect
3778 baseclass_offset returning -1. Handle unavailable base classes.
3779 Use val_print_invalid_address.
3780 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3781 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3782 `embedded_offset' and `val' parameters. Adjust.
3783 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3784 parameter, and change its type to gdb_byte pointer. Add
3785 `embedded_offset' and `val' parameters. Adjust. No longer expect
3786 baseclass_offset returning -1.
3787 (value_dynamic_cast): Use value_contents_for_printing rather than
3788 value_contents. Adjust.
3789 (search_struct_field): No longer expect baseclass_offset returning
3790 -1.
3791 (search_struct_method): If reading memory from the target is
3792 necessary, wrap it in a new value to pass to baseclass_offset. No
3793 longer expect baseclass_offset returning -1.
3794 (find_method_list): No longer expect baseclass_offset returning
3795 -1. Use value_contents_for_printing rather than value_contents.
3796 * valprint.c (val_print_invalid_address): New function.
3797 * valprint.h (val_print_invalid_address): Declare.
3798 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3799 and `val' parameters. No longer expect baseclass_offset returning
3800 -1. Adjust.
3801 * gnu-v2-abi.c: Include "exceptions.h".
3802 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3803 parameters. Handle unavailable memory. Recurse through
3804 gnuv2_baseclass_offset directly, rather than through
3805 baseclass_offset. No longer returns -1 on not found, instead
3806 throw an error.
3807 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3808 `val' parameters. Adjust.
3809
3810 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3811
3812 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3813 almost but not quite adjacent.
3814
3815 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3816
3817 * value.h (value_entirely_available): Declare.
3818 * value.c (value_entirely_available): New function.
3819 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3820 real type if the pointer is unavailable.
3821
3822 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3823
3824 * valops.c (value_repeat): Use read_value_memory instead of
3825 read_memory.
3826
3827 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3828
3829 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3830 * value.c (value_contents_copy_raw, value_contents_copy): New
3831 functions.
3832 (value_primitive_field): Use value_contents_copy_raw instead of
3833 memcpy.
3834 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3835 memcpy.
3836 (value_array, value_slice): Ditto.
3837 * valarith.c (value_subscripted_rvalue): Use
3838 value_contents_copy_raw instead of memcpy.
3839
3840 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3841
3842 <unavailable> references.
3843
3844 * valops.c (get_value_at): Use value_from_contents_and_address,
3845 avoiding read_memory.
3846
3847 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3848
3849 * c-valprint.c (c_val_print): Print a string with unavailable
3850 contents as an array.
3851
3852 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3853
3854 * value.h (unpack_bits_as_long): Delete declaration.
3855 (unpack_value_bits_as_long): Declare.
3856 (unpack_value_field_as_long): Declare.
3857 (value_field_bitfield): Declare.
3858 * value.c (unpack_bits_as_long): Rename to...
3859 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3860 value parameters. Return the extracted result in a new output
3861 parameter. If the value contents are unavailable, return false,
3862 otherwise return true.
3863 (unpack_value_bits_as_long): New.
3864 (unpack_field_as_long): Rename to...
3865 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3866 Add embedded_offset and value parameters. Return the extracted
3867 result in a new output parameter. If the value contents are
3868 unavailable, return false, otherwise return true.
3869 (unpack_value_field_as_long): New.
3870 (unpack_field_as_long_1): New.
3871 (unpack_field_as_long): Reimplement as wrapper around
3872 unpack_value_field_as_long_1.
3873 (value_field_bitfield): New function.
3874 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3875 unpack_value_bits_as_long. Mark the value as unavailable, if it
3876 is unavailable.
3877 * jv-valprint.c (java_print_value_fields): Use
3878 value_field_bitfield.
3879 * p-valprint.c (pascal_object_print_value_fields): Use
3880 value_field_bitfield.
3881 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3882
3883 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3884
3885 * value.c (get_internalvar_integer): Also return the int value of
3886 TYPE_CODE_INT INTERNALVAR_VALUE values.
3887 (set_internalvar): Don't special case TYPE_CODE_INT.
3888
3889 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3890
3891 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3892 INTERNALVAR_POINTER.
3893 <pointer>: Delete.
3894 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3895 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3896 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3897
3898 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3899
3900 * value.h (value_available_contents_eq): Declare.
3901 * value.c (find_first_range_overlap): New function.
3902 (value_available_contents_eq): New function.
3903 * valprint.c (val_print_array_elements): Use
3904 value_available_contents_eq.
3905 * ada-valprint.c (val_print_packed_array_elements): Use
3906 value_available_contents_eq.
3907 * jv-valprint.c (java_value_print): Use
3908 value_available_contents_eq.
3909
3910 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3911
3912 * target.c (target_read_live_memory): New function.
3913 (memory_xfer_live_readonly_partial): New.
3914 (memory_xfer_partial): If reading from a traceframe, fallback to
3915 reading unavailable read-only memory from read-only regions of
3916 live target memory.
3917 * tracepoint.c (disconnect_tracing): Adjust.
3918 (set_current_traceframe): New, factored out from
3919 set_traceframe_number.
3920 (set_traceframe_number): Reimplement to only change the traceframe
3921 number on the GDB side.
3922 (do_restore_current_traceframe_cleanup): Adjust.
3923 (make_cleanup_restore_traceframe_number): New.
3924 (cur_traceframe_number): New global.
3925 (tfile_open): Set cur_traceframe_number to no traceframe.
3926 (set_tfile_traceframe): New function.
3927 (tfile_trace_find): If looking up a traceframe using any method
3928 other than by number, make sure the current tfile traceframe
3929 matches gdb's current traceframe. Update the current tfile
3930 traceframe if the lookup succeeded.
3931 (tfile_fetch_registers, tfile_xfer_partial)
3932 (tfile_get_trace_state_variable_value): Make sure the remote
3933 traceframe matches gdb's current traceframe.
3934 * remote.c (remote_traceframe_number): New global.
3935 (remote_open_1): Set it to -1.
3936 (set_remote_traceframe): New function.
3937 (remote_fetch_registers, remote_store_registers)
3938 (remote_xfer_memory, remote_xfer_partial)
3939 (remote_get_trace_state_variable_value): Make sure the remote
3940 traceframe matches gdb's current traceframe.
3941 (remote_trace_find): If looking up a traceframe using any method
3942 other than by number, make sure the current remote traceframe
3943 matches gdb's current traceframe. Update the current remote
3944 traceframe if the lookup succeeded.
3945 * infrun.c (fetch_inferior_event): Adjust.
3946 * tracepoint.h (set_current_traceframe): Declare.
3947 (get_traceframe_number, set_traceframe_number): Add describing
3948 comments.
3949
3950 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3951
3952 Mark pieces of values as unavailable if the corresponding memory
3953 is unavailable.
3954
3955 * valops.c: Include tracepoint.h.
3956 (value_fetch_lazy): Use read_value_memory.
3957 (read_value_memory): New.
3958 * value.h (read_value_memory): Declare.
3959 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3960 * exec.c (section_table_available_memory): New function.
3961 * exec.h (section_table_available_memory): Declare.
3962
3963 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3964
3965 * Makefile.in (SFILES): Add memrange.c.
3966 (HFILES_NO_SRCDIR): Add memrange.h.
3967 (COMMON_OBS): Add memrange.o.
3968 * memrange.c: New file.
3969 * memrange.h: New file.
3970 * tracepoint.c: Include memrange.h.
3971 (struct mem_range): Delete.
3972 (mem_range_s): Delete.
3973 (traceframe_available_memory): New function.
3974 * tracepoint.h (traceframe_available_memory): Declare.
3975
3976 2011-02-14 Pedro Alves <pedro@codesourcery.com>
3977
3978 * target.h (struct traceframe_info): Forward declare.
3979 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3980 (struct target_ops) <to_traceframe_info>: New field.
3981 (target_traceframe_info): New.
3982 * target.c (update_current_target): Inherit and default
3983 to_traceframe_info.
3984 * remote.c (PACKET_qXfer_traceframe_info): New.
3985 (remote_protocol_features): Register qXfer:traceframe-info:read.
3986 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3987 (remote_traceframe_info): New.
3988 (init_remote_ops): Install it.
3989 (_initialize_remote): Install "set/show remote traceframe-info"
3990 commands.
3991 * tracepoint.h (parse_traceframe_info): Declare.
3992 * tracepoint.c (struct mem_range): New.
3993 (mem_range_s): New typedef.
3994 (struct traceframe_info): New.
3995 (traceframe_info): New global.
3996 (free_traceframe_info): New function.
3997 (clear_traceframe_info): New function.
3998 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3999 info.
4000 (build_traceframe_info): New function.
4001 (tfile_traceframe_info): New function.
4002 (init_tfile_ops): Install tfile_traceframe_info.
4003 (traceframe_info_start_memory, free_result): New functions.
4004 (memory_attributes, traceframe_info_elements): New globals.
4005 (parse_traceframe_info, get_traceframe_info): New functions.
4006 * features/traceframe-info.dtd: New file.
4007 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4008
4009 2011-02-14 Pedro Alves <pedro@codesourcery.com>
4010
4011 Base support for <unavailable> value contents.
4012
4013 * value.h (value_bytes_available): Declare.
4014 (mark_value_bytes_unavailable): Declare.
4015 * value.c (struct range): New struct.
4016 (range_s): New typedef.
4017 (ranges_overlap): New function.
4018 (range_lessthan): New function.
4019 (ranges_contain_p): New function.
4020 (struct value) <unavailable>: New field.
4021 (value_bytes_available): New function.
4022 (mark_value_bytes_unavailable): New function.
4023 (require_not_optimized_out): Constify parameter.
4024 (require_available): New function.
4025 (value_contents_all, value_contents): Require all bytes be
4026 available.
4027 (value_free): Free `unavailable'.
4028 (value_copy): Copy `unavailable'.
4029 * valprint.h (val_print_unavailable): Declare.
4030 * valprint.c (valprint_check_validity): Rename `offset' parameter
4031 to `embedded_offset'. If printing a scalar, check whether the
4032 value chunk is available.
4033 (val_print_unavailable): New.
4034 (val_print_scalar_formatted): Check whether the value is
4035 available.
4036 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4037 pretty-printing unavailable values.
4038
4039 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4040
4041 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4042 * c-typeprint.c (c_type_print_args): Update the function comment. New
4043 variable param_type, initialize it. Remove const/volatile qualifiers
4044 for language_cplus and !show_artificial. Use param_type.
4045
4046 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4047
4048 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4049 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4050 * symtab.h (struct symtab) <next>: Comment extension.
4051
4052 2011-02-12 Yao Qi <yao@codesourcery.com>
4053
4054 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4055
4056 2011-02-11 Yao Qi <yao@codesourcery.com>
4057
4058 * common/Makefile.in: Add copyright header.
4059
4060 2011-02-11 Pedro Alves <pedro@codesourcery.com>
4061
4062 * infrun.c (proceed): Move switching out and in of tfind mode from
4063 here ...
4064 (fetch_inferior_event): ... to here.
4065
4066 2011-02-11 Yao Qi <yao@codesourcery.com>
4067
4068 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4069 libcommon.a.
4070 * configure.ac: Add common to sub dir.
4071 * configure: Regenerate.
4072
4073 2011-02-11 Yao Qi <yao@codesourcery.com>
4074
4075 Build libcommon.a.
4076
4077 * common/Makefile.in: New.
4078 * common/configure.ac: New.
4079 * common/aclocal.m4: New.
4080 * common/configure: Generate.
4081
4082 2011-02-10 Pedro Alves <pedro@codesourcery.com>
4083
4084 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4085 side of the parenthesis.
4086
4087 Merge from GCC:
4088 2010-07-13 Jakub Jelinek <jakub@redhat.com>
4089 * vec.h (VEC_block_remove): Fix comment.
4090
4091 2011-02-08 Michael Snyder <msnyder@vmware.com>
4092
4093 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4094
4095 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4096
4097 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4098 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4099 psubd and paddd.
4100
4101 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4102
4103 PR 12361.
4104 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4105 phsubsw.
4106 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4107 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4108
4109 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4110
4111 * dwarf2read.c (read_subroutine_type): Set special calling
4112 convention flag for functions compiled by IBM XL C for OpenCL.
4113 * ppc-sysv-tdep.c: Include "dwarf2.h"
4114 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4115 calling convention.
4116 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4117 IBM OpenCL vector types calling convention.
4118 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4119 (ppc_sysv_abi_broken_return_value): Likewise.
4120 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4121 types calling convention.
4122 (ppc64_sysv_abi_return_value): Likewise.
4123 * spu-tdep.c: Include "dwarf2.h"
4124 (spu_return_value): Implement IBM OpenCL vector types calling
4125 convention.
4126
4127 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4128
4129 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4130 correct ABI for AltiVec vector arguments.
4131
4132 2011-02-07 Pedro Alves <pedro@codesourcery.com>
4133
4134 * valprint.c (val_print): Extend comment.
4135 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4136 interface explanation to val_print.
4137 (ada_val_print_array): Adjust comment to current interface.
4138 (print_field_values): Adjust comment to current interface.
4139 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4140 explanation to val_print.
4141 * f-valprint.c (f_val_print): Ditto.
4142 * jv-valprint.c (java_val_print): Ditto.
4143 * m2-valprint.c (m2_val_print): Ditto.
4144 * p-valprint.c (pascal_val_print): Ditto.
4145
4146 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4147
4148 * breakpoint.c (parse_breakpoint_sals): Fix description.
4149
4150 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
4151 Oguz Kayral <oguzkayral@gmail.com>
4152
4153 * python/py-inferior.c (python_on_normal_stop): New function.
4154 (python_on_resume): New function.
4155 (python_inferior_exit): New function.
4156 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4157 inferior_exit observers.
4158 * python/py-evtregistry.c: New file.
4159 * python/py-threadevent.c : New file.
4160 * python/py-event.c: New file.
4161 * python/py-evts.c: New file.
4162 * python/py-continueevent.c: New file.
4163 * python/py-bpevent.c: New file.
4164 * python/py-signalevent.c: New file.
4165 * python/py-exetiedevent.c: New file.
4166 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4167 Move struct breakpoint_object from here...
4168 * python/python-internal.h: ... to here.
4169 * python/py-event.h: New file.
4170 * python/py-events.h: New file.
4171 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4172 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4173 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4174 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4175 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4176 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4177 Add build rules for all the above.
4178
4179 2011-02-04 Tom Tromey <tromey@redhat.com>
4180
4181 * dwarf2read.c (dwarf2_section_empty_p): New function.
4182 (dwarf2_read_section): Use dwarf2_section_empty_p.
4183 (dwarf2_section_size): New function.
4184 (dwarf2_get_section_info): Unconditionally read section.
4185 (dwarf2_read_index): Use dwarf2_section_empty_p.
4186 (partial_read_comp_unit_head): Use dwarf2_section_size.
4187 (dwarf2_symbol_mark_computed): Likewise.
4188
4189 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4190
4191 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4192
4193 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4194
4195 * mips-linux-tdep.c: Include xml-syscall.h.
4196 (mips_linux_get_syscall_number): New function.
4197 (mips_linux_init_abi): Add calls to
4198 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4199 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4200 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4201 * syscalls/mips-n32-linux.xml: New file.
4202 * syscalls/mips-n64-linux.xml: New file.
4203 * syscalls/mips-o32-linux.xml: New file.
4204
4205 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4206
4207 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4208 Complain about inverted range entries.
4209 (dwarf2_record_block_ranges): Likewise.
4210
4211 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4212
4213 Fix some typos.
4214 * breakpoint.c (update_watchpoint): Fix name of the
4215 update_global_location_list function.
4216 (print_one_breakpoint): Fix typo.
4217 (_initialize_breakpoint): Remove extra space in hbreak help
4218 string.
4219 * breakpoint.h (struct bp_location) <length>: Fix field
4220 description.
4221
4222 2011-02-04 Pedro Alves <pedro@codesourcery.com>
4223
4224 * regcache.c (registers_changed_ptid): Don't explictly always
4225 clear `current_regcache'. Only clear current_thread_ptid and
4226 current_thread_arch when PTID matches. Only reinit the frame
4227 cache if PTID matches the current inferior_ptid. Move alloca(0)
4228 call to ...
4229 (registers_changed): ... here.
4230
4231 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4232
4233 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4234 starts with __stack_chk_guard as stack guard symbol.
4235
4236 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
4237
4238 * disasm.c (compare_lines): Handle the end of sequence markers
4239 within the line table to better support disassembling over
4240 compilation unit boundaries.
4241
4242 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4243
4244 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4245 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4246 implementation even if no symbols are available.
4247 (thumb_analyze_prologue): Update call to skip_prologue_function.
4248 (arm_analyze_prologue): Likewise.
4249
4250 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4251
4252 * arm-tdep.c: Include "observer.h".
4253 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4254 (arm_exidx_data_key): New static variable.
4255 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4256 (struct arm_exidx_data): Likewise.
4257 (arm_exidx_data_free): New function.
4258 (arm_compare_exidx_entries): Likewise.
4259 (arm_obj_section_from_vma): Likewise.
4260 (arm_exidx_new_objfile): Likewise.
4261 (arm_find_exidx_entry): Likewise.
4262 (arm_exidx_fill_cache): Likewise.
4263 (arm_exidx_unwind_sniffer): Likewise.
4264 (arm_exidx_unwind): New global variable.
4265 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4266 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4267 observer. Register arm_exidx_data_key as objfile data.
4268
4269 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4270
4271 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4272 due to accessing uninitialized variable. Fix indentation.
4273
4274 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4275
4276 * c-valprint.c (c_value_print): When doing virtual base pointer
4277 adjustment, create a new value with adjusted contents rather than
4278 changing the contents of the value being printed (and getting it
4279 wrong).
4280
4281 2011-02-02 Pedro Alves <pedro@codesourcery.com>
4282
4283 * xml-support.c (xml_find_attribute): New.
4284 (xinclude_start_include): Use it.
4285 * xml-support.h (xml_find_attribute): Declare.
4286 * memory-map.c (memory_map_start_memory)
4287 (memory_map_start_property): Use xml_find_attribute.
4288 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4289 xml_find_attribute.
4290 * remote.c (start_thread): Use xml_find_attribute.
4291 * solib-target.c (library_list_start_segment)
4292 (library_list_start_section, library_list_start_library)
4293 (library_list_start_list): Use xml_find_attribute.
4294 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4295 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4296 (tdesc_start_field): Use xml_find_attribute.
4297
4298 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4299
4300 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4301 (BUILD_OCL_VTYPES): Update.
4302
4303 2011-02-02 Joel Brobecker <brobecker@adacore.com>
4304
4305 * configure.ac: Work around non-GNU sed limitation when computing
4306 python version number.
4307 * configure: Regenerate.
4308
4309 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4310
4311 Fix debug printing of TYPE_INSTANCE.
4312 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4313 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4314
4315 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4316
4317 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4318 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4319 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4320 * ada-operator.inc: Rename the file to ...
4321 * ada-operator.def: ... here, wrap all the entries by macro OP.
4322 * expprint.c (op_name_standard): Remove all the entries. Include
4323 "std-operator.def" instead.
4324 * expression.h (enum exp_opcode): Include "std-operator.def" and
4325 "ada-operator.def". Move all the entries ...
4326 * std-operator.def: ... here, wrap all the entries by macro OP.
4327
4328 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4329
4330 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4331 * breakpoint.c (remove_jit_event_breakpoints): New function.
4332 * jit.c (jit_descriptor_addr): Delete.
4333 (registering_code): Delete.
4334 (clear_int): Delete.
4335 (jit_inferior_data): New variable.
4336 (struct jit_inferior_data): New type.
4337 (get_jit_inferior_data): New function.
4338 (jit_inferior_data_cleanup): New function.
4339 (jit_read_descriptor): Adjust.
4340 (jit_register_code): Adjust.
4341 (jit_breakpoint_re_set_internal): New function; move code here ...
4342 (jit_inferior_init): ... from here.
4343 (jit_breakpoint_re_set): Adjust.
4344 (jit_reset_inferior_data_and_breakpoints): New function.
4345 (jit_inferior_created_observer): Adjust.
4346 (jit_inferior_exit_hook): Adjust.
4347 (jit_executable_changed_observer): New function.
4348 (jit_event_handler): Adjust.
4349 (_initialize_jit): Adjust.
4350
4351 2011-01-31 Michael Snyder <msnyder@vmware.com>
4352
4353 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4354 line.
4355
4356 2011-01-31 Tom Tromey <tromey@redhat.com>
4357
4358 PR python/12216:
4359 * python/python.c (execute_gdb_command): Call
4360 prevent_dont_repeat.
4361 * top.c (suppress_dont_repeat): New global.
4362 (dont_repeat): Use it.
4363 (prevent_dont_repeat): New function.
4364 * command.h (prevent_dont_repeat): Declare.
4365
4366 2011-01-31 Tom Tromey <tromey@redhat.com>
4367
4368 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4369 * python/py-breakpoint.c (bppy_set_silent): Use
4370 breakpoint_set_silent.
4371 (bppy_set_thread): Use breakpoint_set_thread.
4372 (bppy_set_task): Use breakpoint_set_task.
4373 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4374 (breakpoint_set_task): Declare.
4375 (make_breakpoint_silent): Remove.
4376 * breakpoint.c (breakpoint_set_silent): New function.
4377 (breakpoint_set_thread): Likewise.
4378 (breakpoint_set_task): Likewise.
4379 (make_breakpoint_silent): Remove.
4380
4381 2011-01-31 Tom Tromey <tromey@redhat.com>
4382
4383 * breakpoint.h (user_breakpoint_p): Declare.
4384 * breakpoint.c (user_breakpoint_p): New function.
4385 (breakpoint_1): Use it.
4386 (save_breakpoints): Likewise.
4387
4388 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4389
4390 * configure.ac: Add handling of Python distribution on Windows.
4391 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4392 sysconfig variables are not defined, then do not use them.
4393 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4394 instead. On Windows, return all paths using forward-slashes
4395 rather than backslashes.
4396
4397 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4398
4399 * configure.ac: Remove fallback behavior for building
4400 against Python. Remove tweaking of Python include path.
4401 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4402 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4403 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4404 Always restore CPPFLAGS and LIBS after linking test.
4405 * configure: Regenerated.
4406 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4407 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4408 * python/python-internal.h: Adjust includes of Python .h files.
4409
4410 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4411
4412 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4413 in error message.
4414
4415 2011-01-31 Joel Brobecker <brobecker@adacore.com>
4416
4417 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4418 value test.
4419
4420 2011-01-31 Yao Qi <yao@codesourcery.com>
4421
4422 * arm-linux-nat.c: Update calls to regcache_register_status
4423 instead of regcache_valid_p.
4424 * aix-thread.c: Likewise.
4425 * i386gnu-nat.c: Likewise.
4426
4427 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4428
4429 Fix crash.
4430 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4431 touching TYPE_FIELD_ARTIFICIAL.
4432
4433 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
4434
4435 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4436 Committers.
4437
4438 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4439
4440 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4441 selected, don't try iterating over the traceframe's blocks.
4442 (tfile_has_stack): If there's no traceframe selected, then there's
4443 no stack.
4444 (tfile_has_registers): If there's no traceframe selected, then
4445 there's no registers.
4446
4447 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4448
4449 * target.c (memory_xfer_partial): No need to restore shadows if we
4450 haven't read anything.
4451
4452 2011-01-28 Pedro Alves <pedro@codesourcery.com>
4453
4454 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4455 and val_print_scalar_formatted.
4456
4457 2011-01-27 Pedro Alves <pedro@codesourcery.com>
4458
4459 * tracepoint.c (tfile_read): New.
4460 (tfile_open): Use it.
4461 (tfile_get_traceframe_address): Use it.
4462 (tfile_trace_find): Use it.
4463 (walk_blocks_callback_func): New typedef.
4464 (match_blocktype): New function.
4465 (traceframe_walk_blocks): New function.
4466 (traceframe_find_block_type): New function.
4467 (tfile_fetch_registers, tfile_xfer_partial)
4468 (tfile_get_trace_state_variable_value): Use
4469 traceframe_find_block_type and tfile_read.
4470
4471 2011-01-26 Kevin Buettner <kevinb@redhat.com>
4472
4473 * remote-mips.c: Add internationalization mark ups. Remove
4474 trailing \n from already marked up strings.
4475
4476 2011-01-26 Tom Tromey <tromey@redhat.com>
4477
4478 * python/py-prettyprint.c (print_string_repr): Clear
4479 'addressprint' option when calling val_print_string.
4480 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4481 option when calling val_print_string.
4482
4483 2011-01-26 Tom Tromey <tromey@redhat.com>
4484
4485 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4486 GDB_PY_LL_ARG.
4487 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4488 macros.
4489 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4490 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4491 (gdb_py_long_as_ulongest): New defines.
4492 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4493 (gdb_py_int_as_long): Declare.
4494 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4495 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4496 (valpy_long): Add comment.
4497 * python/py-utils.c (get_addr_from_python): Use
4498 gdb_py_long_as_ulongest. Handle overflow properly.
4499 (gdb_py_object_from_longest): New function.
4500 (gdb_py_object_from_ulongest): Likewise.
4501 (gdb_py_int_as_long): Likewise.
4502 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4503 * python/py-symtab.c (salpy_get_pc): Use
4504 gdb_py_long_from_ulongest.
4505 (salpy_get_line): Use PyInt_FromLong.
4506 * python/py-param.c (set_parameter_value): Use
4507 gdb_py_int_as_long.
4508 * python/py-lazy-string.c (stpy_get_address): Use
4509 gdb_py_long_from_ulongest.
4510 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4511 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4512 * python/py-breakpoint.c (bppy_set_thread): Use
4513 gdb_py_int_as_long.
4514 (bppy_set_task): Likewise.
4515 (bppy_set_ignore_count): Likewise.
4516 (bppy_set_hit_count): Likewise.
4517 * python/py-block.c (blpy_get_start): Use
4518 gdb_py_object_from_ulongest.
4519 (blpy_get_end): Likewise.
4520 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4521
4522 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4523
4524 PR/symtab 11766:
4525 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4526 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4527 equality test for objfile, initialize addr_low if needed.
4528
4529 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4530
4531 * tui/tui-regs.c (tui_register_format): Remove dead code.
4532
4533 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4534
4535 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4536 instead of print_scalar_formatted.
4537 (print_scalar_formatted): Don't handle 's' format strings here,
4538 and add an assertion that we never see such format here.
4539 * valprint.h (val_print_scalar_formatted): Declare.
4540 * valprint.c (val_print_scalar_formatted): New.
4541 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4542 instead of print_scalar_formatted.
4543 * jv-valprint.c (java_val_print): Ditto.
4544 * p-valprint.c (pascal_val_print): Ditto.
4545 * ada-valprint.c (ada_val_print_1): Ditto.
4546 * f-valprint.c (f_val_print): Ditto.
4547 * infcmd.c (registers_info): Ditto.
4548 * m2-valprint.c (m2_val_print): Ditto.
4549
4550 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4551
4552 * m2-valprint.c (print_unbounded_array): Pass
4553 value_contents_for_printing rather than value_contents, to
4554 m2_print_array_contents. Also pass in the value.
4555
4556 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4557
4558 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4559 (save_gdb_index_command): Switch to .gdb_index version 4.
4560
4561 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4562
4563 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4564 than frame_register, and always pass a valid value to val_print.
4565
4566 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4567
4568 Centralize printing "<optimized out>".
4569
4570 * valprint.h (val_print_optimized_out): Declare.
4571 * cp-valprint.c (cp_print_value_fields): Use
4572 val_print_optimized_out.
4573 * jv-valprint.c (java_print_value_fields): Ditto.
4574 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4575 * printcmd.c (print_formatted): Ditto.
4576 * valprint.c (valprint_check_validity): Ditto.
4577 (value_check_printable): Ditto.
4578 (val_print_optimized_out): New.
4579
4580 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4581
4582 * infcmd.c (default_print_registers_info): Allocate values so to
4583 never pass a NULL value to val_print.
4584
4585 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4586
4587 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4588 boolean. Make sure to always pass a value that matches the
4589 contents buffer to callees. Preserve `address' for following
4590 iterations.
4591 * value.c (value_contents_for_printing_const): New.
4592 (value_address): Constify value argument.
4593 * value.h (value_contents_for_printing_const): Declare.
4594 (value_address): Constify value argument.
4595
4596 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4597
4598 * regcache.c (struct regcache_descr): Rename
4599 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4600 and sizeof_cooked_register_valid_p to
4601 sizeof_cooked_register_status.
4602 (init_regcache_descr): Adjust.
4603 (struct regcache): Rename register_valid_p field to
4604 register_status.
4605 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4606 (do_cooked_read): Adjust.
4607 (regcache_valid_p): Rename to ...
4608 (regcache_register_status): ... this. Adjust.
4609 (regcache_invalidate): Adjust.
4610 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4611 Adjust.
4612 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4613 as unavailable, not valid.
4614 (regcache_dump): Adjust.
4615 * regcache.h (enum register_status): New.
4616 (regcache_register_status): Declare.
4617 (regcache_invalidate): Delete declaration.
4618 * corelow.c (get_core_registers): Adjust.
4619 * tracepoint.c (tfile_fetch_registers): Adjust.
4620 * trad-frame.c (REG_VALUE): Rename to ...
4621 (TF_REG_VALUE): ... this.
4622 (REG_UNKNOWN): Rename to ...
4623 (TF_REG_UNKNOWN): ... this.
4624 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4625 * mi/mi-main.c (register_changed_p): Adjust.
4626
4627 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4628
4629 * regcache.c (struct regcache_descr): Remove outdated comment.
4630 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4631 overallocate hack.
4632 (regcache_xmalloc): Rename to ...
4633 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4634 Allocate the regcache type accordingly.
4635 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4636 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4637 cooked registers, not raw.
4638 (regcache_dup_no_passthrough): Delete.
4639 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4640 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4641 mention obsolete write_register_bytes.
4642 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4643
4644 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4645
4646 Stop remote_read_bytes from handling partial reads itself.
4647
4648 * remote-fileio.c: Include target.h.
4649 (remote_fileio_write_bytes): Delete.
4650 (remote_fileio_func_open, remote_fileio_func_write)
4651 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4652 target_read_memory.
4653 (remote_fileio_func_stat): Use target_read_memory and
4654 target_write_memory.
4655 (remote_fileio_func_gettimeofday): Use target_write_memory.
4656 (remote_fileio_func_system): Use target_read_memory.
4657 * remote.c (remote_write_bytes): Make it static.
4658 (remote_read_bytes): Don't handle partial reads here.
4659 * remote.h (remote_read_bytes): Delete declaration.
4660
4661 2011-01-25 Pedro Alves <pedro@codesourcery.com>
4662
4663 Simplify XML parsing a bit.
4664
4665 * xml-support.h (gdb_xml_parse_quick): Declare.
4666 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4667 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4668 parameter.
4669 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4670 gdb_xml_create_parser_and_cleanup_1.
4671 (gdb_xml_parse_quick): New.
4672 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4673 * osdata.c (osdata_parse): Ditto.
4674 * remote.c (remote_threads_info): Ditto.
4675 * solib-target.c (solib_target_parse_libraries): Ditto.
4676 * xml-syscall.c (syscall_parse_xml): Ditto.
4677 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4678
4679 2011-01-24 Kevin Buettner <kevinb@redhat.com>
4680
4681 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4682 with remote-mips.o added to gdb_target_obs.
4683 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4684
4685 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4686
4687 * ada-valprint.c (val_print_packed_array_elements): Pass the
4688 correct struct value to val_print.
4689 (ada_val_print_1): Ditto.
4690
4691 2011-01-24 Pedro Alves <pedro@codesourcery.com>
4692
4693 Don't lose embedded_offset in printing routines throughout.
4694
4695 * valprint.h (val_print_array_elements): Change prototype.
4696 * valprint.c (val_print_array_elements): Add `embedded_offset'
4697 parameter, and adjust to pass it down to val_print, while passing
4698 `valaddr' or `address' unmodified. Take embedded_offset into
4699 account when checking repetitions.
4700 * c-valprint.c (c_val_print): Pass embedded_offset to
4701 val_print_array_elements instead of adjusting `valaddr' and
4702 `address'.
4703 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4704 embedded_offset to val_print_array_elements instead of adjusting
4705 `valaddr'.
4706 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4707 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4708 val_print_array_elements and pascal_object_print_value_fields
4709 instead of adjusting `valaddr'.
4710 (pascal_object_print_value_fields): Add `offset' parameter, and
4711 adjust to use it.
4712 (pascal_object_print_value): Add `offset' parameter, and adjust to
4713 use it.
4714 (pascal_object_print_static_field): Use
4715 value_contents_for_printing/value_embedded_offset, rather than
4716 value_contents.
4717 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4718 parameter, and adjust to use it. Use
4719 value_contents_for_printing/value_embedded_offset, rather than
4720 value_contents.
4721 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4722 (ada_val_print_array): Add `offset' parameter, and adjust to use
4723 it.
4724 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4725 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4726 Instead work with offsets. Use
4727 value_contents_for_printing/value_embedded_offset, rather than
4728 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4729 and use value_from_pointer to extract a target pointer, rather
4730 than value_from_longest.
4731 (print_variant_part): Add `offset' parameter. Replace
4732 `outer_valaddr' parameter by a new `outer_offset' parameter.
4733 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4734 (ada_value_print): Use
4735 value_contents_for_printing/value_embedded_offset, rather than
4736 value_contents.
4737 (print_record): Add `offset' parameter, and adjust to pass it
4738 down.
4739 (print_field_values): Add `offset' parameter. Replace
4740 `outer_valaddr' parameter by a new `outer_offset' parameter.
4741 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4742 Use value_contents_for_printing/value_embedded_offset, rather than
4743 value_contents.
4744 * d-valprint.c (dynamic_array_type): Use
4745 value_contents_for_printing/value_embedded_offset, rather than
4746 value_contents.
4747 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4748 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4749 (java_print_value_fields): Take `offset' into account. Don't
4750 re-adjust `valaddr'. Instead pass down adjusted offsets.
4751 (java_val_print): Take `embedded_offset' into account. Pass it to
4752 java_print_value_fields.
4753 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4754 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4755 down adjusted offsets.
4756 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4757 (f_val_print): Take `embedded_offset' into account.
4758
4759 2011-01-21 Joel Brobecker <brobecker@adacore.com>
4760
4761 * inflow.c: Include "gdbcmd.h".
4762 (interactive_mode): New static global, moved here from top.c.
4763 (show_interactive_mode): New function, moved here from top.c.
4764 use gdb_has_a_terminal instead of input_from_terminal_p to
4765 determine the current mode.
4766 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4767 setting.
4768 (_initialize_inflow): Add the "set/show interactive-mode"
4769 commands. Moved here from top.c, after having adjusted slightly
4770 the help text.
4771 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4772 to inflow.c.
4773 (input_from_terminal_p): Remove handling of "interactive-mode"
4774 setting, moved to infow.c.
4775 (init_main): Remove creation of the "set/show interactive-mode"
4776 commands, moved to inflow.c.
4777
4778 2011-01-19 Joel Brobecker <brobecker@adacore.com>
4779
4780 * NEWS: Add entry for native ia64-hpux support.
4781
4782 2011-01-19 Tom Tromey <tromey@redhat.com>
4783
4784 PR mi/8618:
4785 * thread.c (free_thread): Free 'name'.
4786 (print_thread_info): Emit thread name. Change CLI output.
4787 (thread_name_command): New function.
4788 (do_captured_thread_select): Emit newline.
4789 (_initialize_thread): Register 'thread name' command.
4790 * target.h (struct target_ops) <to_thread_name>: New field.
4791 (target_thread_name): New macro.
4792 * target.c (update_current_target): Handle to_thread_name.
4793 * python/py-infthread.c (thpy_get_name): New function.
4794 (thpy_set_name): Likewise.
4795 (thread_object_getset): Add "name".
4796 * linux-nat.c (linux_nat_thread_name): New function.
4797 (linux_nat_add_target): Set to_thread_name.
4798 * gdbthread.h (struct thread_info) <name>: New field.
4799
4800 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4801
4802 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4803 (ada_val_print_1): Likewise.
4804
4805 2011-01-18 Joel Brobecker <brobecker@adacore.com>
4806
4807 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4808 upper limit address is not greater than the function end address
4809 when the upper limit could not be computed using the debugging
4810 info.
4811
4812 2011-01-17 Tom Tromey <tromey@redhat.com>
4813
4814 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4815 get_regcomp_error.
4816 * utils.c: Include gdb_regex.h.
4817 (do_regfree_cleanup): New function.
4818 (make_regfree_cleanup): Likewise.
4819 (get_regcomp_error): Likewise.
4820 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4821
4822 2011-01-17 Tom Tromey <tromey@redhat.com>
4823
4824 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4825 re_compile_fastmap.
4826
4827 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4828
4829 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4830 for internal variables.
4831 (last_was_structop): New static variable.
4832 (COMPLETE): New token.
4833 (field_exp): New rule to group all '.' suffix handling.
4834 Add mark_struct_expression calls when approriate to be able
4835 to correctly find fields for completion.
4836 (yylex): Adapt to handle field completion and set INTVAR when
4837 required.
4838
4839 2011-01-14 Yao Qi <yao@codesourcery.com>
4840
4841 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4842 save_reggroup, restore_reggroup and all_reggroup.
4843
4844 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4845
4846 * ada-valprint. (ada_printchar): Use the correct type length
4847 in call to ada_emit_char.
4848 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4849
4850 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4851
4852 * solib-som.h (hpux_major_release): Declare variable here.
4853 * solib-som.c: Remove <sys/utsname.h> header.
4854 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4855 (hpux_major_release): Make global, change default value to
4856 DEFAULT_HPUX_MAJOR_RELEASE.
4857 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4858 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4859 Add "solib-som.h" header.
4860 (set_hpux_major_release): New function.
4861 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4862
4863 2011-01-14 Mike Frysinger <vapier@gentoo.org>
4864
4865 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4866
4867 2011-01-14 Joel Brobecker <brobecker@adacore.com>
4868
4869 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4870 new-line at end of warning message.
4871 (ia64_hpux_store_register): Remove trailing new-line at end of
4872 error message.
4873 * ia64-hpux-tdep.c: Rephrase comment.
4874 * solib-ia64-hpux.c (struct dld_info): Change type of field
4875 dld_flags from "long long" to ULONGEST.
4876
4877 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4878
4879 * target.h (deprecated_child_ops): Delete declaration.
4880 * target.c (deprecated_child_ops): Delete definition.
4881
4882 2011-01-14 Pedro Alves <pedro@codesourcery.com>
4883
4884 * Makefile.in (hpux-thread.o): Delete rule.
4885 * configure.ac: Don't check for HPUX DCE threads support.
4886 * configure, config.in: Regenerate.
4887 * hppa-hpux-nat.c (child_suppress_run): Delete.
4888 (hppa_hpux_child_can_run): Delete.
4889 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4890 * hpux-thread.c: Delete.
4891
4892 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4893
4894 * hpux-thread.c (hpux_pid_to_str): Delete.
4895
4896 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4897
4898 * ada-valprint.c (ada_emit_char): Remove strange code.
4899 Check that c is <= UCHAR_MAX before passing it to isascii.
4900 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4901
4902 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4903
4904 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4905 to the case where instream is stdin.
4906
4907 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4908
4909 * ia64-tdep.h (struct regcache): Forward declare.
4910 (struct ia64_infcall_ops): New struct type.
4911 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4912 and "infcall_ops".
4913 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4914 Renames ia64_find_global_pointer.
4915 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4916 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4917 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4918 methods.
4919 (ia64_infcall_ops): New static global constant.
4920 (ia64_gdbarch_init): Set tdep->infcall_ops.
4921 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4922 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4923 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4924 (ia64_hpux_dummy_code): New static global constant.
4925 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4926 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4927 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4928 New function.
4929 (ia64_hpux_infcall_ops): New static global constant.
4930 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4931 for inferior function calls to work properly on ia64-hpux.
4932
4933 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4934
4935 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4936 * ia64-tdep.h (struct frame_info): forward declaration.
4937 (struct gdbarch_tdep): Add field size_of_register_frame.
4938 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4939 to determine the size of the register frame.
4940 (ia64_size_of_register_frame): New function.
4941 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4942 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4943 (IA64_HPUX_UREG_REASON): New macro.
4944 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4945 New functions.
4946 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4947 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4948 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4949 objects.
4950
4951 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4952
4953 Add support for ia64-hpux.
4954 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4955 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4956
4957 * configure.host: Add handling for ia64-hpux hosts. Add associated
4958 floatformats.
4959 * configure.tgt: Add handling for ia64-hpux targets.
4960 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4961 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4962 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4963
4964 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4965
4966 [ttrace] Compute thread list immediately after attach.
4967 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4968 New subprogram.
4969 (inf_ttrace_attach): Use it.
4970
4971 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4972
4973 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4974 if we could not determine the frame's function address. Instead,
4975 use the frame's PC, and then continue.
4976
4977 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4978
4979 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4980 not already defined.
4981
4982 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4983
4984 * ia64-tdep.c (ia64_struct_type_p): New function.
4985 (ia64_extract_return_value): Handle integral values that are
4986 less than 8 bytes long.
4987 (ia64_push_dummy_call): Likewise.
4988
4989 2011-01-13 Joel Brobecker <brobecker@adacore.com>
4990
4991 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4992 floatformat_ia64_ext.
4993 (floatformat_ia64_ext_big): New static const.
4994 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4995
4996 2011-01-12 Tom Tromey <tromey@redhat.com>
4997
4998 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4999 messages.
5000 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5001 (mi_cmd_thread_list_ids): Likewise.
5002 (mi_cmd_data_list_changed_registers): Likewise.
5003 (mi_cmd_data_list_register_values): Likewise.
5004 (mi_cmd_data_write_register_values): Likewise.
5005 (mi_cmd_data_evaluate_expression): Likewise.
5006 (mi_cmd_data_read_memory): Likewise.
5007 (mi_cmd_data_read_memory_bytes): Likewise.
5008 (mi_cmd_data_write_memory): Likewise.
5009 (mi_cmd_enable_timings): Likewise.
5010 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5011 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5012 (mi_cmd_var_delete): Likewise.
5013 (mi_cmd_var_set_format): Likewise.
5014 (mi_cmd_var_show_format): Likewise.
5015 (mi_cmd_var_info_num_children): Likewise.
5016 (mi_cmd_var_list_children): Likewise.
5017 (mi_cmd_var_info_type): Likewise.
5018 (mi_cmd_var_info_expression): Likewise.
5019 (mi_cmd_var_show_attributes): Likewise.
5020 (mi_cmd_var_assign): Likewise.
5021 (mi_cmd_var_update): Likewise.
5022 (mi_cmd_enable_pretty_printing): Likewise.
5023 (mi_cmd_var_set_update_range): Likewise.
5024 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5025 messages.
5026 (mi_cmd_target_file_put): Likewise.
5027 (mi_cmd_target_file_delete): Likewise.
5028 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5029 messages.
5030 (mi_cmd_stack_info_depth): Likewise.
5031 (mi_cmd_stack_list_locals): Likewise.
5032 (mi_cmd_stack_list_args): Likewise.
5033 (mi_cmd_stack_select_frame): Likewise.
5034 (mi_cmd_stack_select_frame): Likewise.
5035 (mi_cmd_stack_info_frame): Likewise.
5036 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5037 messages.
5038 (mi_cmd_file_list_exec_source_files): Likewise.
5039 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5040 (mi_cmd_env_cd): Likewise.
5041 (mi_cmd_env_path): Likewise.
5042 (mi_cmd_env_dir): Likewise.
5043 (mi_cmd_inferior_tty_show): Likewise.
5044 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5045 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5046 (mi_cmd_break_watch): Likewise.
5047
5048 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5049
5050 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5051 (ppc_linux_insert_hw_breakpoint): Likewise.
5052 (ppc_linux_remove_hw_breakpoint): Likewise.
5053 (ppc_linux_insert_watchpoint): Likewise.
5054
5055 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5056 Jan Kratochvil <jan.kratochvil@redhat.com>
5057
5058 PR fortran/11104 and DWARF unbound arrays detection.
5059 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5060 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5061 unspecified upper bound.
5062 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5063 variables array_size_array, tmp_type and offset_item. New variable
5064 array. Remove call to f77_get_upperbound. New variables array_type
5065 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5066 the final call to deprecated_set_value_type.
5067
5068 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5069
5070 Make value allocations more lazy.
5071 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5072 instead of allocate_value and set_value_lazy when possible.
5073 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5074 instead of allocate_value and set_value_lazy.
5075 * findvar.c (value_of_register_lazy): Likewise.
5076 (read_var_value): Remove V preallocation, call just check_typedef in
5077 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5078 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5079 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5080 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5081 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5082 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5083 the end, remove set_value_lazy there.
5084 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5085 instead of allocate_value and set_value_lazy when possible.
5086 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5087 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5088 of allocate_value and set_value_lazy.
5089 (value_from_contents_and_address): Use allocate_value_lazy instead of
5090 allocate_value and set_value_lazy when possible.
5091
5092 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
5093
5094 * disasm.c (dump_insns): Support dumping opcodes for MI.
5095 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5096 dumping of instruction opcodes.
5097
5098 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5099
5100 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5101 appropiately.
5102
5103 2011-01-11 Tom Tromey <tromey@redhat.com>
5104
5105 * thread.c (do_captured_thread_select): Emit newline before
5106 printing frame.
5107
5108 2011-01-11 Michael Snyder <msnyder@vmware.com>
5109
5110 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5111 * score-tdep.c: Ditto.
5112 * score-tdep.h: Ditto.
5113 * ser-base.c: Ditto.
5114 * ser-go32.c: Ditto.
5115 * serial.c: Ditto.
5116 * serial.h: Ditto.
5117 * ser-mingw.c: Ditto.
5118 * ser-pipe.c: Ditto.
5119 * ser-tcp.c: Ditto.
5120 * ser-unix.c: Ditto.
5121 * sh64-tdep.c: Ditto.
5122 * shnbsd-nat.c: Ditto.
5123 * sh-tdep.c: Ditto.
5124 * sh-tdep.h: Ditto.
5125 * solib.c: Ditto.
5126 * solib-darwin.c: Ditto.
5127 * solib-frv.c: Ditto.
5128 * solib.h: Ditto.
5129 * solib-irix.c: Ditto.
5130 * solib-osf.c: Ditto.
5131 * solib-pa64.c: Ditto.
5132 * solib-som.c: Ditto.
5133 * solib-spu.c: Ditto.
5134 * solib-sunos.c: Ditto.
5135 * solib-svr4.c: Ditto.
5136 * solist.h: Ditto.
5137 * sol-thread.c: Ditto.
5138 * somread.c: Ditto.
5139 * source.c: Ditto.
5140 * source.h: Ditto.
5141 * sparc64-linux-tdep.c: Ditto.
5142 * sparc64-tdep.c: Ditto.
5143 * sparc-linux-nat.c: Ditto.
5144 * sparc-linux-tdep.c: Ditto.
5145 * sparc-sol2-nat.c: Ditto.
5146 * sparc-sol2-tdep.c: Ditto.
5147 * sparc-tdep.c: Ditto.
5148 * sparc-tdep.h: Ditto.
5149 * spu-tdep.c: Ditto.
5150 * stabsread.c: Ditto.
5151 * stabsread.h: Ditto.
5152 * stack.c: Ditto.
5153 * symfile.c: Ditto.
5154 * symfile.h: Ditto.
5155 * symmisc.c: Ditto.
5156 * symtab.c: Ditto.
5157 * symtab.h: Ditto.
5158 * target.c: Ditto.
5159 * target-descriptions.c: Ditto.
5160 * target-descriptions.h: Ditto.
5161 * target.h: Ditto.
5162 * target-memory.c: Ditto.
5163 * terminal.h: Ditto.
5164 * thread.c: Ditto.
5165 * top.c: Ditto.
5166 * tracepoint.c: Ditto.
5167 * tracepoint.h: Ditto.
5168 * trad-frame.h: Ditto.
5169 * typeprint.c: Ditto.
5170
5171 2011-01-11 Michael Snyder <msnyder@vmware.com>
5172
5173 * ui-file.c: Comment cleanup, mostly periods and spaces.
5174 * ui-file.h: Ditto.
5175 * ui-out.c: Ditto.
5176 * ui-out.h: Ditto.
5177 * utils.c: Ditto.
5178 * v850-tdep.c: Ditto.
5179 * valarith.c: Ditto.
5180 * valops.c: Ditto.
5181 * valprint.c: Ditto.
5182 * valprint.h: Ditto.
5183 * value.c: Ditto.
5184 * value.h: Ditto.
5185 * varobj.c: Ditto.
5186 * varobj.h: Ditto.
5187 * vax-tdep.c: Ditto.
5188 * vec.c: Ditto.
5189 * vec.h: Ditto.
5190 * version.h: Ditto.
5191 * windows-nat.c: Ditto.
5192 * windows-tdep.c: Ditto.
5193 * xcoffread.c: Ditto.
5194 * xcoffsolib.c: Ditto.
5195 * xml-support.c: Ditto.
5196 * xstormy16-tdep.c: Ditto.
5197 * xtensa-tdep.c: Ditto.
5198 * xtensa-tdep.h: Ditto.
5199
5200 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5201
5202 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5203 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5204
5205 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5206 Thiago Jung Bauermann <bauerman@br.ibm.com>
5207
5208 Implement support for PowerPC BookE ranged watchpoints.
5209 * breakpoint.h
5210 (struct breakpoint_ops) <resources_needed>: New method.
5211 Initialize to NULL in all existing breakpoint_ops instances.
5212 (struct breakpoint) <exact>: New field.
5213 (target_exact_watchpoints): Declare external global.
5214 * breakpoint.c (target_exact_watchpoints): New global flag.
5215 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5216 b->enable_state to bp_enabled before calling
5217 hw_watchpoint_used_count.
5218 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5219 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5220 if available.
5221 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5222 if the watchpoint is exact.
5223 (resources_needed_watchpoint): New function.
5224 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5225 (watch_command_1): Set b->exact if the user asked for an exact
5226 watchpoint and one can be set.
5227 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5228 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5229 the user asks for an exact watchpoint and one can be set. Return
5230 number of needed debug registers to watch the expression.
5231 * gdbtypes.c (is_scalar_type): New function, based on
5232 valprint.c:scalar_type_p.
5233 (is_scalar_type_recursive): New function.
5234 * gdbtypes.h (is_scalar_type_recursive): Declare.
5235 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5236 handle regions when ranged watchpoints are available.
5237 (create_watchpoint_request): New function.
5238 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5239 create_watchpoint_request.
5240 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5241 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5242 `set powerpc' and `show powerpc' commands.
5243 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5244 Mention documentation comment in the target macro.
5245 (target_region_ok_for_hw_watchpoint): Document return value.
5246
5247 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5248
5249 * breakpoint.c (update_watchpoint): Decide on using a software or
5250 hardware watchpoint after the bp_locations are created.
5251
5252 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5253
5254 Convert hardware watchpoints to use breakpoint_ops.
5255 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5256 <insert_location>: ... this. Return int instead of void.
5257 Accept pointer to struct bp_location instead of pointer to
5258 struct breakpoint. Adapt all implementations.
5259 (breakpoint_ops) <remove>: Rename to...
5260 <remove_location>: ... this. Accept pointer to struct bp_location
5261 instead of pointer to struct breakpoint. Adapt all implementations.
5262 * breakpoint.c (insert_catchpoint): Delete function.
5263 (insert_bp_location): Call the watchpoint or catchpoint's
5264 breakpoint_ops.insert method.
5265 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5266 breakpoint_ops.remove method.
5267 (insert_watchpoint, remove_watchpoint): New functions.
5268 (watchpoint_breakpoint_ops): New structure.
5269 (watch_command_1): Initialize the OPS field.
5270 * inf-child.c (inf_child_insert_fork_catchpoint)
5271 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5272 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5273 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5274 Delete functions.
5275 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5276 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5277 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5278 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5279 * target.c (update_current_target): Change default implementation of
5280 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5281 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5282 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5283 to_set_syscall_catchpoint to return_one.
5284 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5285 (debug_to_insert_exec_catchpoint): Report return value.
5286 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5287 (to_insert_exec_catchpoint): Change declaration to return int instead
5288 of void.
5289
5290 2011-01-11 Michael Snyder <msnyder@vmware.com>
5291
5292 * arm-tdep.c: Internationalization.
5293 * c-lang.c: Ditto.
5294 * charset.c: Ditto.
5295 * fork-child.c: Ditto.
5296 * nto-procfs.c: Ditto.
5297 * ppc-sysv-tdep.c: Ditto.
5298 * procfs.c: Ditto.
5299 * remote-mips.c: Ditto.
5300 * remote.c: Ditto.
5301 * rs6000-nat.c: Ditto.
5302 * rs6000-tdep.c: Ditto.
5303 * target.c: Ditto.
5304 * valops.c: Ditto.
5305 * value.c: Ditto.
5306 * xml-support.c: Ditto.
5307 * mi/mi-cmd-break.c: Ditto.
5308 * mi/mi-cmd-var.c: Ditto.
5309 * mi/mi-interp.c: Ditto.
5310 * mi/mi-main.c: Ditto.
5311
5312 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
5313
5314 * remote-sim.c (gdbsim_store_register): Update API to
5315 sim_store_register to check more error conditions.
5316
5317 2011-01-10 Michael Snyder <msnyder@vmware.com>
5318
5319 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5320 * nto-tdep.c: Ditto.
5321 * nto-tdep.h: Ditto.
5322 * objc-exp.y: Ditto.
5323 * objc-lang.c: Ditto.
5324 * objfiles.c: Ditto.
5325 * objfiles.h: Ditto.
5326 * observer.c: Ditto.
5327 * opencl-lang.c: Ditto.
5328 * osabi.c: Ditto.
5329 * parse.c: Ditto.
5330 * parser-defs.h: Ditto.
5331 * p-exp.y: Ditto.
5332 * p-lang.c: Ditto.
5333 * posix-hdep.c: Ditto.
5334 * ppcbug-rom.c: Ditto.
5335 * ppc-linux-nat.c: Ditto.
5336 * ppc-linux-tdep.c: Ditto.
5337 * ppc-linux-tdep.h: Ditto.
5338 * ppcnbsd-tdep.c: Ditto.
5339 * ppcobsd-tdep.c: Ditto.
5340 * ppcobsd-tdep.h: Ditto.
5341 * ppc-sysv-tdep.c: Ditto.
5342 * ppc-tdep.h: Ditto.
5343 * printcmd.c: Ditto.
5344 * proc-abi.c: Ditto.
5345 * proc-flags.c: Ditto.
5346 * procfs.c: Ditto.
5347 * proc-utils.h: Ditto.
5348 * progspace.h: Ditto.
5349 * prologue-value.c: Ditto.
5350 * prologue-value.h: Ditto.
5351 * psympriv.h: Ditto.
5352 * psymtab.c: Ditto.
5353 * p-typeprint.c: Ditto.
5354 * p-valprint.c: Ditto.
5355 * ravenscar-sparc-thread.c: Ditto.
5356 * ravenscar-thread.c: Ditto.
5357 * ravenscar-thread.h: Ditto.
5358 * record.c: Ditto.
5359 * regcache.c: Ditto.
5360 * regcache.h: Ditto.
5361 * remote.c: Ditto.
5362 * remote-fileio.c: Ditto.
5363 * remote-fileio.h: Ditto.
5364 * remote.h: Ditto.
5365 * remote-m32r-sdi.c: Ditto.
5366 * remote-mips.c: Ditto.
5367 * remote-sim.c: Ditto.
5368 * rs6000-aix-tdep.c: Ditto.
5369 * rs6000-nat.c: Ditto.
5370 * rs6000-tdep.c: Ditto.
5371
5372 2011-01-10 Michael Snyder <msnyder@vmware.com>
5373
5374 * charset.c (validate): Internationalization.
5375 * coffread.c (read_one_sym): Ditto.
5376 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5377 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5378 * inflow.c (new_tty): Ditto.
5379 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5380 * m32c-tdep.c (m32c_return_value): Ditto.
5381 * mep-tdep.c (mep_store_return_value): Ditto.
5382 * score-tdep.c (score7_fetch_insn): Ditto.
5383 * ser-mingw.c (pipe_windows_open): Ditto.
5384 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5385 * spu-tdep.c (spu_register_type): Ditto.
5386 * tracepoint.c (trace_find_command): Ditto.
5387 * valarith.c (value_pos): Ditto.
5388
5389 2011-01-10 Joel Brobecker <brobecker@adacore.com>
5390
5391 * ada-valprint.c (printstr): Minor comment reformatting.
5392
5393 2011-01-08 Michael Snyder <msnyder@vmware.com>
5394
5395 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5396 markup.
5397
5398 2011-01-08 Michael Snyder <msnyder@vmware.com>
5399
5400 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5401 * hppa-hpux-tdep.c: Ditto.
5402 * hppa-linux-nat.c: Ditto.
5403 * hppa-linux-tdep.c: Ditto.
5404 * hppanbsd-tdep.c: Ditto.
5405 * hppa-tdep.c: Ditto.
5406 * hppa-tdep.h: Ditto.
5407 * hpux-thread.c: Ditto.
5408 * i386-cygwin-tdep.c: Ditto.
5409 * i386-darwin-nat.c: Ditto.
5410 * i386gnu-nat.c: Ditto.
5411 * i386-linux-nat.c: Ditto.
5412 * i386-linux-tdep.c: Ditto.
5413 * i386-nat.c: Ditto.
5414 * i386-nat.h: Ditto.
5415 * i386nbsd-tdep.c: Ditto.
5416 * i386-sol2-nat.c: Ditto.
5417 * i386-stub.c: Ditto.
5418 * i386-tdep.c: Ditto.
5419 * i386-tdep.h: Ditto.
5420 * i387-tdep.c: Ditto.
5421 * ia64-linux-nat.c: Ditto.
5422 * ia64-linux-tdep.c: Ditto.
5423 * ia64-tdep.c: Ditto.
5424 * infcall.c: Ditto.
5425 * infcall.h: Ditto.
5426 * infcmd.c: Ditto.
5427 * inferior.c: Ditto.
5428 * inferior.h: Ditto.
5429 * infloop.c: Ditto.
5430 * inflow.c: Ditto.
5431 * infrun.c: Ditto.
5432 * interps.c: Ditto.
5433 * interps.h: Ditto.
5434 * iq2000-tdep.c: Ditto.
5435 * irix5-nat.c: Ditto.
5436 * jit.c: Ditto.
5437 * jit.h: Ditto.
5438 * jv-exp.y: Ditto.
5439 * jv-lang.c: Ditto.
5440 * jv-lang.h: Ditto.
5441 * jv-typeprint.c: Ditto.
5442 * jv-valprint.c: Ditto.
5443 * language.c: Ditto.
5444 * language.h: Ditto.
5445 * linespec.c: Ditto.
5446 * linux-fork.c: Ditto.
5447 * linux-nat.c: Ditto.
5448 * linux-thread-db.c: Ditto.
5449 * lm32-tdep.c: Ditto.
5450
5451 2011-01-08 Michael Snyder <msnyder@vmware.com>
5452
5453 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5454 * m2-lang.c: Ditto.
5455 * m2-typeprint.c: Ditto.
5456 * m2-valprint.c: Ditto.
5457 * m32c-tdep.c: Ditto.
5458 * m32r-linux-nat.c: Ditto.
5459 * m32r-rom.c: Ditto.
5460 * m32r-tdep.c: Ditto.
5461 * m32r-tdep.h: Ditto.
5462 * m68hc11-tdep.c: Ditto.
5463 * m58klinux-nat.c: Ditto.
5464 * m68k-tdep.c: Ditto.
5465 * m88k-tdep.c: Ditto.
5466 * m88k-tdep.h: Ditto.
5467 * machoread.c: Ditto.
5468 * macrocmd.c: Ditto.
5469 * macroexp.c: Ditto.
5470 * macrotab.c: Ditto.
5471 * main.c: Ditto.
5472 * maint.c: Ditto.
5473 * mdebugread.c: Ditto.
5474 * mdebugread.h: Ditto.
5475 * memattr.c: Ditto.
5476 * memattr.h: Ditto.
5477 * memory-map.h: Ditto.
5478 * mep-tdep.c: Ditto.
5479 * microblaze-rom.c: Ditto.
5480 * microblaze-tdep.c: Ditto.
5481 * minsyms.c: Ditto.
5482 * mips-irix-tdep.c: Ditto.
5483 * mips-linux-nat.c: Ditto.
5484 * mips-linux-tdep.c: Ditto.
5485 * mips-linux-tdep.h: Ditto.
5486 * mipsnbsd-nat.c: Ditto.
5487 * mipsnbsd-tdep.c: Ditto.
5488 * mipsread.c: Ditto.
5489 * mips-tdep.c: Ditto.
5490 * mips-tdep.h: Ditto.
5491 * mn10300-linux-tdep.c: Ditto.
5492 * mn10300-tdep.c: Ditto.
5493 * mn10300-tdep.h: Ditto.
5494 * monitor.c: Ditto.
5495 * monitor.h: Ditto.
5496 * moxie-tdep.c: Ditto.
5497 * moxie-tdep.h: Ditto.
5498 * mt-tdep.c: Ditto.
5499
5500 2011-01-08 Mike Frysinger <vapier@gentoo.org>
5501
5502 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5503
5504 2011-01-08 Robert Millan <rmh@gnu.org>
5505
5506 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5507
5508 2011-01-07 Michael Snyder <msnyder@vmware.com>
5509
5510 * charset.c (_initialize_charset): Fix typo in string.
5511
5512 2011-01-07 Michael Snyder <msnyder@vmware.com>
5513
5514 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5515 for i18n.
5516 * tui/tui-layout.c (tui_set_layout_for_display_command):
5517 Split line so that operator goes to beginning of line.
5518 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5519 assignment out of if statement.
5520
5521 2011-01-07 Michael Snyder <msnyder@vmware.com>
5522
5523 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5524 * ada-lang.h: Ditto.
5525 * ada-tasks.c: Ditto.
5526 * ada-valprint.c: Ditto.
5527 * aix-threads.c: Ditto.
5528 * alpha-linux-nat.c: Ditto.
5529 * alpha-linux-tdep.c: Ditto.
5530 * alpha-mdebug-tdep.c: Ditto.
5531 * alpha-nat.c: Ditto.
5532 * alpha-osf1-tdep.c: Ditto.
5533 * alpha-tdep.c: Ditto.
5534 * alphabsd-nat.c: Ditto.
5535 * alphabsd-tdep.c: Ditto.
5536 * amd64-darwin-tdep.c: Ditto.
5537 * amd64-linux-nat.c: Ditto.
5538 * amd64-linux-tdep.c: Ditto.
5539 * amd64-sol2-tdep.c: Ditto.
5540 * amd64-tdep.c: Ditto.
5541 * amd64-fbsd-tdep.c: Ditto.
5542 * amd64-nbsd-tdep.c: Ditto.
5543 * amd64-obsd-tdep.c: Ditto.
5544 * amd64-linux-nat.c: Ditto.
5545 * amd64-linux-tdep.c: Ditto.
5546 * arm-tdep.c: Ditto.
5547 * arm-tdep.h: Ditto.
5548 * armnbsd-nat.c: Ditto.
5549 * avr-tdep.c: Ditto.
5550 * bfin-tdep.c: Ditto.
5551 * bsd-kvm.c: Ditto.
5552 * c-typeprintc: Ditto.
5553 * c-valprint.c: Ditto.
5554 * coff-pe-read.h: Ditto.
5555 * coffreead.c: Ditto.
5556 * cris-tdep.c: Ditto.
5557 * d-lang.c: Ditto.
5558 * darwin-nat-info.c: Ditto.
5559 * darwin-nat.c: Ditto.
5560 * dbug-rom.c: Ditto.
5561 * dbxread.c: Ditto.
5562 * dcache.c: Ditto.
5563 * dcache.h: Ditto.
5564 * dec-thread.c: Ditto.
5565 * defs.h: Ditto.
5566 * demangle.c: Ditto.
5567 * dicos-tdep.c: Ditto.
5568 * dictionary.c: Ditto.
5569 * dictionary.h: Ditto.
5570 * dink32-rom.c: Ditto.
5571 * disasm.c: Ditto.
5572 * doublest.c: Ditto.
5573 * dsrec.c: Ditto.
5574 * dummy-frame.c: Ditto.
5575 * dwarf2-frame.c: Ditto.
5576 * dwarf2expr.c: Ditto.
5577 * dwarf2loc.c: Ditto.
5578 * dwarf2read.c: Ditto.
5579 * elfread.c: Ditto.
5580 * environ.c: Ditto.
5581 * eval.c: Ditto.
5582 * event-top.h: Ditto.
5583 * exceptions.c: Ditto.
5584 * exceptions.h: Ditto.
5585 * exec.c: Ditto.
5586 * expprint.c: Ditto.
5587 * expression.h: Ditto.
5588 * f-exp.y: Ditto.
5589 * f-lang.c: Ditto.
5590 * f-lang.h: Ditto.
5591 * f-typeprint.c: Ditto.
5592 * f-valprint.c: Ditto.
5593 * fbsd-nat.c: Ditto.
5594 * findvar.c: Ditto.
5595 * fork-child.c: Ditto.
5596 * frame.c: Ditto.
5597 * frame.h: Ditto.
5598 * frv-linux-tdep.c: Ditto.
5599 * frv-tdep.c: Ditto.
5600 * gcore.c: Ditto.
5601 * gdb-stabs.h: Ditto.
5602 * gdb_assert.h: Ditto.
5603 * gdb_string.h: Ditto.
5604 * gdb_thread_db.h: Ditto.
5605 * gdb_wait.h: Ditto.
5606 * gdbarch.sh: Ditto.
5607 * gdbcore.h: Ditto.
5608 * gdbthread.h: Ditto.
5609 * gdbtypes.c: Ditto.
5610 * gdbtypes.h: Ditto.
5611 * gnu-nat.c: Ditto.
5612 * gnu-nat.h: Ditto.
5613 * gnu-v2-abi.c: Ditto.
5614 * gnu-v3-abi.c: Ditto.
5615 * go32-nat.c: Ditto.
5616 * gdbarch.c: Regenerate.
5617 * gdbarch.h: Regenerate.
5618
5619 2011-01-07 Michael Snyder <msnyder@vmware.com>
5620
5621 * ax-gdb.c: Adjust some long output strings.
5622 * breakpoint.c: Ditto.
5623 * charset.c: Ditto.
5624 * cp-abi.c: Ditto.
5625 * infcall.c: Ditto.
5626 * infrun.c: Ditto.
5627 * linux-nat.c: Ditto.
5628 * solib-pa64.c: Ditto.
5629 * solib-som.c: Ditto.
5630
5631 2011-01-06 Tom Tromey <tromey@redhat.com>
5632
5633 PR python/12367:
5634 * NEWS: Add item.
5635 * python/python.c (GdbMethods): Add "newest_frame" method.
5636 * python/python-internal.h (gdbpy_newest_frame): Declare.
5637 * python/py-frame.c (gdbpy_newest_frame): New function.
5638
5639 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5640
5641 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5642 * jit.c (jit_debug): New variable.
5643 (show_jit_debug): New function.
5644 (struct target_buffer): Use ULONGEST.
5645 (bfd_open_from_target_memory): Likewise.
5646 (jit_register_code, jit_inferior_init): Add debug output.
5647 (_initialize_jit): Register "debug jit" command.
5648
5649 2011-01-06 Tom Tromey <tromey@redhat.com>
5650
5651 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5652 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5653 and ARCH_FRAME.
5654
5655 2011-01-06 Tom Tromey <tromey@redhat.com>
5656
5657 * python/py-frame.c (frapy_block): Use get_frame_block.
5658
5659 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5660
5661 Do not stop on SIGPRIO signals by default
5662 * infrun.c (_initialize_infrun): Unset signal_stop and
5663 signal_print for TARGET_SIGNAL_PRIO.
5664
5665 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5666
5667 * ada-tasks.c: Fix style violation in comment.
5668
5669 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5670
5671 * linespec.c (decode_compound, find_method): Remove trailing \n
5672 at end of error string.
5673 * solib-irix.c (irix_current_sos): Likewise.
5674 * varobj.c (uninstall_variable): Likewise.
5675
5676 2011-01-06 Joel Brobecker <brobecker@adacore.com>
5677
5678 * copyright.py: New script.
5679 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5680 Launch emacs without exec'ing. Call copyright.py afterwards.
5681
5682 2011-01-05 Michael Snyder <msnyder@vmware.com>
5683
5684 * addrmap.c: Shorten lines of >= 80 columns.
5685 * arch-utils.c: Ditto.
5686 * arch-utils.h: Ditto.
5687 * ax-gdb.c: Ditto.
5688 * ax-general.c: Ditto.
5689 * bcache.c: Ditto.
5690 * blockframe.c: Ditto.
5691 * breakpoint.c: Ditto.
5692 * buildsym.c: Ditto.
5693 * c-lang.c: Ditto.
5694 * c-typeprint.c: Ditto.
5695 * charset.c: Ditto.
5696 * coffread.c: Ditto.
5697 * command.h: Ditto.
5698 * corelow.c: Ditto.
5699 * cp-abi.c: Ditto.
5700 * cp-namespace.c: Ditto.
5701 * cp-support.c: Ditto.
5702 * dbug-rom.c: Ditto.
5703 * dbxread.c: Ditto.
5704 * defs.h: Ditto.
5705 * dfp.c: Ditto.
5706 * dfp.h: Ditto.
5707 * dictionary.c: Ditto.
5708 * disasm.c: Ditto.
5709 * doublest.c: Ditto.
5710 * dwarf2-frame.c: Ditto.
5711 * dwarf2expr.c: Ditto.
5712 * dwarf2loc.c: Ditto.
5713 * dwarf2read.c: Ditto.
5714 * elfread.c: Ditto.
5715 * eval.c: Ditto.
5716 * event-loop.c: Ditto.
5717 * event-loop.h: Ditto.
5718 * exceptions.h: Ditto.
5719 * exec.c: Ditto.
5720 * expprint.c: Ditto.
5721 * expression.h: Ditto.
5722 * f-lang.c: Ditto.
5723 * f-valprint.c: Ditto.
5724 * findcmd.c: Ditto.
5725 * frame-base.c: Ditto.
5726 * frame-unwind.c: Ditto.
5727 * frame-unwind.h: Ditto.
5728 * frame.c: Ditto.
5729 * frame.h: Ditto.
5730 * gcore.c: Ditto.
5731 * gdb-stabs.h: Ditto.
5732 * gdb_assert.h: Ditto.
5733 * gdb_dirent.h: Ditto.
5734 * gdb_obstack.h: Ditto.
5735 * gdbcore.h: Ditto.
5736 * gdbtypes.c: Ditto.
5737 * gdbtypes.h: Ditto.
5738 * inf-ttrace.c: Ditto.
5739 * infcall.c: Ditto.
5740 * infcmd.c: Ditto.
5741 * inflow.c: Ditto.
5742 * infrun.c: Ditto.
5743 * inline-frame.h: Ditto.
5744 * language.c: Ditto.
5745 * language.h: Ditto.
5746 * libunwind-frame.c: Ditto.
5747 * libunwind-frame.h: Ditto.
5748 * linespec.c: Ditto.
5749 * linux-nat.c: Ditto.
5750 * linux-nat.h: Ditto.
5751 * linux-thread-db.c: Ditto.
5752 * machoread.c: Ditto.
5753 * macroexp.c: Ditto.
5754 * macrotab.c: Ditto.
5755 * main.c: Ditto.
5756 * maint.c: Ditto.
5757 * mdebugread.c: Ditto.
5758 * memattr.c: Ditto.
5759 * minsyms.c: Ditto.
5760 * monitor.c: Ditto.
5761 * monitor.h: Ditto.
5762 * objfiles.c: Ditto.
5763 * objfiles.h: Ditto.
5764 * osabi.c: Ditto.
5765 * p-typeprint.c: Ditto.
5766 * p-valprint.c: Ditto.
5767 * parse.c: Ditto.
5768 * printcmd.c: Ditto.
5769 * proc-events.c: Ditto.
5770 * procfs.c: Ditto.
5771 * progspace.c: Ditto.
5772 * progspace.h: Ditto.
5773 * psympriv.h: Ditto.
5774 * psymtab.c: Ditto.
5775 * record.c: Ditto.
5776 * regcache.c: Ditto.
5777 * regcache.h: Ditto.
5778 * remote-fileio.c: Ditto.
5779 * remote.c: Ditto.
5780 * ser-mingw.c: Ditto.
5781 * ser-tcp.c: Ditto.
5782 * ser-unix.c: Ditto.
5783 * serial.c: Ditto.
5784 * serial.h: Ditto.
5785 * solib-frv.c: Ditto.
5786 * solib-irix.c: Ditto.
5787 * solib-osf.c: Ditto.
5788 * solib-pa64.c: Ditto.
5789 * solib-som.c: Ditto.
5790 * solib-sunos.c: Ditto.
5791 * solib-svr4.c: Ditto.
5792 * solib-target.c: Ditto.
5793 * solib.c: Ditto.
5794 * somread.c: Ditto.
5795 * source.c: Ditto.
5796 * stabsread.c: Ditto.
5797 * stabsread.c: Ditto.
5798 * stack.c: Ditto.
5799 * stack.h: Ditto.
5800 * symfile-mem.c: Ditto.
5801 * symfile.c: Ditto.
5802 * symfile.h: Ditto.
5803 * symmisc.c: Ditto.
5804 * symtab.c: Ditto.
5805 * symtab.h: Ditto.
5806 * target-descriptions.c: Ditto.
5807 * target-memory.c: Ditto.
5808 * target.c: Ditto.
5809 * target.h: Ditto.
5810 * terminal.h: Ditto.
5811 * thread.c: Ditto.
5812 * top.c: Ditto.
5813 * tracepoint.c: Ditto.
5814 * tracepoint.h: Ditto.
5815 * ui-file.c: Ditto.
5816 * ui-file.h: Ditto.
5817 * ui-out.h: Ditto.
5818 * user-regs.c: Ditto.
5819 * user-regs.h: Ditto.
5820 * utils.c: Ditto.
5821 * valarith.c: Ditto.
5822 * valops.c: Ditto.
5823 * valprint.c: Ditto.
5824 * valprint.h: Ditto.
5825 * value.c: Ditto.
5826 * varobj.c: Ditto.
5827 * varobj.h: Ditto.
5828 * vec.h: Ditto.
5829 * xcoffread.c: Ditto.
5830 * xcoffsolib.c: Ditto.
5831 * xcoffsolib.h: Ditto.
5832 * xml-syscall.c: Ditto.
5833 * xml-tdesc.c: Ditto.
5834
5835 2011-01-05 Michael Snyder <msnyder@vmware.com>
5836
5837 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5838 * cli/cli-decode.c: Ditto.
5839 * cli/cli-dump.c: Ditto.
5840 * cli/cli-logging.c: Ditto.
5841 * cli/cli-script.c: Ditto.
5842 * cli/cli-setshow.c: Ditto.
5843 * common/signals.c: Ditto.
5844 * mi/mi-cmd-break.c: Ditto.
5845 * mi/mi-cmd-disas.c: Ditto.
5846 * mi/mi-cmd-stack.c: Ditto.
5847 * mi/mi-cmd-var.c: Ditto.
5848 * mi/mi-cmds.c: Ditto.
5849 * mi/mi-common.h: Ditto.
5850 * mi/mi-console.c: Ditto.
5851 * mi/mi-interp.c: Ditto.
5852 * mi/mi-main.c: Ditto.
5853 * osf-share/cma_attr.c: Ditto.
5854 * osf-share/cma_deb_core.h: Ditto.
5855 * osf-share/cma_debug_client.h: Ditto.
5856 * osf-share/cma_handle.h: Ditto.
5857 * osf-share/cma_mutex.h: Ditto.
5858 * osf-share/cma_stack_int.h: Ditto.
5859 * osf-share/cma_tcb_defs.h: Ditto.
5860 * python/py-auto-load.c: Ditto.
5861 * python/py-breakpoint.c: Ditto.
5862 * python/py-cmd.c: Ditto.
5863 * python/py-frame.c: Ditto.
5864 * python/py-objfile.c: Ditto.
5865 * python/py-param.c: Ditto.
5866 * python/py-progspace.c: Ditto.
5867 * python/py-symbol.c: Ditto.
5868 * python/py-value.c: Ditto.
5869 * python/python-internal.h: Ditto.
5870 * python/python.c: Ditto.
5871 * tui/tui-data.c: Ditto.
5872 * tui/tui-disasm.c: Ditto.
5873 * tui/tui-hooks.c: Ditto.
5874 * tui/tui-io.c: Ditto.
5875 * tui/tui-layout.c: Ditto.
5876 * tui/tui-regs.c: Ditto.
5877 * tui/tui-source.c: Ditto.
5878 * tui/tui-stack.c: Ditto.
5879 * tui/tui-win.c: Ditto.
5880 * tui/tui-windata.c: Ditto.
5881 * tui/tui-winsource.c: Ditto.
5882
5883 2011-01-05 Joel Brobecker <brobecker@adacore.com>
5884
5885 * configure.ac, gdb.1: Copyright year update.
5886
5887 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5888
5889 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5890 this_pc_in_block, morestack_msym and morestack_name. Check for
5891 "__morestack" minimal symbol there.
5892
5893 2011-01-03 Joel Brobecker <brobecker@adacore.com>
5894
5895 * symfile.c (find_sym_fns): Add call to dont_repeat.
5896
5897 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5898
5899 Copyright year update in most files (performed by copyright.sh).
5900
5901 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5902
5903 * top.c (print_gdb_version): Update copyright year in version output.
5904
5905 For older changes see ChangeLog-2010.
5906 \f
5907 Local Variables:
5908 mode: change-log
5909 left-margin: 8
5910 fill-column: 74
5911 version-control: never
5912 coding: utf-8
5913 End:
This page took 0.172748 seconds and 4 git commands to generate.