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