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