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