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