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