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