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