1 2011-11-22 Tom Tromey <tromey@redhat.com>
4 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
5 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
6 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
7 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
8 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
9 (print_it_catch_syscall, print_it_catch_exec)
10 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
11 (bpstat_print): Add 'kind' argument. Handle
12 TARGET_WAITKIND_LOADED.
13 * infrun.c (normal_stop): Update for bpstat_print change. Don't
14 handle TARGET_WAITKIND_LOADED here.
15 * breakpoint.h (bpstat_print): Update.
17 2011-11-22 Tom Tromey <tromey@redhat.com>
19 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
21 2011-11-22 Tom Tromey <tromey@redhat.com>
23 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
24 Use static_assert to check the size of
25 async_reason_string_lookup.
26 * common/gdb_assert.h (static_assert): New macro.
28 2011-11-22 Alan Modra <amodra@gmail.com>
30 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
31 destination calculation. Don't expect >> to sign extend. Don't
32 add a break if branch lands inside the sequence anywhere.
34 2011-11-21 Keith Seitz <keiths@redhat.com>
36 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
37 -var-evaluate-expression of an enumeration and fix expected result.
38 * gdb.mi/mi2-varvdisplay.exp: Likewise.
40 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
42 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
43 the case where osdata->items is empty. Rename column names to a
44 canonical form to avoid problems with unusual column names.
46 2011-11-21 Yao Qi <yao@codesourcery.com>
48 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
50 2011-11-20 Stan Shebs <stan@codesourcery.com>
52 * NEWS: Mention tracepoint additions.
53 * breakpoint.h (struct tracepoint): New field traceframe_usage.
54 * breakpoint.c (print_one_breakpoint_location): Identify
55 tracepoints as such when reporting hit counts, report
57 (create_tracepoint_from_upload): Copy status info.
58 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
59 add fields user_name, notes, start_time, stop_time.
60 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
61 * tracepoint.c (trace_user): New global.
62 (trace_notes): New global.
63 (trace_stop_notes): New global.
64 (start_tracing): Add argument and trace note handling.
65 (stop_tracing): Ditto.
66 (trace_start_command): Add notes argument.
67 (trace_stop_command): Ditto.
68 (trace_status_command): Report additional status info.
69 (trace_status_mi): Similarly.
70 (trace_save): Update, record tracepoint status.
71 (set_disconnected_tracing): Call target method directly.
72 (send_disconnected_tracing_value): Remove.
73 (set_trace_user): New function.
74 (set_trace_notes): New function.
75 (set_trace_stop_notes): New function.
76 (parse_trace_status): Handle additional status.
77 (parse_tracepoint_status): New function.
78 (parse_tracepoint_definition): Call it.
79 (tfile_get_tracepoint_status): New function.
80 (init_tfile_ops): Use it.
81 (_initialize_tracepoint): Add new setshows.
82 * target.h (struct target_ops): New methods to_get_tracepoint_status
83 and to_set_trace_notes.
84 (target_get_tracepoint_status): New macro.
85 (target_set_trace_notes): New macro.
86 * target.c (update_current_target): Add new methods.
87 * remote.c (remote_get_tracepoint_status): New function.
88 (remote_set_trace_notes): New function.
89 (init_remote_ops): Add them.
90 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
91 (mi_cmd_trace_stop): Ditto.
93 2011-11-20 Sanjoy Das <sdas@igalia.com>
95 * jit.c: Include regcache.h.
96 (jit_gdbarch_data, jit_frame_unwind): New static variables.
97 (jit_unwind_reg_set_impl, free_reg_value_impl)
98 (jit_unwind_reg_get_impl, jit_frame_sniffer)
99 (jit_frame_unwind_stop_reason, jit_frame_this_id)
100 (jit_frame_prev_register, jit_dealloc_cache)
101 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
102 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
103 jit_prepend_unwinder.
104 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
106 2011-11-20 Sanjoy Das <sdas@igalia.com>
108 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
109 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
110 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
111 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
112 (finalize_symtab, jit_object_close_impl)
113 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
114 (free_objfile_data): New functions.
115 (_initialize_jit): Register jit_objfile_data with a proper cleanup
118 2011-11-20 Sanjoy Das <sdas@igalia.com>
120 * jit.c: Include gdb-dlfcn.h.
121 (loaded_jit_reader, reader_init_fn_sym): New static variables.
122 (jit_reader_load, jit_reader_load_command)
123 (jit_reader_unload_command): New functions.
124 (_initialize_jit): Add commands "jit-reader-load" and
127 2011-11-20 Sanjoy Das <sdas@igalia.com>
129 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
130 * config.in: Add new #define HAVE_LIBDL.
131 * configure.ac: Add check for -ldl.
132 * configure: Re-generated by autoconf.
133 * gdb-dlfcn.c: New file.
134 * gdb-dlfcn.h: New file.
136 2011-11-20 Sanjoy Das <sdas@igalia.com>
138 * config.in: Add new #defines: JIT_READER_DIR and
139 JIT_READER_DIR_RELOCATABLE.
140 * configure.ac: New GDB directory entry for jit-reader-dir.
141 * configure: Re-generated by autoconf.
142 * jit.c: New static variable: const char *jit_reader_dir.
143 (_initialize_jit): Relocate jit_reader_dir.
145 2011-11-20 Sanjoy Das <sdas@igalia.com>
147 * Makefile.in: Add jit-reader.h as a header. Have it installed in
149 * configure.ac: Generate a correct value for TARGET_PTR for
150 jit-reader.h. Tell configure to generate jit-reader.h from
152 * configure: Re-generated by autoconf.
153 * jit-reader.in: New file.
154 * jit.c: Include jit-reader.h.
156 2011-11-20 Sanjoy Das <sdas@igalia.com>
158 * MAINTAINERS (Write After Approval): Add myself to the list.
160 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
162 * findvar.c (read_frame_register_value): Respect value_offset
163 of the register value. Remove big-endian special case.
165 2011-11-18 Tom Tromey <tromey@redhat.com>
168 * remote.c (putpkt_for_catch_errors): New function.
169 (remote_kill): Use it.
171 2011-11-18 Yao Qi <yao@codesourcery.com>
173 * breakpoint.c (create_breakpoint): Produce query message according to
175 Allocate tracepoint per correct type.
176 Don't check SALs for pending fast tracepoints.
177 * tracepoint.c (process_tracepoint_on_disconnect): New.
178 (disconnect_tracing): Call process_tracepoint_on_disconnect.
180 2011-11-18 Yao Qi <yao@codesourcery.com>
182 * breakpoint.c (install_breakpoint): Add one more parameter so that
183 update_global_location_list is called conditionally.
184 (create_fork_vfork_event_catchpoint): Update.
185 (create_syscall_event_catchpoint): Update.
186 (create_breakpoint_sal): Update.
187 (create_breakpoint_sal): Update. Call do_cleanups before
189 * ada-lang.c (create_ada_exception_catchpoint): Update.
190 * breakpoint.h (install_breakpoint): Update declaration.
192 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
194 * spu-tdep.c (spu_return_value): Fix handling of
195 TYPE_CALLING_CONVENTION annotation.
197 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
199 * skip.c (skip_function_command): Work around uninitialized
202 2011-11-16 David S. Miller <davem@davemloft.net>
204 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
205 'tv_usec' to long for printf since these fields have a type which
208 2011-11-15 Doug Evans <dje@google.com>
210 * buildsym.c (add_symbol_to_list): Delete outdated comment.
212 2011-11-15 Paul Koning <paul_koning@dell.com>
214 * python/py-type.c (typy_get_composite): New function.
215 (typy_nonzero): New function.
216 (typy_values): Rename from typy_fields.
217 (typy_fields): New function.
218 (typy_length): Raise exception if not struct, union, or enum type.
219 (typy_getitem): Ditto.
220 (typy_has_key): Ditto.
221 (typy_make_iter): Ditto.
223 2011-11-15 Doug Evans <dje@google.com>
225 * NEWS: Mention new parameter basenames-may-differ.
226 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
227 ! basenames_may_differ.
228 * psymtab.c (lookup_partial_symtab): Ditto.
229 * symtab.c (lookup_symtab): Ditto.
230 (basenames_may_differ): New global.
231 (_initialize_symtab): New parameter basenames-may-differ.
232 * symtab.h (basenames_may_differ): Declare.
234 2011-11-15 Pedro Alves <pedro@codesourcery.com>
235 Luis Machado <lgustavo@codesourcery.com>
237 * auxv.c: Include observer.h.
238 (auxv_inferior_data_cleanup): New.
239 (invalidate_auxv_cache_inf): New.
240 (invalidate_auxv_cache): New.
241 (get_auxv_inferior_data): New.
242 (auxv_inferior_data): New static global.
243 (auxv_info): New structure.
244 (target_auxv_search): Use get_auxv_inferior_data instead of
245 target_read_alloc and don't free cached buffers.
246 (fprint_target_auxv): Likewise
247 (_initialize_auxv): Register per-inferior auxv cache and register
248 observers to invalidate auxv cache when needed.
250 2011-11-14 Doug Evans <dje@google.com>
252 Make "!" an alias for "shell".
254 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
255 adding "!" command, always add it.
256 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
257 command of length one.
259 2011-11-14 Stan Shebs <stan@codesourcery.com>
260 Kwok Cheung Yeung <kcy@codesourcery.com>
262 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
263 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
264 the minimum instruction size for fast tracepoints.
265 * target.h (struct target_ops): Add new method
266 to_get_min_fast_tracepoint_insn_len.
267 (target_get_min_fast_tracepoint_insn_len): New.
268 * target.c (update_current_target): Set up new target operation.
269 * remote.c (remote_write_bytes_aux): Fix typo.
270 (remote_get_min_fast_tracepoint_insn_len): New.
271 (init_remote_ops): Initialize new field.
273 2011-11-14 Tom Tromey <tromey@redhat.com>
275 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
276 (encode_actions): Likewise.
278 2011-11-14 Yao Qi <yao@codesourcery.com>
280 * remote.c (struct remote_state): <install_in_trace> new field.
281 (PACKET_InstallInTrace): New enum value.
282 (remote_install_in_trace_feature): Support InstallInTrace.
283 (remote_supports_install_in_trace): Likewise.
284 (remote_protocol_features): Likewise.
285 (_initialize_remote): Likewise.
286 (remote_can_download_tracepoint): New.
287 * target.h (struct target): New field
288 `to_can_download_tracepoint'.
289 (target_can_download_tracepoint): New macro.
290 * target.c (update_current_target): Update.
291 * breakpoint.h (struct bp_location): Add comment on field
293 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
295 (remove_breakpoints): Don't remove tracepoints.
296 (tracepoint_locations_match ): New.
297 (breakpoint_locations_match): Call it.
298 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
299 (download_tracepoint_locations): New.
300 (update_global_location_list): Call it.
301 * tracepoint.c (find_matching_tracepoint): Delete.
302 (find_matching_tracepoint_location): Renamed from
303 find_matching_tracepoint. Return bp_location rather than
305 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
308 2011-11-14 Yao Qi <yao@codesourcery.com>
310 * target.h (struct target): <to_download_tracepoint> Change type
311 of parameter from tracepoint to bp_location.
312 * target.c (update_current_target): Update.
313 * tracepoint.c (start_tracing): Update.
314 * remote.c (remote_download_tracepoint): Remove loop for each location
317 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
319 * i386-nat.c (i386_insert_hw_breakpoint): Call
320 i386_update_inferior_debug_regs.
321 (i386_remove_hw_breakpoint): Likewise.
323 2011-11-14 Yao Qi <yao@codesourcery.com>
325 * breakpoint.c (init_raw_breakpoint): Call
326 add_location_to_breakpoint to replace duplicated code.
327 (add_location_to_breakpoint): Adjust the breakpoint's
328 address prior to allocating a location.
330 2011-11-12 Matt Rice <ratmice@gmail.com>
332 * macrocmd.c (macro_no_macro_info): New function.
333 (macro_expand_command): Use macro_no_macro_info.
334 (macro_expand_once_command): Ditto.
335 (info_macro_command): Add argument processing,
336 move info_definitions_command here.
337 (_initialize_macrocmd): Remove info definitions command.
338 Add arguments to info macro help text.
339 * NEWS: Replace info definitions command with new info macro options.
341 2011-11-11 Keith Seitz <keiths@redhat.com>
344 * linespec.c (locate_first_half): Keep ':' if it looks
345 like it could be part of a Windows path starting with
348 2011-11-10 Pedro Alves <pedro@codesourcery.com>
350 * linux-nat.c (linux_nat_wait): Don't force waking up the event
351 loop when returning a TARGET_WAITKIND_NO_RESUMED.
353 2011-11-10 Pedro Alves <pedro@codesourcery.com>
355 * target.c (target_waitstatus_to_string): Handle
356 TARGET_WAITKIND_NO_RESUMED.
358 2011-11-10 Doug Evans <dje@google.com>
360 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
362 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
363 (map_partial_symbol_filenames): Ditto. All callers updated.
364 * psymtab.h (map_partial_symbol_filenames): Update prototype.
365 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
366 parameter need_fullname.
368 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
369 * source.c (symtab_to_fullname): Ditto.
371 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
372 * gdb-demangle.h: ... here. New file.
373 * demangle.c: #include "gdb-demangle.h".
374 (_initialize_demangler): Use initialize_file_ftype for prototype.
375 Move "set demangle" and "set asm-demangle" parameters here from utils.c
376 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
378 * utils.c: Update. #include "gdb-demangle.h".
379 * symtab.h (asm_demangle): Delete.
380 (demangle): Move declaration next to use.
381 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
382 * dwarf2read.c: #include "gdb-demangle.h".
383 * gnu-v2-abi.c: Ditto.
384 * jv-typeprint.c: Ditto.
385 * mdebugread.c: Ditto.
386 * p-typeprint.c: Ditto.
387 * stabsread.c: Ditto.
389 (asm_demangle): Delete declaration.
390 * tui/tui-stack.c: #include "gdb-demangle.h".
392 * python/py-type.c (typy_fields_items): Call check_typedef.
394 2011-11-10 Joel Brobecker <brobecker@adacore.com>
396 * findvar.c (read_frame_register_value): Read the correct bytes
397 from registers on big-endian architectures.
399 2011-11-10 Tom Tromey <tromey@redhat.com>
401 * procfs.c (load_syscalls): Make a cleanup.
402 (open_procinfo_files): fd==0 is ok.
404 2011-11-10 Joel Brobecker <brobecker@adacore.com>
406 * procfs.c (iterate_over_mappings): Call do_cleanups before
409 2011-11-09 Doug Evans <dje@google.com>
411 * gdbtypes.c (check_typedef): Document that this function can
414 2011-11-09 Tom Tromey <tromey@redhat.com>
417 * valops.c (value_full_object): Return early if real type is
418 smaller than the enclosing type.
420 2011-11-08 Yao Qi <yao@codesourcery.com>
422 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
424 2011-11-08 Meador Inge <meadori@codesourcery.com>
426 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
427 register when the frame can't be determined.
428 * arm-tdep.c (arm_analyze_prologue): Ditto.
430 2011-11-07 Stan Shebs <stan@codesourcery.com>
432 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
434 2011-11-07 Joel Brobecker <brobecker@adacore.com>
436 * infrun.c (handle_inferior_event): Minor reformatting.
438 2011-11-05 Doug Evans <dje@google.com>
440 * source.c (forget_cached_source_info_for_objfile): Move call to
441 objfile->sf->qf->forget_cached_source_info outside of
442 ALL_OBJFILE_SYMTABS loop.
443 (forget_cached_source_info): Delete unused variable `s'.
445 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
447 * i386-nat.c (dr_ref_count): Remove unused variable.
449 2011-11-05 Doug Evans <dje@google.com>
451 * main.c (captured_main): Set lim_at_start before calling
452 make_command_stats_cleanup.
454 2011-11-04 Doug Evans <dje@google.com>
456 * utils.c: #include "timeval-utils.h".
457 (cmd_stats): Rename start_time to start_cpu_time.
458 New member start_wall_time.
459 (report_command_stats): Report wall time.
460 (make_command_stats_cleanup): Record start wall time.
462 2011-11-04 Tom Tromey <tromey@redhat.com>
464 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
466 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
468 * coff-pe-read.c: Include defs.h before bfd.h.
470 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
474 * python/python.c (python_run_simple_file): Expand tilde in path.
476 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
480 * python/py-type.c (typy_lookup_type): Do not return a type in
481 an exception handler.
483 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
484 Eli Zaretskii <eliz@gnu.org>
486 * linux-nat.c (_initialize_linux_nat): Improve help
487 for `info proc stat', `info proc status', `info proc cwd',
488 `info proc cmdline' and `info proc exe'.
490 2011-11-02 Stan Shebs <stan@codesourcery.com>
492 String collection for tracepoints.
493 * NEWS: Mention string collection.
494 * common/ax.def (tracenz): New bytecode.
495 * ax-gdb.h (trace_string_kludge): Declare.
496 * ax-gdb.c: Include valprint.h and c-lang.h.
497 (trace_string_kludge): New global.
498 (gen_traced_pop): Add string case.
499 (agent_command): Add string case.
500 * tracepoint.h (decode_agent_options): Declare.
501 * tracepoint.c: Include cli-utils.h.
502 (decode_agent_options): New function.
503 (validate_actionline): Call it.
504 (encode_actions_1): Ditto.
505 * target.h (struct target_ops): New method to_supports_string_tracing.
506 (target_supports_string_tracing): New macro.
507 * target.c (update_current_target): Add to_supports_string_tracing.
508 * remote.c (struct remote_state): New field string_tracing.
509 (remote_string_tracing_feature): New function.
510 (remote_protocol_features): New feature tracenz.
511 (remote_supports_string_tracing): New function.
512 (init_remote_ops): Set to_supports_string_tracing.
514 2011-11-02 Pedro Alves <pedro@codesourcery.com>
515 Jan Kratochvil <jan.kratochvil@redhat.com>
517 * linux-nat.c: Include cli/cli-utils.h.
518 (enum info_proc_what): New.
519 (linux_nat_info_proc_cmd): Rename to ...
520 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
521 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
522 status_f and stat_f from WHAT. Throw error on extra parameters.
523 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
524 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
525 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
526 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
527 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
528 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
529 `info proc cmdline', `info proc exe' and `info proc all' as real
530 subcommands of `info proc'.
532 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
534 * Makefile.in: (SFILES): Add skip.c.
535 (HFILES_NO_SRCDIR): Add skip.h.
536 (COMMON_OBS): Add skip.o.
537 * skip.h, skip.c: New.
538 * breakpoint.h (set_default_breakpoint): Remove.
539 (get_sal_arch): Declare.
540 * breakpoint.c: Remove default_breakpoint_valid,
541 default_breakpoint_address, default_breakpoint_symtab,
542 default_breakpoint_line, default_breakpoint_pspace variables.
543 (get_sal_arch): Make public.
544 (set_default_breakpoint): Remove.
545 (parse_breakpoint_sals, create_breakpoint, clear_command,
546 decode_line_spec_1): Remove uses of default_breakpoint variables;
547 replaced with function calls into stack.c.
548 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
549 * cli/cli-cmds.c: Add skiplist.
550 (init_cmd_lists): Initialize skiplist.
551 (init_cli_cmds): Fix comment (classes of commands appear in
553 * infrun.c (handle_inferior_event): Add check that we don't step into
554 a function whose pc is marked for skip.
555 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
556 last_displayed_addr, last_displayed_symtab, last_displayed_line
558 (set_last_displayed_sal): New static function.
559 (print_frame_info): Switch call to set_default_breakpoint to call to
560 set_last_displayed_sal.
561 (clear_last_displayed_sal, last_displayed_sal_is_valid,
562 get_last_displayed_pspace, get_last_displayed_addr,
563 get_last_displayed_symtab, get_last_displayed_line,
564 get_last_displayed_sal): New public functions.
565 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
566 get_last_displayed_pspace, get_last_displayed_addr,
567 get_last_displayed_symtab, get_last_displayed_line,
568 get_last_displayed_sal): Declare.
570 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
572 * MAINTAINERS (Write After Approval): Add myself to the list.
574 2011-10-29 Yao Qi <yao@codesourcery.com>
576 * infcmd.c (disconnect_command): Call disconnect_tracing.
578 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
581 * symtab.c (skip_prologue_sal): Code reformatting.
583 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
586 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
587 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
590 2011-10-28 Pedro Alves <pedro@codesourcery.com>
592 * linux-nat.c (linux_nat_filter_event): Remove `options'
593 parameter, and dead code that used it. If we're handling a
594 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
595 in our lwp list, re-add it.
596 (check_zombie_leaders): New.
597 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
598 wait for children with WNOHANG, and always wait for all children.
599 Don't check for no resumed children upfront. Simplify wait loop.
600 Check for zombie thread group leaders after handling all wait
601 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
602 unwaited-for children left.
603 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
604 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
605 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
606 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
608 2011-10-28 Sterling Augustine <saugustine@google.com>
610 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
611 * symtab.c (free_completion_list): New function.
612 (do_free_completion_list): Likewise.
613 (default_make_symbol_completion_list_break_on): New variable
614 back_to. Call make_cleanup and discard_cleanups.
615 (make_source_files_completion_list): Likewise.
617 2011-10-28 Paul Koning <paul_koning@dell.com>
619 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
620 * NEWS: Mention deep_items.
622 2011-10-28 Alen Skondro <askondro@gmail.com>
624 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
627 2011-10-27 Meador Inge <meadori@codesourcery.com>
629 * MAINTAINERS (Write After Approval): Add myself to the list.
631 2011-10-27 Joel Brobecker <brobecker@adacore.com>
633 * value.h (read_frame_register_value): Add declaration.
634 * findvar.c (read_frame_register_value): New function.
635 (value_from_register): Use read_frame_register_value
636 instead of get_frame_register_value + value_contents_copy
637 to get value contents.
639 2011-10-27 Doug Evans <dje@google.com>
641 * cli/cli-cmds.c (source_script_with_search): Pass full path to
642 source_script_from_stream if it may have been found on the search path.
643 * python/py-auto-load.c (source_section_scripts): Pass full path to
644 source_python_script_for_objfile.
645 * python/python.c (source_python_script): Delete stream parameter.
647 (source_python_script_for_objfile): Ditto.
648 * python/python-internal.h (source_python_script_for_objfile): Update.
649 * python/python.h (source_python_script): Update.
651 2011-10-27 Tom Tromey <tromey@redhat.com>
653 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
654 (ada_sals_for_line): Remove declarations.
656 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
658 Move unwind reasons to an external .def file
659 * frame.c (frame_stop_reason_string): Rewrite using
660 unwind_stop_reasons.def.
661 * frame.h (enum unwind_stop_reason): Likewise.
662 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
663 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
664 constants for bound-checking.
665 * unwind_stop_reasons.def: New file.
666 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
667 instead of a distinct value.
669 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
673 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
674 (convert_values_to_python): Return on Python tuple allocation
675 failure. Return NULL on value conversion error.
677 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
679 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
680 (bppy_set_task): Ditto.
681 (bppy_delete_breakpoint): Ditto.
682 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
683 (gdbpy_lookup_global_symbol): Ditto.
684 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
685 * python/py-frame.c (frapy_is_valid): Ditto.
686 (frame_info_to_frame_object): Ditto.
687 * python/py-type.c (typy_lookup_type): Ditto.
688 (typy_getitem): Ditto.
689 (typy_has_key): Ditto.
690 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
692 2011-10-26 Joel Brobecker <brobecker@adacore.com>
694 * gdbarch.h: Regenerate.
696 2011-10-26 Meador Inge <meadori@codesourcery.com>
698 * gdbarch.sh (function_list): Use 'pstring' when printing
700 * gdbarch.c: Regenerate.
702 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
704 * regcache.c (registers_changed_ptid): Invalidate thread architecture
705 and frame caches if PTID refers to all threads of a process.
707 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
709 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
710 to create_breakpoint.
712 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
714 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
715 (ppc_sysv_abi_push_dummy_call): Use it.
716 (do_ppc_sysv_return_value): Likewise.
717 (ppc64_sysv_abi_push_dummy_call): Likewise.
718 (ppc64_sysv_abi_return_value): Likewise.
720 2011-10-26 Paul Koning <paul_koning@dell.com>
722 * python/lib/gdb/types.py (deepitems): New function.
724 2011-10-25 Paul Koning <paul_koning@dell.com>
728 * python/py-value.c (value_to_value_object): Remove fetching of
729 the value if it was lazy.
730 (valpy_get_is_lazy): New function.
731 (valpy_fetch_lazy): New function.
733 2011-10-24 Joel Brobecker <brobecker@adacore.com>
735 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
736 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
738 2011-10-24 Pedro Alves <pedro@codesourcery.com>
740 * linux-nat.c (linux_handle_extended_wait): When handling a clone
741 event, in non-stop, if not stopping, make sure the new lwp has
742 last_resume_kind set to resume_continue. Assert that when we're
743 resuming the new lwp, its last_resume_kind is resume_continue.
745 2011-10-24 Pedro Alves <pedro@codesourcery.com>
747 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
748 already set when marking the event thread as not executing in
751 2011-10-24 Pedro Alves <pedro@codesourcery.com>
753 * infrun.c (handle_inferior_event): Add debug output for
754 TARGET_WAITKIND_NO_HISTORY.
756 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
758 * NEWS: Move set/show extended-prompt to "New Options". Expand
759 description. Fix typos.
761 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
765 * python/py-param.c (call_doc_function): Correctly deference on
768 2011-10-21 Joel Brobecker <brobecker@adacore.com>
770 * ada-tasks.c (print_ada_task_info): Fix computation of
771 number of tasks displayed in command output.
773 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
774 Ulrich Weigand <uweigand@de.ibm.com>
776 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
777 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
778 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
779 gdbarch_pc_regnum and frame_unwind_register_unsigned by
782 2011-10-20 Cary Coutant <ccoutant@google.com>
784 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
786 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
787 flag. Adjust all callers.
788 (process_psymtab_comp_unit): Remove adjustment for type section.
790 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
792 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
793 arguments by adding OBJFILE. Instead of getting objfile from
794 symbol's symtab, use new argument OBJFILE.
795 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
796 arguments by adding OBJFILE.
797 * gdb/dwarf2read.c (new_symbol_full): Change call to
798 cp_scan_for_anonymous_namespaces to match new signature.
799 * gdb/stabsread.c (define_symbol): Change call to
800 cp_scan_for_anonymous_namespaces to match new signature.
802 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
807 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
809 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
810 leak. Delete unused variables.
812 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
816 * python/py-frame.c (frapy_read_var): Use const struct *block.
817 * python/py-type.c (typy_lookup_typename): Likewise.
818 (typy_lookup_type): Likewise.
819 (typy_legacy_template_argument): Likewise.
820 (typy_template_argument): Likewise.
821 (gdbpy_lookup_type): Likewise.
822 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
823 * python/py-block.c (blpy_block_object): Likewise.
824 (blpy_iter): Likewise.
825 (blpy_get_start): Likewise.
826 (blpy_get_end): Likewise.
827 (blpy_get_function): Likewise.
828 (blpy_get_superblock): Likewise.
829 (set_block): Likewise.
830 (block_to_block_object): Likewise.
831 (block_object_to_block): Likewise.
832 (blpy_is_valid): Likewise.
833 (blpy_get_global_block): New function.
834 (blpy_get_static_block): New function.
835 (blpy_is_global): New function.
836 (blpy_is_static): New function.
837 * blockframe.c (block_innermost_frame): Likewise.
838 * valops.c (value_of_variable): Likewise.
839 * frame.h: Update prototypes.
840 * python/python-internal.h: Likewise.
843 2011-10-19 Cary Coutant <ccoutant@google.com>
845 * dwarf2read.c (create_debug_types_hash_table): Fix size of
848 2011-10-19 Cary Coutant <ccoutant@google.com>
850 * dwarf2read.c (peek_abbrev_code): New function.
851 (dw2_get_file_names): Check for dummy compilation units.
852 (create_debug_types_hash_table): Likewise.
853 (process_psymtab_comp_unit): Likewise.
854 (load_partial_comp_unit): Likewise.
855 (load_full_comp_unit): Likewise.
857 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
859 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
860 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
861 pt_phdr if PT_PHDR was found.
863 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
865 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
866 type or "<unnamed type"> when there is no name assigned.
867 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
868 avoid a sigint when no name is assigned.
870 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
873 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
874 * dwarf2expr.c (ctx_no_read_reg): New function.
875 * dwarf2expr.h (ctx_no_read_reg): New declaration.
876 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
877 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
878 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
880 2011-10-16 Doug Evans <dje@google.com>
882 * NEWS: Document python gdb.printing.register_pretty_printer's new
885 2011-10-14 Keith Seitz <keiths@redhat.com>
888 * eval.c (evaluate_subexp_standard): Do not construct
889 an array of types; pass the value array directly to
891 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
892 (rank_function): Take an array of values instead of types.
893 (rank_one_type): Add struct value * parameter.
894 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
895 (rank_function): For each argument, pass the argument's
896 value to rank_one_type.
897 (rank_one_type): Add VALUE parameter.
898 If the parameter type is a pointer and the argument type
899 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
901 Update all calls to rank_one_type, passing NULL for new
903 * valarith.c (value_user_defined_cpp_op): Do not construct
904 an array of types; pass the value array directly to
906 * valops.c (find_overload_method_list): Take an array of
907 values instead of types.
908 Save the type of OBJP for later use.
909 Update calls to find_oload_champ, and find_oload_champ_namespace.
910 (find_oload_champ_namespace): Take an array of values instead
912 (find_oload_champ_namespace_loop): Likewise.
913 (find_oload_champ): Likewise.
914 (classify_oload_match): Inspect all arguments
915 until INCOMPATIBLE is found. Return the worst badness found
917 (compare_parameters): Update call to rank_one_type.
918 * value.h (find_overload_match): Take an array of values instead
921 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
923 Drop lazy lm_info reading.
924 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
925 l_addr_inferior, l_ld, l_next, l_prev and l_name.
926 (lm_info_read): New function.
927 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
928 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
929 lm_dynamic_from_link_map.
930 (lm_next, lm_prev, lm_name): Remove.
931 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
932 initialization incl. read_memory. No longer use lm_name.
933 (svr4_free_so): Drop lm_info->lm freeing.
934 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
935 explicit lm_addr and lm initialization.
936 (svr4_read_so_list): Use lm_info_read, drop the initailization of
937 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
940 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
941 Paul Pluzhnikov <ppluzhnikov@google.com>
943 * defs.h (struct so_list): New forward declaration.
944 (make_cleanup_free_so): New declaration.
945 * solib-svr4.c (ignore_first_link_map_entry): Remove.
946 (svr4_free_so): Move the function here from downwards. Handle NULL
948 (svr4_free_library_list): New.
949 (svr4_read_so_list): New, moved here code from svr4_current_sos.
950 Use more cleanups. Use new parameter ignore_first instead of
951 ignore_first_link_map_entry.
952 (svr4_current_sos): New variable ignore_first, initialize it. New
953 variable back_to, use it for svr4_free_library_list protection.
954 (svr4_free_so): Remove - move upwards.
955 * utils.c: Include solist.h.
956 (do_free_so, make_cleanup_free_so): New functions.
958 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
960 Fix internal error regression.
961 * value.c (value_primitive_field): Handle value_optimized_out. Move
962 packed bitfields comment.
964 2011-10-13 Tom Tromey <tromey@redhat.com>
966 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
969 2011-10-13 Tom Tromey <tromey@redhat.com>
971 * python/py-type.c (typy_has_key): Make 'field' const.
973 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
975 * remote.c (remote_save_trace_data): Invert comparison.
977 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
979 * tracepoint.c (trace_save_command): Use filename instead of
982 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
984 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
987 2011-10-13 Yao Qi <yao@codesourcery.com>
990 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
991 whether insn is a 32-bit Thumb-2 instruction.
992 (thumb_in_function_epilogue_p): Likewise.
993 (thumb_get_next_pc_raw): Likewise.
994 (arm_breakpoint_from_pc): Likewise.
996 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
998 Fix empty DWARF expressions DATA vs. SIZE conditionals.
999 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1000 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1001 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1002 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1004 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1006 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1007 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1008 clear DATA on zero SIZE.
1010 2011-10-12 Doug Evans <dje@google.com>
1012 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1013 header->first_die_offset here. All callers updated.
1015 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1017 Fix compatibility with texinfo versions older than 4.12.
1018 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1019 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1020 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1021 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1022 * configure: Regenerate.
1023 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1024 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1025 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1027 2011-10-12 Gary Benson <gbenson@redhat.com>
1029 * breakpoint.h (pc_at_non_inline_function): Declare.
1030 * breakpoint.c (is_non_inline_function,
1031 pc_at_non_inline_function): New functions.
1032 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1033 if the stop is at a location where functions cannot be inlined.
1035 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1037 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1038 the core wanted them stopped, or if they now have a pending event
1040 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1041 down to stop_and_resume_callback.
1042 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1043 having new pending events after calling linux_nat_filter_event.
1045 2011-10-11 Sterling Augustine <saugustine@google.com>
1047 * dwarf2read.c: Undo inadvertent changes in previous commit.
1049 2011-10-11 Sterling Augustine <saugustine@google.com>
1051 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1054 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1056 * symfile.c (separate_debug_file_exists): Fix condition.
1058 2011-10-11 David S. Miller <davem@davemloft.net>
1060 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1062 * regcache.h (regcache_restore): Remove declaration.
1064 * gdbarch.sh: New field 'long_long_align_bit'.
1065 * gdbarch.c, gdbarch.h: Regenerate.
1066 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1067 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1069 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1071 Revert this part of:
1072 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1073 Support @entry in input expressions.
1074 * c-exp.y (ENTRY, unknown_cpp_name): New.
1075 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1076 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1077 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1078 (name_not_typename: ENTRY): New.
1079 (yylex): Recognize ENTRY.
1081 Reimplement @entry in input expressions.
1082 * c-exp.y (ENTRY): New.
1083 (variable: name_not_typename ENTRY): New.
1084 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1086 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1088 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1089 parent and child's pids as soon as we detect a clone event.
1090 Adjust another debug message.
1092 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1094 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1095 not zombie instead of reading the whole file.
1097 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1099 Fix separate debuginfo warning with "remote:" access.
1100 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1101 * symfile.c (get_file_crc): New function with the code moved from ...
1102 (separate_debug_file_exists): ... this function, specifically variables
1103 buffer and count. New variable verified_as_different, set it. Remove
1104 file_crc initialization. Verify also if both files are not the same
1105 manually, if needed.
1107 2011-10-11 Yao Qi <yao@codesourcery.com>
1109 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1112 2011-10-10 Doug Evans <dje@google.com>
1114 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1115 libthread_db when we load libpthread or the main symbol file.
1116 (thread_db_inferior_created): New function.
1117 (_initialize_thread_db): Attach inferior_created observer.
1118 * linux-nat.c (linux_child_post_attach): Remove call to
1119 check_for_thread_db.
1120 (linux_child_post_startup_inferior): Ditto.
1121 * objfiles.h (OBJF_MAINLINE): Define.
1122 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1123 allocate_objfile when appropriate.
1125 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1128 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1129 Remove unused variables.
1130 (get_linux_version): Remove function.
1131 (_initialize_arm_linux_nat): Do not call it.
1133 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1135 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1136 new clone lwp if the core asked it to stop. Don't pass on
1137 unexpected signals to the new clone; leave them pending instead.
1139 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1141 * linux-nat.c (resume_lwp): Remove redundant debug output.
1143 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1145 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1146 last_resume_kind before clearing it, and use the copy instead to
1147 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1148 resume_clear_callback in the non-stop path too.
1150 2011-10-09 Yao Qi <yao@codesourcery.com>
1152 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1153 Honor OPTIONS and VAL's type.
1154 (common_val_print, value_print): Update to pass one more parameter.
1156 2011-10-09 Doug Evans <dje@google.com>
1158 Add new "alias" command.
1159 * NEWS: Mention new command.
1160 * command.h (valid_user_defined_cmd_name_p): Declare.
1161 * defs.h (make_cleanup_dyn_string_delete): Declare.
1162 * utils.c: #include "dyn-string.h".
1163 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1164 * cli/cli-cmds.c: #include "dyn-string.h".
1165 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1166 (init_cli_cmds): Add new command.
1167 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1169 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1171 Fix compatibility with older GCCs.
1172 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1173 * stack.c (read_frame_arg): Initialize val_deref.
1175 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1177 Entry values NEWS entries, DWARF disassembly support.
1178 * NEWS: New entry values entry.
1179 (set print entry-values, show print entry-values)
1180 (set debug entry-values, show debug entry-values): New entries.
1181 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1182 indent. Remove variable start. Move header printing out. Respect
1183 INDENT. Support DW_OP_GNU_entry_value.
1184 (locexpr_describe_location_1): Move the header printing here, extend
1185 the disassemble_dwarf_expression passed parameters.
1187 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1189 Display @entry parameter values even for references.
1190 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1191 coerce_ref_if_computed.
1192 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1193 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1194 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1195 existing push_dwarf_reg_entry_value call. Add new detection calling
1196 dwarf_block_to_dwarf_reg_deref. Update the error message.
1197 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1199 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1200 parameter deref_size, describe it in the comment.
1201 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1202 (dwarf_block_to_dwarf_reg_deref): New declaration.
1203 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1204 deref_size, describe it in the function comment. New variables
1205 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1206 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1207 describe it in the function comment. Fetch the alternative block
1208 accoring to DEREF_SIZE.
1209 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1210 (entry_data_value_free_closure, entry_data_value_funcs): New.
1211 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1212 outer_val, target_val, val and addr. Try to fetch and create also
1213 referenced value content.
1214 (pieced_value_funcs): NULL value for coerce_ref.
1215 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1216 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1217 coerce_ref_if_computed.
1218 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1219 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1220 * stack.c (read_frame_arg): Compare also dereferenced values.
1221 * value.c (value_computed_funcs): Make the parameter v const, use
1222 value_lval_const for it.
1223 (value_lval_const, coerce_ref_if_computed): New function.
1224 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1225 * value.h (struct lval_funcs): New field coerce_ref.
1226 (value_computed_funcs): Make the parameter v const.
1227 (value_lval_const, coerce_ref_if_computed): New declarations.
1229 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1231 Support @entry in input expressions.
1232 * c-exp.y (ENTRY, unknown_cpp_name): New.
1233 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1234 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1235 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1236 (name_not_typename: ENTRY): New.
1237 (yylex): Recognize ENTRY.
1238 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1239 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1241 * parse.c (operator_length_standard): Likewise.
1242 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1244 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1246 Display referenced values in backtraces.
1247 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1248 * stack.c (print_frame_arg): Likewise.
1250 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1252 Make some lval_funcs methods to default on NULL.
1253 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1255 (value_assign): Check if lval_computed write method is NULL.
1256 * value.h (struct lval_funcs): Comment NULL values for read and write
1259 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1261 Display @entry parameter values (without references).
1262 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1264 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1266 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1268 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1269 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1271 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1272 (loclist_read_variable_at_entry): New function.
1273 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1274 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1275 DW_AT_location, call dwarf_block_to_sp_offset for it.
1276 * frame.h (print_entry_values_no, print_entry_values_only)
1277 (print_entry_values_preferred, print_entry_values_if_needed)
1278 (print_entry_values_both, print_entry_values_compact)
1279 (print_entry_values_default, print_entry_values): New declarations.
1280 (struct frame_arg): New field entry_kind.
1281 (read_frame_arg): New parameter entryargp.
1282 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1283 arg->entry_kind. Optionally print the `@entry' suffix.
1284 (list_args_or_locals): New variable entryarg, initialize it.
1285 Initialize also entry_kind of arg and entryarg. Conditionalize
1286 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1287 xfree for entryarg.error.
1288 * stack.c (print_entry_values_no, print_entry_values_only)
1289 (print_entry_values_preferred, print_entry_values_if_needed)
1290 (print_entry_values_both, print_entry_values_compact)
1291 (print_entry_values_default, print_entry_values_choices)
1292 (print_entry_values): New variables.
1293 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1294 print the `@entry' suffix, possibly in combination for
1295 print_entry_values_compact.
1296 (read_frame_arg): New parameter entryargp, new variables entryval,
1297 entryval_error and val_equal. Read in also entryargp, respect
1298 print_entry_values, compare the values using val_equal, fill in also
1299 argp->entry_kind (together with entryargp->entry_kind).
1300 (print_frame_args): New variable entryarg, initialize it.
1301 Conditionalize print_frame_arg for arg, add print_frame_arg for
1302 entryarg. Call xfree for entryarg.error.
1303 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1304 * symtab.h (struct symbol_computed_ops): New field
1305 read_variable_at_entry.
1307 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1310 * frame.h (struct frame_arg): New definition.
1311 (read_frame_arg): New declaration.
1312 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1313 (list_args_or_locals): ... the code here. New variable arg, call
1314 read_frame_arg and list_arg_or_local with it. Unify the
1315 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1317 * stack.c (print_frame_arg): New functiom from the code of
1319 (read_frame_arg): New function.
1320 (print_frame_args): Remove variable val. New variable arg, call
1321 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1323 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1325 Protect entry values against self tail calls.
1326 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1327 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1329 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1331 Recognize virtual tail call frames.
1332 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1333 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1334 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1335 * dwarf2-frame-tailcall.c: New file.
1336 * dwarf2-frame-tailcall.h: New file.
1337 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1338 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1339 REGS.PREV only after CIE execution.
1340 (struct dwarf2_frame_cache): New field tailcall_cache.
1341 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1342 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1343 parts, try to find entry_cfa_sp_offset. Call
1344 dwarf2_tailcall_sniffer_first.
1345 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1347 (dwarf2_frame_dealloc_cache): New function.
1348 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1349 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1350 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1351 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1352 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1353 * dwarf2loc.c (func_addr_to_tail_call_list)
1354 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1355 (call_site_find_chain_1, call_site_find_chain): New.
1356 * dwarf2loc.h (struct call_site_chain): New.
1357 (call_site_find_chain): New declaration.
1358 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1359 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1360 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1361 * stack.c (frame_info): Support also TAILCALL_FRAME.
1363 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1365 Tail call sites reader implementation.
1366 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1367 fill in TYPE_TAIL_CALL_LIST.
1368 * gdbtypes.h (struct func_type): New field tail_call_list.
1369 (struct call_site): New field tail_call_next.
1370 (TYPE_TAIL_CALL_LIST): New definition.
1372 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1374 Implement basic support for DW_TAG_GNU_call_site.
1375 * block.c: Include gdbtypes.h and exceptions.h.
1376 (call_site_for_pc): New function.
1377 * block.h (call_site_for_pc): New declaration.
1378 * defs.h: Include hashtab.h.
1379 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1381 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1382 ctx_no_push_dwarf_reg_entry_value.
1383 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1384 (dwarf_block_to_dwarf_reg): New function.
1385 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1386 (ctx_no_push_dwarf_reg_entry_value): New function.
1387 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1388 push_dwarf_reg_entry_value.
1389 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1391 * dwarf2loc.c: Include gdbcmd.h.
1392 (dwarf_expr_ctx_funcs): New forward declaration.
1393 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1394 (dwarf_expr_reg_to_entry_parameter)
1395 (dwarf_expr_push_dwarf_reg_entry_value): New.
1396 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1397 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1398 (needs_dwarf_reg_entry_value): New function.
1399 (needs_frame_ctx_funcs): Install it.
1400 (_initialize_dwarf2loc): New function.
1401 * dwarf2loc.h (entry_values_debug): New declaration.
1402 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1403 (read_call_site_scope): New forward declaration.
1404 (process_full_comp_unit): Copy call_site_htab.
1405 (process_die): Support DW_TAG_GNU_call_site.
1406 (read_call_site_scope): New function.
1407 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1408 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1409 (cleanup_htab): Delete.
1410 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1411 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1412 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1413 FIELD_LOC_KIND_DWARF_BLOCK.
1414 * gdbtypes.h (enum field_loc_kind): New entry
1415 FIELD_LOC_KIND_DWARF_BLOCK.
1416 (struct main_type): New loc entry dwarf_block.
1417 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1418 (TYPE_FIELD_DWARF_BLOCK): New.
1419 * python/py-type.c: Include dwarf2loc.h.
1420 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1421 internal_error call on unknown FIELD_LOC_KIND.
1422 * symtab.h (struct symtab): New field call_site_htab.
1423 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1424 (core_addr_hash, core_addr_eq): New functions.
1426 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1429 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1430 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1431 calling_convention under func_stuff there.
1432 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1433 (init_type) <TYPE_CODE_FUNC>: Likewise.
1434 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1435 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1436 * gdbtypes.h (enum type_specific_kind): Change
1437 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1438 (struct main_type) <type_specific>: Change calling_convention to
1439 func_stuff. Move calling_convention to ...
1440 (struct func_type): ... this new struct.
1441 (INIT_FUNC_SPECIFIC): New #define.
1442 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1444 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1446 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1447 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1448 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1449 ctx->ref_addr_size. Handle its invalid value.
1450 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1451 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1452 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1453 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1454 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1455 (dwarf2_per_cu_ref_addr_size): New function.
1457 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1460 * dwarf2read.c (per_cu_header_read_in): New function.
1461 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1462 variables cu_header_local and cu_headerp.
1464 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1466 Fix initial language detection with -readnow.
1467 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1468 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1469 searches only for global symbols.
1471 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1473 Fix printed anonymous struct name.
1474 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1475 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1476 (anonymous_struct_prefix): New function.
1477 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1478 (dwarf2_name): Strip for anonymous structs any prefixes.
1480 2011-10-07 Doug Evans <dje@google.com>
1482 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1485 * python/lib/gdb/printing.py: Whitespace cleanup.
1487 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1490 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1492 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1493 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1494 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1495 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1496 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1497 (arm_linux_remove_watchpoint): Adjust.
1498 * i386-linux-nat.c (i386_linux_dr_set_control)
1499 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1500 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1501 (ia64_linux_remove_watchpoint): Adjust.
1502 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1503 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1504 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1505 (ppc_linux_insert_mask_watchpoint)
1506 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1507 (ppc_linux_remove_watchpoint): Adjust.
1508 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1511 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1513 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1514 (clear_win32_environment): New function for Cygwin to clear out
1516 (windows_create_inferior): Prepare new environment from in_env
1519 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1522 * python/py-value.c (valpy_call): Check that arguments are
1524 (is_intlike): Remove call to CHECK_TYPEDEF.
1525 (valpy_nonzero): Catch GDB exceptions.
1526 (valpy_absolute): Ditto.
1527 (valpy_lazy_string): Ditto.
1528 (valpy_call): Ditto.
1529 (valpy_get_is_optimized_out): Ditto.
1530 (valpy_long): Ditto.
1531 (valpy_float): Ditto.
1532 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1533 (valpy_richcompare): Ditto.
1535 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1537 * inferior.h (disable_randomization): Declare.
1538 * infrun.c (disable_randomization): New global variable.
1539 (show_disable_randomization): New function.
1540 (set_disable_randomization): Likewise.
1541 (_initialize_infrun): Install set/show disable-randomization
1543 * linux-nat.c (disable_randomization): Remove.
1544 (show_disable_randomization): Likewise.
1545 (set_disable_randomization): Likewise.
1546 (_initialize_linux_nat): No longer install set/show
1547 disable-randomization commands here.
1548 (linux_nat_supports_disable_randomization): New function.
1549 (linux_nat_add_target): Install it.
1550 * remote.c (PACKET_QDisableRandomization): New enum value.
1551 (remote_protocol_packets): Support QDisableRandomization.
1552 (_initialize_remote): Likewise.
1553 (remote_supports_disable_randomization): New function.
1554 (init_remote_ops): Install it.
1555 (extended_remote_supports_disable_randomization): New function.
1556 (init_extended_remote_ops): Install it.
1557 (extended_remote_disable_randomization): New function.
1558 (extended_remote_create_inferior_1): Call it.
1559 * target.h (struct target_ops): Add to_supports_disable_randomization.
1560 (target_supports_disable_randomization): Add prototype.
1561 * target.c (target_supports_disable_randomization): New function.
1562 (find_default_supports_disable_randomization): Likewise.
1563 (init_dummy_target): Install it.
1565 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1567 Allow Python notification of new object-file loadings.
1568 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1569 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1570 Add build rule for this file.
1571 * python/py-event.h (emit_new_objfile_event): New prototype.
1572 (newobjfile): New Python event emitter.
1573 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1574 Python event registry.
1575 * python/py-inferior.c: Include objfiles.h
1576 (python_new_objfile): New function.
1577 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1579 * python/py-newobjfileevent.c: New file.
1580 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1582 * python/python.c (_initialize_python): Add
1583 gdbpy_initialize_new_objfile_event call.
1584 * NEWS: Add item for new Python event "gdb.newobjfile"
1586 2011-10-05 Tristan Gingold <gingold@adacore.com>
1588 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1589 Extract the ravenscar task name from the symbol for the atcb.
1591 2011-10-04 Paul Koning <paul_koning@dell.com>
1593 * python/py-type.c (typy_make_iter): Add forward declaration.
1594 (typy_fields_items): Use the gdb.Type iterator.
1596 2011-10-04 Paul Koning <paul_koning@dell.com>
1598 * NEWS: Add entry for Python gdb.Type mapping methods.
1600 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1602 PR python/12691: Add the inferior to Python exited event
1603 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1605 * python/py-event.h (emit_exited_event): Likewise
1606 * python/-inferior.c (python_inferior_exit): Likewise
1608 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1610 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1611 in output of -ada-task-info GDB/MI command.
1613 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1615 * ada-lang.h (struct inferior): Declare.
1616 (print_ada_task_info): Add declaration.
1617 * ada-tasks.c (print_ada_task_info): Make non-static.
1618 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1619 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1620 * mi/mi-main.c: #include "ada-lang.h".
1621 (mi_cmd_list_features): Add "ada-task-info" to the list
1622 of supported features.
1623 (mi_cmd_ada_task_info): New function.
1625 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1627 * python/python.c (python_run_simple_file): New function.
1628 (source_python_script, source_python_script_for_objfile):
1629 Replace call to PyRun_SimpleFile by call to
1630 python_run_simple_file.
1632 2011-10-03 Paul Koning <paul_koning@dell.com>
1634 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1635 (value_to_value_object): Fetch value if it was lazy.
1637 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1640 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1641 Rearrange the code for it.
1643 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1645 * breakpoint.c (bkpt_print_recreate): Add call to
1646 print_recreate_thread.
1648 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1650 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1651 PTRACE_GETFDPIC_INTERP): Define.
1653 2011-09-28 Yao Qi <yao@codesourcery.com>
1655 * symfile.c (add_symbol_file_command): Update message on usage.
1657 2011-09-28 Paul Koning <paul_koning@dell.com>
1659 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1660 (typy_length, typy_get, typy_has_key, typy_make_iter)
1661 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1662 (typy_iterator_iter, typy_iterator_iternext)
1663 (typy_iterator_dealloc): New functions to implement standard
1664 Python mapping methods on gdb.Type object.
1665 (gdb.TypeIterator): New Python type.
1666 * python/python-internal.h (gdbpy_iter_kind): New enum.
1668 2011-09-28 David S. Miller <davem@davemloft.net>
1670 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1671 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1672 * sparc-tdep.c (sparc_complex_floating_p): New function.
1673 (sparc32_store_arguments): Handle complex floats.
1674 (sparc32_extract_return_value): Likewise.
1675 (sparc32_store_return_value): Likewise.
1676 (sparc32_stabs_argument_has_addr): Likewise.
1677 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1678 (sparc64_store_floating_fields): Handle complex floats.
1679 (sparc64_store_arguments): Likewise.
1680 (sparc64_store_return_value): Likewise.
1682 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1684 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1685 before the change on 2006-12-09.
1686 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1687 generates the environment block for CreateProcessA, modulo the
1688 Cygwin-specific parts that are not needed here.
1690 2011-09-27 Tristan Gingold <gingold@adacore.com>
1692 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1693 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1694 (darwin_solib_get_all_image_info_addr_at_init): New function.
1695 (darwin_solib_read_all_image_info_addr): Likewise.
1696 (darwin_solib_create_inferior_hook): Use the above two functions.
1697 * darwin-nat.c (darwin_execvp): Renames retval to res.
1698 (darwin_read_write_inferior): Update comment.
1699 (darwin_read_dyld_info): New function.
1700 (darwin_xfer_partial): Handle DYLD_INFO.
1702 2011-09-27 Stan Shebs <stan@codesourcery.com>
1704 Add return address collection for tracepoints.
1705 * tracepoint.c (encode_actions_1): Add case for $_ret.
1706 (validate_actionline): Check for $_ret.
1707 (trace_dump_actions): Ditto.
1708 * ax-gdb.h (gen_trace_for_return_address): Declare.
1709 * ax-gdb.c: Include arch-utils.h.
1710 (gen_trace_for_return_address): New function.
1711 (agent_command): Add return address special case.
1712 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1713 (amd64_gen_return_address): New function.
1714 (amd64_init_abi): Call it.
1715 * i386-tdep.c: Include ax.h and ax-gdb.h.
1716 (i386_gen_return_address): New function.
1717 (i386_init_abi): Call it.
1718 * arch-utils.h (default_gen_return_address): Declare.
1719 * arch-utils.c (default_gen_return_address): New function.
1720 * gdbarch.sh (gen_return_address): New method.
1721 * gdbarch.h, gdbarch.c: Regenerate.
1723 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1726 * i386-tdep.c (i386_frame_align): New.
1727 (i386_gdbarch_init): Use i386_frame_align.
1729 2011-09-23 Yao Qi <yao@codesourcery.com>
1731 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1734 2011-09-22 Tristan Gingold <gingold@adacore.com>
1736 * fork-child.c (fork_inferior): Add exec_fun parameter.
1737 Call exec_fun or execvp.
1738 * inferior.h: Adjust prototype.
1739 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1740 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1741 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1742 * procfs.c (procfs_create_inferior): Ditto.
1743 * darwin-nat.c (darwin_execvp): New function.
1744 (darwin_create_inferior): Use it.
1746 2011-09-22 Yao Qi <yao@codesourcery.com>
1748 * infrun.c (context_switch): Print debug message when switching to
1751 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1753 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1754 complex and vector types.
1755 (s390_return_value_convention): Likewise.
1757 (s390_value_from_register): Call check_typedef.
1758 (extend_simple_arg): Likewise.
1759 (alignment_of): Likewise.
1760 (s390_push_dummy_call): Likewise.
1761 (s390_return_value): Likewise.
1763 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1765 * event-top.c (async_disconnect): If an exception is thrown from
1766 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1768 * top.c (quit_cover): Return void and take no arguments.
1769 * top.h (quit_cover): Update prototype.
1771 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1773 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1774 current_uiout, not uiout.
1776 2011-09-19 Doug Evans <dje@google.com>
1778 * python/py-auto-load.c (source_section_scripts): Fix file
1780 * python/python.c (source_python_script_for_objfile): Tweak comments.
1782 2011-09-18 Yao Qi <yao@codesourcery.com>
1783 Ulrich Weigand <ulrich.weigand@linaro.org>
1785 Support displaced stepping for Thumb 16-bit insns.
1786 * arm-tdep.c (THUMB_NOP) Define.
1787 (thumb_copy_unmodified_16bit): New.
1788 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1789 (thumb_copy_alu_reg): New.
1790 (arm_copy_svc): Move some common code to ...
1791 (install_svc): ... here. New.
1792 (thumb_copy_svc): New.
1793 (install_pc_relative): New.
1794 (thumb_copy_pc_relative_16bit): New.
1795 (thumb_decode_pc_relative_16bit): New.
1796 (thumb_copy_16bit_ldr_literal): New.
1797 (thumb_copy_cbnz_cbz): New.
1798 (cleanup_pop_pc_16bit_all): New.
1799 (thumb_copy_pop_pc_16bit): New.
1800 (thumb_process_displaced_16bit_insn): New.
1801 (thumb_process_displaced_32bit_insn): New.
1802 (thumb_process_displaced_insn): process thumb instruction.
1804 Support displaced stepping for Thumb 32-bit insns.
1805 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1806 (thumb2_copy_preload): New.
1807 (thumb2_copy_copro_load_store): New.
1808 (thumb2_copy_b_bl_blx): New.
1809 (thumb2_copy_alu_imm): New.
1810 (thumb2_copy_load_reg_imm): New.
1811 (thumb2_copy_load_literal): New
1812 (thumb2_copy_block_xfer): New.
1813 (thumb_32bit_copy_undef): New.
1814 (thumb_32bit_copy_unpred): New.
1815 (thumb2_decode_ext_reg_ld_st): New.
1816 (thumb2_decode_svc_copro): New.
1817 (decode_thumb_32bit_store_single_data_item): New.
1818 (thumb_copy_pc_relative_32bit): New.
1819 (thumb_decode_pc_relative_32bit): New.
1820 (decode_thumb_32bit_ld_mem_hints): New.
1821 (thumb2_copy_table_branch): New
1822 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1825 2011-09-18 Yao Qi <yao@codesourcery.com>
1827 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1828 (install_b_bl_blx): Likewise.
1830 2011-09-17 Yao Qi <yao@codesourcery.com>
1832 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1833 (install_load_store): ... this. New.
1834 Change parameter BYTE to SIZE.
1835 (arm_copy_ldr_str_ldrb_strb): Update caller.
1836 (arm_decode_ld_st_word_ubyte): Update caller.
1838 2011-09-17 Yao Qi <yao@codesourcery.com>
1840 * infrun.c (displaced_step_fixup): Move some code ...
1841 (displaced_step_restore): ... here. New function.
1842 (handle_inferior_event): Cleanup displaced stepping state for both
1843 child and parent when get forked or vforked event.
1844 * regcache.c (get_thread_arch_aspace_regcache): New function.
1845 get_thread_arch_regcache (): Call it.
1847 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1849 * ada-tasks.c (print_ada_task_info): New function, merging
1850 short_task_info and info_tasks together. Reimplement using
1851 ui-out instead of printing to stdout directly. Move the code
1852 building and checking the task list here, instead of leaving it
1853 in info_tasks_command.
1854 (info_task): Move the code building and checking the task
1855 list here, instead of leaving it in info_tasks_command.
1856 (info_tasks_command): Delete code building and checking
1857 the task list - moved elsewhere. Update calls to info_tasks
1860 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1862 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1864 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1866 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1868 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1870 * ada-lang.h (ada_build_task_list): Remove parameter
1872 * ada-tasks.c (ada_build_task_list): Remove parameter
1873 `warn_if_null'. Adjust implementation and documentation.
1874 (valid_task_id, ada_get_environment_task)
1875 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1876 (info_tasks_command): Adjust implementation.
1877 (task_command): Likewise.
1878 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1879 to ada_build_task_list.
1881 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1883 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1884 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1885 (ada_tasks_inferior_data_handle): New static global.
1886 (get_ada_tasks_inferior_data): New function.
1887 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1888 (ada_get_environment_task, iterate_over_live_ada_tasks)
1889 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1891 (ada_set_current_inferior_known_tasks_addr): New function.
1892 (read_known_tasks, ada_build_task_list, short_task_info)
1893 (info_tasks, info_task, info_tasks_command, task_command_1)
1894 (task_command, ada_task_list_changed): Adjust.
1895 (ada_tasks_invalidate_inferior_data): New function.
1896 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1897 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1898 * ada-lang.h (struct inferior): Add declaration.
1899 (ada_task_list_changed): Update profile.
1900 * remote-wtx-pd.c: #include "inferior.h".
1901 (switch_to_pd_internal): Update call to ada_task_list_changed.
1903 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1905 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1906 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1907 (atcb_fieldno): Delete these static globals.
1908 (struct ada_tasks_pspace_data): New struct.
1909 (ada_tasks_pspace_data_handle): New static global.
1910 (get_ada_tasks_pspace_data): New function.
1911 (ada_tasks_invalidate_pspace_data): New function.
1912 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1913 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1914 (_initialize_tasks): Create this module's per-progspace
1917 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1919 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1921 2011-09-16 Tristan Gingold <gingold@adacore.com>
1923 * fork-child.c (fork_inferior): Update comment. Use alloca
1924 instead of xmalloc for argv. Move len and shell_command
1925 declarations in the block where they are used.
1926 Only call execvp. Factorize failure code.
1928 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1931 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1932 `exp_element' instead of an element of the same and make the function
1934 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1935 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1936 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1937 Change argument of `write_exp_elt' function call.
1938 Remove extra spaces from comments.
1939 * parser-defs.h (write_exp_elt): Remove prototype.
1941 2011-09-15 Paul Koning <paul_koning@dell.com>
1943 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1944 count of item appended to list.
1945 * python/py-type.c (typy_fields): Likewise.
1947 2011-09-15 Paul Koning <paul_koning@dell.com>
1949 * MAINTAINERS (Write After Approval): Add myself to the list.
1951 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1954 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1955 processes with multiple threads.
1956 (inf_has_multiple_thread_cb): New function.
1957 (inf_has_multiple_threads): New function.
1959 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1961 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1962 * python/py-inferior.c (GdbMethods): New Python method definition.
1964 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1966 Handle multiple breakpoint hits in Python interface:
1967 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1968 variable to breakpoints.
1969 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1970 bps instead of single breakpoint. Fix some space typos.
1971 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1972 variable to breakpoints.
1974 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1976 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1977 note if the breakpoint is internal.
1979 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1981 * MAINTAINERS (Write After Approval): Add myself to the list
1983 2011-09-14 Pedro Alves <pedro@codesourcery.com>
1985 * infrun.c (prepare_for_detach, wait_for_inferior)
1986 (fetch_inferior_event): Don't flush the register cache.
1987 * remote.c (struct stop_reply) <regcache>: Add comment.
1989 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1991 Remove excessive DWARF expressions memory duplication.
1992 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1994 (indirect_pieced_value): Remove variable result. Remove variable
1995 back_to and its use for baton.data.
1996 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1998 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1999 Update the function comment.
2001 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2003 * inferior.h (ALL_INFERIORS): New.
2004 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2005 for a stopped thread.
2006 (thread_db_find_new_threads): Look for threads in all inferiors.
2008 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2010 * breakpoint.c (update_watchpoint): Handle the case of the
2011 watchpoint to update not being in the breakpoint list yet.
2012 (hw_watchpoint_use_count): New, factored out from
2013 hw_watchpoint_used_count.
2014 (hw_watchpoint_used_count): Rename to ...
2015 (hw_watchpoint_used_count_others): ... this. Add `except'
2016 parameter. Don't count resources of `except'. Use
2017 hw_watchpoint_use_count.
2019 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2021 * gdbthread.h (enum thread_state): Moved here.
2022 (struct thread_info): Rename `executing_' field to `executing' and
2023 `state_' to `state'.
2024 * thread.c (enum thread_state): Moved to gdbthread.h.
2025 (new_thread, add_thread_silent, delete_thread_1)
2026 (any_live_thread_of_process, thread_alive, set_running)
2027 (set_running, is_thread_state, any_running, is_executing)
2028 (set_executing, finish_thread_state, print_thread_info)
2029 (do_captured_thread_select): Adjust.
2031 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2033 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2034 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2036 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2037 Matt Rice <ratmice@gmail.com>
2041 * interps.c (struct interp) <interpreter_out>: Delete field.
2042 (interp_new): Remove the data and uiout parameters and adjust.
2043 (interp_set): Only set the current_uiout from the interpreter's
2044 uiout after initializing the interpreter. Adjust call to
2046 (interp_ui_out): Adjust to call procs->ui_out_proc.
2047 (interp_data, interp_name): New.
2048 * interps.h (interp_init_ftype): Add `self' parameter.
2049 (interp_ui_out_ftype): New typedef.
2050 (struct interp_procs) <ui_out_proc>: New method pointer.
2051 (interp_new): Remove the data and uiout parameters.
2052 (interp_data, interp_name): Declare.
2053 * tui/tui-interp.c (tui_init): Adjust prototype.
2055 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2056 tui_out here. Adjust call to interp_new.
2057 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2058 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2060 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2061 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2062 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2063 Initialize mi->uiout depending on the mi_version as extracted from
2064 the interpreter's name.
2066 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2067 interp_new. Don't allocate the ui_out's of the interpreters here.
2069 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2071 * solib.c (solib_used): New function.
2072 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2073 by another so_list object before freeing it.
2075 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2078 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2081 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2084 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2085 (amd64_skip_xmm_prologue): ... this new function. Describe its
2086 parameters. No longer use amd64_prologue_line_bug.
2087 * defs.h (producer_is_gcc_ge_4): New declaration.
2088 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2089 (process_full_comp_unit): Update its caller. Remove
2090 amd64_prologue_line_bug initialization.
2091 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2092 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2094 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2096 * linux-nat.h (enum resume_kind): New.
2097 (struct lwp_info) <last_resume_kind>: New field.
2098 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2099 resume_stop on the new lwp.
2100 (add_lwp): Set last_resume_kind as resume_continue by default.
2101 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2102 (resume_lwp): New, factored out from resume_callback. Also check
2103 for pending status in lp->waitstatus.
2104 (resume_callback): Reimplement.
2105 (resume_clear_callback): Set last_resume_kind as resume_stop.
2106 (resume_set_callback): Set last_resume_kind as resume_continue.
2107 (linux_nat_resume, linux_handle_extended_wait): Set
2109 (running_callback): Also check lp->waitstatus for pending events.
2110 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2112 (stop_and_resume_callback): Don't re-resume if the core wanted the
2113 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2114 using an invalidated pointer.
2115 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2116 SIGSTOPs if the core wanted the LWP to stop.
2117 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2118 wanted the lwp to stop. If the core wanted the lwp to stop, and
2119 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2120 of TARGET_SIGNAL_STOP.
2121 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2122 here. Instead, signal the lwp, and set the last_resume_kind to
2125 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2127 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2128 -1 (error), if the lwp exits right after attaching.
2130 2011-09-08 Doug Evans <dje@google.com>
2132 * py-cmd.c: Some minor formatting fixes.
2133 (gdbpy_parse_command_name): Rename text arg to name, make const.
2134 All callers updated.
2135 * python-internal.h (gdbpy_parse_command_name): Update.
2137 * cli/cli-decode.c (add_cmd): Add comment.
2139 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2141 PR breakpoints/12435
2142 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2143 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2144 * dwarf2read.c (process_full_comp_unit): Initialize
2145 amd64_prologue_line_bug.
2146 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2148 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2150 Fix TUI screen corruption.
2151 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2154 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2156 * findvar.c (read_var_value): Never return NULL, throw an error
2157 instead. Update the function comment. State symbol name in the error
2159 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2161 * stack.c (print_frame_args): Likewise.
2162 * valops.c (value_of_variable): Likewise.
2164 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2166 * stack.c (print_frame_args): New variable except. Wrap
2167 read_var_value and common_val_print into TRY_CATCH.
2169 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2171 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2172 caller to value_of_this.
2173 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2175 * valops.c (value_of_this): Remove parameter complain and variable ret.
2176 Update function comment. Never return NULL by this code.
2177 (value_of_this_silent): New function.
2178 * value.h (value_of_this): Remove parameter complain.
2179 (value_of_this_silent): New declaration.
2181 2011-09-07 Yao Qi <yao@codesourcery.com>
2183 * gdbthread.h (struct thread_info): Remove fields
2184 `stepping_through_solib_after_catch' and
2185 `stepping_through_solib_catchpoints'.
2186 * infrun.c (init_thread_stepping_state): Update.
2187 (process_event_stop_test, currently_stepping): Update.
2188 (currently_stepping_or_nexting_callback): Update.
2190 2011-09-07 Yao Qi <yao@codesourcery.com>
2192 * gdbthread.h (struct thread_info): Comment on field
2193 `step_after_step_resume_breakpoint'.
2195 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2197 * remote.c (remote_console_output): Reindent.
2199 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2201 * frame.c (has_stack_frames): Check for currently selected
2204 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2206 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2207 (set_async_annotation_level, set_async_prompt, pop_prompt)
2208 (push_prompt, new_async_prompt): Delete declarations.
2209 * top.h (get_prompt, set_prompt): Change prototype.
2210 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2212 * top.c (command_loop):
2213 (top_prompt): New global.
2214 (get_prefix, set_prefix, get_suffix, ): Delete.
2215 (get_prompt, set_prompt): Rewrite.
2216 (show_new_async_prompt): Rename to ...
2217 (show_prompt): ... this.
2218 (init_main): Adjust. Don't handle --annotate=2 here.
2219 * event-top.c (new_async_prompt): Delete.
2220 (the_prompts): Delete.
2221 (more_to_come): Make static.
2222 (display_gdb_prompt): Use top_level_prompt() to compute the top
2223 level prompt, and don't notify the before_prompt observers
2224 directly here. Always trick readline into not trying to display
2225 the prompt if sync_execution and displaying the primary prompt.
2226 If displaying a local/secondary prompt, always show it, even if
2227 sync_execution is set.
2228 (change_annotation_level): Delete.
2229 (top_level_prompt): New, based on change_annotation_level.
2230 (push_prompt, pop_prompt): Delete.
2231 (async_disable_stdin): No longer pushes prompt.
2232 (command_line_handler): No longer pushes or pops prompt. If more
2233 input is expected, call display_gdb_prompt with an explicit empty
2235 (async_stop_sig): Adjust.
2236 (set_async_annotation_level, set_async_prompt): Delete.
2237 * python/python.c (before_prompt_hook): Adjust.
2239 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2243 * infrun.c (fetch_inferior_event): Check if there's a selected
2244 thread before checking if the selected thread is executing.
2246 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2248 * inf-loop.c (execute_command): Don't check if the current thread
2249 if running before synchronously waiting for command completion.
2250 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2252 (normal_stop): Call async_enable_stdin here.
2253 * inf-loop.c (inferior_event_handler): Don't call
2254 async_enable_stdin, nor handle "set exec-done-display" here.
2256 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2260 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2262 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2264 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2266 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2268 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2270 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2272 2011-09-02 Matt Rice <ratmice@gmail.com>
2275 * event-top.c (cli_command_loop): Replace readline setup with
2276 direct call to display_gdb_prompt.
2277 (display_gdb_prompt): Do not call observer mechanism during
2278 synchronous execution.
2280 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2282 * linux-nat.c (in_pid_list_p): New.
2283 (linux_record_stopped_pid): Delete.
2284 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2285 already attached to the LWP. Return an indication if so.
2286 (linux_nat_filter_event): Adjust.
2287 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2288 returning an indication to ignore this thread.
2290 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2292 * top.c: Include interps.h.
2293 (execute_command): If the target can async, but the interpreter is
2294 in sync mode, synchronously wait for the command to finish before
2296 (execute_command_to_string): Force the interpreter to sync mode.
2297 * infrun.c: Include interps.h.
2298 (fetch_inferior_event): Don't restore the prompt yet if the
2299 interpreter is in sync mode.
2300 * interps.c (interpreter_async): New global.
2301 * interps.h (interpreter_async): Declare.
2302 * inf-loop.c: Include interps.h.
2303 (inferior_event_handler): Don't print the language change or run
2304 breakpoint commands yet if the interpreter in is sync mode.
2305 * main.c (captured_command_loop): Flip the interpreter to async
2307 * cli/cli-script.c: Include interps.h.
2308 (execute_user_command, while_command, if_command): Force the
2309 interpreter to sync mode.
2310 * python/python.c: Include interps.h.
2311 (python_command, execute_gdb_command): Force the interpreter to
2314 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2316 * value.c (show_convenience): Catch errors thrown while printing
2317 each internal variable.
2318 * infrun.c (validate_siginfo_access): New function.
2319 (siginfo_value_read, siginfo_value_write): Call it.
2321 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2324 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2325 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2328 2011-08-29 Yao Qi <yao@codesourcery.com>
2330 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2332 (enable_break2): Update caller.
2333 * solib-frv.c (bfd_lookup_symbol): Removed.
2335 (enable_break2): Update caller.
2336 * solib-pa64.c (bfd_lookup_symbol): Removed.
2338 * solib-svr4.c (bfd_lookup_symbol): Removed.
2339 (cmp_name_and_sec_flags): New.
2340 (enable_break): Update caller.
2341 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2342 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2343 (gdb_bfd_lookup_symbol): New.
2344 * solib.h: Functions declarations.
2346 2011-08-29 Yao Qi <yao@codesourcery.com>
2348 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2351 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2353 Fix TUI stepi on code without symbols.
2354 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2357 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2360 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2361 and the static keyword.
2362 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2363 Make prefix an array.
2364 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2365 * mi/mi-main.c (get_register): Remove stb initialization and the static
2368 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2370 Code cleanup - make mi_opt const.
2371 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2373 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2374 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2375 (mi_cmd_env_dir): Likewise.
2376 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2377 (mi_cmd_target_file_put): Likewise.
2378 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2379 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2380 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2381 (mi_valid_noargs): Make opts const.
2382 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2383 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2384 (mi_cmd_data_read_memory): Likewise.
2385 (mi_cmd_data_read_memory_bytes): Likewise.
2386 (mi_cmd_data_write_memory): Likewise.
2388 2011-08-26 Matt Rice <ratmice@gmail.com>
2390 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2391 bcache_xmalloc, replace bcache_xmalloc with call to
2392 psymbol_bcache_init for psymbol_cache.
2393 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2395 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2397 * inf-loop.c (inferior_event_handler): Add exception_print in
2400 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2402 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2403 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2404 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2405 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2406 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2407 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2408 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2409 * infrun.c (fetch_inferior_event): Call
2410 make_bpstat_clear_actions_cleanup.
2411 * top.c (execute_command): New variable cleanup_if_error, call
2412 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2413 * utils.c (do_bpstat_clear_actions_cleanup)
2414 (make_bpstat_clear_actions_cleanup): New functions.
2416 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2418 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2419 either the parent or the child forks. Rename a couple locals.
2421 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2423 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2424 library call. Avoid reading the `status' local if all waitpid
2427 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2429 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2430 opening /proc/PID/task always succeeds.
2432 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2434 * linespec.c (symtab_from_filename): Check for the end of string.
2436 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2439 * varobj.c (cplus_describe_child): Add the keyword
2440 'class' to the output of the method when dealing
2441 with a cast to a base class.
2443 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2445 No functionality change.
2446 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2447 function comment a reference, new variables tp and bs, move here code
2448 from throw_exception.
2449 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2450 describe it in the comment.
2451 * exceptions.c (throw_exception): Remove variable tp, move the code for
2452 bpstat_clear_actions to bpstat_clear_actions.
2454 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2456 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2457 * linux-nat.c: Include linux-procfs.h.
2458 (linux_proc_get_tgid): Move to ...
2459 * common/linux-procfs.c: ... here. New file.
2460 * common/linux-procfs.h: New file.
2461 * linux-thread-db.c: Include linux-procfs.h.
2462 * Makefile.in: Update dependencies.
2463 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2464 * config/arm/linux.mh: Likewise.
2465 * config/i386/linux.mh: Likewise.
2466 * config/i386/linux64.mh: Likewise.
2467 * config/ia64/linux.mh: Likewise.
2468 * config/m32r/linux.mh: Likewise.
2469 * config/m68k/linux.mh: Likewise.
2470 * config/mips/linux.mh: Likewise.
2471 * config/pa/linux.mh: Likewise.
2472 * config/pa/linux.mh: Likewise.
2473 * config/powerpc/linux.mh: Likewise.
2474 * config/powerpc/ppc64-linux.mh: Likewise.
2475 * config/powerpc/spu-linux.mh: Likewise.
2476 * config/sparc/linux.mh: Likewise.
2477 * config/sparc/linux64.mh: Likewise.
2478 * config/xtensa/linux.mh: Likewise.
2480 2011-08-24 Hui Zhu <teawater@gmail.com>
2482 * tracepoint.c (cond_string_is_same): New function.
2483 (find_matching_tracepoint): Add condition check
2484 by cond_string_is_same.
2486 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2488 Fix build error in Darwin port.
2489 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2491 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2494 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2495 (command_line_is_silent): New function.
2496 (bpstat_do_actions_1): No longer use commands_left, use
2497 command_line_is_silent for commands.
2498 (bpstat_alloc): Remove clearing of commands_left.
2499 (bpstat_stop_status): Remove initialization of commands_left, use
2500 command_line_is_silent.
2501 * breakpoint.h (struct bpstats): Remove commands_left.
2503 2011-08-18 Keith Seitz <keiths@redhat.com>
2506 * cp-name-parser.y (struct demangle_info): Remove unused
2509 (allocate_info): Change return type to struct demangle_info *.
2510 Always allocate a new demangle_info.
2511 Remove unused PREV pointer.
2512 (cp_new_demangle_parse_info): New function.
2513 (cp_demangled_name_parse_free): New function.
2514 (do_demangled_name_parse_free_cleanup): New function.
2515 (make_cleanup_cp_demangled_name_parse_free): New function.
2516 (cp_demangled_name_to_comp): Change return type to
2517 struct demangle_parse_info *.
2518 Allocate a new storage for each call.
2519 (main): Update usage for cp_demangled_name_to_comp
2521 * cp-support.h (struct demangle_parse_info): New structure.
2522 (cp_demangled_name_to_comp): Update API change for
2524 (cp_new_demangle_parse_info): Declare.
2525 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2526 (cp_demangled_name_parse_free): Declare.
2527 * cp-support.c (cp_canonicalize_string): Update API
2528 change for cp_demangled_name_to_comp.
2529 (mangled_name_to_comp): Likewise.
2530 Return struct demangle_parse_info, too.
2531 (cp_class_name_from_physname): Update mangled_name_to_comp
2533 (method_name_from_physname): Likewise.
2534 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2535 (cp_remove_params): Likewise.
2536 * python/py-type.c (typy_legacy_template_argument): Likewise.
2538 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2539 (cp_merge_demangle_parse_infos): Declare.
2540 * cp-support.c (ignore_typedefs): New file global.
2541 (copy_string_to_obstack): New function.
2542 (inspect_type): New function.
2543 (replace_typedefs): New function.
2544 (replace_typedefs_qualified_name): New function.
2545 (cp_canonicalize_string_no_typedefs): New function.
2546 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2547 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2548 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2549 instead of cp_canonicalize_string.
2550 (find_method): Likewise.
2551 (decode_compound): Before looking up the name, call
2552 cp_canonicalize_string_no_typedefs.
2553 (decode_variable): Likewise.
2555 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2556 Tom Tromey <tromey@redhat.com>
2557 Matt Rice <ratmice@gmail.com>
2559 * python/lib/gdb/prompt.py: New file.
2560 * python/lib/gdb/command/prompt.py: New file.
2561 * NEWS: Document set extended-prompt and gdb.prompt library
2563 2011-08-16 Yao Qi <yao@codesourcery.com>
2565 * tic6x-linux-tdep.c: Move const arrays definition from here...
2566 * tic6x-tdep.c: to here ...
2568 2011-08-14 Yao Qi <yao@codesourcery.com>
2570 * NEWS: New port to Texas Instruments TMS320C6x.
2572 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2573 Bernd Schmidt <bernds@codesourcery.com>
2574 Yao Qi <yao@codesourcery.com>
2576 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2577 * solib-dsbt.c: New file. Support DSBT shared object.
2578 * tic6x-linux-tdep.c: New file.
2579 * tic6x-tdep.c: New file.
2580 * tic6x-tdep.h: New file.
2582 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2583 Yao Qi <yao@codesourcery.com>
2585 * remote.c (PACKET_qXfer_fdpic): New enum value.
2586 (remote_protocol_features): Add qXfer:fdpic:read packet.
2587 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2588 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2589 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2591 2011-08-14 Yao Qi <yao@codesourcery.com>
2593 Target description for tic6x.
2594 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2595 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2596 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2597 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2598 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2599 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2600 * features/tic6x-c64xp-linux.xml: New.
2601 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2602 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2603 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2604 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2605 * regformats/tic6x-c64xp.dat,
2606 regformats/tic6x-c62x-linux.dat: Generated.
2607 * regformats/tic6x-c64x-linux.dat,
2608 regformats/tic6x-c64xp-linux.dat: Generated.
2609 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2610 features/tic6x-*.c files.
2611 Add regformats/tic6x-*.dat files.
2613 2011-08-12 Doug Evans <dje@google.com>
2615 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2616 * python/py-symbol.c (sympy_get_type): New function.
2617 (symbol_object_getset): Add "type".
2619 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2623 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2625 (tui_show_register_group): Don't store a byte buffer in the data
2627 (tui_register_format): Skip registers with an empty name.
2628 (tui_get_register): Store a struct value in the data element's
2629 value field instead of a byte buffer holding the raw register
2630 contents. Account for optimized-out and unavailable registers
2631 when comparing register contents.
2633 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2635 * printcmd.c (current_display_number): Update comment.
2636 (disable_current_display_cleanup): Delete.
2637 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2638 catch errors thrown while evaluating and printing the display.
2640 2011-08-09 Tom Tromey <tromey@redhat.com>
2642 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2644 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2646 * elfread.c (elf_symtab_read): Rework comments.
2647 * maint.c (maintenance_command): Ditto.
2648 * somread.c (som_symtab_read): Ditto.
2649 * solib.c (solib_find, solib_map_sections, update_solib_list)
2650 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2651 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2652 (sharedlibrary_command, no_shared_libraries): Ditto.
2653 * solib-irix.c (locate_base, disable_break, enable_break)
2654 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2655 (irix_current_sos, irix_open_symbol_file_object)
2656 (irix_special_symbol_handling): Ditto.
2657 * solib-sunos.c (locate_base, first_link_map_member)
2658 (sunos_current_sos, disable_break, enable_break)
2659 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2661 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2662 (open_symbol_file_object, svr4_current_sos, enable_break)
2663 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2665 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2666 (frv_current_sos, enable_break, frv_special_symbol_handling)
2667 (frv_solib_create_inferior_hook): Ditto.
2668 * solist.h (struct target_so_ops): Extend the comments of the
2669 special_symbol_handling, current_sos and open_symbol_file_object
2672 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2674 * python/lib/gdb/__init__.py: Auto-load files in command and
2675 function directories.
2676 * python/python.c (finish_python_initialization): Use
2678 * python/lib/gdb/command/pretty_printers.py: Self register
2680 * NEWS: Document auto-loading.
2682 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2684 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2685 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2686 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2688 2011-08-08 Tom Tromey <tromey@redhat.com>
2690 * breakpoint.c (clean_up_filters): Remove.
2691 (catch_syscall_split_args): Use VEC_cleanup.
2693 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2695 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2696 (main): Uncomment "Demangling error\n".
2698 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2700 * solib-target.c (segment_attributes): Make them static.
2701 (section_attributes, library_children, library_attributes): Likewise.
2702 (library_list_children, library_list_attributes): Likesise.
2703 (library_list_elements): Likewise.
2705 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2707 * exceptions.c (throw_exception): Don't disable the current
2709 * printcmd.c (disable_current_display_cleanup): New function.
2710 (do_one_display): Install a cleanup to disable the current display
2711 if doing the display throws.
2713 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2715 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2716 initialization of the tp_new member to the corresponding
2717 gdbpy_initialize_* function.
2718 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2719 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2720 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2721 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2722 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2724 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2726 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2727 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2728 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2729 references to current_uiout.
2731 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2733 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2734 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2735 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2736 * top.c (gdb_readline_wrapper): Adjust.
2737 * tui/tui-interp.c (tui_command_loop):
2738 (_initialize_tui_interp): Don't install it.
2740 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2742 * ui-out.h (uiout): Rename to ...
2743 (current_uiout): ... this.
2744 * ui-out.c (uiout): Rename to ...
2745 (current_uiout): ... this.
2746 * ada-lang.c (print_it_exception, print_one_exception)
2747 (print_mention_exception): Adjust.
2748 * breakpoint.c (watchpoint_check): Adjust.
2749 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2750 (default_collect_info, watchpoints_info, print_one_catch_fork)
2751 (print_one_catch_vfork, print_one_catch_syscall)
2752 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2753 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2754 (print_it_watchpoint, print_mention_watchpoint)
2755 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2756 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2757 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2758 (bkpt_print_mention, momentary_bkpt_print_it)
2759 (tracepoint_print_mention, update_static_tracepoint)
2760 (tracepoints_info, save_breakpoints): Adjust.
2761 * cli-out.c (field_separator): Adjust.
2762 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2763 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2764 * frame.c (get_current_frame): Adjust.
2765 * infcmd.c (run_command_1, print_return_value): Adjust.
2766 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2767 * infrun.c (print_end_stepping_range_reason): Adjust.
2768 (print_signal_exited_reason, print_exited_reason): Adjust.
2769 (print_signal_received_reason, print_no_history_reason): Adjust.
2770 * interps.c (interp_set): Adjust.
2771 * osdata.c (info_osdata_command): Adjust.
2772 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2773 * remote-fileio.c (remote_fileio_request): Adjust.
2774 * remote.c (show_remote_cmd): Adjust.
2775 * solib.c (info_sharedlibrary_command): Adjust.
2776 * source.c (print_source_lines_base): Adjust.
2777 * stack.c (print_stack_frame): Adjust.
2778 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2779 * symfile-mem.c (add_vsyscall_page): Adjust.
2780 * symfile.c (load_progress, generic_load)
2781 (print_transfer_performance): Adjust.
2782 * thread.c (info_threads_command, restore_selected_frame)
2783 (thread_command): Adjust.
2784 * top.c (make_cleanup_restore_ui_file): Adjust.
2785 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2786 (print_one_static_tracepoint_marker): Adjust.
2787 * cli/cli-cmds.c (print_disassembly): Adjust.
2788 * cli/cli-decode.c (print_doc_line): Adjust.
2789 * cli/cli-interp.c (safe_execute_command): Adjust.
2790 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2791 (handle_redirections): Adjust.
2792 * cli/cli-script.c (show_user_1): Adjust.
2793 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2794 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2795 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2796 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2797 (mi_cmd_env_dir): Adjust.
2798 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2799 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2800 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2801 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2802 (list_args_or_locals): Adjust.
2803 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2804 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2805 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2806 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2807 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2808 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2809 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2810 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2811 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2812 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2813 (list_available_thread_groups, mi_cmd_list_thread_groups)
2814 (mi_cmd_data_list_register_names)
2815 (mi_cmd_data_list_changed_registers)
2816 (mi_cmd_data_list_register_values, get_register)
2817 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2818 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2819 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2820 (mi_execute_command, mi_load_progress): Adjust.
2821 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2822 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2824 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2825 * tui/tui-interp.c (tui_command_loop): Adjust.
2826 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2828 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2830 * exceptions.c (struct catcher): Remove saved_uiout field.
2831 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2832 no longer save/resvore the global ui_out builder.
2833 (catch_exceptions_with_msg): Save/override/restore the global
2834 ui_out builder manually instead of relying on TRY_CATCH to do it.
2835 (catch_errors): Save/restore the global ui_out builder manually
2836 instead of relying on TRY_CATCH to do it.
2837 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2839 (TRY_CATCH): Adjust.
2840 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2841 the global ui_out builder manually instead of relying on TRY_CATCH
2844 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2846 * breakpoint.c (update_global_location_list): Ensure
2847 invariant 'first loc marked not duplicated and inserted,
2848 following locs marked duplicated/not inserted' is respected
2849 for multiple locations at the same address.
2850 (unduplicated_should_be_inserted) New function.
2851 (swap_insertion) New function.
2853 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2855 * stack.c (print_frame_arguments_choices): Comment typo fix.
2857 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2860 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2861 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2862 argument. Update callers.
2864 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2867 * doublest.c (convert_doublest_to_floatformat): Pass correct
2868 mantissa length to put_field.
2870 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2872 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2873 exception_print code path.
2874 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2875 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2876 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2878 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2881 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2882 Remove, merge them into ...
2883 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2884 variable args and its initialization.
2885 (struct print_args_args, print_args_stub): Remove, merge them into
2887 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2889 (do_gdb_disassembly): ... here. Remove variable args and its
2891 (print_frame): Remove variable args and its initialization, new
2892 variable gdbarch and numargs (from print_args_stub), inline here
2893 print_args_stub with a TRY_CATCH.
2894 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2896 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
2897 New variable e, remove variable btargs and its initialization.
2899 2011-08-01 Tristan Gingold <gingold@adacore.com>
2901 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2903 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2905 * breakpoint.c (insert_bp_location): Document return value.
2906 (insert_breakpoint_locations): Fix documentation.
2907 (remove_breakpoints): Add documentation.
2909 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2911 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2912 argument. Update callers.
2914 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2916 * stack.c (print_frame_info): Comment typo fix.
2918 2011-07-29 Sterling Augustine <saugustine@google.com>
2920 * MAINTAINERS (Write After Approval): Add myself to the list.
2922 2011-07-29 Tom Tromey <tromey@redhat.com>
2924 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2925 (library_list_start_segment): Update.
2926 (library_list_start_section): Update.
2928 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2930 * varobj.c (value_get_print_value): Move hint check later into the
2931 function. Comment function. Free thevalue before reusing it.
2933 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2934 Pedro Alves <pedro@codesourcery.com>
2936 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2938 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2939 Assert the result kind.
2940 * value.h (value_one): Remove parameter lv.
2942 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2944 Fix crash on lval_computed values.
2945 * valops.c (value_zero): Use not_lval for lval_computed.
2947 2011-07-27 Tom Tromey <tromey@redhat.com>
2949 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2950 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2952 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2954 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2955 "ptype" by their typedefs difference.
2957 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2959 * dwarf2expr.c (ctx_no_read_reg): New function.
2960 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2961 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2962 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2963 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2965 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2967 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2968 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2970 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2971 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2972 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2973 (ctx_no_get_base_type): Move the functions here.
2974 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2975 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2976 (ctx_no_get_base_type): New declarations.
2978 2011-07-27 Tom Tromey <tromey@redhat.com>
2980 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2982 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2983 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2985 2011-07-26 Sterling Augustine <saugustine@google.com>
2987 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2989 (dump_bfd_file): Likewise.
2991 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2993 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2994 (remote_hw_watchpoint_length_limit): New variable.
2995 (_initialize_remote) add set,show cmds for this new variable.
2996 * gdb.texinfo: document these new commands.
2997 * NEWS: Mention these new commands.
2999 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3001 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3002 true for software watchpoints.
3004 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3008 2011-07-26 Tom Tromey <tromey@redhat.com>
3010 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3011 * dwarf2read.c (read_indirect_string_at_offset): New function.
3012 (read_indirect_string): Use it.
3013 (dwarf_decode_macro_bytes): New function, taken from
3014 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3015 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3016 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3018 (struct dwarf2_per_objfile) <macro>: New field.
3019 (dwarf2_elf_names): Add .debug_macro.
3020 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3021 (dwarf2_locate_sections): Handle new section.
3022 (read_file_scope): Handle DW_AT_GNU_macros.
3023 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3025 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3027 * NEWS: Mention dcache configuration.
3028 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3029 (dcache_size, dcache_line_size): New variables.
3030 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3031 (struct dcache_block): Make it expandable.
3032 (struct dcache_struct): New field.
3033 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3034 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3035 (dcache_poke_byte, dcache_print_line): Adjust.
3036 (set_dcache_size, set_dcache_line_size): New functions.
3037 (set_dcache_command, show_dcache_command): New functions.
3038 (_initialize_dcache): Add new commands.
3040 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3042 * progspace.h (struct program_space): Add solib_add_generation.
3043 * infcmd.c (post_create_inferior): Only call solib_add if not
3045 * solib.c (solib_add): Increment solib_add_generation.
3047 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3049 Fix implicit pointer offsets.
3050 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3053 2011-07-25 Tom Tromey <tromey@redhat.com>
3055 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3057 (ada_exception_sal): Make 'ops' const.
3058 (ada_decode_exception_location): Likewise.
3059 (ada_decode_assert_location): Likewise.
3060 (catch_assert_command): Update.
3061 (catch_ada_exception_command): Update.
3062 (create_ada_exception_catchpoint): Make 'ops' const.
3063 * breakpoint.c (set_raw_breakpoint_without_location)
3064 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3066 (create_internal_breakpoint): Update.
3067 (init_raw_breakpoint_without_location): Make 'ops' const.
3068 (init_raw_breakpoint, init_catchpoint)
3069 (create_fork_vfork_event_catchpoint)
3070 (create_syscall_event_catchpoint, init_breakpoint_sal)
3071 (create_breakpoint_sal, create_breakpoints_sal)
3072 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3073 * breakpoint.h (struct breakpoint) <ops>: Now const.
3074 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3077 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3079 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3081 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3083 * breakpoint.h (print_recreate_thread): Declare.
3084 (struct breakpoint): Move step_count, pass_count,
3085 number_on_target, static_trace_marker_id,
3086 static_trace_marker_id_idx ...
3087 (struct tracepoint): ... to this new struct.
3088 (get_tracepoint, get_tracepoint_by_number_on_target)
3089 (get_tracepoint_by_number): Change return type to struct
3091 * breakpoint.c (is_tracepoint_type): New, factored out from
3093 (is_tracepoint): Adjust.
3094 (print_one_breakpoint_location): Cast to struct tracepoint as
3095 necessary, and adjust.
3096 (print_recreate_catch_fork, print_recreate_catch_vfork)
3097 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3098 print_recreate_thread.
3099 (init_breakpoint_sal): New, factored out from
3100 create_breakpoint_sal.
3101 (create_breakpoint_sal): Reimplement.
3102 (create_breakpoint): Allocate a struct tracecepoint if the caller
3103 wanted a tracepoint. Use init_breakpoint_sal and
3105 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3106 (print_recreate_masked_watchpoint)
3107 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3108 (tracepoint_print_one_detail): Adjust.
3109 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3110 Dump the pass count here.
3111 (update_static_tracepoint): Adjust.
3112 (addr_string_to_sals): Adjust.
3113 (create_tracepoint_from_upload): Adjust. Change return type to
3114 struct tracepoint pointer.
3115 (trace_pass_set_count): Change parameter type to struct tracepoint
3116 pointer, and adjust.
3117 (trace_pass_command): Adjust.
3118 (get_tracepoint, get_tracepoint_by_number_on_target)
3119 (get_tracepoint_by_number): Change return type to struct
3120 tracepoint pointer, and adjust.
3121 (print_recreate_thread): New, factored out from save_breakpoints.
3122 (save_breakpoints): Don't print thread and task and passcount
3124 * remote.c (remote_download_tracepoint): Adjust.
3125 * tracepoint.c (trace_actions_command, validate_actionline)
3126 (start_tracing, tfind_1, trace_find_tracepoint_command)
3127 (trace_dump_command): Adjust.
3128 (find_matching_tracepoint): Change return type to struct
3129 tracepoint pointer, and adjust.
3130 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3131 (tfile_trace_find, tfile_fetch_registers): Adjust.
3132 * tracepoint.h (create_tracepoint_from_upload): Change return type
3133 to struct tracepoint pointer.
3134 * ada-lang.c (print_recreate_exception): Call
3135 print_recreate_thread.
3136 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3138 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3140 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3141 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3142 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3143 watchpoint_thread, watchpoint_triggered ...
3144 (struct watchpoint): ... to this new struct.
3145 (is_watchpoint): Declare.
3146 (install_breakpoint): Add new `internal' parameter.
3147 * breakpoint.c (is_watchpoint): Delete declaration.
3148 (set_breakpoint_condition): Handle watchpoints.
3149 (is_watchpoint): Make public.
3150 (watchpoint_in_thread_scope): Change parameter type to struct
3152 (watchpoint_del_at_next_stop): Change parameter type to struct
3153 watchpoint. Remove assertion. Adjust.
3154 (update_watchpoint): Ditto.
3155 (insert_breakpoints, breakpoint_init_inferior)
3156 (watchpoints_triggered, watchpoint_check)
3157 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3158 (bpstat_stop_status, print_one_breakpoint_location)
3159 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3160 to struct watchpoint as necessary, and adjust.
3161 (install_breakpoint): Add `internal' argument. If true, don't
3162 mention the new breakpoint. Use set_breakpoint_number.
3163 (create_fork_vfork_event_catchpoint)
3164 (create_syscall_event_catchpoint): Adjust.
3165 (dtor_watchpoint): New.
3166 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3167 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3168 (print_it_watchpoint, print_mention_watchpoint)
3169 (print_recreate_watchpoint, insert_masked_watchpoint)
3170 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3171 (print_one_detail_masked_watchpoint)
3172 (print_mention_masked_watchpoint)
3173 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3174 necessary, and adjust.
3175 (watch_command_1): Allocate and initialize a struct watchpoint
3176 instead of a struct breakpoint. Use install_breakpoint.
3177 (catch_exec_command_1): Adjust.
3178 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3180 (delete_breakpoint, enable_breakpoint_disp)
3181 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3182 as necessary, and adjust.
3183 (initialize_breakpoint_ops): Install dtor_watchpoint as
3184 watchpoints' dtor method.
3185 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3186 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3187 to struct watchpoint as necessary, and adjust.
3189 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3191 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3192 the the base class ops table.
3193 (catch_exception_breakpoint_ops)
3194 (catch_exception_unhandled_breakpoint_ops)
3195 (catch_assert_breakpoint_ops): Don't statically initialize.
3196 (initialize_ada_catchpoint_ops): New.
3197 (_initialize_ada_language): Call it.
3198 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3199 (bkpt_breakpoint_ops): Forward declare.
3200 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3201 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3202 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3203 (masked_watchpoint_breakpoint_ops)
3204 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3205 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3206 base class ops table.
3207 (null_re_set, null_check_status, null_works_in_software_mode)
3208 (null_resources_needed, null_print_one_detail): Delete.
3209 (bkpt_dtor): Rename to ...
3210 (base_breakpoint_dtor): ... this. Make static.
3211 (bkpt_allocate_location): Rename to ...
3212 (base_breakpoint_allocate_location): ... this. Make static.
3213 (base_breakpoint_re_set): New.
3214 (internal_error_pure_virtual_called): New.
3215 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3216 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3217 (base_breakpoint_works_in_software_mode)
3218 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3219 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3220 (base_breakpoint_print_recreate): New functions.
3221 (base_breakpoint_ops): New global.
3222 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3223 (bkpt_breakpoint_hit): Make static.
3224 (bkpt_check_status): Delete.
3225 (bkpt_resources_needed): Make static.
3226 (bkpt_works_in_software_mode): Delete.
3227 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3229 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3230 (momentary_breakpoint_ops): Don't statically initialize.
3231 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3233 (tracepoint_insert_location, tracepoint_remove_location)
3234 (tracepoint_check_status, tracepoint_works_in_software_mode)
3235 (tracepoint_print_it): Delete.
3236 (tracepoint_breakpoint_ops): Don't statically initialize.
3237 (initialize_breakpoint_ops): New.
3238 (_initialize_breakpoint): Call it.
3239 * breakpoint.h (null_re_set, null_works_in_software_mode)
3240 (null_resources_needed, null_check_status, null_print_one_detail):
3241 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3242 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3243 (bkpt_check_status, bkpt_resources_needed)
3244 (bkpt_works_in_software_mode, bkpt_print_it)
3245 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3246 Delete declarations.
3247 (initialize_breakpoint_ops): Declare.
3249 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3251 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3252 (momentary_bkpt_print_it): Simplify.
3254 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3256 Split internal, momentary and user breakpoints breakpoint_ops
3259 * breakpoint.c (internal_breakpoint_ops)
3260 (momentary_breakpoint_ops): Forward declare.
3261 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3262 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3263 (create_overlay_event_breakpoint)
3264 (create_std_terminate_master_breakpoint)
3265 (create_exception_master_breakpoint): Create breakpoints with
3266 internal_breakpoint_ops vtable.
3267 (set_longjmp_breakpoint): Create momentary breakpoints with
3268 momentary_breakpoint_ops vtable, using
3269 momentary_breakpoint_from_master.
3270 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3271 (create_solib_event_breakpoint): Create breakpoints with
3272 internal_breakpoint_ops vtable.
3273 (set_momentary_breakpoint): Create breakpoints with
3274 momentary_breakpoint_ops vtable.
3275 (momentary_breakpoint_from_master): New, factored out from
3276 clone_momentary_breakpoint.
3277 (clone_momentary_breakpoint): Adjust.
3278 (watch_command_1): Create scope breakpoints with
3279 momentary_breakpoint_ops vtable.
3280 (bkpt_re_set): Remove handling of internal and momentary
3282 (bkpt_print_mention, bkpt_print_recreate): New.
3283 (bkpt_breakpoint_ops): Adjust.
3284 (internal_bkpt_re_set, internal_bkpt_check_status)
3285 (internal_bkpt_print_it, internal_bkpt_print_mention)
3286 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3287 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3288 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3289 (momentary_bkpt_print_recreate): New.
3290 (momentary_breakpoint_ops): New.
3292 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3294 Implement most breakpoint_ops methods for all breakpoint types,
3295 and move the default handlings to the proper callbacks.
3297 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3298 works_in_software_mode method.
3299 (insert_bp_location): Go through breakpoint_ops->insert_location
3300 for software and hardware watchpoints.
3301 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3303 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3304 for software and hardware watchpoints.
3305 (print_it_typical): Delete.
3306 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3308 (watchpoint_check): Adjust comment.
3309 (bpstat_check_location): Simply always call the breakpoint's
3310 breakpoint_hit method.
3311 (bpstat_stop_status): Always call the breakpoint's check_status
3312 method. Remove special cases for watchpoints and internal event
3313 breakpoints from here (moved to the check_status implementations).
3314 (print_one_breakpoint_location): Assume b->ops is never NULL.
3315 Remove static tracepoint marker id printing from here (moved to
3316 the print_one_detail callback implementation of tracepoints).
3317 (init_bp_location): Assert OPS is never NULL.
3318 (allocate_bp_location): Always call the breakpoint's
3319 allocate_location method, and remove the default code from here.
3320 (free_bp_location): Always call the location's dtor method, and
3321 remove the default code from here.
3322 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3323 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3324 parameter. Pass it down.
3325 (set_raw_breakpoint): Ditto.
3326 (print_it_catch_fork): Adjust to take a bpstat as argument.
3327 (catch_fork_breakpoint_ops): Install methods.
3328 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3329 (catch_vfork_breakpoint_ops): Install methods.
3330 (dtor_catch_syscall): Call the base dtor.
3331 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3332 (catch_syscall_breakpoint_ops): Install methods.
3333 (dtor_catch_exec): Call the base dtor.
3334 (print_it_catch_exec): Adjust to take a bpstat as argument.
3335 (catch_exec_breakpoint_ops): Install methods.
3336 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3337 the breakpoint's resources_needed method, and remove the default
3339 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3341 (clone_momentary_breakpoint): Clone the original's ops.
3342 (mention): Always call the breakpoint's print_mention method, and
3343 remove the default code from here.
3344 (create_breakpoint_sal): Adjust to pass the ops to
3345 set_raw_breakpoint rather than setting it manually.
3346 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3347 ops to set_raw_breakpoint_without_location rather than setting it
3349 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3350 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3351 (ranged_breakpoint_ops): Install methods.
3352 (break_range_command): Adjust to pass the ops to
3353 set_raw_breakpoint rather than setting it manually.
3354 (re_set_watchpoint, breakpoint_hit_watchpoint)
3355 (check_status_watchpoint, resources_needed_watchpoint)
3356 (works_in_software_mode_watchpoint, print_it_watchpoint)
3357 (print_mention_watchpoint, print_recreate_watchpoint): New
3359 (watchpoint_breakpoint_ops): Install new methods.
3360 (print_it_masked_watchpoint): New function.
3361 (masked_watchpoint_breakpoint_ops): Install new methods.
3362 (watch_command_1): Adjust to pass the right breakpoint_ops to
3363 set_raw_breakpoint_without_location rather than setting it
3364 manually later. Record the current pspace.
3365 (print_it_exception_catchpoint): Adjust to take a bpstat as
3367 (gnu_v3_exception_catchpoint_ops): Install new methods.
3368 (say_where): New function.
3369 (null_re_set, null_check_status, null_works_in_software_mode)
3370 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3372 (bp_location_ops): New global.
3373 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3374 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3375 (bkpt_check_status, bkpt_resources_needed)
3376 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3377 (bkpt_print_recreate): New functions.
3378 (bkpt_breakpoint_ops): New global.
3379 (tracepoint_re_set, tracepoint_insert_location)
3380 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3381 (tracepoint_check_status, tracepoint_works_in_software_mode)
3382 (tracepoint_print_it, tracepoint_print_one_detail)
3383 (tracepoint_print_mention, tracepoint_print_recreate): New
3385 (tracepoint_breakpoint_ops): New global.
3386 (delete_breakpoint): Always call the breakpoint's dtor method, and
3387 remove the default handling from here.
3388 (breakpoint_re_set_default): Make static.
3389 (breakpoint_re_set_one): Always call the breakpoints re_set
3390 method, and remove the default handling from here.
3391 (trace_command, ftrace_command, strace_command)
3392 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3393 to create_breakpoint.
3394 (save_breakpoints): Always call the breakpoint's print_recreate
3395 method, and remove the default handling from here.
3397 * ada-lang.c (dtor_exception): Call the base dtor.
3398 (re_set_exception): Call the base method.
3399 (print_it_exception, print_it_catch_exception): Adjust to take a
3401 (catch_exception_breakpoint_ops): Install methods.
3402 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3404 (catch_exception_unhandled_breakpoint_ops): Install methods.
3405 (print_it_catch_assert): Adjust to take a bpstat as argument.
3406 (catch_assert_breakpoint_ops): Install methods.
3408 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3409 to take a bpstat as argument.
3410 (enum print_stop_action): Add describing comments to each enum
3412 (breakpoint_re_set_default): Delete declaration.
3413 (null_re_set, null_works_in_software_mode, null_resources_needed)
3414 (null_check_status, null_print_one_detail): Declare.
3415 (bkpt_breakpoint_ops): Declare.
3416 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3417 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3418 (bkpt_check_status, bkpt_resources_needed)
3419 (bkpt_works_in_software_mode, bkpt_print_it)
3420 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3423 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3424 bkpt_breakpoint_ops.
3425 * python/py-breakpoint.c (bppy_init): Ditto.
3427 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3429 * MAINTAINERS (Write After Approval): Add myself to the list.
3431 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3433 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3435 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3437 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3438 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3439 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3441 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3442 (struct i386_debug_reg_state): New.
3443 (i386_init_dregs): New.
3445 (i386_cleanup_dregs): Use i386_init_dregs.
3446 (i386_show_dr): Add state parameter and adjust.
3447 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3449 (i386_remove_aligned_watchpoint): Likewise.
3450 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3451 (i386_update_inferior_debug_regs): New.
3452 (i386_insert_watchpoint): Work on a local mirror of the debug
3453 registers, and only update the inferior on success.
3454 (i386_remove_watchpoint): Ditto.
3455 (i386_region_ok_for_watchpoint): Adjust.
3456 (i386_stopped_data_address): Adjust.
3457 (i386_insert_hw_breakpoint): Adjust.
3458 (i386_remove_hw_breakpoint): Adjust.
3460 2011-07-22 Tom Tromey <tromey@redhat.com>
3462 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3463 from amd64_pseudo_register_read. Change arguments. Call
3464 mark_value_bytes_unavailable when needed.
3465 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3466 set_gdbarch_pseudo_register_read.
3467 * sentinel-frame.c (sentinel_frame_prev_register): Use
3468 regcache_cooked_read_value.
3469 * regcache.h (regcache_cooked_read_value): Declare.
3470 * regcache.c (regcache_cooked_read_value): New function.
3471 (regcache_cooked_read): Call
3472 gdbarch_pseudo_register_read_value if available.
3473 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3474 (i386_pseudo_register_read): Remove.
3475 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3476 i386_pseudo_register_read. Change arguments. Call
3477 mark_value_bytes_unavailable when needed.
3478 (i386_pseudo_register_read_value): New function.
3479 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3480 not set_gdbarch_pseudo_register_read.
3481 * gdbarch.sh (pseudo_register_read_value): New method.
3482 * gdbarch.c, gdbarch.h: Rebuild.
3483 * findvar.c (value_from_register): Call get_frame_register_value.
3485 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3487 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3489 (display_gdb_prompt): Likewise.
3490 (change_annotation_level): Likewise.
3491 (push_prompt): Likewise.
3492 (pop_prompt): Likewise.
3493 (handle_stop_sig): Use get_prompt with a level.
3494 * top.c (command_loop): Use get_prompt with a level.
3495 (set_async_annotation_level): Use set_prompt with a level.
3496 (get_prefix): New function.
3497 (set_prefix): Ditto.
3498 (set_suffix): Ditto.
3499 (get_suffix): Ditto.
3500 (get_prompt): Accept a level argument.
3501 (set_prompt): Accept a level argument. Free old prompts. Set
3502 new_async_prompt if level is 0.
3503 (init_main): Use set_prompt with a level. Do not set
3505 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3506 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3507 Modify set_prompt, get_prompt to account for levels.
3508 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3510 * python/python.c (before_prompt_hook): Use set_prompt.
3512 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3514 * defs.h: Add guard against inclusion in gdbserver.
3515 (struct ptid, ptid_t): Move to common/ptid.h.
3516 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3517 xsnprintf, internal_error): Move to common/common-utils.h.
3519 * gdb_assert.h: Move into common/ sub-directory.
3520 * gdb_locale.h: Ditto.
3521 * gdb_dirent.h: Ditto.
3522 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3523 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3524 Move into common/ptid.h.
3525 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3526 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3527 Change nomem to malloc_failure.
3528 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3529 * utils.c (nomem): Rename to malloc_failure.
3530 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3531 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3532 (gdb_buildargv): Change nomem to malloc_failure.
3533 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3534 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3535 ptid_is_pid): Move into common/ptid.c.
3536 (initialize_infrun): Delete initialization of null_ptid and
3538 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3539 linux_common_xfer_osdata.
3540 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3541 common/ptid.c and common/buffer.c.
3542 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3543 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3544 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3545 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3547 * common/gdb_assert.h: New.
3548 * common/gdb_dirent.h: New.
3549 * common/gdb_locale.h: New.
3550 * common/buffer.c: New.
3551 * common/buffer.h: New.
3552 * common/ptid.c: New.
3553 * common/ptid.h: New.
3554 * common/xml-utils.c: New.
3555 * common/xml-utils.h: New.
3556 * common/common-utils.c: New.
3557 * common/common-utils.h: New.
3558 * common/linux-osdata.c: New.
3559 * common/linux-osdata.h: New.
3560 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3561 * config/arm/linux.mh (NATDEPFILES): Ditto.
3562 * config/i386/linux.mh (NATDEPFILES): Ditto.
3563 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3564 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3565 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3566 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3567 * config/mips/linux.mh (NATDEPFILES): Ditto.
3568 * config/pa/linux.mh (NATDEPFILES): Ditto.
3569 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3570 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3571 * config/s390/s390.mh (NATDEPFILES): Ditto.
3572 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3573 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3574 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3576 2011-07-21 Matt Rice <ratmice@gmail.com>
3578 * NEWS: Add info macros and info definitions commands.
3580 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3582 * NEWS: Document Python prompt substitution hook.
3584 2011-07-18 Matt Rice <ratmice@gmail.com>
3587 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3588 * macrotab.c (foreach_macro): Ditto.
3589 (foreach_macro_in_scope): Ditto.
3590 * macrocmd.c (print_macro_callback): New function.
3591 (info_macro_command): Move some code to print_macro_definition.
3592 (print_macro_definition): New function.
3593 (print_one_macro): Add new arguments to callback.
3594 (info_definitions_command): New function.
3595 (info_macros_command): Ditto.
3596 (_initialize_macrocmd): Add info macros and info definitions commands.
3597 * symtab.c (add_macro_name): Add new arguments to callback.
3599 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3600 Tom Tromey <tromey@redhat.com>
3602 * top.c (set_prompt): Rewrite to free previous prompt, free
3603 asynch_new_prompt and set both on new prompts.
3604 * event-top.c (display_gdb_prompt): Add prompt substitution
3606 * python/python.c (before_prompt_hook): New function.
3608 2011-07-20 Matt Rice <ratmice@gmail.com>
3610 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3611 arguments to store_unsigned_integer.
3613 2011-07-20 Tom Tromey <tromey@redhat.com>
3615 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3616 in some declaration-only cases.
3618 2011-07-18 Tom Tromey <tromey@redhat.com>
3621 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3622 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3623 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3624 <debug_type_section>: New field.
3625 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3626 (load_cu): Use appropriate section.
3627 (create_signatured_type_table_from_index): Add 'section'
3629 (dwarf2_read_index): Only allow a single .debug_types section.
3630 (dw2_get_file_names): Use appropriate section.
3631 (read_type_comp_unit_head): Add 'section' argument.
3632 (create_debug_types_hash_table): Loop over all .debug_types
3634 (init_cu_die_reader): Use appropriate section.
3635 (process_psymtab_comp_unit, load_partial_comp_unit)
3636 (load_full_comp_unit, read_die_and_children, find_partial_die)
3637 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3638 (lookup_signatured_type_at_offset): Add 'section' argument.
3639 (read_signatured_type_at_offset): Add 'sect' argument.
3640 (read_signatured_type): Use appropriate section.
3641 (set_die_type, get_die_type_at_offset): Update.
3642 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3644 (write_psymtabs_to_index): Don't allow index with more than one
3645 .debug_types section.
3647 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3649 Fix crash if referenced CU is aged out.
3650 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3651 xfree of block.data.
3652 (indirect_pieced_value): New variable back_to, use to for xfree of
3654 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3656 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3657 (load_cu): New function from ...
3658 (dw2_do_instantiate_symtab): ... the code here ...
3659 (process_full_comp_unit): ... and here.
3660 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3663 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3665 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3668 2011-07-19 Gary Benson <gbenson@redhat.com>
3670 * infrun.c (struct execution_control_state): New member
3671 stop_func_filled_in.
3672 (clear_stop_func, fill_in_stop_func): New functions.
3673 (handle_inferior_event): Call clear_stop_func rather than
3674 manipulating the execution control state directly.
3675 Call fill_in_stop_func lazily as required rather than
3676 directly calling find_pc_partial_function in all cases.
3678 2011-07-18 Tom Tromey <tromey@redhat.com>
3680 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3681 checking for variable-sized array.
3683 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3685 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3686 of supported languages.
3687 * varobj.c: Add top definitions and basic implementation of the
3688 following callbacks: ada_number_of_children, ada_name_of_variable,
3689 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3690 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3691 (languages): Register Ada-specific callbacks.
3692 (variable_language): Add the Ada case in the language setter switch.
3694 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3696 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3698 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3701 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3702 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3703 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3704 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3705 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3706 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3707 (struct dwarf_expr_context_funcs): New, move here methods from ...
3708 (struct dwarf_expr_context): ... here. New fields funcs.
3709 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3710 (dwarf_expr_ctx_funcs): New.
3711 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3712 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3713 (needs_frame_ctx_funcs): New.
3714 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3716 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3718 * MAINTAINERS (Write After Approval): Add myself to the list.
3720 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3722 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3723 that CIE pointer of an FDE really points to a CIE .
3725 2011-07-15 Hui Zhu <teawater@gmail.com>
3727 * remote.c (remote_get_trace_status): Add comments.
3729 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3731 Code cleanup - constify struct lval_funcs.
3732 * dwarf2loc.c (pieced_value_funcs): Make it const.
3733 * infrun.c (siginfo_value_funcs): Likewise.
3734 * opencl-lang.c (opencl_value_funcs): Likewise.
3735 * valops.c (value_assign, value_ind): Make the funcs variable const.
3736 * value.c (struct value): Make location.computed.funcs target const.
3737 Rearrange the comments.
3738 (allocate_computed_value): Make the funcs parameter target const.
3739 (value_computed_funcs): Return the funcs target const.
3740 (value_free, value_copy, set_value_component_location): Make the funcs
3742 * value.h (allocate_computed_value): Make the funcs parameter target
3744 (value_computed_funcs): Return the funcs target const.
3745 * windows-tdep.c (tlb_value_funcs): Make it const.
3747 2011-07-14 Hui Zhu <teawater@gmail.com>
3749 * remote.c (remote_get_trace_status): Initialize p.
3751 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3754 * remote.c (remote_get_trace_status): New variable ex. Put
3755 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3757 2011-07-13 Tom Tromey <tromey@redhat.com>
3759 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3760 value_from_contents for final conversion.
3762 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3765 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3766 Indent prototypes so they do not get into tags.
3768 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3770 Code cleanup making also optimized out values lazy.
3771 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3772 allocate_optimized_out_value. Twice.
3773 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3774 * findvar.c (read_var_value): Likewise.
3775 * value.c (allocate_optimized_out_value): New function.
3776 * value.h (allocate_optimized_out_value): New declaration.
3778 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3780 Fix occasional crash of CTRL-C during DWARF read in.
3781 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3783 2011-07-11 Tom Tromey <tromey@redhat.com>
3785 * regcache.c (struct regcache_descr): Fix typo.
3786 * i387-tdep.c (i387_supply_xsave): Fix typo.
3788 2011-07-11 Tom Tromey <tromey@redhat.com>
3790 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3791 (read_file_scope, read_type_unit_scope): Use it.
3793 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3795 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3798 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3801 * python/python.c: Set gdbpy_should_print_stack default to off.
3802 (set_python): Deprecate maint set python print-stack to
3804 (_initialize_python): Deprecate maint set/show python print-stack.
3805 Add new prefix command, python. Add new setting, print-backtrace.
3806 * NEWS: Document set python print-stack. Document default change.
3808 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3810 * python/py-inferior.c (infpy_dealloc): New function.
3811 (inferior_to_inferior_object): Return a new object, or a
3812 new reference to the existing object.
3813 (find_thread_object): Cleanup references to inferior.
3814 (delete_thread_object): Ditto.
3815 * python/py-infthread.c (create_thread_object): Do not increment
3816 inferior reference count.
3818 2011-07-08 Tom Tromey <tromey@redhat.com>
3820 * dwarf2loc.c (locexpr_regname): New function.
3821 (locexpr_describe_location_piece): Use it.
3822 (disassemble_dwarf_expression): Add per_cu argument. Use
3824 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3825 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3827 (locexpr_describe_location_1): Add per_cu argument.
3828 (locexpr_describe_location): Update.
3829 (loclist_describe_location): Update.
3831 2011-07-08 Tom Tromey <tromey@redhat.com>
3833 * dwarf2expr.c (execute_stack_op): Add QUIT.
3835 2011-07-07 Hui Zhu <teawater@gmail.com>
3838 2011-07-06 Hui Zhu <teawater@gmail.com>
3839 * remote.c (remote_start_remote): Add TRY_CATCH for
3840 remote_get_trace_status.
3841 * tracepoint.c (disconnect_tracing): Ditto.
3843 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
3845 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3846 variables as signed, not unsigned.
3848 2011-07-06 Joel Brobecker <brobecker@adacore.com>
3850 * jit.c (jit_inferior_init): Reformat forward declaration.
3852 2011-07-06 Matt Rice <ratmice@gmail.com>
3854 * MAINTAINERS (Write After Approval): Add myself to the list.
3856 2011-07-06 Hui Zhu <teawater@gmail.com>
3858 * remote.c (remote_start_remote): Add TRY_CATCH for
3859 remote_get_trace_status.
3860 * tracepoint.c (disconnect_tracing): Ditto.
3862 2011-07-05 Tom Tromey <tromey@redhat.com>
3864 * symtab.c (operator_chars): Now static.
3865 * linespec.c (operator_chars): Don't declare.
3867 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3869 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3871 2011-07-05 Tom Tromey <tromey@redhat.com>
3873 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3874 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3875 (TYPE_CPLUS_REALLY_JAVA): New macro.
3876 * dwarf2read.c (process_structure_scope): Set
3877 TYPE_CPLUS_REALLY_JAVA.
3879 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3881 * ada-lang.c: Fix typos.
3882 * amd64-tdep.c: Likewise.
3883 * breakpoint.c: Likewise.
3884 * cli/cli-decode.c: Likewise.
3885 * findcmd.c: Likewise.
3886 * inline-frame.c: Likewise.
3887 * mi/mi-main.c: Likewise.
3888 * minsyms.c: Likewise.
3889 * monitor.c: Likewise.
3890 * monitor.h: Likewise.
3891 * prologue-value.c: Likewise.
3892 * reverse.c: Likewise.
3893 * s390-tdep.c: Likewise.
3895 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3897 * jit.c (jit_inferior_init): Forward declare.
3898 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3900 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3902 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3904 2011-07-04 Tristan Gingold <gingold@adacore.com>
3906 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3907 (tcb_fieldno): Add activation_link field.
3908 (get_known_tasks_addr): Moved and rewritten.
3909 (get_tcb_types_info): Set activation_link field.
3910 (read_known_tasks_array): Add parameter. Rewritten.
3911 (read_known_tasks_list): New function.
3912 (read_known_tasks): New function.
3913 (ada_build_task_list): Call read_known_tasks instead of
3914 read_known_tasks_array.
3915 * ravenscar-thread.c: Add first_task_name constant.
3916 (has_ravenscar_runtime): Check for task list too.
3918 2011-07-04 Tristan Gingold <gingold@adacore.com>
3920 * ada-tasks.c: Renames fieldno to actb_fieldno.
3921 (ada_get_task_number): Indentation.
3922 (get_tcb_types_info): Remove all parameters. Write directly
3924 (ptid_from_atcb_common): Adjust.
3925 (read_atcb): Adjust.
3927 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3929 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3931 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3933 * ui-out.c (ui_out_field_core_addr): Mention that the function
3934 description is in the header file.
3935 * ui-out.h (ui_out_field_core_addr): Document function.
3937 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3939 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3940 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3942 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3944 * symtab.c (expand_line_sal): Remove empty line.
3946 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
3948 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3949 same way as ELFOSABI_NONE.
3950 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3952 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3954 * breakpoint.c: Fix typos in comments.
3955 * linespec.c: Likewise.
3956 * symtab.c: Likewise.
3958 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3960 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3961 section in separate object files.
3963 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3965 Fix false GCC warning.
3966 * linespec.c (decode_line_1): Initialize values.
3968 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3970 * linespec.c (find_method): Accept the function type automatically only
3971 if it was specified with parameter types.
3973 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3975 Stop on first linespec terminator instead of eating what we can.
3976 * linespec.c (is_linespec_boundary): New function.
3977 (name_end): Remove function.
3978 (keep_name_info): New parameter on_boundary, replace the body.
3979 (decode_line_1): Provide the parameter to keep_name_info.
3980 (decode_compound): Likewise. Drop the trailing java return type
3983 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3985 Fall back linespec to minimal symbols.
3986 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3987 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3988 (find_method, symbol_found): Change error to cplusplus_error.
3990 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3992 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3994 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3995 Tom Tromey <tromey@redhat.com>
3997 * dwarf2read.c (check_physname): New variable.
3998 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3999 (show_check_physname): New function.
4000 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4002 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4004 * machoread.c (macho_symfile_read): Delete OBE comment.
4006 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4008 * machoread.c (struct macho_oso_data): Delete.
4009 (current_oso): Delete.
4010 (macho_relocate_common_syms): New function, mostly extracted
4012 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4013 Remove code that sets and unset current_oso.
4014 (macho_symfile_relocate): Delete handling of common symbols,
4015 now moved to macho_relocate_common_syms.
4017 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4019 * darwin-nat.c (darwin_ptrace): Add documentation.
4020 Set errno to zero before calling ptrace. If ptrace returns
4021 -1 and errno is zero, then change then return zero.
4022 (darwin_kill_inferior): Issue a warning instead of triggering
4023 a failed assertion when the PT_KILL ptrace operations returned
4026 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4028 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4029 only when inf->private->no_ptrace.
4031 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4033 * ada-lang.c (print_it_exception): Print temporary catchpoints
4034 as "Temporary catchpoint".
4035 (print_mention_exception): Likewise.
4037 2011-07-01 Tom Tromey <tromey@redhat.com>
4039 * jv-lang.c (java_language_defn): Use java_printchar,
4041 (java_get_encoding): New function.
4042 (java_emit_char): Use generic_emit_char.
4043 (java_printchar): New function.
4044 (java_printstr): Likewise.
4046 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4048 * ada-typeprint.c (print_record_type): If unable to decode
4049 the name of the parent type, use the encoded name.
4051 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4053 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4054 pointer to constrained packed array type output.
4055 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4056 packed array output.
4058 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4060 * ada-typeprint.c (print_array_type): removed if condition on show
4061 being negative for bounds printing.
4063 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4065 * ada-lang.c (ada_identical_enum_types_p): New function.
4066 (symbols_are_identical_enums): New function.
4067 (remove_extra_symbols): Do nothing if NSYMS < 2.
4068 Use symbols_are_identical_enums.
4070 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4072 * ada-valprint.c (ada_value_print): Handle typedefs.
4074 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4076 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4078 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4080 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4081 (decode_constrained_packed_array): Likewise.
4082 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4084 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4086 * ada-exp.y (convert_char_literal): Handle typedef types.
4088 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4090 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4092 2011-06-30 Tom Tromey <tromey@redhat.com>
4094 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4095 * valops.c (find_overload_match): Call do_cleanups on early exit
4097 * solib.c (solib_find): Call do_cleanups on early exit path.
4099 2011-06-30 Tom Tromey <tromey@redhat.com>
4101 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4102 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4103 return paths. Defer final do_cleanups until last return.
4104 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4107 2011-06-30 Tom Tromey <tromey@redhat.com>
4109 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4111 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4113 * MAINTAINERS (Write After Approval): Add myself to the list.
4115 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4117 Disable epilogue unwinders on recent GCCs.
4118 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4119 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4120 * dwarf2read.c (process_full_comp_unit): Initialize
4121 EPILOGUE_UNWIND_VALID.
4122 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4123 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4124 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4126 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4128 Code cleanup - reformatting.
4129 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4130 (producer_is_gcc_ge_4): ... here, change the return value.
4131 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4134 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4136 Fix non-only rename list for Fortran modules import.
4137 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4138 cp_add_using_directive caller.
4139 (cp_add_using_directive): New parameter excludes, describe it. New
4140 variables ix and param. Compare if also excludes match. Allocate NEW
4141 with variable size, initialize EXCLUDES there.
4142 (cp_lookup_symbol_imports): New variable excludep, test
4143 current->EXCLUDES with it.
4144 * cp-support.h: Include vec.h.
4145 (struct using_direct): New field excludes, describe it.
4146 (DEF_VEC_P (const_char_ptr)): New.
4147 (cp_add_using_directive): New parameter excludes.
4148 * defs.h (const_char_ptr): New typedef.
4149 * dwarf2read.c (read_import_statement): New variables child_die,
4150 excludes and cleanups, read in excludes.
4151 (read_namespace): Adjust the cp_add_using_directive caller.
4153 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4156 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4157 negative comparisons.
4159 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4161 * mi/mi-main.c (mi_cmd_list_features): Emit
4162 breakpoint-notifications.
4164 2011-06-29 Tom Tromey <tromey@redhat.com>
4167 * valprint.h (generic_emit_char, generic_printstr): Declare.
4168 * valprint.c (wchar_printable, append_string_as_wide)
4169 (print_wchar): Move from c-lang.c.
4170 (generic_emit_char): New function; mostly taken from c_emit_char.
4171 (generic_printstr): New function; mostly taken from c_printstr.
4172 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4173 represented as arrays.
4174 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4176 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4177 identically to TYPE_CODE_INT.
4178 * f-lang.c (f_get_encoding): New function.
4179 (f_emit_char): Use generic_emit_char.
4180 (f_printchar): Replace comment.
4181 (f_printstr): Use generic_printstr.
4182 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4183 "character" types specially.
4184 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4186 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4188 (c_emit_char): Call generic_emit_char.
4189 (c_printstr): Call generic_printstr.
4191 2011-06-29 Gary Benson <gbenson@redhat.com>
4193 * breakpoint.c (bpstat_what): Removed duplicated case.
4195 2011-06-28 Tom Tromey <tromey@redhat.com>
4197 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4199 2011-06-27 Tom Tromey <tromey@redhat.com>
4201 * valops.c (find_overload_match): Call do_cleanups before early
4203 * top.c (execute_command): Call do_cleanups before early return.
4204 (command_loop): Likewise.
4205 * stack.c (backtrace_command): Make a null cleanup early. Don't
4206 conditionally call do_cleanups.
4207 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4209 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4210 so cleanups are always run.
4211 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4212 * findcmd.c (parse_find_args): Call do_cleanups on early return
4214 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4215 Don't conditionally call do_cleanups.
4216 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4219 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4221 * MAINTAINERS (Write After Approval): Use default email address.
4223 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4225 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4227 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4229 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4230 saved_regs_mask and copied_regs_mask fields.
4231 (sparc_record_save_insn): New prototype.
4232 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4233 (sparc_record_save_insn): New function.
4234 (sparc_analyze_prologue): Add head comment. Recognize store insns
4235 of call-saved registers. Use OFFSET consistently. Recognize flat
4236 frames and cache their settings.
4237 (sparc32_skip_prologue): Handle flat frames.
4238 (sparc_frame_cache): Add frame_offset to the base address.
4239 (sparc32_frame_cache): Adjust to new frame description.
4240 (sparc32_frame_prev_register): Likewise.
4241 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4242 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4243 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4244 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4245 frame by calling sparc_record_save_insn.
4246 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4247 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4248 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4250 2011-06-27 Tristan Gingold <gingold@adacore.com>
4252 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4253 field by map_addr and map_len.
4254 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4255 (munmap_section_buffer): Likewise.
4257 2011-06-24 Tom Tromey <tromey@redhat.com>
4259 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4260 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4261 * python/python.c (gdbpy_parameter): Make 'arg' const.
4262 (execute_gdb_command): Likewise.
4263 (gdbpy_decode_line): Likewise. Copy it.
4264 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4265 (gdbpy_write): Make 'arg' const.
4266 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4268 (gdbpy_lookup_type): Likewise.
4269 * python/py-prettyprint.c (print_children): Make 'name' const.
4270 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4271 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4273 * python/py-function.c (fnpy_init): Make 'name' const.
4274 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4275 (gdbpy_string_to_argv): Make 'input' const.
4276 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4278 * gdbtypes.h (lookup_typename): Update.
4279 * gdbtypes.c (lookup_typename): Make 'name' const.
4280 (lookup_struct): Likewise.
4281 (lookup_union): Likewise.
4282 (lookup_enum): Likewise.
4284 2011-06-24 Tom Tromey <tromey@redhat.com>
4286 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4287 gdb_thread_db.h. Move all common/ entries to be together.
4288 (TAGS): Don't depend on DEPFILES.
4290 2011-06-23 Yao Qi <yao@codesourcery.com>
4292 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4293 * remote.c (remote_start_remote): ... here.
4294 * monitor.c (monitor_open): ... here.
4296 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4298 * gdbtypes.c (append_composite_type_field_aligned): Fix
4299 calculation of bit position based on alignment.
4301 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4303 * breakpoint.c (bpstat_stop_status): Call the check_status
4304 breakpoint_ops method.
4305 (print_one_breakpoint_location): Also print the condition for Ada
4306 exception catchpoints.
4307 (allocate_bp_location): New, factored out from
4308 allocate_bp_location.
4309 (allocate_bp_location): Adjust. Call the owner breakpoint's
4310 allocate_location method, if there is one.
4311 (free_bp_location): Call the locations's dtor method, if there is
4313 (init_raw_breakpoint_without_location): New breakpoint_ops
4315 (set_raw_breakpoint_without_location): Adjust.
4316 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4317 (set_raw_breakpoint): Adjust.
4318 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4319 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4320 re_set and check_status methods.
4321 (init_catchpoint): Don't memset, initialize thread, addr_string
4322 and enable_state. Pass the ops down to init_raw_breakpoint.
4323 (install_catchpoint): Rename to ...
4324 (install_breakpoint): ... this, and make extern.
4325 (create_fork_vfork_event_catchpoint): Adjust.
4326 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4327 re_set and check_status methods.
4328 (create_syscall_event_catchpoint): Adjust.
4329 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4330 (masked_watchpoint_breakpoint_ops): Install NULL
4331 allocate_location, re_set and check_status methods.
4332 (catch_exec_command_1): Adjust.
4333 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4334 re_set and check_status methods.
4335 (create_ada_exception_breakpoint): Rename to ...
4336 (init_ada_exception_breakpoint): ... this. Add a struct
4337 breakpoint parameter, and delete the exp_string, cond_string and
4338 cond parameters. Use init_raw_breakpoint, and don't install or
4339 mention the breakpoint yet. Don't clear breakpoint fields that
4340 init_raw_breakpoint already clears.
4341 (re_set_breakpoint): Delete, split into ...
4342 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4344 (breakpoint_re_set_one): Call the breakpoint's
4345 breakpoint_ops->re_set implementation, if there's one. Adjust.
4346 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4347 (struct bp_location_ops): New type.
4348 (struct bp_location): New field `ops'.
4349 (struct breakpoint_ops): New `allocate_location', `re_set' and
4350 `check_status' fields. Make `breakpoint_hit''s description match
4352 (init_bp_location): Declare.
4353 (breakpoint_re_set_default): Declare.
4354 (create_ada_exception_breakpoint): Rename to ...
4355 (init_ada_exception_breakpoint): ... this. Add a struct
4356 breakpoint parameter, and delete the exp_string, cond_string and
4358 (install_breakpoint): Declare.
4359 * ada-lang.c: Include exceptions.h.
4360 <Ada exceptions description>: Update.
4361 (struct ada_catchpoint_location): New type.
4362 (ada_catchpoint_location_dtor): New function.
4363 (ada_catchpoint_location_ops): New global.
4364 (ada_catchpoint): New type.
4365 (create_excep_cond_exprs): New function.
4366 (dtor_exception, allocate_location_exception, re_set_exception)
4367 (should_stop_exception, check_status_exception): New functions.
4368 (print_one_exception, print_mention_exception)
4369 (print_recreate_exception): Adjust.
4370 (dtor_catch_exception, allocate_location_catch_exception)
4371 (re_set_catch_exception, check_status_catch_exception): New
4373 (catch_exception_breakpoint_ops): Install them.
4374 (dtor_catch_exception_unhandled)
4375 (allocate_location_catch_exception_unhandled)
4376 (re_set_catch_exception_unhandled)
4377 (check_status_catch_exception_unhandled): New functions.
4378 (catch_exception_unhandled_breakpoint_ops): Install them.
4379 (dtor_catch_assert, allocate_location_catch_assert)
4380 (re_set_catch_assert, check_status_catch_assert): New functions.
4381 (catch_assert_breakpoint_ops): Install them.
4382 (ada_exception_catchpoint_p): Delete.
4383 (catch_ada_exception_command_split)
4384 (ada_exception_catchpoint_cond_string): Rename exp_string
4385 parameter to excep_string. Adjust.
4386 (ada_parse_catchpoint_condition): Delete.
4387 (ada_exception_sal): Rename the exp_string parameter to
4388 excep_string. Delete the cond_string and cond parameters.
4390 (ada_decode_exception_location): Rename the exp_string parameter
4391 to excep_string. Delete the cond_string and cond parameters.
4393 (create_ada_exception_catchpoint): New function.
4394 (catch_ada_exception_command, ada_decode_assert_location)
4395 (catch_assert_command): Adjust.
4396 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4398 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4400 * ada-lang.c: Include arch-utils.h.
4401 (ada_decode_exception_location): Make static.
4402 (catch_ada_exception_command): Moved here from breakpoint.c.
4403 (ada_decode_assert_location): Make static.
4404 (catch_assert_command): Moved here from breakpoint.c.
4405 (_initialize_ada_lang): Install the exception and assert
4406 catchpoint commands here.
4407 * ada-lang.h (ada_decode_exception_location)
4408 (ada_decode_assert_location): Delete declarations.
4409 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4411 (create_ada_exception_breakpoint): Make extern.
4412 (catch_ada_exception_command, catch_assert_command): Moved to
4414 (add_catch_command): Make extern.
4415 (_initilize_breakpoint): Don't install the exception and assert
4416 catchpoint commands here.
4417 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4419 (add_catch_command, create_ada_exception_breakpoint): Declare.
4421 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4423 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4424 the breakpoint to the breakpoint chain here.
4425 (set_raw_breakpoint_without_location): Add the breakpoint to the
4426 breakpoint chain here.
4427 (init_raw_breakpoint): Adjust comments.
4428 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4430 (init_catchpoint): Don't set the catchpoint's breakpoint number
4432 (install_catchpoint): New function.
4433 (create_fork_vfork_event_catchpoint)
4434 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4435 use install_catchpoint.
4437 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4439 * breakpoint.c (create_catchpoint_without_mention)
4440 (create_catchpoint): Delete.
4442 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4444 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4445 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4446 reference to exec_pathname.
4447 (struct exec_catchpoint): New type.
4448 (dtor_catch_exec): New function.
4449 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4450 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4451 (catch_exec_command_1): Adjust to use init_catchpoint.
4452 (delete_breakpoint): Remove reference to exec_pathname.
4454 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4456 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4457 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4458 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4459 reference to syscalls_to_be_caught.
4460 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4462 (struct syscall_catchpoint): New type.
4463 (dtor_catch_syscall): New function.
4464 (insert_catch_syscall, remove_catch_syscall)
4465 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4466 (print_recreate_catch_syscall): Adjust.
4467 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4468 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4469 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4470 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4471 (masked_watchpoint_breakpoint_ops)
4472 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4473 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4474 there is one. Remove references to syscalls_to_be_caught.
4475 (catching_syscall_number): Adjust.
4476 * ada-lang.c (catch_exception_breakpoint_ops)
4477 (catch_exception_unhandled_breakpoint_ops)
4478 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4480 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4482 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4484 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4485 reference to forked_inferior_pid.
4486 (struct fork_catchpoint): New type.
4487 (breakpoint_hit_catch_fork, print_it_catch_fork)
4488 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4489 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4490 (create_fork_vfork_event_catchpoint): Adjust to use
4493 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4495 * breakpoint.c (add_to_breakpoint_chain)
4496 (init_raw_breakpoint_without_location): New functions, factored
4498 (set_raw_breakpoint_without_location): ... this one.
4499 (init_raw_breakpoint): New function, factored out from
4500 set_raw_breakpoint and adjusted to use
4501 init_raw_breakpoint_without_location.
4502 (set_raw_breakpoint): Adjust.
4503 (init_catchpoint): New function, factored out from
4504 create_catchpoint_without_mention and adjusted to use
4505 init_raw_breakpoint.
4506 (create_catchpoint_without_mention): Adjust.
4508 2011-06-22 Tom Tromey <tromey@redhat.com>
4510 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4511 argument of 0 specially.
4513 2011-06-22 Yao Qi <yao@codesourcery.com>
4515 * infrun.c (handle_inferior_event): Remove write-only local variable
4516 `sw_single_step_trap_p'.
4518 2011-06-20 Tom Tromey <tromey@redhat.com>
4520 * symtab.c (lookup_language_this): End loop if block is NULL.
4522 2011-06-17 Tom Tromey <tromey@redhat.com>
4524 * valops.c (value_of_this): Use lookup_language_this.
4525 * symtab.h (lookup_language_this): Declare.
4526 * symtab.c (lookup_language_this): New function.
4527 (lookup_symbol_aux): Use lookup_language_this.
4528 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4530 2011-06-17 Tom Tromey <tromey@redhat.com>
4532 * value.h (value_of_this): Update.
4533 (value_of_local): Remove.
4534 * valops.c (value_of_this): Rename from value_of_local. Change
4536 * p-exp.y (exp): Update.
4537 (variable): Likewise.
4538 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4540 2011-06-17 Tom Tromey <tromey@redhat.com>
4542 * valops.c (value_of_local): Complain if NAME is NULL.
4543 * std-operator.def (OP_OBJC_SELF): Remove.
4544 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4545 * objc-exp.y (name_not_typename): Use OP_THIS.
4546 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4548 <OP_OBJC_SELF>: Remove.
4549 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4551 2011-06-16 Tristan Gingold <gingold@adacore.com>
4553 * python/py-events.h (gdb_py_events): Make it extern.
4554 * python/py-evtregistry.c (gdb_py_events): Declare.
4556 2011-06-16 Hui Zhu <teawater@gmail.com>
4558 * remote.c (remote_trace_set_readonly_regions): Add check for
4559 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4562 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4564 * arm-linux-tdep.c: Include "auxv.h".
4566 (ARM_LINUX_SIZEOF_VFP): Define.
4567 (arm_linux_supply_vfp): New function.
4568 (arm_linux_collect_vfp): Likewise.
4569 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4570 (arm_linux_fpa_regset_sections): New variable.
4571 (arm_linux_vfp_regset_sections): Likewise.
4572 (arm_linux_core_read_description): New function.
4573 (arm_linux_init_abi): Install arm_linux_core_read_description and
4574 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4575 appropriate for the architecture.
4576 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4577 (tdesc_arm_with_m): Declare.
4578 (tdesc_arm_with_iwmmxt): Likewise.
4579 (tdesc_arm_with_vfpv2): Likewise.
4580 (tdesc_arm_with_vfpv3): Likewise.
4581 (tdesc_arm_with_neon): Likewise.
4582 * arm-linux-nat.c: Move features/*.c includes ...
4583 * arm-tdep.c: ... here.
4584 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4585 target description data structures ...
4586 * arm-tdep.c (_initialize_arm_tdep): ... here.
4587 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4588 HWCAP_VFPv3D16): Move definitions ...
4589 * arm-linux-tdep.h: ... here.
4591 2011-06-15 Hui Zhu <teawater@gmail.com>
4593 * remote.c (remote_trace_set_readonly_regions): Add a check for
4596 2011-06-14 Tom Tromey <tromey@redhat.com>
4598 * coffread.c (coffread_objfile): Rename from current_objfile.
4599 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4600 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4602 2011-06-14 Tom Tromey <tromey@redhat.com>
4604 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4605 (class_symtab): Remove.
4606 (jv_dynamics_progspace_key): New global.
4607 (jv_per_objfile_free): Reset program space data. Update assert.
4608 Don't clear globals.
4609 (get_dynamics_objfile): Use and set program space data.
4610 (get_java_class_symtab): Use get_dynamics_objfile.
4611 (add_class_symbol): Likewise.
4612 (java_link_class_type): Likewise.
4613 (java_object_type, jv_clear_object_type, set_java_object_type):
4615 (get_java_object_type): Update. Don't cache result.
4616 (is_object_type): Don't call set_java_object_type.
4617 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4618 initialize jv_dynamics_progspace_key.
4620 2011-06-14 Tom Tromey <tromey@redhat.com>
4622 * symtab.h (current_objfile): Don't declare.
4623 * objfiles.h (current_objfile): Don't declare.
4624 * objfiles.c (current_objfile): Remove.
4625 * mdebugread.c (current_objfile): New file-scope global.
4626 * dbxread.c (current_objfile): New file-scope global.
4627 * coffread.c (current_objfile): New file-scope global.
4629 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4631 * top.h (line): Rename to ...
4632 (saved_command_line): ... this.
4633 (linesize): Rename to ...
4634 (saved_command_line_size): ... this.
4635 * top.c (line): Rename to ...
4636 (saved_command_line): ... this.
4637 (linesize): Rename to ...
4638 (saved_command_line_size): ... this.
4639 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4640 * event-top.c (command_line_handler): Adjust.
4641 * main.c (captured_main): Adjust.
4643 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4645 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4646 get_frame_func instead of get_frame_pc to determine the code
4647 address used to construct the frame ID.
4648 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4649 (i386_epilogue_frame_this_id): Likewise.
4650 (i386_epilogue_frame_prev_register): New function.
4651 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4652 (i386_stack_tramp_frame_sniffer): Fix coding style.
4653 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4654 (i386_gdbarch_init): Fix comments.
4656 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4658 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4659 instruction when walking back through the instruction stream.
4661 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4663 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4664 fullname parameters order.
4666 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4669 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4671 * psymtab.c (map_symbol_filenames_psymtab)
4672 (map_partial_symbol_filenames): Likewise.
4673 * psymtab.h: Include symfile.h.
4674 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4675 * symfile.h (symbol_filename_ftype): New.
4676 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4677 map_symbol_filenames, clarify more the naming in comment.
4679 2011-06-07 Doug Evans <dje@google.com>
4681 * cc-with-index.sh: Fix typos in comment.
4682 Look for ../../gdb, for fullname.exp.
4684 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4685 Pedro Alves <pedro@codesourcery.com>
4687 * cli/cli-cmds.c (shell_escape): Use waitpid.
4688 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4690 2011-06-07 Tristan Gingold <gingold@adacore.com>
4692 * xcoffread.c (dwarf2_xcoff_names): New variable.
4693 (aix_process_linenos): Add a guard.
4694 (xcoff_symfile_finish): Free dwarf2.
4695 (xcoff_initial_scan): Add dwarf2 support.
4697 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4699 * infcall.c (run_inferior_call): Don't mask async. Instead force
4700 a synchronous wait, if the target can async.
4702 * target.h (struct target_ops): Delete to_async_mask.
4703 (target_async_mask): Delete.
4704 * target.c (update_current_target): Delete references to to_async_mask.
4705 * linux-nat.c (linux_nat_async_mask_value): Delete.
4706 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4707 to linux_nat_async_mask_value.
4708 (linux_nat_async_mask): Delete.
4709 (linux_nat_async, linux_nat_close): Remove references to
4710 linux_nat_async_mask_value.
4711 * record.c (record_async_mask_value): Delete.
4712 (record_async): Remove references to record_async_mask_value.
4713 (record_async_mask): Delete.
4714 (record_can_async_p, record_is_async_p): Remove references to
4715 record_async_mask_value.
4716 (init_record_ops, init_record_core_ops): Remove references to
4718 * remote.c (remote_async_mask_value): Delete.
4719 (init_remote_ops): Remove reference to remote_async_mask.
4720 (remote_can_async_p, remote_is_async_p): Remove references to
4721 remote_async_mask_value.
4722 (remote_async): Remove references to remote_async_mask_value.
4723 (remote_async_mask): Delete.
4725 * infrun.c (fetch_inferior_event): Don't claim registers changed
4726 if the current thread is already not executing.
4728 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4730 From Stephen Kitt <steve@sk2.org>
4731 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4732 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4734 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4736 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4737 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4739 2011-06-03 Tom Tromey <tromey@redhat.com>
4741 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4743 * python/py-exitedevent.c (create_exited_event_object): Change
4744 type of 'exit_code'. Optionally add exit_code attribute.
4745 (emit_exited_event): Change type of 'exit_code'.
4746 * python/py-event.h (emit_exited_event): Update.
4747 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4748 * infrun.c (handle_inferior_event): Set exit code fields on
4750 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4752 * inferior.c (exit_inferior_1): Initialize new fields.
4754 2011-06-03 Tom Tromey <tromey@redhat.com>
4756 * dwarf2expr.c (get_signed_type): New function.
4757 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4759 2011-06-02 Keith Seitz <keiths@redhat.com>
4761 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4763 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4765 * top.h (simplified_command_loop): Delete declaration.
4767 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4769 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4770 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4772 2011-06-01 Yao Qi <yao@codesourcery.com>
4774 * objfiles.h (obj_section_addr): Update reference to objfile from
4776 (obj_section_endaddr): Likewise.
4778 2011-06-01 Daniel Jacobowitz <drow@false.org>
4780 * MAINTAINERS: Update my email address and affiliation. Also
4781 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4783 2010-05-31 Keith Seitz <keiths@redhat.com>
4786 * linespec.c (get_search_block): New function.
4787 (find_methods): Add FILE_SYMTATB parameter and use it and
4788 get_search_block to pass an appropriate block to
4789 lookup_symbol_in_namespace.
4790 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4791 Check if *ARGPTR starts with a filename first.
4792 If it does, call locate_first_half again to locate the next
4793 "first half" of the linespec.
4794 Pass FILE_SYMTATB to decode_objc and decode_compound.
4795 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4796 (locate_first_half): Stop on the first colon seen.
4797 (decode_compound): Add FILE_SYMTAB parameter.
4798 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4799 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4800 get_search_block with lookup_symbol.
4801 (find_method): Add FILE_SYMTAB parameter and pass it to
4803 (decode_objc): Use get_search_block.
4805 2010-05-31 Keith Seitz <keiths@redhat.com>
4808 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4809 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4810 and CP_ANONYMOUS_NAMESPACE_LEN.
4811 (cp_is_anonymous): Likewise.
4812 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4813 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4814 * dwarf2read.c (namespace_name): Likewise.
4815 (fixup_partial_die): Likewise.
4816 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4817 seen in the input, keep it.
4819 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4821 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4822 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4823 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4824 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4825 * remote.c (_initialize_remote): Register
4826 async_remote_interrupt_twice directly as
4827 sigint_remote_twice_token event.
4829 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4831 * target.h (enum inferior_event_type): Delete INF_ERROR.
4832 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4834 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4836 * interps.c (interp_set): Don't cancel continuations.
4838 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4840 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4842 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4844 * continuations.h (continuation_ftype): Add `err' parameter.
4845 Document parameters.
4846 (do_all_continuations, do_all_continuations_thread)
4847 (do_all_intermediate_continuations)
4848 (do_all_intermediate_continuations_thread)
4849 (do_all_inferior_continuations): Add `err' parameter.
4850 * continuations.c (do_my_continuations_1, do_my_continuations)
4851 (do_all_inferior_continuations, do_all_continuations_ptid)
4852 (do_all_continuations_thread_callback)
4853 (do_all_continuations_thread, do_all_continuations)
4854 (do_all_intermediate_continuations_thread_callback)
4855 (do_all_intermediate_continuations_thread)
4856 (do_all_intermediate_continuations): Add `err' parameter, and pass
4857 it down all the way to the continuations proper.
4858 * inf-loop.c (inferior_event_handler): If fetching an inferior
4859 event throws an error, don't pop the target, and still call the
4860 continuations, but with `err' set. Adjust all other continuation
4862 * breakpoint.c (until_break_command_continuation): Add `err'
4864 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4865 issue another step if `err' is set.
4866 (struct until_next_continuation_args): New.
4867 (until_next_continuation): Add `err' parameter. Adjust.
4868 (until_next_command): Adjust.
4869 (struct finish_command_continuation_args): Add `thread' field.
4870 (finish_command_continuation): Add `err' parameter. Handle it.
4871 (finish_forward): Adjust.
4872 (attach_command_continuation): Add `err' parameter. Handle it.
4873 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4874 cancel the continuations.
4875 * interps.c (interp_set): Adjust to cancel the continuations.
4876 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4877 continuations rather than discarding.
4878 (free_thread): Don't clear thread inferior resources here.
4879 (delete_thread_1): Do it here instead. And do it before removing
4880 the thread from the threads list. Tag the thread as exited before
4881 clearing thread inferior resources.
4883 2011-05-30 Joel Brobecker <brobecker@adacore.com>
4885 * infcall.c (call_function_by_hand): Rephrase error message.
4887 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4889 * defs.h (struct thread_info, struct inferior): Delete forward
4891 * breakpoint.h (struct thread_info): New forward declaration.
4892 * observer.sh (struct inferior): New forward declaration.
4893 * python/python-internal.h (struct inferior): New forward
4896 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4898 * defs.h (struct continuation, continuation_ftype)
4899 (continuation_free_arg_ftype, add_continuation)
4900 (do_all_continuations, do_all_continuations_thread)
4901 (discard_all_continuations, discard_all_continuations_thread)
4902 (add_intermediate_continuation, do_all_intermediate_continuations)
4903 (do_all_intermediate_continuations_thread)
4904 (discard_all_intermediate_continuations)
4905 (discard_all_intermediate_continuations_thread)
4906 (add_inferior_continuation, do_all_inferior_continuations)
4907 (discard_all_inferior_continuations): Move to ...
4908 * continuations.h: ... this new file.
4909 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4910 infcmd.c, inferior.c, infrun.c, interps.c: Include
4913 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4914 Doug Evans <dje@google.com>
4916 Fix PR 10970, PR 12702.
4917 * linux-nat.c (linux_lwp_is_zombie): New function.
4918 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4919 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4921 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4923 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4925 (add_continuation, add_intermediate_continuation)
4926 (add_inferior_continuation): Use them.
4927 * continuations.c (struct continuation): Use them.
4928 (make_continuation_ftype): Delete.
4929 (make_continuation, add_inferior_continuation, add_continuation)
4930 (add_intermediate_continuation): Use continuation_ftype and
4931 continuation_free_arg_ftype. Rename parameters to shorter names.
4933 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4935 * continuations.c (make_continuation): Make it return void.
4936 (do_my_continuations): Rename to ...
4937 (do_my_continuations_1): ... this. Remove old_chain parameter and
4939 (do_my_continuations): New.
4940 (discard_my_continuations): Rename to ...
4941 (discard_my_continuations_1): ... this. Remove old_chain
4942 parameter and adjust.
4943 (discard_my_continuations): New.
4944 (add_inferior_continuation): Simplify.
4945 (do_all_inferior_continuations): Reimplement on top
4946 do_my_continuations.
4947 (discard_all_inferior_continuations): Simplify.
4948 (add_continuation): Simplify.
4949 (do_all_continuations_ptid): Simplify.
4950 (discard_all_continuations_thread_callback): Simplify.
4951 (add_intermediate_continuation): Simplify.
4952 (discard_all_intermediate_continuations_thread_callback):
4955 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4957 * utils.c (struct continuation, add_continuation)
4958 (add_inferior_continuation)
4959 (do_all_inferior_continuations, discard_all_inferior_continuations)
4960 (restore_thread_cleanup, do_all_continuations_ptid)
4961 (do_all_continuations_thread_callback)
4962 (do_all_continuations_thread, do_all_continuations)
4963 (discard_all_continuations_thread_callback)
4964 (discard_all_continuations_thread, discard_all_continuations)
4965 (add_intermediate_continuation)
4966 (do_all_intermediate_continuations_thread_callback)
4967 (do_all_intermediate_continuations_thread)
4968 (do_all_intermediate_continuations)
4969 (discard_all_intermediate_continuations_thread_callback)
4970 (discard_all_intermediate_continuations_thread)
4971 (discard_all_intermediate_continuations): Move to ...
4972 * continuations.c: ... this new file, and adjust to no longer
4973 implement continuations on top of cleanups.
4974 * Makefile.in (SFILES): Add continuations.c.
4975 (COMMON_OBS): Add continuations.o.
4977 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4979 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4980 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4981 Internal error on invalid values.
4982 * reverse.c: Don't handle EXEC_ERROR.
4983 * mi/mi-main.c: Don't handle EXEC_ERROR.
4985 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4987 * record.c: Include event-loop.h, inf-loop.h.
4988 (record_beneath_to_async): New global.
4989 (tmp_to_async): New global.
4990 (record_async_inferior_event_token): New global.
4991 (record_open_1): Don't error out if async is enabled.
4992 (record_open): Handle to_async. Create an async event source in
4994 (record_close): Delete the async event source.
4995 (record_resumed): New global.
4996 (record_execution_dir): New global.
4997 (record_resume, record_core_resume): Set them. Register the
4998 target on the event loop.
4999 (record_wait): Rename to ...
5000 (record_wait_1): ... this. Add more debug output. Handle
5001 TARGET_WNOHANG, and the target beneath returning
5002 TARGET_WAITKIND_IGNORE.
5003 (record_wait): Reimplement on top of record_wait_1.
5004 (record_async_mask_value): New global.
5005 (record_async, record_async_mask, record_can_async_p)
5006 (record_is_async_p, record_execution_direction): New functions.
5007 (init_record_ops, init_record_core_ops): Install new methods.
5008 * infrun.c (fetch_inferior_event): Temporarily switch the global
5009 execution direction to the direction the target was going.
5010 (execution_direction): Change type to int.
5011 * target.c (default_execution_direction): New function.
5012 (update_current_target): Inherit and de_fault
5013 to_execution_direction.
5014 * target.h (struct target_ops) <to_execution_direction>: New
5016 (target_execution_direction): New macro.
5017 * inferior.h (execution_direction): Change type to int.
5019 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5021 * infcall.c (call_function_by_hand): Don't allow calling functions
5022 in reverse execution mode.
5024 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5026 * infcmd.c (finish_command): Allow async finish in reverse.
5028 2011-05-26 Yao Qi <yao@codesourcery.com>
5030 * gdb_thread_db.h: Delete. Move to ...
5031 * common/gdb_thread_db.h: ... here.
5033 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5035 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5036 function's entry point instead of a manually managed momentary
5037 breakpoint, and only ever issue one proceed call.
5038 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5039 doing a reverse-finish, switch to stepi mode, to do another step.
5040 (insert_step_resume_breakpoint_at_sal): Make public.
5041 (normal_stop): No need to save function value return registers if
5043 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5045 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5047 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5048 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5049 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5051 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5052 step-resume breakpoints.
5053 (print_it_typical): Handle bp_hp_step_resume.
5054 (bpstat_what): Ditto.
5055 (bptype_string): Ditto.
5056 (print_one_breakpoint_location): Ditto.
5057 (allocate_bp_location): Ditto.
5059 (breakpoint_re_set_one): Ditto.
5060 * infrun.c (handle_inferior_event): Adjust. Split
5061 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5062 BPSTAT_WHAT_HP_STEP_RESUME.
5063 (insert_step_resume_breakpoint_at_sal): Rename to ...
5064 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5065 parameter. Handle it.
5066 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5067 insert_step_resume_breakpoint_at_sal_1.
5068 (insert_step_resume_breakpoint_at_frame): Rename to ...
5069 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5070 set a high-priority step-resume breakpoint.
5071 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5072 (insert_step_resume_breakpoint_at_caller): Ditto.
5074 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5076 * breakpoint.c (iterate_over_related_breakpoints): New.
5077 (do_map_delete_breakpoint): New.
5078 (delete_command): Pass do_map_delete_breakpoint to
5079 map_breakpoint_numbers.
5080 (do_disable_breakpoint): New.
5081 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5083 (do_enable_breakpoint): Rename to ...
5084 (enable_breakpoint_disp): ... this.
5085 (enable_breakpoint): Adjust.
5086 (do_enable_breakpoint): New.
5087 (enable_once_breakpoint): Delete.
5088 (do_map_enable_breakpoint): New.
5089 (do_map_enable_once_breakpoint): New.
5090 (enable_once_command, enable_delete_command)
5091 (delete_trace_command): Iterate over the breakpoint's related
5094 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5096 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5097 for ALPHA_ZERO_REGNUM.
5098 (alpha_supply_int_regs): Explicitly supply zero as the value for
5099 ALPHA_ZERO_REGNUM in the register cache.
5100 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5102 2011-05-26 Yao Qi <yao@codesourcery.com>
5104 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5106 2011-05-26 Tristan Gingold <gingold@adacore.com>
5108 * symfile.h (struct dwarf2_section_names): New type.
5109 (struct dwarf2_debug_sections): New type.
5110 (dwarf2_has_info): Add parameter.
5111 * dwarf2read.c (dwarf2_elf_names): New variable.
5112 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5113 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5114 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5115 (dwarf2_has_info): Add names parameter. Pass names
5116 to dwarf2_locate_sections.
5117 (section_is_p): Rewrite using the names parameter.
5118 (dwarf2_locate_sections): Use section names from the names parameter.
5119 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5120 * elfread.c (read_psyms): Ditto.
5121 * machoread.c (macho_symfile_read): Ditto.
5123 2011-05-25 Andreas Schwab <schwab@redhat.com>
5126 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5128 2011-05-24 Keith Seitz <keiths@redhat.com>
5131 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5132 (decode_compound): Unconditionally call keep_name_info.
5134 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5136 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5137 scope, clear its command list.
5138 (map_breakpoint_numbers): Don't walk the related breakpoints list
5141 2011-05-24 Tom Tromey <tromey@redhat.com>
5143 * MAINTAINERS: Move Jim Blandy to past maintainers.
5145 2011-05-24 Tristan Gingold <gingold@adacore.com>
5147 * symfile.h (enum dwarf2_section_enum): New type.
5148 (dwarf2_get_section_info): New prototype.
5149 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5150 section_name by sect. Use a switch to select the info.
5151 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5152 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5154 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5156 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5157 shared library event breakpoint if there's no execution.
5159 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5161 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5162 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5164 2011-05-23 Tom Tromey <tromey@redhat.com>
5166 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5169 2011-05-23 Doug Evans <dje@google.com>
5171 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5172 entry for RuntimeError to doc string.
5174 2011-05-23 Jerome Guitton <guitton@adacore.com>
5176 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5177 sequence for probing loops.
5179 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5181 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5184 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5186 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5187 zero as the value for %g0 in the register cache.
5188 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5189 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5191 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5193 * infrun.c (proceed): Set previous_inferior_ptid here.
5194 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5195 inferior_ptid, not null_ptid.
5196 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5197 (fetch_inferior_event): Nor here.
5199 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5201 * inf-loop.c (inferior_event_handler): Only output a message if
5204 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5206 * MAINTAINERS: Update my e-mail address.
5208 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5210 * infrun.c (proceed): Switch the inferior event loop to
5211 INF_EXEC_COMPLETE if the target refused to resume from a
5214 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5216 * infcmd.c: Include "inf-loop.h".
5217 (step_once): When stepping into an inline subroutine, pretend the
5218 target has run. If the target can async, switch the inferior
5219 event loop to INF_EXEC_COMPLETE.
5220 * inferior.h (user_visible_resume_ptid): Declare.
5221 * infrun.c (user_visible_resume_ptid): New function, factored out
5224 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5225 that the current thread is running. Merge async and sync
5228 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5230 * infcmd.c (step_1): Simplify synchronous case.
5232 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5234 * tracepoint.c: Include exceptions.h.
5235 (TFILE_PID): Move higher in file.
5236 (tfile_open): Delay pushing the tfile target until we're assured
5237 the tfile header is present in the file. Wrap reading the initial
5238 newline-terminated lines in TRY_CATCH. Pop the target if the
5239 initial setup failed. Add the tfile's thread immediately
5240 aftwards, before any non-essential setup. Don't skip
5241 post_create_inferior if there are no traceframes present in the
5243 (tfile_close): Remove redundant check for null before xfree call.
5244 (tfile_thread_alive): New function.
5245 (init_tfile_ops): Register it as to_thread_alive callback.
5247 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5249 * tracepoint.c (tfile_open): Delete #if 0'd code.
5251 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5253 Fix -readnow for -gdwarf-4 unused type units.
5254 * dwarf2read.c (struct signatured_type): Remove the field offset.
5255 (create_signatured_type_table_from_index): Remove its initialization.
5256 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5257 instead. Add a complaint call.
5258 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5259 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5260 (lookup_signatured_type_at_offset, read_signatured_type)
5261 (write_one_signatured_type): Update the field for per_cu.
5263 2011-05-19 Tom Tromey <tromey@redhat.com>
5265 * python/py-inferior.c (python_inferior_exit): Use
5267 (python_on_resume): Likewise.
5269 2011-05-19 Matt Rice <ratmice@gmail.com>
5271 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5273 2011-05-19 Hui Zhu <teawater@gmail.com>
5275 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5277 2011-05-19 Hui Zhu <teawater@gmail.com>
5279 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5281 2011-05-18 Tom Tromey <tromey@redhat.com>
5283 * dwarf2read.c (dwarf2_add_field): Constify.
5284 * value.c (value_static_field): Constify.
5285 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5287 * ax-gdb.c (gen_static_field): Constify
5289 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5291 * linux-nat.c (kill_callback): Use SIGKILL first.
5293 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5295 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5297 2011-05-18 Tom Tromey <tromey@redhat.com>
5299 * value.c (value_fn_field): Constify.
5300 * symtab.c (gdb_mangle_name): Constify.
5301 * stabsread.c (update_method_name_from_physname): Make 'physname'
5303 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5304 const. Use explicit fputc_filtered loop.
5305 (pascal_type_print_base): Constify.
5306 * p-lang.h (pascal_type_print_method_args): Update.
5307 * linespec.c (add_matching_methods): Constify.
5308 (add_constructors): Likewise.
5309 * jv-typeprint.c (java_type_print_base): Constify.
5310 * gdbtypes.h (struct cplus_struct_type)
5311 <fn_fieldlist.fn_field.physname>: Now const.
5312 * dwarf2read.c (compute_delayed_physnames): Constify.
5313 (dwarf2_add_member_fn): Likewise.
5314 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5316 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5318 * infrun.c (resume): Mention which is the current thread, and its
5319 current PC in debug output.
5320 (prepare_to_proceed): Mention the thread switching in debug
5323 2011-05-18 Tom Tromey <tromey@redhat.com>
5325 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5326 path check. Use xmalloc and cleanups.
5327 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5329 2011-05-17 Tom Tromey <tromey@redhat.com>
5331 * cp-valprint.c (cp_print_value_fields): Catch errors from
5334 2011-05-17 Tom Tromey <tromey@redhat.com>
5336 * dwarf2read.c (dwarf2_get_die_type): Call
5337 get_die_type_at_offset.
5338 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5339 get_base_type function.
5341 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5343 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5346 2011-05-16 Doug Evans <dje@google.com>
5348 * python/py-auto-load.c (source_section_scripts): Mention objfile
5351 2011-05-15 Doug Evans <dje@google.com>
5353 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5354 (try_thread_db_load_from_pdir): Call it. If unable to find
5355 libthread_db in directory of libpthread, see if we're looking at
5356 the separate-debug-info copy.
5358 * python/py-autoload.c (print_script): Print "Missing" instead of
5359 "No" for missing scripts.
5360 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5362 2011-05-13 Doug Evans <dje@google.com>
5364 * ui-file.c (stdio_file_write_async_safe): Add comment.
5366 2011-05-14 Hui Zhu <teawater@gmail.com>
5368 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5370 2011-05-13 Doug Evans <dje@google.com>
5372 Support $pdir and $sdir in libthread-db-search-path.
5373 * NEWS: Mention $sdir,$pdir.
5374 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5375 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5376 (try_thread_db_load_from_sdir): New function.
5377 (try_thread_db_load_from_dir): New function.
5378 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5379 system directories if search of libthread-db-search-path fails,
5380 that is now done via $sdir.
5381 (has_libpthread): New function.
5382 (thread_db_load): Remove search for libthread_db in directory of
5383 libpthread, that is now done via $pdir.
5385 * NEWS: Mention "info auto-load-scripts".
5386 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5387 script_not_found_warning_printed.
5388 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5389 all callers updated. Initialize script_not_found_warning_printed.
5390 (get_auto_load_pspace_data_for_loading): New function.
5391 (maybe_add_script): New function.
5392 (source_section_scripts): Simplify. Only print one warning regardless
5393 of the number of auto-load scripts not found.
5394 (clear_section_scripts): Clear script_not_found_warning_printed.
5395 (auto_load_objfile_script): Record script in hash table.
5396 (count_matching_scripts): New function.
5397 (maybe_print_script): Renamed from maybe_print_section_script, all
5398 callers updated. Rewrite to use ui_out_*.
5399 (info_auto_load_scripts): Renamed from
5400 maintenance_print_section_scripts, all callers updated.
5401 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5402 renamed as "info auto-load-scripts".
5404 2011-05-13 Tom Tromey <tromey@redhat.com>
5406 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5407 (read_sleb128): Likewise.
5409 2011-05-13 Tom Tromey <tromey@redhat.com>
5411 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5414 2011-05-13 Doug Evans <dje@google.com>
5416 * linux-nat.c (debug_linux_nat_async): Delete.
5417 Replace all references to use debug_linux_nat instead.
5418 (show_debug_linux_nat_async): Delete.
5419 (sigchld_handler): Call ui_file_write_async_safe instead of
5421 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5422 * ui-file.c (struct ui_file): New member to_write_async_safe.
5423 (null_file_write_async_safe): New function.
5424 (ui_file_write_async_safe): New function.
5425 (set_ui_file_write_async_safe): New function.
5426 (ui_file_new): Initialize to_write_async_safe.
5427 (stdio_file_write_async_safe): New function.
5428 (struct stdio_file): New member fd.
5429 (stdio_file_new): Initialize to_write_async_safe, fd.
5430 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5432 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5433 (set_ui_file_write_async_safe): Declare.
5434 (ui_file_write_async_safe): Declare.
5436 2011-05-13 Tom Tromey <tromey@redhat.com>
5438 * utils.c (do_value_free): New function.
5439 (make_cleanup_value_free): Likewise.
5440 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5442 (dwarf2_loc_desc_needs_frame): Call
5443 make_cleanup_value_free_to_mark.
5444 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5445 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5447 (new_dwarf_expr_context): Don't call value_mark.
5448 * dwarf2-frame.c (execute_stack_op): Call
5449 make_cleanup_value_free_to_mark.
5450 * defs.h (make_cleanup_value_free): Declare.
5452 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5454 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5455 prepare_execute_command.
5456 * top.c (prepare_execute_command): Return cleanup.
5457 (execute_command): Use cleanup from prepare_execute_command.
5458 * top.h (prepare_execute_command): Change prototype to return
5460 * defs.h (struct value): Add opaque declaration.
5461 (make_cleanup_value_free_to_mark): Add prototype.
5462 * utils.c (do_value_free_to_mark): New function.
5463 (make_cleanup_value_free_to_mark): Likewise.
5465 2011-05-12 Tom Tromey <tromey@redhat.com>
5467 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5468 cast left-hand-side to unsigned.
5470 2011-05-12 Tom Tromey <tromey@redhat.com>
5473 * value.h (value_from_contents): Declare.
5474 * value.c (value_from_contents): New function.
5475 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5476 (dwarf2_get_die_type): New function.
5477 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5478 (allocate_piece_closure): Acquire reference to values.
5479 (read_pieced_value): Update for value-based expressions.
5480 (write_pieced_value): Likewise.
5481 (free_pieced_value_closure): Call value_free as needed.
5482 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5483 Update for value-based expressions.
5484 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5485 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5486 <get_base_type>: New field.
5487 (struct dwarf_expr_piece) <v.value>: Change type.
5488 <v.regno>: New field.
5489 (struct dwarf_expr_context) <mark>: New field.
5490 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5491 (dwarf_expr_pop, dwarf_expr_push): Remove.
5492 (dwarf_expr_push_address): Declare.
5493 * dwarf2expr.c (dwarf_arch_cookie): New global.
5494 (struct dwarf_gdbarch_types): New.
5495 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5497 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5499 (dwarf_expr_push_address): New function.
5500 (dwarf_expr_pop): Now static.
5501 (dwarf_expr_fetch): Change return type.
5502 (dwarf_require_integral): New function.
5503 (dwarf_expr_fetch): Simplify.
5504 (add_piece): Update.
5505 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5507 (execute_stack_op) <sign_ext>: Remove.
5508 Use values for DWARF stack.
5509 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5510 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5512 (_initialize_dwarf2expr): New function.
5513 (add_piece): Update.
5514 (new_dwarf_expr_context): Set new field.
5515 (free_dwarf_expr_context): Call value_free_to_mark.
5516 * dwarf2-frame.c (no_base_type): New function.
5517 (execute_stack_op): Set get_base_type field. Update.
5519 2011-05-12 Tom Tromey <tromey@redhat.com>
5521 * dwarf2read.c (read_common_block): Fix formatting.
5523 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5525 * breakpoint.c (disable_breakpoint): Disable all locations
5526 associated with a tracepoint on target if a trace experiment is
5528 (disable_command): Disable a specific tracepoint location on target if
5529 a trace experiment is running.
5530 (do_enable_breakpoint): Enable all locations associated with a
5531 tracepoint on target if a trace experiment is running.
5532 (enable_command) Enable a specific tracepoint location on target if a
5533 trace experiment is running.
5534 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5535 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5536 to_disable_tracepoint.
5537 * target.h: Add declaration of struct bp_location.
5538 (struct target_ops): Add new functions
5539 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5540 to_disable_tracepoint to target operations.
5541 (target_supports_enable_disable_tracepoint): New macro.
5542 (target_enable_tracepoint): New macro.
5543 (target_disable_tracepoint): New macro.
5544 * remote.c (struct remote_state): Add new field.
5545 (remote_enable_disable_tracepoint_feature): New.
5546 (remote_protocol_features): Add new entry.
5547 (remote_supports_enable_disable_tracepoint): New.
5548 (remote_enable_tracepoint): New.
5549 (remote_disable_tracepoint): New.
5550 (init_remote_ops): Add remote_enable_tracepoint,
5551 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5552 to remote operations.
5553 * tracepoint.c (start_tracing): Allow tracing to start without any
5554 tracepoints enabled with just a warning if they can be re-enabled
5556 * NEWS: Add news item for the new behaviour of the enable and disable
5557 GDB commands when applied to tracepoints.
5558 Add news items for the new remote packets QTEnable and QTDisable.
5560 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5562 * config.in: Regenerate.
5563 * configure: Regenerate.
5564 * configure.ac <--with-system-readline> (for readline_echoing_p):
5566 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5567 (tui_old_rl_echoing_p): ... here.
5568 (tui_setup_io): Rename extern declaration readline_echoing_p to
5569 _rl_echoing_p. Adjust assignments for the both renames.
5571 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5573 * symtab.c (lookup_symtab): Run cleanup before returning.
5575 2011-05-11 Tom Tromey <tromey@redhat.com>
5577 * dwarf2read.c (handle_data_member_location): New function.
5578 (dwarf2_add_field): Use it.
5579 (read_common_block): Likewise.
5581 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5583 Make addrs->SECTINDEX always defined.
5584 * symfile.c (relative_addr_info_to_section_offsets): Check for
5585 SECTINDEX -1, not for zero ADDR.
5586 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5587 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5588 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5591 2011-05-10 Doug Evans <dje@google.com>
5593 * linux-thread-db.c: Whitespace cleanup.
5594 (try_thread_db_load_1): Fix comment.
5596 * linux-thread-db.c (set_libthread_db_search_path): New function.
5597 (_initialize_thread_db): Add setter for libthread-db-search-path.
5599 2011-05-09 Doug Evans <dje@google.com>
5601 * NEWS: Mention --with-iconv-bin.
5602 * configure.ac: New option --with-iconv-bin.
5603 * configure: Regenerate.
5604 * config.in: Regenerate.
5605 * defs.h (relocate_gdb_directory): Declare.
5606 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5607 removed progname parameter, and exported. All callers updated.
5608 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5610 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5611 adding missing call to restore_child_signals_mask.
5613 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5615 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5617 * infrun.c (proceed, start_remote): Adjust.
5618 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5619 and adjust to not handle it.
5620 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5621 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5622 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5623 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5624 * windows-nat.c (do_initial_windows_stuff): Adjust.
5625 * infcmd.c (attach_command): Adjust.
5626 (notice_new_inferior): Adjust.
5628 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5630 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5631 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5632 * spu-tdep.c (op_selb): Use correct value.
5634 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5636 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5637 "parent" parameter to symbol_file_add_from_bfd call.
5639 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5640 Thiago Jung Bauermann <bauerman@br.ibm.com>
5642 Implement support for PowerPC BookE masked watchpoints.
5643 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5645 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5646 method. Initialize to NULL in all existing breakpoint_ops instances.
5647 (struct breakpoint) <hw_wp_mask>: New field.
5648 * breakpoint.c (is_masked_watchpoint): Add prototype.
5649 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5650 breakpoint's breakpoint_ops.works_in_software_mode if available.
5651 (watchpoints_triggered): Handle the case of a hardware masked
5653 (watchpoint_check): Likewise.
5654 (works_in_software_mode_watchpoint): New function.
5655 (insert_masked_watchpoint, remove_masked_watchpoint)
5656 (resources_needed_masked_watchpoint)
5657 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5658 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5659 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5661 (masked_watchpoint_breakpoint_ops): New structure.
5662 (watch_command_1): Check for the existence of the `mask' parameter.
5663 Set b->ops according to the type of hardware watchpoint being created.
5664 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5665 (ppc_linux_remove_mask_watchpoint)
5666 (ppc_linux_masked_watch_num_registers): New functions.
5667 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5668 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5669 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5670 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5671 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5672 (target_masked_watch_num_registers): New functions.
5673 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5674 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5676 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5677 (target_masked_watch_num_registers): Add prototypes.
5679 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5682 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5683 (producer_is_gcc_ge_4_0): New function.
5684 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5685 symtab->language code.
5686 (var_decode_location): Set cu->has_loclist.
5687 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5688 skip. Intialize force_skip from locations_valid. Move the prologue
5689 skipping code into two passes.
5690 * symtab.h (struct symtab): Make the primary field a bitfield. New
5691 field locations_valid.
5693 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5695 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5696 (classify_inner_name): Call cp_lookup_nested_type with
5698 * cp-namespace.c (cp_lookup_nested_type): New variable
5699 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5700 type_name_no_tag_or_error with saved_parent_type.
5701 * dwarf2read.c (load_partial_dies): Read in any children of
5702 DW_TAG_typedef with complaint in such case.
5703 * gdbtypes.c (type_name_no_tag_or_error): New function.
5704 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5705 * valops.c (destructor_name_p): New comment for parameter type. Remove
5706 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5707 * value.h (destructor_name_p): Remove type const.
5709 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5711 * symtab.c (compare_symbol_name): New function.
5712 (completion_list_add_name, expand_partial_symbol_name): Call it,
5713 remove the variable ncmp.
5714 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5717 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5719 Demote to sw watchpoint only in update_watchpoint.
5720 * breakpoint.c (update_watchpoint): Change between software and
5721 hardware watchpoint for all kinds of watchpoints, not just
5722 read/write ones. Determine b->exact value here instead of
5723 in watch_command_1. Error out if there are not enough resources
5724 for a read or access hardware watchpoint.
5725 (watch_command_1): Remove logic of checking whether there are
5726 enough resources available, since update_watchpoint will do that
5727 work now. Don't set b->exact here. Catch exceptions thrown by
5728 update_watchpoint and delete the watchpoint.
5729 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5730 Use target_exact_watchpoints instead.
5731 (delete_breakpoint): Notify observers only if deleted watchpoint
5732 has a breakpoint number assigned to it.
5734 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5736 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5738 2011-05-05 Jerome Guitton <guitton@adacore.com>
5740 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5742 (i386_stack_tramp_frame_unwind): New static global.
5743 (i386_match_pattern): New function, extracted from i386_match_insn.
5744 (i386_match_insn): Use i386_match_pattern.
5745 (i386_match_insn_block): New function.
5746 (i386_tramp_chain_in_reg_insns)
5747 (i386_tramp_chain_on_stack_insns): New static variables.
5748 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5751 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5753 * configure.host (xscale*): Don't handle target.
5754 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5757 2011-05-04 Yao Qi <yao@codesourcery.com>
5759 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5761 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5764 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5765 | * elfread.c (elf_symtab_read): Stop memory leak.
5767 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5769 * nto-tdep.c (nto_target): Replace deprecated call to
5770 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5772 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5774 Fix false GCC warning.
5775 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5777 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5779 * breakpoint.c (update_watchpoint): Move code to change
5780 the enable state of breakpoint from here ...
5781 (do_enable_breakpoint): ... to here.
5783 2011-04-26 Andrew Gontarek <andrewg@cray.com>
5785 * valprint.c (val_print_array_elements): Fixed poor performance
5786 of printing very large arrays with repeat_count_threshold set
5787 to unlimited. New comment.
5789 2011-04-29 Tom Tromey <tromey@redhat.com>
5791 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5792 (mi_parse): Likewise.
5793 * breakpoint.c (break_range_command): Use sizeof char*, not
5795 (create_breakpoint): Likewise.
5796 (parse_breakpoint_sals): Likewise.
5798 2011-04-29 Pedro Alves <pedro@codesourcery.com>
5800 * linux-nat.c (linux_child_remove_fork_catchpoint)
5801 (linux_child_remove_vfork_catchpoint)
5802 (linux_child_remove_exec_catchpoint): New functions.
5803 (linux_target_install_ops): Install them.
5805 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5809 * varobj.c (install_default_visualizer): Do not install a
5810 visualizer if the varobj is CPLUS_FAKE_CHILD.
5811 (construct_visualizer): Likewise.
5813 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5815 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5816 case insensitive comparison.
5818 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5820 * infrun.c (proceed): Revert previous change.
5821 (resume): Instead, handle the case of signal delivery while stepping
5822 off a breakpoint location here, and only if software single-stepping
5823 is used. Handle nested signals.
5825 2011-04-28 Yao Qi <yao@codesourcery.com>
5827 * arm-tdep.c (copy_unmodified): Rename to ...
5828 (arm_copy_unmodified): .. this. New.
5829 (copy_preload): Move common part to ...
5830 (install_preload): .. this. New.
5831 (arm_copy_preload): New.
5832 (copy_preload_reg): Move common part to ...
5833 (install_preload_reg): ... this. New.
5834 (arm_copy_preload_reg): New.
5835 (copy_b_bl_blx): Move common part to ...
5836 (install_b_bl_blx): .. this. New.
5837 (arm_copy_b_bl_blx): New.
5838 (copy_bx_blx_reg): Move common part to ...
5839 (install_bx_blx_reg): ... this. New.
5840 (arm_copy_bx_blx_reg): New.
5841 (copy_alu_reg): Move common part to ...
5842 (install_alu_reg): ... this. New.
5843 (arm_copy_alu_reg): New.
5844 (copy_alu_shifted_reg): Move common part to ...
5845 (install_alu_shifted_reg): ... this. New.
5846 (copy_ldr_str_ldrb_strb): Move common part to ...
5847 (install_ldr_str_ldrb_strb): ... this. New.
5848 (arm_copy_ldr_str_ldrb_strb): New.
5849 (copy_copro_load_store): Move some common part to ...
5850 (install_copy_copro_load_store): ... this. New.
5851 (arm_copy_copro_load_store): New.
5853 (arm_copy_svc): Renamed from copy_svc.
5854 (copy_undef): Delete.
5855 (arm_copy_undef): Renamed from copy_undef.
5856 (decode_ext_reg_ld_st): Delete.
5857 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5858 (decode_svc_copro): Delete.
5859 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5860 (copy_copro_load_store, copy_alu_imm): update callers.
5861 (copy_extra_ld_st, copy_block_xfer): Likewise.
5862 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5863 (decode_miscellaneous, decode_dp_misc): Likewise.
5864 (decode_ld_st_word_ubyte, decode_media): Likewise.
5865 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5866 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5867 (decode_unconditional, decode_miscellaneous): Likewise.
5868 (decode_media, decode_b_bl_ldmstm): Likewise.
5869 (arm_process_displaced_insn): Likewise..
5870 (decode_misc_memhint_neon): Delete.
5871 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5872 (decode_miscellaneous): Delete.
5873 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5874 (decode_dp_misc): Delete.
5875 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5876 (decode_ld_st_word_ubyte): Delete.
5877 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5878 (decode_media): Delete.
5879 (arm_decode_media): Renamed from decode_media.
5880 (decode_b_bl_ldmstm): Delete.
5881 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5882 (decode_ext_reg_ld_st): Delete.
5883 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5884 (decode_unconditional): Delete.
5885 (arm_decode_unconditional): Renamed from decode_unconditional.
5887 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5889 Case insensitive lookups implementation.
5890 * dwarf2read.c: Include ctype.h.
5891 (struct mapped_index): New field version.
5892 (mapped_index_string_hash): New parameter index_version. New comment
5893 for it. Call tolower appropriately.
5894 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5895 Choose the right index version for mapped_index_string_hash.
5896 (dwarf2_read_index): Support also the index version 5. Initialize the
5897 new struct mapped_index field version.
5898 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5899 (find_slot): Explain the version needs. Pass INT_MAX for the new
5901 (write_psymtabs_to_index): Produce version 5.
5902 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5903 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5904 * psymtab.c (lookup_partial_symbol): Find the
5905 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5907 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5909 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5910 (completion_list_add_name): New variable ncmp, initialize it, use it.
5911 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5912 * utils.c (strcmp_iw): Support case_sensitive_off.
5913 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5914 New function comment part. New variables saved_string1,
5915 saved_string2 and case_pass. Add a proper second pass.
5917 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5919 Replace re_comp/re_exec by regcomp/regexec.
5920 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5921 (search_symbols_name_matches): Use them, use regexec.
5922 (search_symbols): New variable retval_chain, adjust the use of
5923 old_chain against it. Replace re_comp by regcomp. Use the new struct
5924 search_symbols_data fields, use regexec instead of re_exec.
5926 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5928 Format the code for the next patch.
5929 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5930 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5931 New variables c1 and c2.
5933 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5935 * infrun.c (proceed): Do not single-step into signal delivery
5936 when stepping off a breakpoint location.
5937 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5938 (insert_step_resume_breakpoint_at_caller): Likewise.
5939 (insert_step_resume_breakpoint_at_sal): Likewise.
5940 (insert_longjmp_resume_breakpoint): Likewise.
5942 2011-04-27 Yao Qi <yao@codesourcery.com>
5944 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5946 2011-04-27 Joel Brobecker <brobecker@adacore.com>
5948 * procfs.c (procfs_pass_signals): Fix advance declaration.
5950 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5952 * target.h (struct target_ops): Remove to_notice_signals;
5953 add to_pass_signals.
5954 (target_notice_signals): Remove.
5955 (target_pass_signals): Add prototype.
5956 * target.c (update_current_target): Remove to_notice_signals;
5957 mention to_pass_signals.
5958 (target_pass_signals): New function.
5959 (debug_to_notice_signals): Remove.
5960 (setup_target_debug): Do not install debug_to_notice_signals.
5962 * infrun.c (signal_pass): New global.
5963 (resume): Call target_pass_signals.
5964 (handle_inferior_event): Report all signals while stepping over
5965 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5966 are re-inserted when stepping over a signal handler.
5967 (signal_cache_update): New function.
5968 (signal_stop_update): Call it.
5969 (signal_print_update): Likewise.
5970 (signal_pass_update): Likewise.
5971 (handle_command): Call signal_cache_update and target_pass_signals
5972 instead of target_notice_signals.
5973 (_initialize_infrun): Initialize signal_pass.
5975 * linux-nat.c (pass_mask): New global.
5976 (linux_nat_pass_signals): New function.
5977 (linux_nat_create_inferior): Report all signals initially.
5978 (linux_nat_attach): Likewise.
5979 (linux_nat_resume): Use pass_mask to decide whether to directly
5980 handle an inferior signal.
5981 (linux_nat_wait_1): Likewise.
5982 (linux_nat_add_target): Install to_pass_signals callback.
5984 * nto-procfs.c (notice_signals): Remove.
5985 (procfs_resume): Do not call notice_signals.
5986 (procfs_notice_signals): Remove.
5987 (procfs_pass_signals): New function.
5988 (init_procfs_ops): Install to_pass_signals callback instead of
5989 to_notice_signals callback.
5990 (_initialize_procfs): Report all signals initially.
5992 * procfs.c (procfs_notice_signals): Remove.
5993 (procfs_pass_signals): New function.
5994 (procfs_target): Install to_pass_signals callback instead of
5995 to_notice_signals callback.
5996 (register_gdb_signals): Remove.
5997 (procfs_debug_inferior): Report all signals initially.
5998 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6000 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6001 parameters; use them instead of calling signal_..._state routines.
6002 (remote_notice_signals): Remove.
6003 (remote_start_remote): Report all signals initially.
6004 (remote_resume): Do not call remote_pass_signals.
6005 (_initialize_remote): Install to_pass_signals callback instead of
6006 to_notice_signals callback.
6008 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6010 * breakpoint.c (user_settable_breakpoint): Delete.
6011 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6012 (delete_command): Check user_breakpoint_p instead of looking at
6013 the breakpoint's type.
6014 (disable_command): Ditto.
6015 (enable_command): Ditto.
6016 (delete_trace_command): Use user_breakpoint_p instead of looking
6017 at the breakpoint number directly. When checking if there are
6018 user visible tracepoints, in order to know whether to ask the user
6019 for confirmation, check whether the breakpoint is actually a
6022 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6024 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6027 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6029 MI breakpoint notifications.
6031 * annotate.c (breakpoint_changed): Adjust parameter type.
6032 * breakpoint.c (set_breakpoint_condition): Adjust to change
6033 in breakpoint_modified type.
6034 (breakpoint_set_commands): Likewise.
6035 (do_map_commands_command): Likewise.
6036 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6037 changed after bumping hit count.
6038 (bpstat_stop_status): Likewise.
6039 (print_one_breakpoint_location): Don't wrap in tuple here.
6040 (print_one_breakpoint): Always print individual locations.
6041 For locations, use unnamed tuple.
6042 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6044 (create_catchpoint, create_syscall_event_catchpoint): Call
6045 breakpoint_created obsever.
6046 (mention): Don't call breakpoint_created observer.
6047 (create_breakpoint_sal): Call breakpoint_created observer.
6048 (create_breakpoint, watch_command_1): Likewise.
6049 (create_ada_exception_breakpoint): Likewise.
6050 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6051 (locations_are_equal): New.
6052 (update_breakpoint_locations): If locations were changed, notify.
6053 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6054 Call breakpoint_modified observer.
6056 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6057 (mi_cmd_break_insert): Don't set observers for modify and delete.
6058 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6059 (mi_breakpoint_created, mi_breakpoint_deleted)
6060 (mi_breakpoint_modified): New.
6061 (mi_interpreter_init): Hook the above.
6062 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6063 while -break-* commands are executing.
6064 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6065 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6067 (mi_ui_out_impl): Hook in mi_redirect.
6068 (mi_field_skip): True to the name, skip the field, don't output
6069 a field with an empty value.
6071 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6072 (gdbpy_breakpoint_deleted): Adjust.
6073 * tui/tui-hooks.c (tui_event_create_breakpoint)
6074 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6076 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6078 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6079 (procfs_remove_hw_watchpoint): Likewise.
6081 2011-04-26 Michael Walle <michael@walle.cc>
6083 * remote.c (remote_start_remote): Ack packet after sending the
6086 2011-04-26 Yao Qi <yao@codesourcery.com>
6088 * linux-nat.c: Move common macros to ...
6089 Include linux-ptrace.h.
6090 * common/linux-ptrace.h: ... here. New.
6092 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6094 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6095 !objfile_has_partial_symbols. New comment.
6096 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6097 SYM_READ_PSYMBOLS is not present. Extend the comment.
6098 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6100 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6102 * defs.h (ENUM_BITFIELD): Remove.
6104 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6105 Eli Zaretskii <eliz@gnu.org>
6107 * NEWS: Document the new gdbserver --once option.
6109 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6111 * MAINTAINERS: Update my email address.
6113 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6115 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6116 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6117 function call if __STDC_ISO_10646__ macro is defined.
6118 (intermediate_encoding): New prototype.
6119 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6120 to generate compile time error for unsupported gdb_wchar_t size.
6121 (ENDIAN_SUFFIX): New macro.
6122 (intermediate_encoding): New function.
6124 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6126 * ada-lang.c (struct add_partial_datum): Update the comment for
6127 expand_partial_symbol_name.
6128 (ada_add_partial_symbol_completions): Rename to ...
6129 (ada_expand_partial_symbol_name): ... here, change return type, update
6130 function comment, call symbol_completion_match instead of
6131 symbol_completion_add.
6132 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6133 and ada_expand_partial_symbol_name.
6134 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6136 (dw2_map_symbol_names): Remove.
6137 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6138 * psymtab.c (map_symbol_names_psymtab): Remove.
6139 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6140 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6142 (psym_functions): Unlist map_symbol_names_psymtab.
6143 (map_partial_symbol_names): Rename to ...
6144 (expand_partial_symbol_names): ... here, change the FUN type, call
6145 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6146 * psymtab.h (map_partial_symbol_names): Rename to ...
6147 (expand_partial_symbol_names): ... here, change the FUN type.
6148 * symfile.h (struct quick_symbol_functions): Update the description of
6149 expand_symtabs_matching. Remove map_symbol_names.
6150 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6151 (struct add_name_data): Update the comment for
6152 expand_partial_symbol_name.
6153 (add_partial_symbol_name): Rename to ...
6154 (expand_partial_symbol_name): ... here. Replace
6155 completion_list_add_name call by strncmp.
6156 (default_make_symbol_completion_list_break_on): Use now
6157 expand_partial_symbol_names and expand_partial_symbol_name.
6158 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6160 2011-04-20 Tom Tromey <tromey@redhat.com>
6162 * dwarf2read.c (save_gdb_index_command): Replace format
6163 documentation with a pointer to the manual.
6165 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6167 * regcache.c: Include remote.h.
6168 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6169 (regcache_dump): Handle regcache_dump_remote.
6170 (maintenance_print_remote_registers): New function.
6171 (_initialize_regcache): Install "maint print remote-registers"
6173 * remote.c (map_regcache_remote_table): New function, factored out
6175 (init_remote_state): ... here.
6176 (remote_register_number_and_offset): New.
6177 * remote.h (remote_register_number_and_offset): Declare.
6179 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6181 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6182 null_ptid, assume and allow a NULL address space, instead of
6183 asking the target for the ptid's address space.
6184 * infrun.c (ptid_is_pid): Remove assertion.
6186 2011-04-19 Tom Tromey <tromey@redhat.com>
6188 * windows-tdep.c (windows_xfer_shared_library):
6189 * windows-nat.c (get_module_name, windows_make_so):
6190 * v850-tdep.c (v850_handle_pushm):
6191 * utils.c (null_cleanup, gdb_realpath):
6192 * ui-out.c (get_next_header):
6193 * tracepoint.c (clear_traceframe_info):
6194 * symtab.c (lookup_symtab):
6195 * serial.h (struct serial_ops):
6196 * mipsread.c (read_alphacoff_dynamic_symtab):
6197 * infcmd.c (print_return_value):
6198 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6199 * f-exp.y (parse_number):
6200 * exceptions.c (catch_exceptions):
6201 * dummy-frame.c (dummy_frame_this_id):
6202 * defs.h (struct cleanup):
6203 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6204 * arm-tdep.c (arm_push_dummy_call):
6205 * amd64-tdep.h (amd64_collect_xsave):
6206 * amd64-tdep.c (amd64_collect_xsave):
6207 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6208 * README (typing): Remove duplicate words.
6209 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6210 * infrun.c (siginfo_value_read): Fix typo.
6211 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6212 * top.c (source_line_number): Add comma.
6214 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6216 * thread.c (any_live_thread_of_process): Prioritize threads
6217 that are not executing.
6218 * gdbthread.h (any_live_thread_of_process): Update comment
6219 as per above change.
6221 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6223 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6224 (scan_xcoff_symtab): Likewise.
6226 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6228 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6231 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6232 Pedro Alves <pedro@codesourcery.com>
6234 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6235 variables to simplify code and avoid == operator at end of
6236 line as this is against GNU coding standards.
6238 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6240 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6241 lm_name to name_lm to avoid conflict with lm_name function.
6243 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6245 ARI fixes: Use only lowercase function name for static functions.
6246 * nto-tdep.c (LM_ADDR): Rename to...
6247 (lm_addr): New function name.
6248 (nto_relocate_section_addresses): Adapt to change above.
6249 * solib-sunos.c (LM_ADDR): Rename to...
6250 (lm_addr): New function name.
6251 (LM_NEXT): Rename to...
6252 (lm_next): New function name.
6253 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6254 function name changes above.
6255 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6256 (lm_addr_from_link_map): New function name.
6257 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6258 (has_lm_dynamic_from_link_map): New function name.
6259 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6260 (lm_dynamic_from_link_map): New function name.
6261 (LM_ADDR_CHECK): Rename to...
6262 (lm_addr_check): New function name.
6263 (LM_NEXT): Rename to...
6264 (lm_next): New function name.
6265 (LM_PREV): Rename to...
6266 (lm_prev): New function name.
6267 (LM_NAME): Rename to...
6268 (lm_name): New function name.
6269 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6270 (ignore_first_link_map_entry): New function name.
6271 (svr4_keep_data_in_core): Adapt to function name changes above.
6272 (svr4_current_sos): Likewise.
6273 (enable_break): Likewise.
6274 (svr4_relocate_section_addresses): Likewise.
6276 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6279 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6280 sprintf. Simplify code and avoid loosing memory.
6281 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6282 (call0_frame_cache): Remove && operator from end of line.
6284 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6286 Fix libraries displacement if they change whether they were prelinked.
6287 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6288 does not match. Comment why.
6290 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6292 * corelow.c: Include wrapper.h.
6293 (core_open): Call now gdb_target_find_new_threads.
6294 * wrapper.c: Include target.h.
6295 (gdb_target_find_new_threads): New.
6296 * wrapper.h (gdb_target_find_new_threads): New declaration.
6298 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6300 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6301 even if !TARGET_HAS_EXECUTION.
6303 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6305 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6306 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6307 bfd_get_synthetic_symtab.
6308 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6309 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6310 parameter parent, remove the call to add_separate_debug_objfile.
6311 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6312 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6313 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6314 parent, new comment for it, call add_separate_debug_objfile for it.
6315 (symbol_file_add_separate): Pass objfile as the parameter parent,
6316 remove the call to add_separate_debug_objfile.
6317 (symbol_file_add_from_bfd): New parameter parent, pass it.
6318 (symbol_file_add): Pass NULL to the new parameter parent.
6319 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6321 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6323 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6326 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6328 Fix Python access to inlined frames.
6329 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6330 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6332 2011-04-15 Tom Tromey <tromey@redhat.com>
6334 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6336 2011-04-15 Gary Benson <gbenson@redhat.com>
6338 * MAINTAINERS: Add myself to write-after-approval section.
6340 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6342 * remote-sim.c (sim_command_completer): New function.
6343 (_initialize_remote_sim): Set completer to sim_command_completer.
6345 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6347 * breakpoint.c (print_exception_catchpoint): Rename to ...
6348 (print_it_exception_catchpoint): ... this.
6349 (gnu_v3_exception_catchpoint_ops): Update with new name
6350 for print_it_exception_catchpoint.
6352 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6354 * MAINTAINERS: Add myself for write after approval privileges.
6356 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6358 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6360 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6362 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6364 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6366 * breakpoint.c (save_breakpoints): Verify whether
6367 breakpoint_ops.print_recreate is defined before calling it.
6369 2011-04-11 Gary Benson <gbenson@redhat.com>
6371 Fix failure with --enable-maintainer-mode.
6372 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6374 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6377 * symtab.c (search_symbols): Reorder the KIND description in the
6378 function comment. Remove the unused 4th element of types, types2,
6379 types3 and types4. New gdb_assert on KIND.
6380 (symtab_symbol_info): Remove the unused 4th element of classnames.
6381 New gdb_assert on KIND.
6382 * symtab.h (enum search_domain): New warning in the enum comment.
6383 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6386 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6388 Fix crash of gdb save-index on a STABS file.
6389 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6392 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6394 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6395 * dwarf2read.c: Include ctype.h.
6396 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6398 (dwarf2_add_field): Fix new_field->accessibility by calling
6399 dwarf2_default_access_attribute. Restructure setting accessibility
6401 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6402 is_private and is_protected by calling
6403 dwarf2_default_access_attribute.
6405 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6407 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6408 to the initialization.
6410 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6412 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6415 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6417 Remove support for old Cygwin 1.5 versions.
6418 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6419 function on old Cygwin version.
6420 * windows-nat.c: Remove cygwin version check and always define
6421 __USEWIDE for Cygwin compilation.
6423 2011-04-07 Yao Qi <yao@codesourcery.com>
6425 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6427 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6428 (arm_copy_svc): Remove parameters INSN and TO.
6429 (decode_svc_copro): Update caller.
6430 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6431 from function pointer `copy_svc_os'.
6433 2011-04-07 Yao Qi <yao@codesourcery.com>
6435 * arm-tdep.c (cleanup_branch): Set a correct return address in
6436 LR for ARM and Thumb.
6438 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6441 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6442 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6443 in the function comment, a new note on values compatibility.
6444 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6445 * symtab.h (SYMBOL_HASH_NEXT): New.
6447 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6449 * ppc-linux-nat.c (check_condition): Add len output parameter.
6450 Set it based on the memory region referenced in the condition
6451 expression. Update all callers.
6453 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6455 Fix crash regression on systems featuring .gdb_index.
6456 * objfiles.c (free_objfile): Move the
6457 forget_cached_source_info_for_objfile call earlier. Comment it.
6458 Extend the comment for objfile_free_data.
6460 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6462 Fix regression of displaying the debug format.
6463 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6466 2011-04-04 Tom Tromey <tromey@redhat.com>
6468 * cli/cli-interp.c (struct captured_execute_command_args):
6470 (do_captured_execute_command): Remove.
6471 (safe_execute_command): Use TRY_CATCH.
6472 * cli/cli-script.c (struct wrapped_read_command_file_args):
6474 (wrapped_read_command_file): Remove.
6475 (script_from_file): Use TRY_CATCH.
6476 * exceptions.c (catch_exception): Remove.
6477 * exceptions.h (catch_exception): Remove.
6478 (deprecated_throw_reason): Update comment.
6479 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6480 argument to 'context'.
6481 (mi_execute_command): Use TRY_CATCH.
6482 * remote.c (struct start_remote_args): Remove.
6483 (remote_start_remote): Update; change arguments.
6484 (remote_open_1): Use TRY_CATCH.
6486 2011-04-04 Tom Tromey <tromey@redhat.com>
6488 * tracepoint.c (scope_info): Update.
6489 * symtab.c (decode_line_spec): Update.
6490 * python/python.c (gdbpy_decode_line): Update.
6491 * linespec.h (decode_line_1): Update.
6492 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6493 (decode_compound, find_method, symtab_from_filename)
6494 (decode_variable): Likewise.
6495 * cli/cli-cmds.c (edit_command): Update.
6496 (list_command): Update.
6497 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6499 (create_breakpoint): Update.
6500 (until_break_command): Update.
6501 (addr_string_to_sals): Update.
6502 (decode_line_spec_1): Update.
6504 2011-04-04 Tom Tromey <tromey@redhat.com>
6506 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6507 (do_captured_parse_breakpoint): Remove.
6508 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6509 Use TRY_CATCH directly.
6511 2011-04-04 Tom Tromey <tromey@redhat.com>
6513 * symtab.h (free_symtab): Remove.
6514 (forget_cached_source_info_for_objfile): Declare.
6515 * symmisc.c (free_symtab): Remove.
6516 * source.c (forget_cached_source_info_for_objfile): New function.
6517 (forget_cached_source_info): Use it.
6518 * objfiles.c (free_objfile): Simplify check before calling
6519 clear_current_source_symtab_and_line. Call
6520 forget_cached_source_info_for_objfile.
6522 2011-04-04 Tom Tromey <tromey@redhat.com>
6524 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6525 (new_symtab): Don't set `free_code' on symtab.
6526 (new_linetable): Properly handle size==0.
6527 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6528 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6530 * jv-lang.c (struct jv_per_objfile_data): New.
6531 (jv_per_objfile_free): Free the data.
6532 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6533 (get_java_class_symtab): Set the `dict' field on the
6534 jv_per_objfile_data.
6535 (free_class_block): Remove.
6536 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6539 2011-04-04 Tom Tromey <tromey@redhat.com>
6541 * symfile.c (reread_symbols): Update.
6542 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6544 * objfiles.c (allocate_objfile): Update.
6545 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6547 * cp-namespace.c (lookup_symbol_file): Don't call
6548 lookup_possible_namespace_symbol.
6549 (initialize_namespace_symtab, get_possible_namespace_block)
6550 (free_namespace_block, cp_check_possible_namespace_symbols)
6551 (check_possible_namespace_symbols_loop)
6552 (check_one_possible_namespace_symbol)
6553 (lookup_possible_namespace_symbol): Remove.
6554 (maintenance_cplus_namespace): Replace with notice.
6555 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6557 2011-04-04 Tom Tromey <tromey@redhat.com>
6559 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6560 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6561 * symmisc.c (free_symtab): Don't free debugformat.
6562 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6563 (record_debugformat, record_producer): Document.
6564 * buildsym.c (end_symtab): Don't save debugformat and producer
6566 (end_symtab): Don't free debugformat and producer fields.
6567 (record_debugformat): Don't call xstrdup.
6568 (record_producer): Likewise.
6570 2011-04-04 Tom Tromey <tromey@redhat.com>
6572 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6573 (source_line_charpos, source_charpos_line): Remove.
6575 2011-04-04 Tom Tromey <tromey@redhat.com>
6577 * symtab.h (domain_enum): Split in two...
6578 (enum search_domain): New.
6579 (search_symbols): Update.
6580 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6581 redundant declarations.
6582 (search_symbols): Change 'kind' argument to search_domain.
6584 (print_symbol_info): Likewise.
6585 (symtab_symbol_info): Likewise.
6586 * symfile.h (struct quick_symbol_functions)
6587 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6588 <expand_symtabs_matching>: Likewise.
6589 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6590 (expand_symtabs_matching_via_partial): Update.
6591 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6592 (dw2_expand_symtabs_for_function): Update.
6593 * block.h: Moved anonymous enum...
6594 * defs.h (enum block_enum): ... here. Now named.
6596 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6598 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6599 * version.in: Bump version to 7.3.50.20110403-cvs.
6601 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6603 * NEWS: Create a new section for the next release branch.
6604 Rename the section of the current branch, now that it has
6607 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6609 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6610 for "fpscr" in target description.
6612 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6614 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6615 initialize it. Delay HASH initialization. Strip the part after open
6616 parenthesis for languages with qualifiers. Call do_cleanups.
6618 2011-04-01 Tom Tromey <tromey@redhat.com>
6620 * utils.c (report_command_stats): Don't print `-' for negative
6623 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6625 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6626 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6629 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6631 * breakpoint.h (bpdisp_text): Add declaration.
6632 * breakpoint.c (bpdisp_text): Make non-static.
6633 * ada-lang.c: #include "mi/mi-common.h".
6634 (print_it_exception): Rewrite to improve GDB/MI output.
6636 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6638 * arm-tdep.h (struct address_space): Add forward declaration.
6640 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6642 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6643 * arm-tdep.c (arm_override_mode): New global.
6644 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6645 execution mode heuristics.
6646 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6647 second single-step breakpoint if needed, using
6648 arm_insert_single_step_breakpoint.
6649 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6650 ARM execution mode, do not call thumb_get_next_pc_raw.
6651 (arm_get_next_pc): Encode execution mode in return value. Call
6652 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6653 (arm_insert_single_step_breakpoint): New function.
6654 (arm_software_single_step): Call it.
6655 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6656 argument to return execution mode of sigreturn target.
6657 (arm_linux_syscall_next_pc): Use it.
6658 (arm_linux_copy_svc): Update call.
6659 (arm_linux_software_single_step): Call
6660 arm_insert_single_step_breakpoint.
6662 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6664 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6667 2011-03-31 Tom Tromey <tromey@redhat.com>
6669 * varobj.c (update_dynamic_varobj_children): Properly handle
6670 errors from iterator.
6672 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6674 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6675 struct linkage name twice.
6677 2011-03-31 Tom Tromey <tromey@redhat.com>
6679 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6680 missing ">" to message.
6682 2011-03-31 Tom Tromey <tromey@redhat.com>
6684 * varobj.c (instantiate_pretty_printer): Remove duplicate
6687 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6689 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6690 if neither saved value nor register available (e.g. signal frame).
6692 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6694 * macroexp.c (expand): Avoid uninitialized variable
6697 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6699 * breakpoint.c (break_range_command): Fix typo in comment.
6701 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6702 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6704 Implement support for PowerPC BookE ranged breakpoints.
6705 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6706 * breakpoint.h (struct bp_target_info) <length>: New member
6708 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6709 instead of struct breakpoint as argument, and also add ASPACE
6710 and BP_ADDR arguments. Update all callers.
6711 (struct breakpoint_ops) <print_one_detail>: New method.
6712 (struct breakpoint) <addr_string_range_end>: New member variable.
6713 * breakpoint.c (breakpoint_location_address_match): Add function
6715 (insert_bp_location): Set bl->target_info.length.
6716 (breakpoint_here_p): Call breakpoint_location_address_match.
6717 (moribund_breakpoint_here_p): Likewise.
6718 (regular_breakpoint_inserted_here_p): Likewise.
6719 (breakpoint_thread_match): Likewise.
6720 (bpstat_stop_status): Likewise.
6721 (bpstat_check_location): Move call to
6722 breakpoint_ops.breakpoint_hit to the top.
6723 (print_one_breakpoint_location): Call
6724 breakpoint_ops.print_one_detail if available.
6725 (breakpoint_address_match_range): New function.
6726 (breakpoint_location_address_match): Likewise.
6727 (breakpoint_locations_match): Compare the length field of the
6729 (hw_breakpoint_used_count): Count resources used by all locations
6730 in a breakpoint, and use breakpoint_ops.resources_needed if
6732 (breakpoint_hit_ranged_breakpoint): New function.
6733 (resources_needed_ranged_breakpoint): Likewise.
6734 (print_it_ranged_breakpoint): Likewise.
6735 (print_one_ranged_breakpoint): Likewise.
6736 (print_one_detail_ranged_breakpoint): Likewise.
6737 (print_mention_ranged_breakpoint): Likewise.
6738 (print_recreate_ranged_breakpoint): Likewise.
6739 (ranged_breakpoint_ops): New structure.
6740 (find_breakpoint_range_end): New function.
6741 (break_range_command): Likewise.
6742 (delete_breakpoint): Free addr_string_range_end.
6743 (update_breakpoint_locations): Add SALS_END argument. Update
6744 all callers. Calculate breakpoint length if a non-zero SALS_END
6745 is given. Call breakpoint_locations_match instead of
6746 breakpoint_address_match.
6747 (reset_breakpoint): Find SaL of the end of the range if B is a
6749 (_initialize_breakpoint): Register break-range command.
6750 * defs.h (print_core_address): Add function prototype.
6751 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6753 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6754 (ppc_linux_remove_hw_breakpoint): Likewise.
6755 (_initialize_ppc_linux_nat): Initialize
6756 to_ranged_break_num_registers.
6757 * target.c (update_current_target): Add comment about
6758 to_ranged_break_num_registers.
6759 (target_ranged_break_num_registers): New function.
6760 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6762 (target_ranged_break_num_registers): Add function prototype.
6763 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6764 * utils.c (print_core_address): ... here.
6766 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6768 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6769 variable compiler warning.
6771 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6773 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6775 (re_set_breakpoint): ... to here ...
6776 (addr_string_to_sals): ... and here.
6778 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6780 * Makefile.in (SFILES): Add missing C sources.
6781 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6782 Add missing headers.
6784 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6786 * .gitignore: New file.
6788 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6790 * NEWS: Mention new cfi device simulation.
6792 2011-03-29 Tom Tromey <tromey@redhat.com>
6794 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6795 otherwise anonymous types.
6796 (dwarf2_name): Likewise.
6797 * valops.c (value_struct_elt_for_reference): Refine artificial
6798 type logic. Call error if j==-1.
6800 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6802 Fix false GCC warning.
6803 * infcall.c (find_function_addr): Initialize funaddr.
6805 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6807 Fix mingw compilation with --enable-targets=all.
6808 * remote-mips.c (gdb_usleep.h): Include header.
6809 (mips_enter_debug): Use gdb_usleep instead of sleep.
6811 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6813 Support resolution of STT_GNU_IFUNC via breakpoints.
6814 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6815 bp_gnu_ifunc_resolver_return.
6816 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6817 the loop. Support bp_gnu_ifunc_resolver and
6818 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6819 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6821 (bptype_string, print_one_breakpoint_location): Support
6822 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6823 (user_settable_breakpoint): Return true also for
6824 bp_gnu_ifunc_resolver.
6825 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6826 bp_gnu_ifunc_resolver_return.
6827 (set_breakpoint_location_function): New parameter explicit_loc,
6828 describe it. Call find_pc_partial_function_gnu_ifunc with new
6829 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6830 EXPLICIT_LOC is not set.
6831 (set_raw_breakpoint): Set EXPLICIT_LOC for
6832 set_breakpoint_location_function.
6833 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6834 set_breakpoint_location_function.
6835 (mention): Support bp_gnu_ifunc_resolver and
6836 bp_gnu_ifunc_resolver_return.
6837 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6838 set_breakpoint_location_function.
6839 (update_breakpoint_locations): Remove static.
6840 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6841 bp_gnu_ifunc_resolver_return.
6842 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6843 bp_gnu_ifunc_resolver_return.
6844 (update_breakpoint_locations): New declaration.
6845 * elfread.c: Include gdbthread.h and regcache.h.
6846 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6848 (elf_gnu_ifunc_fns): Install them.
6849 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6850 (stub_gnu_ifunc_resolver_return_stop): New functions.
6851 (stub_gnu_ifunc_fns): Install them.
6852 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6853 and gnu_ifunc_resolver_return_stop.
6854 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6856 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6858 STT_GNU_IFUNC reader implementation.
6859 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6860 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6861 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6862 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6863 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6864 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6865 (elf_gnu_ifunc_resolve_addr): New.
6866 (elf_symfile_read): Call elf_rel_plt_read.
6867 (elf_gnu_ifunc_fns): New.
6868 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6869 Install elf_gnu_ifunc_fns.
6870 * infcall.c (find_function_return_type): New function.
6871 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6872 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6873 (stub_gnu_ifunc_resolve_name): New functions.
6874 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6875 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6876 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6878 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6880 Code cleanup for later STT_GNU_IFUNC support.
6881 * infcall.c (find_function_addr): Remove variable code, use explicit
6882 dereferences for it. Move VALUE_TYPE initialization later.
6884 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6886 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6887 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6888 (clear_pc_function_cache): Clear it.
6889 (find_pc_partial_function): Rename to ...
6890 (find_pc_partial_function_gnu_ifunc): ... this function. New
6891 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6892 (find_pc_partial_function): New wrapper for this function.
6893 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6895 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6897 GDB internal type support for STT_GNU_IFUNC.
6898 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6899 (elf_symtab_read): Set mst_text_gnu_ifunc for
6900 BSF_GNU_INDIRECT_FUNCTION.
6901 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6902 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6903 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6904 nodebug_got_plt_symbol.
6905 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6906 (TYPE_GNU_IFUNC): New.
6907 (struct main_type): New field flag_gnu_ifunc.
6908 (struct builtin_type): New field builtin_func_func.
6909 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6910 nodebug_got_plt_symbol.
6911 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6912 (in_gnu_ifunc_stub): New.
6913 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6915 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6916 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6917 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6919 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6920 * symtab.c (search_symbols): Likewise.
6921 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6922 and mst_slot_got_plt.
6923 (in_gnu_ifunc_stub): New declaration.
6925 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6927 Support a ring of related breakpoints.
6928 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6929 other functions, add gdb_assert.
6930 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6931 watchpoint_del_at_next_stop.
6932 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6933 (bpstat_stop_status): Handle ring in related_breakpoint.
6934 (set_raw_breakpoint_without_location): Initialize ring in
6936 (delete_breakpoint): Handle ring in related_breakpoint, use
6937 watchpoint_del_at_next_stop.
6938 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6940 2011-03-28 Tom Tromey <tromey@redhat.com>
6943 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6944 with `language_minimal'.
6946 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6948 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6949 instead of checking for STT_ARM_TFUNC symbol type.
6951 2011-03-25 Tom Tromey <tromey@redhat.com>
6953 * linespec.c (symbol_found): Restore line-based result for
6954 non-LOC_LABEL symbols.
6956 2011-03-25 Kai Tietz <ktietz@redhat.com>
6958 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6959 instead of strcmp for comparison.
6960 (tui_source_is_displayed): Likewise.
6961 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6963 2011-03-24 Mark Wielaard <mjw@redhat.com>
6965 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6967 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6968 (find_partial_die_in_comp_unit): Likewise in comment.
6969 (read_attribute_value): Likewise.
6970 (lookup_die_type): Likewise.
6971 (dwarf_form_name): Likewise.
6972 (dump_die_shallow): Likewise.
6973 (follow_die_ref_or_sig): Likewise.
6975 2011-03-24 Tom Tromey <tromey@redhat.com>
6977 PR breakpoints/11816:
6978 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6979 (decode_compound): Update.
6980 (find_function_symbol): New function.
6981 (decode_dollar): Update.
6982 (decode_label): Add 'function_symbol' parameter. Handle
6983 function-relative labels.
6984 (decode_variable): Update.
6985 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6986 not its line. Set `special_display' and canonical name for
6989 2011-03-24 Tom Tromey <tromey@redhat.com>
6991 * linespec.h (struct linespec_result) <special_display>: New
6993 * breakpoint.h (struct breakpoint) <display_canonical>: New
6995 * breakpoint.c (print_breakpoint_location): Respect
6997 (create_breakpoint_sal): Add 'display_canonical' parameter.
6998 (create_breakpoints_sal): Update.
6999 (create_breakpoint): Update.
7001 2011-03-24 Tom Tromey <tromey@redhat.com>
7003 * symtab.c (decode_line_spec): Update.
7004 * linespec.c (build_canonical_line_spec): Change type of
7006 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7007 (find_method, decode_all_digits, decode_dollar, decode_label)
7008 (symbol_found): Likewise.
7009 (init_linespec_result): New function.
7010 * breakpoint.c (struct captured_parse_breakpoint_args)
7011 <canonical_p>: New field, replaces addr_string_p.
7012 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7014 (parse_breakpoint_sals): Likewise.
7015 (do_captured_parse_breakpoint): Update.
7016 (create_breakpoint): Use struct linespec_result.
7017 (until_break_command): Update.
7018 (breakpoint_re_set_one): Update.
7019 (decode_line_spec_1): Update.
7020 * linespec.h (struct linespec_result): New.
7021 (init_linespec_result): Declare.
7023 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7025 * regcache.c (regcache_raw_read): If the target didn't supply a
7026 given raw register, mark it as unavailable.
7028 2011-03-23 Kai Tietz <ktietz@redhat.com>
7030 * breakpoint.c (clear_command): Use filename_cmp
7031 instead of strcmp for comparison.
7032 * buildsym.c (watch_main_source_file_lossage): Likewise.
7033 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7034 checking just for slash.
7035 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7036 strrchr and filename_cmp instead of strcmp for filenames.
7037 (add_old_header_file): Use filename_cmp
7038 instead of strcmp for comparison.
7039 * exec.c (exec_set_section_address): Likewise.
7040 * macrotab.c (macro_lookup_inclusion): Likewise.
7041 (macro_lookup_inclusion): Likewise.
7042 * elfread.c (_initialize_elfread): Likewise.
7043 (elfstab_offset_sections): Likewise.
7044 (elfstab_offset_sections): Use lbasename instead of
7046 * mdebugread.c (parse_partial_symbols): Likewise.
7047 (arse_partial_symbols): Use filename_(n)cmp instead of
7048 str(n)cmp for comparison.
7049 * minsyms.c (lookup_minimal_symbol): Likewise.
7050 * psymtab.c (read_psymtabs_with_filename): Likewise.
7051 * solib.c (solib_read_symbols): Likewise.
7052 (reload_shared_libraries_1): Likewise.
7053 * symmisc.c (maintenance_print_symbols): Likewise.
7054 * symfile.c (separate_debug_file_exists): Likewise.
7055 (reread_symbols): Likewise.
7056 (find_separate_debug_file_by_debuglink): Likewise.
7057 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7058 * source.c (add_path): Likewise.
7059 * symtab.c (filename_seen): Likewise.
7060 (file_matches): Likewise.
7061 (print_symbol_info): Likewise.
7062 (maybe_add_partial_symtab_filename): Likewise.
7063 (make_source_files_completion_list): Likewise.
7064 * xml-syscall.c (init_sysinfo): Likewise.
7065 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7066 IS_DIR_SEPARATOR for checking for trailing path separator.
7068 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7070 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7071 label abort_expression.
7072 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7073 DWARF_VALUE_OPTIMIZED_OUT.
7075 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7078 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7079 to linkage_name. Invert its value. Update the function comment.
7080 (c_type_print_varspec_suffix): Invert it at the caller.
7081 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7083 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7085 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7086 errors when reading the `stop_pc'.
7087 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7090 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7092 * NEWS: Document gdb.Write stream keyword.
7094 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7097 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7098 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7099 (dwarf2_add_field): Fix new_field->accessibility for
7100 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7102 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7106 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7107 other error classes. Do not print stack trace.
7109 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7111 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7112 (dwarf2_add_field): Fix new_field->accessibility for
7113 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7115 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7117 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7118 encountering a load via a non-SP register.
7120 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7122 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7123 field in returned unwinder.
7125 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7127 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7129 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7131 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7134 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7136 * frame.c (frame_unwind_register): Throw an error if unwinding the
7138 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7139 an unwind stop reason.
7140 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7141 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7142 UNWIND_UNAVAILABLE>: New.
7143 * inline-frame.c (inline_frame_unwind): Install
7144 default_frame_unwind_stop_reason.
7145 * frame-unwind.c: Include "exceptions.h".
7146 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7147 (default_frame_unwind_stop_reason): New.
7148 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7149 (default_frame_unwind_stop_reason): Declare.
7150 (struct frame_unwind) <stop_reason>: New function pointer.
7152 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7153 * dwarf2-frame.c: Include exceptions.h.
7154 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7155 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7156 computing the CFA. If such an error was thrown, set
7157 unavailable_retaddr.
7158 (dwarf2_frame_unwind_stop_reason): New.
7159 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7161 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7162 (dwarf2_signal_frame_unwind): Ditto.
7164 * amd64-tdep.c: Include "exceptions.h".
7165 (struct amd64_frame_cache): New field "base_p".
7166 (amd64_init_frame_cache): Clear it.
7167 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7168 Avoid reading registers with functions that throw if the register
7169 is not necessary to compute the frame base.
7170 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7171 swallowing NOT_AVAILABLE_ERROR.
7172 (amd64_frame_unwind_stop_reason): New.
7173 (amd64_frame_this_id): Don't build a frame id if the frame base
7175 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7176 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7177 base_p if the frame base was computable.
7178 (amd64_sigtramp_frame_unwind_stop_reason): New.
7179 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7180 frame base was unavailable.
7181 (amd64_sigtramp_frame_unwind): Install
7182 amd64_sigtramp_frame_unwind_stop_reason.
7183 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7184 base_p if the frame base was computable.
7185 (amd64_epilogue_frame_unwind_stop_reason): New.
7186 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7187 frame base was unavailable.
7188 (amd64_epilogue_frame_unwind): Install
7189 amd64_epilogue_frame_unwind_stop_reason.
7190 * i386-tdep.c: Include "exceptions.h".
7191 (struct i386_frame_cache): New field "base_p".
7192 (i386_init_frame_cache): Clear it.
7193 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7194 Avoid reading registers with functions that throw if the register
7195 is not necessary to compute the frame base.
7196 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7197 swallowing NOT_AVAILABLE_ERROR.
7198 (i386_frame_unwind_stop_reason): New.
7199 (i386_frame_this_id): Don't build a frame id if the frame base was
7201 (i386_frame_prev_register): Handle unavailable SP.
7202 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7203 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7204 base_p if the frame base was computable.
7205 (i386_epilogue_frame_unwind_stop_reason): New.
7206 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7207 base was unavailable.
7208 (i386_epilogue_frame_unwind): Install
7209 i386_epilogue_frame_unwind_stop_reason.
7210 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7211 base_p if the frame base was computable.
7212 (i386_sigtramp_frame_unwind_stop_reason): New.
7213 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7214 base was unavailable.
7215 (i386_sigtramp_frame_unwind): Install
7216 i386_sigtramp_frame_unwind_stop_reason.
7217 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7218 type's size, not the register's.
7219 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7221 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7222 default_frame_unwind_stop_reason.
7223 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7224 (alpha_heuristic_frame_unwind): Ditto.
7225 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7226 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7227 * avr-tdep.c (avr_frame_unwind): Ditto.
7228 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7230 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7231 * frv-tdep.c (frv_frame_unwind): Ditto.
7232 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7233 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7234 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7235 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7236 (hppa_stub_frame_unwind): Ditto.
7237 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7238 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7239 (ia64_libunwind_frame_unwind)
7240 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7241 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7242 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7243 * m32c-tdep.c (m32c_unwind): Ditto.
7244 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7245 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7246 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7247 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7248 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7249 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7250 * mep-tdep.c (mep_frame_unwind): Ditto.
7251 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7252 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7253 (mips_stub_frame_unwind): Ditto.
7254 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7255 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7256 * mt-tdep.c (mt_frame_unwind): Ditto.
7257 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7258 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7259 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7260 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7261 (s390_sigtramp_frame_unwind): Ditto.
7262 * score-tdep.c (score_prologue_unwind): Ditto.
7263 * sh-tdep.c (sh_frame_unwind): Ditto.
7264 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7265 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7266 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7267 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7268 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7269 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7270 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7271 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7272 (sparc64obsd_trapframe_unwind): Ditto.
7273 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7274 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7275 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7276 * v850-tdep.c (v850_frame_unwind): Ditto.
7277 * vax-tdep.c (vax_frame_unwind): Ditto.
7278 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7279 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7280 * xtensa-tdep.c (xtensa_unwind): Ditto.
7282 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7284 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7285 there's always a frame. Use get_frame_pc_if_available instead of
7286 get_frame_pc, and if there's no PC available, don't look up a
7289 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7291 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7294 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7296 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7299 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7301 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7302 * frame.c (frame_unwind_caller_pc_if_available): New.
7303 * stack.c (frame_info): Handle unavailable PC.
7305 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7307 * frame.c (frame_unwind_pc): Rename to ...
7308 (frame_unwind_pc_if_available): ... this. New `pc' output
7309 parameter. Change return type to int. Gracefully handle
7310 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7311 happened, or 1 otherwise.
7312 (frame_unwind_pc): Reimplement on top of
7313 frame_unwind_pc_if_available.
7314 (get_frame_func): Rename to ...
7315 (get_frame_func_if_available): New `pc' output parameter. Change
7316 return type to int. Gracefully handle the PC not being available.
7317 (get_frame_func): Reimplement on top of
7318 get_frame_func_if_available.
7319 (select_frame): Handle the PC being unavailable.
7320 (get_prev_frame): Handle the PC being unavailable.
7321 (get_frame_pc_if_available): New.
7322 (get_frame_address_in_block_if_available): New.
7323 (find_frame_sal): Handle the frame PC not being available.
7324 * frame.h (get_frame_pc_if_available): Declare.
7325 (get_frame_address_in_block_if_available): Declare.
7326 (get_frame_func_if_available): Declare.
7327 * stack.c (print_frame_info): Handle the PC being unavailable.
7328 (find_frame_funname): Ditto.
7329 (print_frame): Handle the PC being unavailable.
7330 (get_frame_language): Ditto.
7331 * blockframe.c (get_frame_block): Ditto.
7332 * macroscope.c (default_macro_scope): Ditto.
7333 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7335 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7337 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7338 NOT_AVAILABLE_ERROR when evaluating the location expression.
7340 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7342 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7343 returning that the register piece is unavailable/optimized out.
7344 (write_pieced_value): Handle get_frame_register_bytes returning
7345 that the register piece is unavailable/optimized out when doing a
7346 read-modify write of a bitfield.
7347 * findvar.c (value_from_register): Handle get_frame_register_bytes
7348 returning that the register piece is unavailable/optimized out.
7349 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7350 and `unavailablep'. Throw error on bad debug info. Use
7351 frame_register instead of frame_register_read, to fill in the new
7353 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7355 * valops.c: (value_assign): Adjust, and handle
7356 get_frame_register_bytes failing.
7357 * spu-tdep.c: Include exceptions.h.
7358 (spu_software_single_step): Adjust, and handle
7359 get_frame_register_bytes failing.
7360 (spu_get_longjmp_target): Ditto.
7361 * gdbarch.sh (register_to_value): Change to return int. New
7362 parameters `optimizedp' and `unavailablep'.
7363 * gdbarch.h, gdbarch.c: Regenerate.
7364 * i386-tdep.c (i386_register_to_value): Adjust to new
7365 gdbarch_register_to_value interface.
7366 * i387-tdep.c (i387_register_to_value): Ditto.
7367 * i387-tdep.h (i387_register_to_value): Ditto.
7368 * alpha-tdep.c (alpha_register_to_value): Ditto.
7369 * ia64-tdep.c (ia64_register_to_value): Ditto.
7370 * m68k-tdep.c (m68k_register_to_value): Ditto.
7371 * mips-tdep.c (mips_register_to_value): Ditto.
7372 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7374 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7376 * findvar.c (value_of_register): Mark the value as unavailable, if
7377 the register is unavailable.
7378 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7379 (frame_register): New `unavailablep' parameter.
7380 (frame_register_read): Update comment.
7381 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7382 Set it if the register is unavailable. If the register is
7383 unavailable, clear the output buffer.
7384 (frame_register): New `unavailablep' parameter. Pass it down.
7385 (frame_unwind_register): Adjust.
7386 (put_frame_register): Adjust.
7387 (frame_register_read): Adjust. Also return false if the register
7389 (frame_register_unwind_location): Adjust.
7390 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7391 is unavailable, mark the value accordingly.
7392 * stack.c (frame_info): Handle unavailable registers.
7394 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7396 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7397 simplify, using regcache_cooked_read.
7399 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7401 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7402 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7403 (regcache_raw_read_unsigned, regcache_raw_read_part)
7404 (regcache_cooked_read, regcache_cooked_read_signed)
7405 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7406 (regcache_cooked_read_ftype): Change return to enum
7408 * regcache.c: Include exceptions.h
7409 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7410 (do_cooked_read): Change return to enum register_status. Always
7411 forward to regcache_cooked_read.
7412 (regcache_raw_read): Change return to enum register_status. If
7413 the register is not REG_VALID, memset the buffer. Return the
7415 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7416 return the register's status.
7417 (regcache_raw_read_unsigned): Ditto.
7418 (regcache_cooked_read): Change return to enum register_status.
7419 Assert that with read-only regcaches, the register's status must
7420 be known. If the regcache is read-only, and the register is not
7421 REG_VALID, memset the buffer. Return the register's status.
7422 (regcache_cooked_read_signed): Change return to enum
7423 register_status. Handle non-REG_VALID registers and return the
7425 (regcache_cooked_read_unsigned): Change return to enum
7426 register_status. Handle non-REG_VALID registers and return the
7428 (regcache_xfer_part, regcache_raw_read_part)
7429 (regcache_cooked_read_part): Change return to enum
7430 register_status. Return the register's status.
7431 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7433 (regcache_dump): Handle unavailable cooked registers.
7434 * frame.c (do_frame_register_read): Adjust interface to match
7435 regcache_cooked_read_ftype.
7436 * gdbarch.sh (pseudo_register_read): Change return to enum
7438 * gdbarch.h, gdbarch.c: Regenerate.
7440 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7442 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7443 register_status. If reading a raw register indicates the raw
7444 register is not valid, return the raw register's status,
7445 otherwise, return REG_VALID.
7446 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7447 register_status. Handle non-REG_VALID raw registers and return
7448 the register's status.
7449 * arm-tdep.c (arm_neon_quad_read)
7450 (arm_pseudo_read): Change return to enum register_status. Handle
7451 non-REG_VALID raw registers and return the register's status.
7452 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7453 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7454 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7455 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7456 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7458 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7459 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7460 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7461 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7462 (m32c_pseudo_register_read): Change return to enum
7463 register_status. Adjust.
7464 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7465 enum register_status. Return the register's status.
7466 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7467 register_status. Return the register's status.
7468 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7469 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7470 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7471 * rs6000-tdep.c (move_ev_register_func): New typedef.
7472 (e500_move_ev_register): Use it. Change return to enum
7473 register_status. Return the register's status.
7474 (do_regcache_raw_read): New function.
7475 (do_regcache_raw_write): New function.
7476 (e500_pseudo_register_read): Change return to enum
7477 register_status. Return the register's status. Use
7478 do_regcache_raw_read.
7479 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7480 (dfp_pseudo_register_read): Change return to enum register_status.
7481 Return the register's status.
7482 (vsx_pseudo_register_read): Ditto.
7483 (efpr_pseudo_register_read): Ditto.
7484 (rs6000_pseudo_register_read): Ditto.
7485 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7486 register_status. Return the register's status.
7487 * sh64-tdep.c (pseudo_register_read_portions): New function.
7488 (sh64_pseudo_register_read): Change return to enum
7489 register_status. Use pseudo_register_read_portions. Return the
7491 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7492 register_status. Return the register's status.
7493 * sh-tdep.c (pseudo_register_read_portions): New function.
7494 (sh_pseudo_register_read): Change return to enum register_status.
7495 Use pseudo_register_read_portions. Return the register's status.
7496 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7497 enum register_status. Return the register's status.
7498 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7499 * spu-tdep.c (spu_pseudo_register_read_spu)
7500 (spu_pseudo_register_read): Ditto.
7501 * xtensa-tdep.c (xtensa_register_read_masked)
7502 (xtensa_pseudo_register_read): Ditto.
7503 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7505 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7507 * python/py-value.c (valpy_getitem): Fix formatting of error function
7510 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7512 ARI fixes: Add missing internationalization markups throughout
7514 * darwin-nat-info.c: Ditto.
7517 * mi/mi-main.c: Ditto.
7519 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7521 ARI fixes: Add missing internationalization markups throughout
7524 * cp-name-parser.y: Ditto.
7527 * objc-exp.y: Ditto.
7530 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7532 ARI fixes: Messages should have no trailing new lines.
7533 * darwin-nat.c (mach_check_error): Remove trailing new line from
7534 warning function call message.
7535 * record.c (bfdcore_read): Idem for error call.
7537 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7539 * common/signals.c (target_signal_from_host): Add _ markup to error
7540 function call message.
7541 (target_signal_to_host): Add _ markup and remove trailing new line
7542 from warning call message.
7543 (target_signal_from_command): Add _ markup to error function call
7546 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7550 * python/python.c (gdbpy_write): Accept a stream argument and
7551 operate to the appropriate stream.
7552 (gdbpy_flush): Likewise.
7553 (_initialize_python): Add stream constants.
7554 (finish_python_initialization): Add GdbOutputErrorFile class.
7556 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7558 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7560 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7562 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7563 to store_signed_integer. Add debug message when relocating CALL
7564 instructions. Fix formatting of debug message.
7565 * i386-tdep.c (i386_relocate_instruction): Ditto.
7567 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7569 * target.h (struct target_ops): Remove to_lookup_symbol field.
7570 (target_lookup_symbol): Delete macro.
7571 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7572 (update_current_target, setup_target_debug): Remove handling
7573 of to_lookup_symbol target_ops field.
7574 * ada-tasks.c (get_known_tasks_addr): Remove use of
7575 target_lookup_symbol.
7576 * coffread.c (coff_symtab_read): Likewise.
7577 * dbxread.c (read_dbx_symtab): Ditto.
7579 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7582 * configure.ac: Add getthrds declaration check.
7583 * configure, config.in: Regenerate.
7584 * aix-thread.c (getthrds): Declare only if not already declared
7585 in procinfo.h. More declaration out of get_signaled_thread to
7588 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7590 * python/py-symtab.c: Populate symtab_object_methods,
7592 (stpy_is_valid): New function.
7593 (salpy_is_valid): Ditto.
7594 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7595 (sympy_is_valid): New function.
7596 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7597 (objfpy_is_valid): New function.
7598 * python/py-inferior.c: Populate inferior_object_methods.
7599 (infpy_is_valid): New function.
7600 * python/py-infthread.c: Populate thread_object_methods.
7601 (thpy_is_valid): New function.
7602 * python/py-block.c: Declare block_object_methods. Populate. Declare
7603 block_iterator_object_methods. Populate.
7604 (blpy_is_valid): New function.
7605 (blpy_iter_is_valid): Ditto.
7607 2011-03-16 Keith Seitz <keiths@redhat.com>
7609 * linespec.c (find_methods): Canonicalize NAME before looking
7611 (name_end): New function.
7612 (keep_name_info): New function.
7613 (decode_line_1): Use keep_name_info.
7614 (decode_compound): Likewise.
7615 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7616 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7619 * linespec.c (locate_first_half): Keep overload information, too.
7620 (decode_compound): Use a string to represent break characters
7622 If P points to a break character, do not increment it.
7623 For C++ and Java, keep overload information and relevant keywords.
7624 If we cannot find a symbol, search the minimal symbols.
7627 * linespec.c (decode_compound): Rename SAVED_ARG to
7629 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7631 Pass a valid block to lookup_symbol.
7632 (lookup_prefix_sym): Likewise.
7633 (find_method): Construct search name based on SYM_CLASS instead
7635 * psymtab.c (lookup_partial_symbol): Add language parameter.
7636 (lookup_symbol_aux_psymtabs): Likewise.
7637 Don't assume that the psymtab we found was the right one. Search
7638 for the desired symbol in the symtab to be certain.
7639 (psymtab_search_name): New function.
7640 (lookup_partial_symbol): Use psymtab_search_name.
7641 Add language parameter.
7642 (read_symtabs_for_function): Add language parameter and pass to
7643 lookup_partial_symbol.
7644 (find_symbol_file_from_partial): Likewise.
7646 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7649 * dwarf2read.c (noop_record_line): New function.
7650 (dwarf_decode_lines): Ignore line tables for GCd functions.
7652 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7654 Fix ARI warnings about new lines at the end of messages, which
7655 are unneeded as there is a new line added at the end of the message
7657 * darwin-nat.c (darwin_stop_inferior): Ditto.
7658 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7659 * dfp.c (decimal_to_number): Ditto.
7660 * exec.c (print_section_info): Ditto.
7661 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7662 * osdata.c (get_osdata): Ditto.
7663 * record.c (bfdcore_write): Ditto.
7664 * remote-mips.c (mips_readchar): Ditto.
7665 * remote.c (read_ptid): Ditto.
7666 * ser-mingw.c (ser_windows_raw): Ditto.
7667 * tracepoint.c (add_local_symbols): Ditto.
7668 * windows-nat.c (fake_create_process): Ditto.
7670 2011-03-16 Tom Tromey <tromey@redhat.com>
7672 * tracepoint.c (stop_tracing): Don't declare.
7673 * event-top.c (after_char_processing_hook): Add `(void)'.
7675 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7677 * NEWS: Add Parameter sub-classing description.
7679 2011-03-16 Kai Tietz <ktietz@redhat.com>
7681 * MAINTAINERS: Update my e-mail address.
7683 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7685 * MAINTAINERS: Add myself for write after approval privileges.
7687 2011-03-15 Michael Snyder <msnyder@vmware.com>
7689 * frame.c (find_frame_sal): Assert sym is not null.
7691 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7693 * objc-lang.c (selectors_info): Check strchr for null result.
7695 * stabsread.c (define_symbol): Guard against bad stabstring input.
7697 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7699 Remove trailing spaces and tabulations from pascal language
7704 p-valprint.c: Ditto.
7706 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7708 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7709 than LOW. Comment it.
7710 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7711 HIGHPC not strictly higher than LOWPC.
7713 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7715 Fix formatting of function declarations returning a pointer in
7717 * varobj.c (varobj_add_child): Ditto.
7718 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7719 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7721 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7723 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7724 for the "generic" vector ABI used with GCC 4.3 and later.
7725 (ppc64_sysv_abi_return_value): Likewise.
7727 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7729 * infcall.c (call_function_by_hand): Function return value is
7730 always a non_lval, even when using struct_return.
7732 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7734 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7735 (map_display_numbers): New.
7736 (do_delete_display): New.
7737 (undisplay_command): Use map_display_numbers.
7738 (do_enable_disable_display): New.
7739 (enable_disable_display_command): New function.
7740 (enable_display): Delete.
7741 (enable_display_command): New.
7742 (disable_display_command): Reimplement.
7743 (_initialize_printcmd): Adjust "enable display" command to use
7744 `enable_display_command' as callback.
7746 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7748 * NEWS: Add Python breakpoint 'stop' operation.
7750 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7752 * NEWS: Delete duplicate entry. Fix typo.
7754 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7756 Fix ARI warning about function names in first column.
7757 Put prototype declaration on same line as return type.
7758 * objc-exp.y: Ditto.
7760 * python/py-stopevent.h: Ditto.
7761 For long function names, split parameters to
7762 allow function name on same line as return type.
7763 * solib-pa64.c: Ditto.
7766 For long function declaration, use single line.
7767 * hppa-tdep.h: Ditto.
7768 * inferior.h: Ditto.
7770 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7772 * python/python.h: Declare gdbpy_should_stop and
7773 gdbpy_breakpoint_has_py_cond.
7774 * python/python.c: Add python.h to includes. Remove python.h from
7775 HAVE_PYTHON definition
7776 (gdbpy_should_stop): New dummy function.
7777 (gdbpy_breakpoint_has_py_cond): New dummy function.
7778 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7779 sub-classing capabilities.
7780 (gdbpy_should_stop): New function.
7781 (gdbpy_breakpoint_has_py_cond): New function.
7782 (local_setattro): New function.
7783 * breakpoint.c (condition_command): Add check for Python 'stop'
7785 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7786 operation function as part of stop/continue tests.
7788 2011-03-14 Tom Tromey <tromey@redhat.com>
7791 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7792 (needs_frame_dwarf_call): Likewise.
7794 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7796 Fix ARI warning about functions without parameters that do not
7798 * breakpoint.c (all_tracepoints): Replace () by (void).
7799 * f-exp.y (match_string_literal): Ditto.
7801 * m2-exp.y (yylex): Ditto.
7802 * mep-tdep.c (current_me_module): Ditto.
7803 (current_options): Ditto.
7804 (current_cop_data_bus_width): Ditto.
7805 (current_cr_names): Ditto.
7806 (current_cr_is_float): Ditto.
7807 (current_ccr_names): Ditto.
7808 * objc-exp.y (yylex): Ditto.
7809 * p-exp.y (yylex): Ditto.
7810 * remote.c (send_interrupt_sequence): Ditto.
7811 * tracepoint.c (current_trace_status): Ditto.
7812 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7813 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7815 2011-03-11 Michael Snyder <msnyder@vmware.com>
7817 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7818 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7819 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7820 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7821 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7823 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7824 (delete_async_event_handler): Ditto.
7826 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7828 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7830 * top.c (set_verbose): Assert showcmd was found.
7832 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7834 * xtensa-tdep.c (warning_once): Correct style issues.
7836 2011-03-11 Yao Qi <yao@codesourcery.com>
7838 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7840 2011-03-11 Andreas Schwab <schwab@redhat.com>
7842 * common/aclocal.m4: Remove.
7844 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7846 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7847 (xtensa_write_register, xtensa_read_register): Likewise.
7848 (xtensa_hextochar): Removed.
7849 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7851 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7853 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
7854 (xtensa_call0_frame_cache_t): Update comments. New fields added.
7855 (xtensa_alloc_frame_cache): Add initialization for new fields.
7856 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7857 (warning_once): New function.
7858 (xtensa_insn_kind): New item c0opc_and.
7859 (call0_classify_opcode): Add the case for AND instruction.
7860 (call0_track_op): Change arguments. New local variable litbase.
7861 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7862 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7864 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
7865 (call0_analyze_prologue): Update the comments. Change arguments.
7866 Add the variety of updates to handle extended prologues, which now can
7867 conduct dynamic stack adjustments.
7868 (call0_frame_cache): Likewise.
7869 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7870 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7872 2011-03-10 Michael Snyder <msnyder@vmware.com>
7874 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7875 (cmd_qtframe): Ditto.
7876 (cmd_qtbuffer): Ditto.
7877 (cmd_bigqtbuffer): Ditto.
7879 2011-03-10 Tom Tromey <tromey@redhat.com>
7881 * tracepoint.c (trace_actions_command): Update.
7882 * thread.c (thread_apply_command): Update.
7883 * reverse.c (delete_bookmark_command): Update.
7884 (bookmarks_info): Update.
7885 * printcmd.c (undisplay_command): Update.
7886 * memattr.c (mem_enable_command): Update.
7887 (mem_disable_command): Update.
7888 (mem_delete_command): Update.
7889 * inferior.c (detach_inferior_command): Update.
7890 (kill_inferior_command): Update.
7891 (remove_inferior_command): Update.
7892 * cli/cli-utils.h (struct get_number_or_range_state): New.
7893 (init_number_or_range): Declare.
7894 (get_number_or_range): Update.
7895 * cli/cli-utils.c (init_number_or_range): New function.
7896 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7898 (number_is_in_list): Update.
7899 * breakpoint.h (get_tracepoint_by_number): Update.
7900 * breakpoint.c (map_breakpoint_numbers): Update for change to
7901 get_number_or_range.
7902 (find_location_by_number): Use get_number, not
7903 get_number_or_range.
7904 (trace_pass_set_count): New function.
7905 (trace_pass_command): Update for change to get_number_or_range.
7907 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7910 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7912 * python/py-param.c (add_setshow_generic): Add set/show callback
7913 parameters. Register Python object context.
7914 (get_show_value): New function.
7915 (get_set_value): New function.
7916 (call_doc_function): New function.
7917 (get_doc_string): Move behind get_show_value/get_set_value.
7919 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7921 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7923 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7925 * xtensa-tdep.c (xtensa_read_register): Add comment.
7926 (xtensa_write_register): Likewise.
7927 (xtensa_hextochar): Add comment and update to match coding conventions.
7928 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7929 (execute_l32e, execute_s32e, execute_code): Update comments.
7930 (xtensa_exception_handler_t): Update to match coding conventions.
7931 (xtensa_insn_kind): Likewise.
7933 2011-03-09 Michael Snyder <msnyder@vmware.com>
7935 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7937 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7939 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7941 2011-03-09 Tom Tromey <tromey@redhat.com>
7943 * thread.c (restore_selected_frame): Handle frame_level == -1.
7944 (make_cleanup_restore_current_thread): Use
7945 get_selected_frame_if_set.
7946 * frame.h (get_selected_frame_if_set): Declare.
7947 * frame.c (get_selected_frame_if_set): New function.
7949 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7951 * cli/cli-cmds.c (shell_escape): Use lbasename.
7952 * coffread.c (coff_start_symtab): Constify parameter.
7953 (complete_symtab): Constify `name' parameter.
7954 (coff_symtab_read): Constify `filestring' local.
7955 (coff_getfilename): Constify return and `result' local.
7957 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7958 * linux-fork.c (info_checkpoints_command): Use lbasename.
7959 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7960 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7961 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7962 * procfs.c (procfs_make_note_section): Use lbasename.
7963 * tui/tui-io.c (printable_part): Constity return and parameter.
7965 (print_filename): Constify parameters, and local `s'.
7966 (tui_rl_display_match_list): Constify local `temp'.
7968 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7971 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7972 Fix DWARF-3+ DW_AT_accessibility default assumption.
7973 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7974 cu->header.version >= 3.
7976 2011-03-09 Yao Qi <yao@codesourcery.com>
7978 * common/Makefile.in: Remove.
7979 * common/configure: Remove.
7980 * common/configure.ac: Remove.
7982 2011-03-09 Yao Qi <yao@codesourcery.com>
7985 2011-02-11 Yao Qi <yao@codesourcery.com>
7987 * common/Makefile.in: Add copyright header.
7989 2011-02-11 Yao Qi <yao@codesourcery.com>
7991 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7993 * configure.ac: Add common to sub dir.
7994 * configure: Regenerate.
7996 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7998 * xtensa-tdep.c (call0_ret): New function.
7999 (xtensa_skip_prologue): Speed up analysis.
8001 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8003 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8004 while executing MI command -data-list-changed-registers.
8006 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8008 * xtensa-tdep.c (xtensa_read_register): New function.
8009 (xtensa_write_register): New function.
8010 (xtensa_find_register_by_name): New function.
8011 (xtensa_windowed_frame_cache): Update comments in type description.
8012 (xtensa_frame_cache): Likewise.
8013 (xtensa_window_interrupt_insn): New function.
8014 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8015 (xtensa_insn_kind): Add new instructions.
8016 (rwx_special_register): New function.
8017 (call0_classify_opcode): Add new instructions to the analysis.
8018 (a0_saved, a7_saved, a11_saved): New variables.
8019 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8020 (execute_l32e): New function.
8021 (execute_s32e): New function.
8022 (xtensa_exception_handler_t): New type.
8023 (execute_code): New function.
8024 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8025 analysis for Xtensa Window Exception handlers.
8027 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8029 * xtensa-tdep.c (TX_PS): New.
8030 (windowing_enabled): Update to count for Call0 ABI.
8031 (xtensa_hextochar): New.
8032 (xtensa_init_reggroups): Make algorithm generic.
8033 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8035 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8037 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8039 2011-03-08 Michael Snyder <msnyder@vmware.com>
8041 * i386-tdep.c (i386_follow_jump): Check return value of
8043 (i386_analyze_struct_return): Ditto.
8044 (i386_skip_probe): Ditto.
8045 (i386_match_insn): Ditto.
8046 (i386_skip_noop): Ditto.
8047 (i386_analyze_frame_setup): Ditto.
8048 (i386_analyze_register_saves): Ditto.
8049 (i386_skip_prologue): Ditto.
8050 (i386_skip_main_prologue): Ditto.
8052 * target.c (read_whatever_is_readable): Fix memory leak.
8054 * i386-tdep.c (i386_process_record): Document fall through.
8056 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8058 Fix DWARF-3+ DW_AT_accessibility default assumption.
8059 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8060 cu->header.version >= 3.
8062 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8064 * remote.c (remote_check_symbols): Skip if the target has no
8067 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8069 * target.c (read_whatever_is_readable): Reformat comment,
8070 with a minor typo fix. Minor reformatting of the code.
8072 2011-03-08 Yao Qi <yao@codesourcery.com>
8074 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8075 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8076 Use cached result instead of calling displaced_in_arm_mode again.
8077 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8078 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8079 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8080 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8081 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8082 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8083 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8084 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8085 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8086 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8087 (arm_catch_kernel_helper_return): Likewise.
8088 * gdb/arm-tdep.h : Update function declarations.
8090 2011-03-07 Michael Snyder <msnyder@vmware.com>
8092 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8094 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8096 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8098 * elfread.c (elf_symtab_read): Stop memory leak.
8100 * main.c (captured_main): Fix memory leak.
8102 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8104 * ada-lang.c (compare_names): Call is_name_suffix with string1
8107 2011-03-07 Tom Tromey <tromey@redhat.com>
8109 * xcoffread.c (xcoff_sym_fns): Update.
8110 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8111 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8112 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8113 (symbol_file_add_with_addrs_or_offsets): Likewise.
8114 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8115 * somread.c (som_sym_fns): Update.
8116 * psymtab.h (require_partial_symbols): Declare.
8117 * psymtab.c (require_partial_symbols): New function.
8118 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8119 (ALL_OBJFILE_PSYMTABS): Undef.
8120 (ALL_PSYMTABS): Move from psympriv.h.
8121 (lookup_partial_symtab, find_pc_sect_psymtab)
8122 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8123 (find_last_source_symtab_from_partial)
8124 (forget_cached_source_info_partial)
8125 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8126 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8127 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8128 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8129 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8130 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8131 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8132 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8133 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8135 * mipsread.c (ecoff_sym_fns): Update.
8136 * machoread.c (macho_sym_fns): Update.
8137 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8138 (read_psyms): New function.
8139 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8140 (elf_sym_fns_lazy_psyms): New global.
8141 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8142 dwarf2_build_psymtabs.
8143 * dbxread.c (aout_sym_fns): Update.
8144 * coffread.c (coff_sym_fns): Update.
8146 2011-03-07 Tom Tromey <tromey@redhat.com>
8148 * infrun.c (print_exited_reason): Include inferior id and pid in
8151 2011-03-07 Tom Tromey <tromey@redhat.com>
8153 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8155 (target_has_execution_1): Update.
8156 (target_has_execution_current): Declare.
8157 (target_has_execution): Call target_has_execution_current.
8158 (default_child_has_execution): Update.
8159 * target.c (default_child_has_execution): Add 'the_ptid'
8161 (target_has_execution_1): Likewise.
8162 (target_has_execution_current): New function.
8163 (add_target): Update.
8164 (init_dummy_target): Update.
8165 * remote-m32r-sdi.c (m32r_has_execution): New function.
8166 (init_m32r_ops): Use it.
8167 * record.c (record_core_has_execution): Now static. Add
8168 'the_ptid' parameter.
8169 * inferior.c (have_live_inferiors): Don't save current thread.
8170 Use target_has_execution_1.
8172 2011-03-07 Yao Qi <yao@codesourcery.com>
8174 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8176 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8178 * elfread.c (elf_symtab_read): Minor reformatting.
8180 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8182 * objc-lang.c (selectors_info): Minor reformatting.
8184 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8186 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8188 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8189 Michael Snyder <msnyder@vmware.com>
8191 * ada-valprint.c (ada_val_print_array): Move the declaration of
8192 "byte_order" and "elttype" inside the block where these variables
8193 are actually used. Remove some special handling for the case
8194 where "elttype" and "eltlen" are null. Replace by a comment
8195 and a couple of assertion checks.
8197 2011-03-05 Michael Snyder <msnyder@vmware.com>
8199 * source.c (add_path): Replace semicolon at end of block.
8200 * dwarf2expr.c (execute_stack_op): Ditto.
8202 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8204 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8205 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8206 (bfin-*-*): Likewise.
8208 2011-03-05 Michael Snyder <msnyder@vmware.com>
8210 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8211 * mdebugread.c (parse_symbol): Ditto.
8212 * parse.c (parse_exp_in_context): Ditto.
8213 * source.c (add_path): Ditto.
8214 * utils.c (gnu_debuglink_crc32): Ditto.
8215 * varobj.c (variable_language): Ditto.
8217 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8219 2011-03-04 Michael Snyder <msnyder@vmware.com>
8221 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8223 * symfile.c (simple_overlay_update): Check for null return value
8224 from lookup_minimal_symbol.
8226 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8228 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8230 * eval.c (parse_and_eval_address_1): Remove function.
8231 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8232 instead of parse_and_eval_address_1.
8233 * value.h (parse_and_eval_address_1): Remove prototype.
8235 2011-03-04 Michael Snyder <msnyder@vmware.com>
8237 * remote.c (putpkt_binary): Document that case stmt falls through.
8239 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8241 * breakpointc (print_it_typical): Move NULL check from here...
8242 (print_bp_stop_message): ... to here.
8244 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8246 * breakpoint.c (enable_command): Use break instead of continue,
8247 and fill in a missing break.
8248 (disable_command): Ditto.
8250 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8252 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8253 (terminal_save_ours): Remove misleading comment.
8254 (inflow_inferior_data_cleanup): Free ttystate.
8255 (inflow_inferior_exit): Likewise.
8256 (copy_terminal_info): Copy ttystate.
8258 * serial.c (serial_copy_tty_state): New function.
8259 * serial.h (serial_copy_tty_state): Add prototype.
8260 (struct serial_ops): Add copy_tty_state callback.
8261 * ser-base.c (ser_base_copy_tty_state): New function.
8262 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8263 * ser-go32.c (dos_copy_tty_state): New function.
8264 (dos_ops): Install copy_tty_state callback.
8265 * ser-mingw.c (_initialize_ser_windows): Likewise.
8266 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8267 * ser-unix.c (hardwire_copy_tty_state): New function.
8268 (_initialize_ser_hardwire): Install it.
8270 2011-03-04 Michael Snyder <msnyder@vmware.com>
8272 * breakpoint.c (create_breakpoint): Add missing break statement.
8274 Reverting this patch:
8275 * infcall.c (call_function_by_hand): Add break statements for lint.
8277 Reverting this patch:
8278 * cli/cli-script.c (script_from_file): Add break for lint.
8280 2011-03-04 Michael Snyder <msnyder@vmware.com>
8282 * solib.c (reload_shared_libraries_1): Close memory leak.
8284 2011-03-03 Tom Tromey <tromey@redhat.com>
8287 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8290 2011-03-03 Michael Snyder <msnyder@vmware.com>
8292 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8293 fields of struct 'st' to zero.
8295 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8296 sal.pspace before calling set_current_source_symtab_and_line.
8298 2011-03-03 Yao Qi <yao@codesourcery.com>
8300 * Makefile.in (configure-common): Remove. Let Makefile
8301 in dir common to rebuild itself.
8302 (common/Makefile): Likewise.
8304 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8306 * utils.c (parse_escape): Add i18n markup in error message.
8308 2011-03-03 Yao Qi <yao@codesourcery.com>
8310 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8312 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8313 (displaced_write_reg, displaced_read_reg): Likewise.
8314 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8315 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8316 (cleanup_branch): Replace magic number 14 and 15 with
8317 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8319 2011-03-02 Michael Snyder <msnyder@vmware.com>
8321 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8323 * cli/cli-script.c (script_from_file): Add break for lint.
8325 * mdebugread.c (parse_partial_symbols): Fix indent.
8327 * target-descriptions.c (tdesc_gdb_type): No need to call
8328 xstrdup, callee saves a copy.
8330 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8332 * infcall.c (call_function_by_hand): Add break statements for lint.
8334 * utils.c (parse_escape): Escape the escape char.
8336 * python/py-inferior.c (build_inferior_list): Error out if
8337 PyList_Append fails.
8338 (gdbpy_inferiors): Error out if build_inferior_list fails.
8340 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8343 * record.c (record_restore): Move printf to before error return.
8345 2011-03-02 Yao Qi <yao@codesourcery.com>
8347 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8348 is_thumb and insn_size.
8349 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8350 on both ARM and Thumb mode.
8351 (arm_process_displaced_insn): Set is_thumb and insn_size.
8352 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8353 (arm_displaced_step_fixup): Likewise.
8355 2011-03-01 Michael Snyder <msnyder@vmware.com>
8357 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8359 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8361 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8363 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8365 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8368 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8369 which shadows function parameter.
8371 * tracepoint.c (create_tsv_from_upload): Superfluous call
8372 to xstrdup. Callee already calls xstrdup.
8374 * linespec.c (decode_line_1): Remove unnecessary null check.
8376 * tracepoint.c (scope_info): Fix mem leak, remove underused
8379 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8380 superfluous null check.
8382 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8383 (value_of_builtin_frame_fp_reg): Ditto.
8385 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8387 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8390 * linespec.c (decode_line_1): Check for null before dereference.
8392 * reverse.c (record_restore): Move null-check to before pointer
8395 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8397 * objc-lang.c (selectors_info): Add explanitory comment.
8398 (classes_info): Ditto.
8400 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8402 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8403 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8404 versions of the trampoline. Handle Thumb vs. ARM addresses.
8405 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8406 (arm_linux_init_abi): Install it.
8407 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8408 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8410 2011-02-28 Michael Snyder <msnyder@vmware.com>
8412 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8413 a little bigger, to avoid possibility of an overflow.
8415 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8416 buffers a little bigger, to avoid possibility of an overflow.
8418 * coffread.c (coff_getfilename): Add check to avoid overflow.
8420 * objc-lang.c (selectors_info): Add a small safety margin to
8422 (classes_info): Error out on too long REGEXP.
8424 * infrun.c (handle_inferior_event): Remove unused function call.
8426 * fork-child.c (fork_inferior): Remove ifdef'd code and
8429 * linux-thread-db.c (attach_thread): Discard unused value.
8431 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8433 * remote.c (remote_get_noisy_reply): Discard unused value.
8434 (remote_vcont_resume): Ditto.
8435 (remote_stop_ns): Ditto.
8437 * linespec.c (decode_objc): Delete unused variable.
8439 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8441 * dwarf2read.c (add_partial_symbol): Discard unused values.
8442 (read_base_type): Delete unused variable.
8444 * dbxread.c (read_dbx_symtab): Discard unused value.
8446 * eval.c (evaluate_subexp_standard): Delete unused variable,
8447 and discard unused values.
8449 * infcmd.c (_initialize_infcmd): Discard unused values.
8451 * stabsread.c (rs6000_builtin_type): Missing break statement.
8453 * dbxread.c (process_one_symbol): Discard unused value.
8455 * coffread.c (coff_end_symtab): Delete unused variable.
8457 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8458 (dwarf2_add_typedef): Delete unused variable.
8459 (read_namespace): Ditto.
8460 (dwarf_decode_macros): Ditto.
8462 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8464 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8466 * p-valprint.c (pascal_val_print): Discard unused value.
8468 * utils.c (nquery): Call va_end before return;
8472 * proc-service.c (ps_plog): Call va_end before return.
8474 2011-02-28 Tom Tromey <tromey@redhat.com>
8476 * python/python.c (gdbpy_value_cst): New global.
8477 (_initialize_python): Initialize it.
8478 * python/python-internal.h (gdbpy_value_cst): Declare.
8479 * python/py-value.c (convert_value_from_python): Use
8482 2011-02-28 Michael Snyder <msnyder@vmware.com>
8484 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8486 * breakpoint.c (catch_syscall_completer): Free malloced list.
8488 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8490 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8491 (lval_func_check_synthetic_pointer): Ditto.
8492 (lval_func_free_closure): Fix use-after-free.
8494 2011-02-28 Tom Tromey <tromey@redhat.com>
8496 * psymtab.c (expand_partial_symbol_tables): Use
8497 ALL_OBJFILE_PSYMTABS.
8499 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8501 * objc-lang.c (selectors_info): Error on too long REGEXP.
8503 2011-02-28 Michael Snyder <msnyder@vmware.com>
8505 * python/py-param.c (set_parameter_value): Add missing
8508 * linux-record.c (record_linux_system_call): Add missing
8511 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8513 * breakpoint.c (print_one_breakpoint_location): Remove unused
8514 argument PRINT_ADDRESS_BITS. Update callers.
8515 (print_one_breakpoint): Likewise.
8517 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8519 * breakpoint.c (wrap_indent_at_field): New function.
8520 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8521 Allocate ui_stream locally instead of using STB argument.
8522 (print_one_breakpoint_location): Update call.
8523 * ui-out.c (ui_out_query_field): New function.
8524 * ui-out.h (ui_out_query_field): Add prototype.
8526 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8528 From Michael Snyder <msnyder@vmware.com>
8529 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8531 2011-02-27 Michael Snyder <msnyder@vmware.com>
8533 * objc-lang.c (selectors_info): Prevent string overrun.
8535 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8538 * symtab.c (rbreak_command): Move variable 'file_name' to
8541 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8542 param with a local variable of the same name.
8544 2011-02-27 Michael Snyder <msnyder@vmware.com>
8546 * value.c (value_from_history_ref): New function.
8547 * value.h (value_from_history_ref): Export.
8548 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8549 to parse value history references.
8550 * cli/cli-utils.h (get_number_trailer): Update comment.
8552 2011-02-27 Michael Snyder <msnyder@vmware.com>
8554 * inferior.c (detach_inferior_command): Use get_number_or_range.
8555 (kill_inferior_command): Ditto.
8556 (remove_inferior_command): Ditto.
8557 (initialize_inferiors): Make command names plural.
8558 Update help strings.
8560 2011-02-27 Michael Snyder <msnyder@vmware.com>
8562 * darwin-nat-info.c: Fix comment typo.
8563 * dwarf2expr.h: Ditto.
8564 * fbsd-nat.c: Ditto.
8565 * fbsd-nat.h: Ditto.
8566 * frame-unwind.h: Ditto.
8568 * hppa-hpux-tdep.c: Ditto.
8569 * i386-linux-nat.c: Ditto.
8570 * linux-nat.c: Ditto.
8571 * nbsd-nat.c: Ditto.
8572 * nbsd-nat.h: Ditto.
8573 * ppc-linux-tdep.c: Ditto.
8576 * tui/tui-winsource.c: Ditto.
8578 2011-02-26 Michael Snyder <msnyder@vmware.com>
8580 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8582 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8584 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8585 with a local variable of the same name.
8587 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8588 param with a local variable of the same name.
8589 (i387_supply_xsave): Ditto.
8591 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8592 that it does not shadow a function parameter.
8594 * i386-nat.c (i386_length_and_rw_bits): Document that case
8595 statement is meant to fall through.
8597 * expprint.c (dump_subexp_body_standard): Document that case
8598 statement is meant to fall through.
8600 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8601 dead if statement. Condition can't be false.
8603 2011-02-25 Michael Snyder <msnyder@vmware.com>
8605 * arm-tdep.c: Fix typos in comments.
8606 * bsd-uthread.c: Ditto.
8607 * completer.c: Ditto.
8609 * cp-namespace.c: Ditto.
8610 * cp-support.c: Ditto.
8611 * cris-tdep.c: Ditto.
8613 * dwarf2read.c: Ditto.
8615 * gdbtypes.h: Ditto.
8616 * inferior.h: Ditto.
8617 * mdebugread.c: Ditto.
8618 * mips-tdep.c: Ditto.
8619 * ppc-linux-nat.c: Ditto.
8620 * ppc-linux-tdep.c: Ditto.
8621 * printcmd.c: Ditto.
8622 * sol-thread.c: Ditto.
8623 * solib-frv.c: Ditto.
8625 * sparc64-tdep.c: Ditto.
8626 * spu-tdep.c: Ditto.
8627 * stabsread.c: Ditto.
8632 * python/py-block.c: Ditto.
8633 * python/py-symbol.c: Ditto.
8634 * python/py-symtab.c: Ditto.
8635 * python/py-value.c: Ditto.
8636 * tui/tui-win.c: Ditto.
8638 2011-02-25 Michael Snyder <msnyder@vmware.com>
8640 * inferior.c (print_inferior): Accept a string instead of an int
8641 for requested_inferiors, and use get_number_or_range to parse it.
8642 (info_inferiors_command): Pass args string to print_inferior.
8643 (initialize_inferiors): Change help string for info inferiors.
8644 * inferior.h (print_inferior): Export prototype change.
8646 2011-02-25 Tom Tromey <tromey@redhat.com>
8648 * common/ax.def (invalid2): Set to 0x31.
8650 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8652 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8654 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8656 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8658 2011-02-24 Michael Snyder <msnyder@vmware.com>
8660 * Makefile.in (clean): Make clean should remove generated files
8661 observer.h and observer.inc.
8663 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8665 Revert the following patch (not approved yet):
8666 2011-02-21 Hui Zhu <teawater@gmail.com>
8667 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8668 * ax-gdb.c (gen_printf_expr_callback): New function.
8669 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8670 * ax-general.c (ax_memcpy): New function.
8671 (ax_print): Handle "printf".
8673 * ax.h (ax_memcpy): Forward declare.
8674 * common/ax.def (invalid2): Removed.
8675 (printf): New entry.
8676 * printcmd.c (printcmd.h): New include.
8677 (string_printf): New function.
8678 (ui_printf): Removed.
8679 (printf_command): Remove static. Call string_printf.
8680 (eval_command): Call string_printf.
8681 * printcmd.h: New file.
8682 * tracepoint.c (validate_actionline,
8683 encode_actions_1): handle printf_command.
8685 2011-02-23 Tom Tromey <tromey@redhat.com>
8687 * ax-general.c (ax_pick): Add missing newline.
8689 2011-02-23 Michael Snyder <msnyder@vmware.com>
8691 * breakpoint.c (breakpoint_1): Change first argument from an int
8692 to a char pointer, so that the function now accepts a list of
8693 breakpoints rather than just one. Use new function
8694 'number_is_in_list' to implement.
8695 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8696 (watchpoints_info): Ditto.
8697 (tracepoints_info): Ditto.
8698 (maintenance_info_breakpoints): Ditto.
8699 (_initialize_breakpoint): Update help strings to reflect the fact
8700 that these functions can now take more than one argument.
8701 * cli/cli-utils.c (number_is_in_list): New function.
8702 * cli/cli-utils.h (number_is_in_list): Export.
8704 2011-02-23 Michael Snyder <msnyder@vmware.com>
8706 * memattr.c (mem_enable_command): Use get_number_or_range.
8707 (mem_disable_command): Ditto.
8708 (mem_delete_command): Ditto.
8709 (_initialize_mem): Tweak usage message to reflect multiple
8712 2011-02-22 Doug Evans <dje@google.com>
8714 Add gdb.lookup_global_symbol python function.
8716 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8717 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8718 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8720 2011-02-22 Tom Tromey <tromey@redhat.com>
8722 * language.c (language_class_name_from_physname): Rename
8723 'curr_language' argument to 'lang'; use in body.
8725 2011-02-22 Michael Snyder <msnyder@vmware.com>
8727 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8729 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8731 * frame-unwind.h: Fix comment to mention the this frame, not the
8734 2011-02-22 Tom Tromey <tromey@redhat.com>
8736 * symfile.c (auto_solib_limit): Remove.
8737 * symfile.h (auto_solib_limit): Remove.
8739 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8741 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8743 2011-02-21 Michael Snyder <msnyder@vmware.com>
8745 * gdbthread.h (print_thread_info): Change prototype.
8746 * thread.c (print_thread_info): Accept char* instead of int for
8747 requested_threads argument. Use new function number_is_in_list
8748 to determine which threads to list.
8749 (info_threads_command): Pass char* to print_thread_info.
8750 * cli/cli-utils.c (number_is_in_list): New function.
8751 * cli/cli-utils.h (number_is_in_list): Export.
8752 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8754 (print_one_inferior): Ditto.
8755 (mi_cmd_list_thread_groups): Ditto.
8757 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8759 * common/Makefile.in (CFLAGS): New.
8760 (COMPILE): Add $(CFLAGS).
8762 2011-02-21 Tom Tromey <tromey@redhat.com>
8764 * breakpoint.c (catch_syscall_command_1): Fix typo.
8766 2011-02-21 Tom Tromey <tromey@redhat.com>
8768 * reverse.c: Include cli-utils.h.
8769 * printcmd.c: Include cli-utils.h.
8770 (string_printf): Use skip_spaces.
8771 * cli/cli-utils.h: New file.
8772 * cli/cli-utils.c: New file.
8773 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8774 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8775 * breakpoint.h (get_number, get_number_or_range): Move to
8777 * breakpoint.c: Include cli-utils.h.
8778 (get_number_trailer, get_number, get_number_or_range)
8779 (ep_skip_leading_whitespace): Move to cli-utils.c.
8780 (create_breakpoint_sal, find_condition_and_thread)
8781 (decode_static_tracepoint_spec, watch_command_1)
8782 (watch_maybe_just_location, ep_parse_optional_if_clause)
8783 (catch_fork_command_1, catch_exec_command_1)
8784 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8785 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8786 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8787 (HFILES_NO_SRCDIR): Add cli-utils.h.
8788 (cli-utils.o): New target.
8790 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8792 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8793 before calling discard_all_inferiors.
8795 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8797 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8798 (struct builtin_opencl_type): Remove.
8799 (builtin_opencl_type): Change return type to "struct type **".
8800 (lookup_opencl_vector_type): Update caller.
8801 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8802 (build_opencl_types): Install plain array of "struct type *"
8803 instead of "struct builtin_opencl_type".
8805 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8806 Ulrich Weigand <uweigand@de.ibm.com>
8808 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8809 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8810 (struct arm_linux_hwbp_cap): New type.
8811 (arm_linux_get_hwbp_cap): New function.
8812 (arm_linux_get_hw_breakpoint_count): Likewise.
8813 (arm_linux_get_hw_watchpoint_count): Likewise.
8814 (arm_linux_can_use_hw_breakpoint): Likewise.
8815 (arm_hwbp_type): New type.
8816 (arm_hwbp_control_t): Likewise.
8817 (struct arm_linux_hw_breakpoint): Likewise.
8818 (struct arm_linux_thread_points): Likewise.
8819 (arm_threads): New global variable.
8820 (arm_linux_find_breakpoints_by_tid): New function.
8821 (arm_hwbp_control_initialize): Likewise.
8822 (arm_hwbp_control_is_enabled): Likewise.
8823 (arm_hwbp_control_disable): Likewise.
8824 (arm_linux_hw_breakpoint_initialize): Likewise.
8825 (arm_linux_get_hwbp_type): Likewise.
8826 (arm_linux_hw_watchpoint_initialize): Likewise.
8827 (arm_linux_hw_breakpoint_equal): Likewise.
8828 (arm_linux_insert_hw_breakpoint1): Likewise.
8829 (arm_linux_remove_hw_breakpoint1): Likewise.
8830 (arm_linux_insert_hw_breakpoint): Likewise.
8831 (arm_linux_remove_hw_breakpoint): Likewise.
8832 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8833 (arm_linux_insert_watchpoint): Likewise.
8834 (arm_linux_remove_watchpoint): Likewise.
8835 (arm_linux_stopped_data_address): Likewise.
8836 (arm_linux_stopped_by_watchpoint): Likewise.
8837 (arm_linux_watchpoint_addr_within_range): Likewise.
8838 (arm_linux_new_thread): Likewise.
8839 (arm_linux_thread_exit): Likewise.
8840 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8841 related target callbacks. Register arm_linux_new_thread and
8842 arm_linux_thread_exit.
8843 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8844 * arm-tdep.c (arm_pc_is_thumb): Make global.
8845 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8847 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8849 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8850 per-frame locations while within a function epilogue.
8852 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8854 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8855 to GNU coding standards.
8857 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8859 Allow use of mingw native on Windows 95 OS.
8860 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
8861 (ser_windows_close): Only call CancelIo if function exists.
8862 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8863 to check for existence of CancelIo function in kernel32 DLL.
8865 2011-02-21 Hui Zhu <teawater@gmail.com>
8867 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8868 * ax-gdb.c (gen_printf_expr_callback): New function.
8869 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8870 * ax-general.c (ax_memcpy): New function.
8871 (ax_print): Handle "printf".
8873 * ax.h (ax_memcpy): Forward declare.
8874 * common/ax.def (invalid2): Removed.
8875 (printf): New entry.
8876 * printcmd.c (printcmd.h): New include.
8877 (string_printf): New function.
8878 (ui_printf): Removed.
8879 (printf_command): Remove static. Call string_printf.
8880 (eval_command): Call string_printf.
8881 * printcmd.h: New file.
8882 * tracepoint.c (validate_actionline,
8883 encode_actions_1): handle printf_command.
8885 2011-02-19 Michael Snyder <msnyder@vmware.com>
8887 * reverse.c (delete_one_bookmark): Argument is now bookmark
8888 id rather than pointer to bookmark struct.
8889 (delete_bookmark_command): Use get_number_or_range.
8890 (goto_bookmark_command): Parse with get_number instead of strtoul.
8891 (bookmark_1): New function. Print info for one bookmark.
8892 (bookmarks_info): Use get_number_or_range and bookmark_1.
8894 2011-02-18 Michael Snyder <msnyder@vmware.com>
8896 * thread.c (info_threads_command): Re-implement using
8897 get_number_or_range.
8898 (thread_apply_command): Ditto.
8900 2011-02-18 Tom Tromey <tromey@redhat.com>
8902 * common/ax.def: New file.
8903 * ax.h (enum agent_op): Use ax.def.
8904 * ax-general.c (aop_map): Use ax.def.
8906 2011-02-18 Tom Tromey <tromey@redhat.com>
8908 * ax-general.c (aop_map): Add pick and rot.
8909 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8910 <DW_OP_rot>: Implement.
8911 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8913 * ax-general.c (ax_pick): New function.
8915 2011-02-18 Tom Tromey <tromey@redhat.com>
8917 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8919 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8920 Tom Tromey <tromey@redhat.com>
8922 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8923 make_symbol_overload_list_block with NULL BLOCK.
8924 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8926 2011-02-18 Pedro Alves <pedro@codesourcery.com>
8928 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8929 * breakpoint.h (get_number_or_range): Declare.
8930 * printcmd.c (ALL_DISPLAYS): Declare.
8931 (delete_display): Reimplement taking a display pointer.
8932 (undisplay_command): Accept a range of displays to delete, using
8933 get_number_or_range.
8935 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8937 * c-valprint.c (c_val_print): Add embedded_offset to address
8938 for arrays of unspecified length.
8939 * p-valprint.c (pascal_val_print): Likewise.
8941 2011-02-18 Yao Qi <yao@codesourcery.com>
8943 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8944 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8945 (thumb_process_displaced_insn): New.
8946 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8947 call to arm_process_displaced_insn.
8948 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8950 2011-02-17 Tom Tromey <tromey@redhat.com>
8952 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8953 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8954 compile_dwarf_to_ax. No longer static. Call
8955 dwarf2_compile_cfa_to_ax.
8956 (locexpr_tracepoint_var_ref): Update.
8957 (loclist_tracepoint_var_ref): Update.
8958 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8959 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8960 argument; add 'gdbarch' and 'pc'.
8961 (dwarf2_compile_cfa_to_ax): New function.
8962 (dwarf2_frame_cache): Update.
8964 2011-02-17 Joel Brobecker <brobecker@adacore.com>
8966 * ada-lang.c (ada_type_of_array): Fix the size of the array
8967 in the case of an unconstrained packed array.
8969 2011-02-17 Yao Qi <yao@codesourcery.com>
8971 * common/Makefile.in: Add more targets for make.
8973 2011-02-16 Tom Tromey <tromey@redhat.com>
8975 * dwarf2loc.c (unimplemented): Fix typo.
8977 2011-02-16 Tom Tromey <tromey@redhat.com>
8979 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8980 (compile_dwarf_to_ax) <default>: Use unimplemented.
8981 <DW_OP_deref>: Update.
8982 (disassemble_dwarf_expression): Update.
8983 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8984 (decode_locdesc): Update.
8985 * dwarf2expr.h (dwarf_stack_op_name): Update.
8987 2011-02-16 Tom Tromey <tromey@redhat.com>
8989 * ax.h (struct aop_map) <name>: Now const.
8991 2011-02-16 Tom Tromey <tromey@redhat.com>
8993 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8996 2011-02-16 Yao Qi <yao@codesourcery.com>
8998 * infrun.c (get_displaced_step_closure_by_addr): New.
8999 * inferior.h: Declare it.
9000 * arm-tdep.c: (arm_pc_is_thumb): Call
9001 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9004 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9005 Jan Kratochvil <jan.kratochvil@redhat.com>
9008 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9010 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9011 Jan Kratochvil <jan.kratochvil@redhat.com>
9013 * value.c (value_contents_copy_raw): Extend describing comment.
9014 Assert that the destination contents we're overwriting are wholly
9016 (value_contents_copy): Extend describing comment.
9018 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9019 Jan Kratochvil <jan.kratochvil@redhat.com>
9021 * value.c (value_available_contents_eq): Remove redundant local
9022 variables. Fix available contents comparision.
9023 * value.h (value_available_contents_eq): Extend describing
9026 2011-02-16 Yao Qi <yao@codesourcery.com>
9028 * thread.c (info_threads_command): Add missing i18n markup and remove
9031 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9033 * breakpoint.c (longjmp_names): New variable.
9034 (struct breakpoint_objfile_data): New type.
9035 (breakpoint_objfile_key): New variable.
9036 (msym_not_found): New variable.
9037 (msym_not_found_p): New predicate.
9038 (get_breakpoint_objfile_data): New function.
9039 (create_overlay_event_breakpoint): Check per-objfile cache for
9041 (create_longjmp_master_breakpoint): Likewise.
9042 (create_std_terminate_master_breakpoint): Likewise.
9043 (create_exception_master_breakpoint): Likewise.
9044 (_initialize_breakpoint): Register per-objfile data key.
9046 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9048 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9050 (create_longjmp_master_breakpoint): Loop over longjmp names.
9051 (create_std_terminate_master_breakpoint): Const-propagate parameter
9053 (update_breakpoints_after_exec): Adjust.
9054 (breakpoint_re_set): Adjust.
9056 2011-02-15 Michael Snyder <msnyder@vmware.com>
9058 * thread.c (info_threads_command): Process arg as thread id,
9059 or list of thread ids.
9060 (thread_find_command): New command.
9061 (_initialize_thread): Document argument for info threads.
9062 Document 'thread find' command.
9063 * NEWS: Document new command "thread find".
9065 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9067 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9068 * aclocal.m4: Regenerated with aclocal-1.11.1.
9069 * common/configure: Regenerate with autoconf-2.64.
9071 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9073 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9074 bool data type to a size of one byte.
9076 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9077 Jan Kratochvil <jan.kratochvil@redhat.com>
9079 * target.c (memory_xfer_live_readonly_partial): Document where to
9080 look for interface description.
9082 2011-02-15 Yao Qi <yao@codesourcery.com>
9085 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9086 order to store PC value on stack instead of text section.
9088 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9090 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9091 the EFP register set size.
9092 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9093 data from the VMX register.
9094 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9095 and write data from/to the VMX register.
9097 2011-02-14 Michael Snyder <msnyder@vmware.com>
9099 * command.h (enum command_class): New class 'no_set_class', for
9100 "show" commands without a corresponding "set" command.
9101 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9102 * copying.c (_initialize_copying): Ditto for "show copying" and
9104 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9106 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9107 which there is no corresponding "set" command (eg. "show copying").
9109 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9110 Jan Kratochvil <jan.kratochvil@redhat.com>
9112 * exec.c (section_table_available_memory): Change `len' parameter
9114 * exec.h (section_table_available_memory): Ditto.
9115 * value.h (read_value_memory): Rename the `offset' parameter to
9118 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9119 Jan Kratochvil <jan.kratochvil@redhat.com>
9121 * memrange.c (compare_mem_ranges): Mention sort order in
9123 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9124 * tracepoint.c (traceframe_available_memory): Extend comment to
9125 mention what happens to RESULT when the target does not support
9128 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9129 Jan Kratochvil <jan.kratochvil@redhat.com>
9131 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9134 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9136 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9137 No longer handle NULL values.
9139 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9141 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9142 * value.c: Include "exceptions.h".
9143 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9145 * cp-abi.c: Include gdb_assert.h.
9146 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9147 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9149 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9150 parameters. No longer returns -1 on error.
9151 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9153 * cp-valprint.c: Include exceptions.h.
9154 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9155 the baseclass_offset. Handle unavailable base classes. Use
9156 val_print_invalid_address.
9157 * p-valprint.c: Include exceptions.h.
9158 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9159 when fetching the baseclass_offset. No longer expect
9160 baseclass_offset returning -1. Handle unavailable base classes.
9161 Use val_print_invalid_address.
9162 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9163 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9164 `embedded_offset' and `val' parameters. Adjust.
9165 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9166 parameter, and change its type to gdb_byte pointer. Add
9167 `embedded_offset' and `val' parameters. Adjust. No longer expect
9168 baseclass_offset returning -1.
9169 (value_dynamic_cast): Use value_contents_for_printing rather than
9170 value_contents. Adjust.
9171 (search_struct_field): No longer expect baseclass_offset returning
9173 (search_struct_method): If reading memory from the target is
9174 necessary, wrap it in a new value to pass to baseclass_offset. No
9175 longer expect baseclass_offset returning -1.
9176 (find_method_list): No longer expect baseclass_offset returning
9177 -1. Use value_contents_for_printing rather than value_contents.
9178 * valprint.c (val_print_invalid_address): New function.
9179 * valprint.h (val_print_invalid_address): Declare.
9180 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9181 and `val' parameters. No longer expect baseclass_offset returning
9183 * gnu-v2-abi.c: Include "exceptions.h".
9184 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9185 parameters. Handle unavailable memory. Recurse through
9186 gnuv2_baseclass_offset directly, rather than through
9187 baseclass_offset. No longer returns -1 on not found, instead
9189 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9190 `val' parameters. Adjust.
9192 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9194 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9195 almost but not quite adjacent.
9197 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9199 * value.h (value_entirely_available): Declare.
9200 * value.c (value_entirely_available): New function.
9201 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9202 real type if the pointer is unavailable.
9204 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9206 * valops.c (value_repeat): Use read_value_memory instead of
9209 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9211 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9212 * value.c (value_contents_copy_raw, value_contents_copy): New
9214 (value_primitive_field): Use value_contents_copy_raw instead of
9216 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9218 (value_array, value_slice): Ditto.
9219 * valarith.c (value_subscripted_rvalue): Use
9220 value_contents_copy_raw instead of memcpy.
9222 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9224 <unavailable> references.
9226 * valops.c (get_value_at): Use value_from_contents_and_address,
9227 avoiding read_memory.
9229 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9231 * c-valprint.c (c_val_print): Print a string with unavailable
9232 contents as an array.
9234 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9236 * value.h (unpack_bits_as_long): Delete declaration.
9237 (unpack_value_bits_as_long): Declare.
9238 (unpack_value_field_as_long): Declare.
9239 (value_field_bitfield): Declare.
9240 * value.c (unpack_bits_as_long): Rename to...
9241 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9242 value parameters. Return the extracted result in a new output
9243 parameter. If the value contents are unavailable, return false,
9244 otherwise return true.
9245 (unpack_value_bits_as_long): New.
9246 (unpack_field_as_long): Rename to...
9247 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9248 Add embedded_offset and value parameters. Return the extracted
9249 result in a new output parameter. If the value contents are
9250 unavailable, return false, otherwise return true.
9251 (unpack_value_field_as_long): New.
9252 (unpack_field_as_long_1): New.
9253 (unpack_field_as_long): Reimplement as wrapper around
9254 unpack_value_field_as_long_1.
9255 (value_field_bitfield): New function.
9256 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9257 unpack_value_bits_as_long. Mark the value as unavailable, if it
9259 * jv-valprint.c (java_print_value_fields): Use
9260 value_field_bitfield.
9261 * p-valprint.c (pascal_object_print_value_fields): Use
9262 value_field_bitfield.
9263 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9265 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9267 * value.c (get_internalvar_integer): Also return the int value of
9268 TYPE_CODE_INT INTERNALVAR_VALUE values.
9269 (set_internalvar): Don't special case TYPE_CODE_INT.
9271 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9273 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9274 INTERNALVAR_POINTER.
9276 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9277 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9278 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9280 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9282 * value.h (value_available_contents_eq): Declare.
9283 * value.c (find_first_range_overlap): New function.
9284 (value_available_contents_eq): New function.
9285 * valprint.c (val_print_array_elements): Use
9286 value_available_contents_eq.
9287 * ada-valprint.c (val_print_packed_array_elements): Use
9288 value_available_contents_eq.
9289 * jv-valprint.c (java_value_print): Use
9290 value_available_contents_eq.
9292 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9294 * target.c (target_read_live_memory): New function.
9295 (memory_xfer_live_readonly_partial): New.
9296 (memory_xfer_partial): If reading from a traceframe, fallback to
9297 reading unavailable read-only memory from read-only regions of
9299 * tracepoint.c (disconnect_tracing): Adjust.
9300 (set_current_traceframe): New, factored out from
9301 set_traceframe_number.
9302 (set_traceframe_number): Reimplement to only change the traceframe
9303 number on the GDB side.
9304 (do_restore_current_traceframe_cleanup): Adjust.
9305 (make_cleanup_restore_traceframe_number): New.
9306 (cur_traceframe_number): New global.
9307 (tfile_open): Set cur_traceframe_number to no traceframe.
9308 (set_tfile_traceframe): New function.
9309 (tfile_trace_find): If looking up a traceframe using any method
9310 other than by number, make sure the current tfile traceframe
9311 matches gdb's current traceframe. Update the current tfile
9312 traceframe if the lookup succeeded.
9313 (tfile_fetch_registers, tfile_xfer_partial)
9314 (tfile_get_trace_state_variable_value): Make sure the remote
9315 traceframe matches gdb's current traceframe.
9316 * remote.c (remote_traceframe_number): New global.
9317 (remote_open_1): Set it to -1.
9318 (set_remote_traceframe): New function.
9319 (remote_fetch_registers, remote_store_registers)
9320 (remote_xfer_memory, remote_xfer_partial)
9321 (remote_get_trace_state_variable_value): Make sure the remote
9322 traceframe matches gdb's current traceframe.
9323 (remote_trace_find): If looking up a traceframe using any method
9324 other than by number, make sure the current remote traceframe
9325 matches gdb's current traceframe. Update the current remote
9326 traceframe if the lookup succeeded.
9327 * infrun.c (fetch_inferior_event): Adjust.
9328 * tracepoint.h (set_current_traceframe): Declare.
9329 (get_traceframe_number, set_traceframe_number): Add describing
9332 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9334 Mark pieces of values as unavailable if the corresponding memory
9337 * valops.c: Include tracepoint.h.
9338 (value_fetch_lazy): Use read_value_memory.
9339 (read_value_memory): New.
9340 * value.h (read_value_memory): Declare.
9341 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9342 * exec.c (section_table_available_memory): New function.
9343 * exec.h (section_table_available_memory): Declare.
9345 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9347 * Makefile.in (SFILES): Add memrange.c.
9348 (HFILES_NO_SRCDIR): Add memrange.h.
9349 (COMMON_OBS): Add memrange.o.
9350 * memrange.c: New file.
9351 * memrange.h: New file.
9352 * tracepoint.c: Include memrange.h.
9353 (struct mem_range): Delete.
9354 (mem_range_s): Delete.
9355 (traceframe_available_memory): New function.
9356 * tracepoint.h (traceframe_available_memory): Declare.
9358 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9360 * target.h (struct traceframe_info): Forward declare.
9361 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9362 (struct target_ops) <to_traceframe_info>: New field.
9363 (target_traceframe_info): New.
9364 * target.c (update_current_target): Inherit and default
9366 * remote.c (PACKET_qXfer_traceframe_info): New.
9367 (remote_protocol_features): Register qXfer:traceframe-info:read.
9368 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9369 (remote_traceframe_info): New.
9370 (init_remote_ops): Install it.
9371 (_initialize_remote): Install "set/show remote traceframe-info"
9373 * tracepoint.h (parse_traceframe_info): Declare.
9374 * tracepoint.c (struct mem_range): New.
9375 (mem_range_s): New typedef.
9376 (struct traceframe_info): New.
9377 (traceframe_info): New global.
9378 (free_traceframe_info): New function.
9379 (clear_traceframe_info): New function.
9380 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9382 (build_traceframe_info): New function.
9383 (tfile_traceframe_info): New function.
9384 (init_tfile_ops): Install tfile_traceframe_info.
9385 (traceframe_info_start_memory, free_result): New functions.
9386 (memory_attributes, traceframe_info_elements): New globals.
9387 (parse_traceframe_info, get_traceframe_info): New functions.
9388 * features/traceframe-info.dtd: New file.
9389 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9391 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9393 Base support for <unavailable> value contents.
9395 * value.h (value_bytes_available): Declare.
9396 (mark_value_bytes_unavailable): Declare.
9397 * value.c (struct range): New struct.
9398 (range_s): New typedef.
9399 (ranges_overlap): New function.
9400 (range_lessthan): New function.
9401 (ranges_contain_p): New function.
9402 (struct value) <unavailable>: New field.
9403 (value_bytes_available): New function.
9404 (mark_value_bytes_unavailable): New function.
9405 (require_not_optimized_out): Constify parameter.
9406 (require_available): New function.
9407 (value_contents_all, value_contents): Require all bytes be
9409 (value_free): Free `unavailable'.
9410 (value_copy): Copy `unavailable'.
9411 * valprint.h (val_print_unavailable): Declare.
9412 * valprint.c (valprint_check_validity): Rename `offset' parameter
9413 to `embedded_offset'. If printing a scalar, check whether the
9414 value chunk is available.
9415 (val_print_unavailable): New.
9416 (val_print_scalar_formatted): Check whether the value is
9418 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9419 pretty-printing unavailable values.
9421 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9423 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9424 * c-typeprint.c (c_type_print_args): Update the function comment. New
9425 variable param_type, initialize it. Remove const/volatile qualifiers
9426 for language_cplus and !show_artificial. Use param_type.
9428 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9430 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9431 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9432 * symtab.h (struct symtab) <next>: Comment extension.
9434 2011-02-12 Yao Qi <yao@codesourcery.com>
9436 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9438 2011-02-11 Yao Qi <yao@codesourcery.com>
9440 * common/Makefile.in: Add copyright header.
9442 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9444 * infrun.c (proceed): Move switching out and in of tfind mode from
9446 (fetch_inferior_event): ... to here.
9448 2011-02-11 Yao Qi <yao@codesourcery.com>
9450 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9452 * configure.ac: Add common to sub dir.
9453 * configure: Regenerate.
9455 2011-02-11 Yao Qi <yao@codesourcery.com>
9459 * common/Makefile.in: New.
9460 * common/configure.ac: New.
9461 * common/aclocal.m4: New.
9462 * common/configure: Generate.
9464 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9466 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9467 side of the parenthesis.
9470 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9471 * vec.h (VEC_block_remove): Fix comment.
9473 2011-02-08 Michael Snyder <msnyder@vmware.com>
9475 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9477 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9479 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9480 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9483 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9486 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9488 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9489 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9491 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9493 * dwarf2read.c (read_subroutine_type): Set special calling
9494 convention flag for functions compiled by IBM XL C for OpenCL.
9495 * ppc-sysv-tdep.c: Include "dwarf2.h"
9496 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9498 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9499 IBM OpenCL vector types calling convention.
9500 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9501 (ppc_sysv_abi_broken_return_value): Likewise.
9502 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9503 types calling convention.
9504 (ppc64_sysv_abi_return_value): Likewise.
9505 * spu-tdep.c: Include "dwarf2.h"
9506 (spu_return_value): Implement IBM OpenCL vector types calling
9509 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9511 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9512 correct ABI for AltiVec vector arguments.
9514 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9516 * valprint.c (val_print): Extend comment.
9517 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9518 interface explanation to val_print.
9519 (ada_val_print_array): Adjust comment to current interface.
9520 (print_field_values): Adjust comment to current interface.
9521 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9522 explanation to val_print.
9523 * f-valprint.c (f_val_print): Ditto.
9524 * jv-valprint.c (java_val_print): Ditto.
9525 * m2-valprint.c (m2_val_print): Ditto.
9526 * p-valprint.c (pascal_val_print): Ditto.
9528 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9530 * breakpoint.c (parse_breakpoint_sals): Fix description.
9532 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9533 Oguz Kayral <oguzkayral@gmail.com>
9535 * python/py-inferior.c (python_on_normal_stop): New function.
9536 (python_on_resume): New function.
9537 (python_inferior_exit): New function.
9538 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9539 inferior_exit observers.
9540 * python/py-evtregistry.c: New file.
9541 * python/py-threadevent.c : New file.
9542 * python/py-event.c: New file.
9543 * python/py-evts.c: New file.
9544 * python/py-continueevent.c: New file.
9545 * python/py-bpevent.c: New file.
9546 * python/py-signalevent.c: New file.
9547 * python/py-exetiedevent.c: New file.
9548 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9549 Move struct breakpoint_object from here...
9550 * python/python-internal.h: ... to here.
9551 * python/py-event.h: New file.
9552 * python/py-events.h: New file.
9553 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9554 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9555 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9556 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9557 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9558 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9559 Add build rules for all the above.
9561 2011-02-04 Tom Tromey <tromey@redhat.com>
9563 * dwarf2read.c (dwarf2_section_empty_p): New function.
9564 (dwarf2_read_section): Use dwarf2_section_empty_p.
9565 (dwarf2_section_size): New function.
9566 (dwarf2_get_section_info): Unconditionally read section.
9567 (dwarf2_read_index): Use dwarf2_section_empty_p.
9568 (partial_read_comp_unit_head): Use dwarf2_section_size.
9569 (dwarf2_symbol_mark_computed): Likewise.
9571 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9573 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9575 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9577 * mips-linux-tdep.c: Include xml-syscall.h.
9578 (mips_linux_get_syscall_number): New function.
9579 (mips_linux_init_abi): Add calls to
9580 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9581 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9582 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9583 * syscalls/mips-n32-linux.xml: New file.
9584 * syscalls/mips-n64-linux.xml: New file.
9585 * syscalls/mips-o32-linux.xml: New file.
9587 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9589 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9590 Complain about inverted range entries.
9591 (dwarf2_record_block_ranges): Likewise.
9593 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9596 * breakpoint.c (update_watchpoint): Fix name of the
9597 update_global_location_list function.
9598 (print_one_breakpoint): Fix typo.
9599 (_initialize_breakpoint): Remove extra space in hbreak help
9601 * breakpoint.h (struct bp_location) <length>: Fix field
9604 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9606 * regcache.c (registers_changed_ptid): Don't explictly always
9607 clear `current_regcache'. Only clear current_thread_ptid and
9608 current_thread_arch when PTID matches. Only reinit the frame
9609 cache if PTID matches the current inferior_ptid. Move alloca(0)
9611 (registers_changed): ... here.
9613 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9615 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9616 starts with __stack_chk_guard as stack guard symbol.
9618 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9620 * disasm.c (compare_lines): Handle the end of sequence markers
9621 within the line table to better support disassembling over
9622 compilation unit boundaries.
9624 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9626 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9627 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9628 implementation even if no symbols are available.
9629 (thumb_analyze_prologue): Update call to skip_prologue_function.
9630 (arm_analyze_prologue): Likewise.
9632 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9634 * arm-tdep.c: Include "observer.h".
9635 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9636 (arm_exidx_data_key): New static variable.
9637 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9638 (struct arm_exidx_data): Likewise.
9639 (arm_exidx_data_free): New function.
9640 (arm_compare_exidx_entries): Likewise.
9641 (arm_obj_section_from_vma): Likewise.
9642 (arm_exidx_new_objfile): Likewise.
9643 (arm_find_exidx_entry): Likewise.
9644 (arm_exidx_fill_cache): Likewise.
9645 (arm_exidx_unwind_sniffer): Likewise.
9646 (arm_exidx_unwind): New global variable.
9647 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9648 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9649 observer. Register arm_exidx_data_key as objfile data.
9651 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9653 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9654 due to accessing uninitialized variable. Fix indentation.
9656 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9658 * c-valprint.c (c_value_print): When doing virtual base pointer
9659 adjustment, create a new value with adjusted contents rather than
9660 changing the contents of the value being printed (and getting it
9663 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9665 * xml-support.c (xml_find_attribute): New.
9666 (xinclude_start_include): Use it.
9667 * xml-support.h (xml_find_attribute): Declare.
9668 * memory-map.c (memory_map_start_memory)
9669 (memory_map_start_property): Use xml_find_attribute.
9670 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9672 * remote.c (start_thread): Use xml_find_attribute.
9673 * solib-target.c (library_list_start_segment)
9674 (library_list_start_section, library_list_start_library)
9675 (library_list_start_list): Use xml_find_attribute.
9676 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9677 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9678 (tdesc_start_field): Use xml_find_attribute.
9680 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9682 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9683 (BUILD_OCL_VTYPES): Update.
9685 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9687 * configure.ac: Work around non-GNU sed limitation when computing
9688 python version number.
9689 * configure: Regenerate.
9691 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9693 Fix debug printing of TYPE_INSTANCE.
9694 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9695 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9697 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9699 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9700 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9701 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9702 * ada-operator.inc: Rename the file to ...
9703 * ada-operator.def: ... here, wrap all the entries by macro OP.
9704 * expprint.c (op_name_standard): Remove all the entries. Include
9705 "std-operator.def" instead.
9706 * expression.h (enum exp_opcode): Include "std-operator.def" and
9707 "ada-operator.def". Move all the entries ...
9708 * std-operator.def: ... here, wrap all the entries by macro OP.
9710 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9712 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9713 * breakpoint.c (remove_jit_event_breakpoints): New function.
9714 * jit.c (jit_descriptor_addr): Delete.
9715 (registering_code): Delete.
9716 (clear_int): Delete.
9717 (jit_inferior_data): New variable.
9718 (struct jit_inferior_data): New type.
9719 (get_jit_inferior_data): New function.
9720 (jit_inferior_data_cleanup): New function.
9721 (jit_read_descriptor): Adjust.
9722 (jit_register_code): Adjust.
9723 (jit_breakpoint_re_set_internal): New function; move code here ...
9724 (jit_inferior_init): ... from here.
9725 (jit_breakpoint_re_set): Adjust.
9726 (jit_reset_inferior_data_and_breakpoints): New function.
9727 (jit_inferior_created_observer): Adjust.
9728 (jit_inferior_exit_hook): Adjust.
9729 (jit_executable_changed_observer): New function.
9730 (jit_event_handler): Adjust.
9731 (_initialize_jit): Adjust.
9733 2011-01-31 Michael Snyder <msnyder@vmware.com>
9735 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9738 2011-01-31 Tom Tromey <tromey@redhat.com>
9741 * python/python.c (execute_gdb_command): Call
9742 prevent_dont_repeat.
9743 * top.c (suppress_dont_repeat): New global.
9744 (dont_repeat): Use it.
9745 (prevent_dont_repeat): New function.
9746 * command.h (prevent_dont_repeat): Declare.
9748 2011-01-31 Tom Tromey <tromey@redhat.com>
9750 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9751 * python/py-breakpoint.c (bppy_set_silent): Use
9752 breakpoint_set_silent.
9753 (bppy_set_thread): Use breakpoint_set_thread.
9754 (bppy_set_task): Use breakpoint_set_task.
9755 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9756 (breakpoint_set_task): Declare.
9757 (make_breakpoint_silent): Remove.
9758 * breakpoint.c (breakpoint_set_silent): New function.
9759 (breakpoint_set_thread): Likewise.
9760 (breakpoint_set_task): Likewise.
9761 (make_breakpoint_silent): Remove.
9763 2011-01-31 Tom Tromey <tromey@redhat.com>
9765 * breakpoint.h (user_breakpoint_p): Declare.
9766 * breakpoint.c (user_breakpoint_p): New function.
9767 (breakpoint_1): Use it.
9768 (save_breakpoints): Likewise.
9770 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9772 * configure.ac: Add handling of Python distribution on Windows.
9773 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9774 sysconfig variables are not defined, then do not use them.
9775 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9776 instead. On Windows, return all paths using forward-slashes
9777 rather than backslashes.
9779 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9781 * configure.ac: Remove fallback behavior for building
9782 against Python. Remove tweaking of Python include path.
9783 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9784 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9785 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9786 Always restore CPPFLAGS and LIBS after linking test.
9787 * configure: Regenerated.
9788 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9789 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9790 * python/python-internal.h: Adjust includes of Python .h files.
9792 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9794 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9797 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9799 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9802 2011-01-31 Yao Qi <yao@codesourcery.com>
9804 * arm-linux-nat.c: Update calls to regcache_register_status
9805 instead of regcache_valid_p.
9806 * aix-thread.c: Likewise.
9807 * i386gnu-nat.c: Likewise.
9809 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9812 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9813 touching TYPE_FIELD_ARTIFICIAL.
9815 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
9817 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9820 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9822 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9823 selected, don't try iterating over the traceframe's blocks.
9824 (tfile_has_stack): If there's no traceframe selected, then there's
9826 (tfile_has_registers): If there's no traceframe selected, then
9827 there's no registers.
9829 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9831 * target.c (memory_xfer_partial): No need to restore shadows if we
9832 haven't read anything.
9834 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9836 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9837 and val_print_scalar_formatted.
9839 2011-01-27 Pedro Alves <pedro@codesourcery.com>
9841 * tracepoint.c (tfile_read): New.
9842 (tfile_open): Use it.
9843 (tfile_get_traceframe_address): Use it.
9844 (tfile_trace_find): Use it.
9845 (walk_blocks_callback_func): New typedef.
9846 (match_blocktype): New function.
9847 (traceframe_walk_blocks): New function.
9848 (traceframe_find_block_type): New function.
9849 (tfile_fetch_registers, tfile_xfer_partial)
9850 (tfile_get_trace_state_variable_value): Use
9851 traceframe_find_block_type and tfile_read.
9853 2011-01-26 Kevin Buettner <kevinb@redhat.com>
9855 * remote-mips.c: Add internationalization mark ups. Remove
9856 trailing \n from already marked up strings.
9858 2011-01-26 Tom Tromey <tromey@redhat.com>
9860 * python/py-prettyprint.c (print_string_repr): Clear
9861 'addressprint' option when calling val_print_string.
9862 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9863 option when calling val_print_string.
9865 2011-01-26 Tom Tromey <tromey@redhat.com>
9867 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9869 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9871 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9872 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9873 (gdb_py_long_as_ulongest): New defines.
9874 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9875 (gdb_py_int_as_long): Declare.
9876 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9877 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9878 (valpy_long): Add comment.
9879 * python/py-utils.c (get_addr_from_python): Use
9880 gdb_py_long_as_ulongest. Handle overflow properly.
9881 (gdb_py_object_from_longest): New function.
9882 (gdb_py_object_from_ulongest): Likewise.
9883 (gdb_py_int_as_long): Likewise.
9884 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9885 * python/py-symtab.c (salpy_get_pc): Use
9886 gdb_py_long_from_ulongest.
9887 (salpy_get_line): Use PyInt_FromLong.
9888 * python/py-param.c (set_parameter_value): Use
9890 * python/py-lazy-string.c (stpy_get_address): Use
9891 gdb_py_long_from_ulongest.
9892 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9893 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9894 * python/py-breakpoint.c (bppy_set_thread): Use
9896 (bppy_set_task): Likewise.
9897 (bppy_set_ignore_count): Likewise.
9898 (bppy_set_hit_count): Likewise.
9899 * python/py-block.c (blpy_get_start): Use
9900 gdb_py_object_from_ulongest.
9901 (blpy_get_end): Likewise.
9902 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9904 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9907 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9908 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9909 equality test for objfile, initialize addr_low if needed.
9911 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9913 * tui/tui-regs.c (tui_register_format): Remove dead code.
9915 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9917 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9918 instead of print_scalar_formatted.
9919 (print_scalar_formatted): Don't handle 's' format strings here,
9920 and add an assertion that we never see such format here.
9921 * valprint.h (val_print_scalar_formatted): Declare.
9922 * valprint.c (val_print_scalar_formatted): New.
9923 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9924 instead of print_scalar_formatted.
9925 * jv-valprint.c (java_val_print): Ditto.
9926 * p-valprint.c (pascal_val_print): Ditto.
9927 * ada-valprint.c (ada_val_print_1): Ditto.
9928 * f-valprint.c (f_val_print): Ditto.
9929 * infcmd.c (registers_info): Ditto.
9930 * m2-valprint.c (m2_val_print): Ditto.
9932 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9934 * m2-valprint.c (print_unbounded_array): Pass
9935 value_contents_for_printing rather than value_contents, to
9936 m2_print_array_contents. Also pass in the value.
9938 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9940 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9941 (save_gdb_index_command): Switch to .gdb_index version 4.
9943 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9945 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9946 than frame_register, and always pass a valid value to val_print.
9948 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9950 Centralize printing "<optimized out>".
9952 * valprint.h (val_print_optimized_out): Declare.
9953 * cp-valprint.c (cp_print_value_fields): Use
9954 val_print_optimized_out.
9955 * jv-valprint.c (java_print_value_fields): Ditto.
9956 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9957 * printcmd.c (print_formatted): Ditto.
9958 * valprint.c (valprint_check_validity): Ditto.
9959 (value_check_printable): Ditto.
9960 (val_print_optimized_out): New.
9962 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9964 * infcmd.c (default_print_registers_info): Allocate values so to
9965 never pass a NULL value to val_print.
9967 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9969 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9970 boolean. Make sure to always pass a value that matches the
9971 contents buffer to callees. Preserve `address' for following
9973 * value.c (value_contents_for_printing_const): New.
9974 (value_address): Constify value argument.
9975 * value.h (value_contents_for_printing_const): Declare.
9976 (value_address): Constify value argument.
9978 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9980 * regcache.c (struct regcache_descr): Rename
9981 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9982 and sizeof_cooked_register_valid_p to
9983 sizeof_cooked_register_status.
9984 (init_regcache_descr): Adjust.
9985 (struct regcache): Rename register_valid_p field to
9987 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9988 (do_cooked_read): Adjust.
9989 (regcache_valid_p): Rename to ...
9990 (regcache_register_status): ... this. Adjust.
9991 (regcache_invalidate): Adjust.
9992 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9994 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9995 as unavailable, not valid.
9996 (regcache_dump): Adjust.
9997 * regcache.h (enum register_status): New.
9998 (regcache_register_status): Declare.
9999 (regcache_invalidate): Delete declaration.
10000 * corelow.c (get_core_registers): Adjust.
10001 * tracepoint.c (tfile_fetch_registers): Adjust.
10002 * trad-frame.c (REG_VALUE): Rename to ...
10003 (TF_REG_VALUE): ... this.
10004 (REG_UNKNOWN): Rename to ...
10005 (TF_REG_UNKNOWN): ... this.
10006 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10007 * mi/mi-main.c (register_changed_p): Adjust.
10009 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10011 * regcache.c (struct regcache_descr): Remove outdated comment.
10012 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10014 (regcache_xmalloc): Rename to ...
10015 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10016 Allocate the regcache type accordingly.
10017 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10018 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10019 cooked registers, not raw.
10020 (regcache_dup_no_passthrough): Delete.
10021 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10022 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10023 mention obsolete write_register_bytes.
10024 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10026 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10028 Stop remote_read_bytes from handling partial reads itself.
10030 * remote-fileio.c: Include target.h.
10031 (remote_fileio_write_bytes): Delete.
10032 (remote_fileio_func_open, remote_fileio_func_write)
10033 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10034 target_read_memory.
10035 (remote_fileio_func_stat): Use target_read_memory and
10036 target_write_memory.
10037 (remote_fileio_func_gettimeofday): Use target_write_memory.
10038 (remote_fileio_func_system): Use target_read_memory.
10039 * remote.c (remote_write_bytes): Make it static.
10040 (remote_read_bytes): Don't handle partial reads here.
10041 * remote.h (remote_read_bytes): Delete declaration.
10043 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10045 Simplify XML parsing a bit.
10047 * xml-support.h (gdb_xml_parse_quick): Declare.
10048 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10049 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10051 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10052 gdb_xml_create_parser_and_cleanup_1.
10053 (gdb_xml_parse_quick): New.
10054 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10055 * osdata.c (osdata_parse): Ditto.
10056 * remote.c (remote_threads_info): Ditto.
10057 * solib-target.c (solib_target_parse_libraries): Ditto.
10058 * xml-syscall.c (syscall_parse_xml): Ditto.
10059 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10061 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10063 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10064 with remote-mips.o added to gdb_target_obs.
10065 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10067 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10069 * ada-valprint.c (val_print_packed_array_elements): Pass the
10070 correct struct value to val_print.
10071 (ada_val_print_1): Ditto.
10073 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10075 Don't lose embedded_offset in printing routines throughout.
10077 * valprint.h (val_print_array_elements): Change prototype.
10078 * valprint.c (val_print_array_elements): Add `embedded_offset'
10079 parameter, and adjust to pass it down to val_print, while passing
10080 `valaddr' or `address' unmodified. Take embedded_offset into
10081 account when checking repetitions.
10082 * c-valprint.c (c_val_print): Pass embedded_offset to
10083 val_print_array_elements instead of adjusting `valaddr' and
10085 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10086 embedded_offset to val_print_array_elements instead of adjusting
10088 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10089 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10090 val_print_array_elements and pascal_object_print_value_fields
10091 instead of adjusting `valaddr'.
10092 (pascal_object_print_value_fields): Add `offset' parameter, and
10094 (pascal_object_print_value): Add `offset' parameter, and adjust to
10096 (pascal_object_print_static_field): Use
10097 value_contents_for_printing/value_embedded_offset, rather than
10099 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10100 parameter, and adjust to use it. Use
10101 value_contents_for_printing/value_embedded_offset, rather than
10103 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10104 (ada_val_print_array): Add `offset' parameter, and adjust to use
10106 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10107 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10108 Instead work with offsets. Use
10109 value_contents_for_printing/value_embedded_offset, rather than
10110 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10111 and use value_from_pointer to extract a target pointer, rather
10112 than value_from_longest.
10113 (print_variant_part): Add `offset' parameter. Replace
10114 `outer_valaddr' parameter by a new `outer_offset' parameter.
10115 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10116 (ada_value_print): Use
10117 value_contents_for_printing/value_embedded_offset, rather than
10119 (print_record): Add `offset' parameter, and adjust to pass it
10121 (print_field_values): Add `offset' parameter. Replace
10122 `outer_valaddr' parameter by a new `outer_offset' parameter.
10123 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10124 Use value_contents_for_printing/value_embedded_offset, rather than
10126 * d-valprint.c (dynamic_array_type): Use
10127 value_contents_for_printing/value_embedded_offset, rather than
10129 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10130 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10131 (java_print_value_fields): Take `offset' into account. Don't
10132 re-adjust `valaddr'. Instead pass down adjusted offsets.
10133 (java_val_print): Take `embedded_offset' into account. Pass it to
10134 java_print_value_fields.
10135 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10136 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10137 down adjusted offsets.
10138 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10139 (f_val_print): Take `embedded_offset' into account.
10141 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10143 * inflow.c: Include "gdbcmd.h".
10144 (interactive_mode): New static global, moved here from top.c.
10145 (show_interactive_mode): New function, moved here from top.c.
10146 use gdb_has_a_terminal instead of input_from_terminal_p to
10147 determine the current mode.
10148 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10150 (_initialize_inflow): Add the "set/show interactive-mode"
10151 commands. Moved here from top.c, after having adjusted slightly
10153 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10155 (input_from_terminal_p): Remove handling of "interactive-mode"
10156 setting, moved to infow.c.
10157 (init_main): Remove creation of the "set/show interactive-mode"
10158 commands, moved to inflow.c.
10160 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10162 * NEWS: Add entry for native ia64-hpux support.
10164 2011-01-19 Tom Tromey <tromey@redhat.com>
10167 * thread.c (free_thread): Free 'name'.
10168 (print_thread_info): Emit thread name. Change CLI output.
10169 (thread_name_command): New function.
10170 (do_captured_thread_select): Emit newline.
10171 (_initialize_thread): Register 'thread name' command.
10172 * target.h (struct target_ops) <to_thread_name>: New field.
10173 (target_thread_name): New macro.
10174 * target.c (update_current_target): Handle to_thread_name.
10175 * python/py-infthread.c (thpy_get_name): New function.
10176 (thpy_set_name): Likewise.
10177 (thread_object_getset): Add "name".
10178 * linux-nat.c (linux_nat_thread_name): New function.
10179 (linux_nat_add_target): Set to_thread_name.
10180 * gdbthread.h (struct thread_info) <name>: New field.
10182 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10184 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10185 (ada_val_print_1): Likewise.
10187 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10189 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10190 upper limit address is not greater than the function end address
10191 when the upper limit could not be computed using the debugging
10194 2011-01-17 Tom Tromey <tromey@redhat.com>
10196 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10198 * utils.c: Include gdb_regex.h.
10199 (do_regfree_cleanup): New function.
10200 (make_regfree_cleanup): Likewise.
10201 (get_regcomp_error): Likewise.
10202 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10204 2011-01-17 Tom Tromey <tromey@redhat.com>
10206 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10207 re_compile_fastmap.
10209 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10211 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10212 for internal variables.
10213 (last_was_structop): New static variable.
10214 (COMPLETE): New token.
10215 (field_exp): New rule to group all '.' suffix handling.
10216 Add mark_struct_expression calls when approriate to be able
10217 to correctly find fields for completion.
10218 (yylex): Adapt to handle field completion and set INTVAR when
10221 2011-01-14 Yao Qi <yao@codesourcery.com>
10223 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10224 save_reggroup, restore_reggroup and all_reggroup.
10226 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10228 * ada-valprint. (ada_printchar): Use the correct type length
10229 in call to ada_emit_char.
10230 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10232 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10234 * solib-som.h (hpux_major_release): Declare variable here.
10235 * solib-som.c: Remove <sys/utsname.h> header.
10236 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10237 (hpux_major_release): Make global, change default value to
10238 DEFAULT_HPUX_MAJOR_RELEASE.
10239 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10240 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10241 Add "solib-som.h" header.
10242 (set_hpux_major_release): New function.
10243 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10245 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10247 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10249 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10251 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10252 new-line at end of warning message.
10253 (ia64_hpux_store_register): Remove trailing new-line at end of
10255 * ia64-hpux-tdep.c: Rephrase comment.
10256 * solib-ia64-hpux.c (struct dld_info): Change type of field
10257 dld_flags from "long long" to ULONGEST.
10259 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10261 * target.h (deprecated_child_ops): Delete declaration.
10262 * target.c (deprecated_child_ops): Delete definition.
10264 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10266 * Makefile.in (hpux-thread.o): Delete rule.
10267 * configure.ac: Don't check for HPUX DCE threads support.
10268 * configure, config.in: Regenerate.
10269 * hppa-hpux-nat.c (child_suppress_run): Delete.
10270 (hppa_hpux_child_can_run): Delete.
10271 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10272 * hpux-thread.c: Delete.
10274 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10276 * hpux-thread.c (hpux_pid_to_str): Delete.
10278 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10280 * ada-valprint.c (ada_emit_char): Remove strange code.
10281 Check that c is <= UCHAR_MAX before passing it to isascii.
10282 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10284 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10286 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10287 to the case where instream is stdin.
10289 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10291 * ia64-tdep.h (struct regcache): Forward declare.
10292 (struct ia64_infcall_ops): New struct type.
10293 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10295 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10296 Renames ia64_find_global_pointer.
10297 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10298 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10299 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10301 (ia64_infcall_ops): New static global constant.
10302 (ia64_gdbarch_init): Set tdep->infcall_ops.
10303 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10304 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10305 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10306 (ia64_hpux_dummy_code): New static global constant.
10307 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10308 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10309 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10311 (ia64_hpux_infcall_ops): New static global constant.
10312 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10313 for inferior function calls to work properly on ia64-hpux.
10315 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10317 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10318 * ia64-tdep.h (struct frame_info): forward declaration.
10319 (struct gdbarch_tdep): Add field size_of_register_frame.
10320 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10321 to determine the size of the register frame.
10322 (ia64_size_of_register_frame): New function.
10323 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10324 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10325 (IA64_HPUX_UREG_REASON): New macro.
10326 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10328 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10329 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10330 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10333 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10335 Add support for ia64-hpux.
10336 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10337 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10339 * configure.host: Add handling for ia64-hpux hosts. Add associated
10341 * configure.tgt: Add handling for ia64-hpux targets.
10342 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10343 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10344 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10346 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10348 [ttrace] Compute thread list immediately after attach.
10349 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10351 (inf_ttrace_attach): Use it.
10353 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10355 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10356 if we could not determine the frame's function address. Instead,
10357 use the frame's PC, and then continue.
10359 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10361 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10362 not already defined.
10364 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10366 * ia64-tdep.c (ia64_struct_type_p): New function.
10367 (ia64_extract_return_value): Handle integral values that are
10368 less than 8 bytes long.
10369 (ia64_push_dummy_call): Likewise.
10371 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10373 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10374 floatformat_ia64_ext.
10375 (floatformat_ia64_ext_big): New static const.
10376 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10378 2011-01-12 Tom Tromey <tromey@redhat.com>
10380 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10382 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10383 (mi_cmd_thread_list_ids): Likewise.
10384 (mi_cmd_data_list_changed_registers): Likewise.
10385 (mi_cmd_data_list_register_values): Likewise.
10386 (mi_cmd_data_write_register_values): Likewise.
10387 (mi_cmd_data_evaluate_expression): Likewise.
10388 (mi_cmd_data_read_memory): Likewise.
10389 (mi_cmd_data_read_memory_bytes): Likewise.
10390 (mi_cmd_data_write_memory): Likewise.
10391 (mi_cmd_enable_timings): Likewise.
10392 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10393 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10394 (mi_cmd_var_delete): Likewise.
10395 (mi_cmd_var_set_format): Likewise.
10396 (mi_cmd_var_show_format): Likewise.
10397 (mi_cmd_var_info_num_children): Likewise.
10398 (mi_cmd_var_list_children): Likewise.
10399 (mi_cmd_var_info_type): Likewise.
10400 (mi_cmd_var_info_expression): Likewise.
10401 (mi_cmd_var_show_attributes): Likewise.
10402 (mi_cmd_var_assign): Likewise.
10403 (mi_cmd_var_update): Likewise.
10404 (mi_cmd_enable_pretty_printing): Likewise.
10405 (mi_cmd_var_set_update_range): Likewise.
10406 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10408 (mi_cmd_target_file_put): Likewise.
10409 (mi_cmd_target_file_delete): Likewise.
10410 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10412 (mi_cmd_stack_info_depth): Likewise.
10413 (mi_cmd_stack_list_locals): Likewise.
10414 (mi_cmd_stack_list_args): Likewise.
10415 (mi_cmd_stack_select_frame): Likewise.
10416 (mi_cmd_stack_select_frame): Likewise.
10417 (mi_cmd_stack_info_frame): Likewise.
10418 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10420 (mi_cmd_file_list_exec_source_files): Likewise.
10421 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10422 (mi_cmd_env_cd): Likewise.
10423 (mi_cmd_env_path): Likewise.
10424 (mi_cmd_env_dir): Likewise.
10425 (mi_cmd_inferior_tty_show): Likewise.
10426 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10427 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10428 (mi_cmd_break_watch): Likewise.
10430 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10432 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10433 (ppc_linux_insert_hw_breakpoint): Likewise.
10434 (ppc_linux_remove_hw_breakpoint): Likewise.
10435 (ppc_linux_insert_watchpoint): Likewise.
10437 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10438 Jan Kratochvil <jan.kratochvil@redhat.com>
10440 PR fortran/11104 and DWARF unbound arrays detection.
10441 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10442 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10443 unspecified upper bound.
10444 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10445 variables array_size_array, tmp_type and offset_item. New variable
10446 array. Remove call to f77_get_upperbound. New variables array_type
10447 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10448 the final call to deprecated_set_value_type.
10450 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10452 Make value allocations more lazy.
10453 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10454 instead of allocate_value and set_value_lazy when possible.
10455 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10456 instead of allocate_value and set_value_lazy.
10457 * findvar.c (value_of_register_lazy): Likewise.
10458 (read_var_value): Remove V preallocation, call just check_typedef in
10459 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10460 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10461 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10462 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10463 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10464 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10465 the end, remove set_value_lazy there.
10466 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10467 instead of allocate_value and set_value_lazy when possible.
10468 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10469 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10470 of allocate_value and set_value_lazy.
10471 (value_from_contents_and_address): Use allocate_value_lazy instead of
10472 allocate_value and set_value_lazy when possible.
10474 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10476 * disasm.c (dump_insns): Support dumping opcodes for MI.
10477 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10478 dumping of instruction opcodes.
10480 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10482 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10485 2011-01-11 Tom Tromey <tromey@redhat.com>
10487 * thread.c (do_captured_thread_select): Emit newline before
10490 2011-01-11 Michael Snyder <msnyder@vmware.com>
10492 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10493 * score-tdep.c: Ditto.
10494 * score-tdep.h: Ditto.
10495 * ser-base.c: Ditto.
10496 * ser-go32.c: Ditto.
10499 * ser-mingw.c: Ditto.
10500 * ser-pipe.c: Ditto.
10501 * ser-tcp.c: Ditto.
10502 * ser-unix.c: Ditto.
10503 * sh64-tdep.c: Ditto.
10504 * shnbsd-nat.c: Ditto.
10505 * sh-tdep.c: Ditto.
10506 * sh-tdep.h: Ditto.
10508 * solib-darwin.c: Ditto.
10509 * solib-frv.c: Ditto.
10511 * solib-irix.c: Ditto.
10512 * solib-osf.c: Ditto.
10513 * solib-pa64.c: Ditto.
10514 * solib-som.c: Ditto.
10515 * solib-spu.c: Ditto.
10516 * solib-sunos.c: Ditto.
10517 * solib-svr4.c: Ditto.
10519 * sol-thread.c: Ditto.
10520 * somread.c: Ditto.
10523 * sparc64-linux-tdep.c: Ditto.
10524 * sparc64-tdep.c: Ditto.
10525 * sparc-linux-nat.c: Ditto.
10526 * sparc-linux-tdep.c: Ditto.
10527 * sparc-sol2-nat.c: Ditto.
10528 * sparc-sol2-tdep.c: Ditto.
10529 * sparc-tdep.c: Ditto.
10530 * sparc-tdep.h: Ditto.
10531 * spu-tdep.c: Ditto.
10532 * stabsread.c: Ditto.
10533 * stabsread.h: Ditto.
10535 * symfile.c: Ditto.
10536 * symfile.h: Ditto.
10537 * symmisc.c: Ditto.
10541 * target-descriptions.c: Ditto.
10542 * target-descriptions.h: Ditto.
10544 * target-memory.c: Ditto.
10545 * terminal.h: Ditto.
10548 * tracepoint.c: Ditto.
10549 * tracepoint.h: Ditto.
10550 * trad-frame.h: Ditto.
10551 * typeprint.c: Ditto.
10553 2011-01-11 Michael Snyder <msnyder@vmware.com>
10555 * ui-file.c: Comment cleanup, mostly periods and spaces.
10556 * ui-file.h: Ditto.
10560 * v850-tdep.c: Ditto.
10561 * valarith.c: Ditto.
10563 * valprint.c: Ditto.
10564 * valprint.h: Ditto.
10569 * vax-tdep.c: Ditto.
10572 * version.h: Ditto.
10573 * windows-nat.c: Ditto.
10574 * windows-tdep.c: Ditto.
10575 * xcoffread.c: Ditto.
10576 * xcoffsolib.c: Ditto.
10577 * xml-support.c: Ditto.
10578 * xstormy16-tdep.c: Ditto.
10579 * xtensa-tdep.c: Ditto.
10580 * xtensa-tdep.h: Ditto.
10582 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10584 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10585 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10587 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10588 Thiago Jung Bauermann <bauerman@br.ibm.com>
10590 Implement support for PowerPC BookE ranged watchpoints.
10592 (struct breakpoint_ops) <resources_needed>: New method.
10593 Initialize to NULL in all existing breakpoint_ops instances.
10594 (struct breakpoint) <exact>: New field.
10595 (target_exact_watchpoints): Declare external global.
10596 * breakpoint.c (target_exact_watchpoints): New global flag.
10597 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10598 b->enable_state to bp_enabled before calling
10599 hw_watchpoint_used_count.
10600 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10601 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10603 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10604 if the watchpoint is exact.
10605 (resources_needed_watchpoint): New function.
10606 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10607 (watch_command_1): Set b->exact if the user asked for an exact
10608 watchpoint and one can be set.
10609 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10610 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10611 the user asks for an exact watchpoint and one can be set. Return
10612 number of needed debug registers to watch the expression.
10613 * gdbtypes.c (is_scalar_type): New function, based on
10614 valprint.c:scalar_type_p.
10615 (is_scalar_type_recursive): New function.
10616 * gdbtypes.h (is_scalar_type_recursive): Declare.
10617 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10618 handle regions when ranged watchpoints are available.
10619 (create_watchpoint_request): New function.
10620 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10621 create_watchpoint_request.
10622 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10623 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10624 `set powerpc' and `show powerpc' commands.
10625 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10626 Mention documentation comment in the target macro.
10627 (target_region_ok_for_hw_watchpoint): Document return value.
10629 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10631 * breakpoint.c (update_watchpoint): Decide on using a software or
10632 hardware watchpoint after the bp_locations are created.
10634 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10636 Convert hardware watchpoints to use breakpoint_ops.
10637 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10638 <insert_location>: ... this. Return int instead of void.
10639 Accept pointer to struct bp_location instead of pointer to
10640 struct breakpoint. Adapt all implementations.
10641 (breakpoint_ops) <remove>: Rename to...
10642 <remove_location>: ... this. Accept pointer to struct bp_location
10643 instead of pointer to struct breakpoint. Adapt all implementations.
10644 * breakpoint.c (insert_catchpoint): Delete function.
10645 (insert_bp_location): Call the watchpoint or catchpoint's
10646 breakpoint_ops.insert method.
10647 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10648 breakpoint_ops.remove method.
10649 (insert_watchpoint, remove_watchpoint): New functions.
10650 (watchpoint_breakpoint_ops): New structure.
10651 (watch_command_1): Initialize the OPS field.
10652 * inf-child.c (inf_child_insert_fork_catchpoint)
10653 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10654 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10655 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10657 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10658 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10659 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10660 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10661 * target.c (update_current_target): Change default implementation of
10662 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10663 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10664 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10665 to_set_syscall_catchpoint to return_one.
10666 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10667 (debug_to_insert_exec_catchpoint): Report return value.
10668 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10669 (to_insert_exec_catchpoint): Change declaration to return int instead
10672 2011-01-11 Michael Snyder <msnyder@vmware.com>
10674 * arm-tdep.c: Internationalization.
10676 * charset.c: Ditto.
10677 * fork-child.c: Ditto.
10678 * nto-procfs.c: Ditto.
10679 * ppc-sysv-tdep.c: Ditto.
10681 * remote-mips.c: Ditto.
10683 * rs6000-nat.c: Ditto.
10684 * rs6000-tdep.c: Ditto.
10688 * xml-support.c: Ditto.
10689 * mi/mi-cmd-break.c: Ditto.
10690 * mi/mi-cmd-var.c: Ditto.
10691 * mi/mi-interp.c: Ditto.
10692 * mi/mi-main.c: Ditto.
10694 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10696 * remote-sim.c (gdbsim_store_register): Update API to
10697 sim_store_register to check more error conditions.
10699 2011-01-10 Michael Snyder <msnyder@vmware.com>
10701 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10702 * nto-tdep.c: Ditto.
10703 * nto-tdep.h: Ditto.
10704 * objc-exp.y: Ditto.
10705 * objc-lang.c: Ditto.
10706 * objfiles.c: Ditto.
10707 * objfiles.h: Ditto.
10708 * observer.c: Ditto.
10709 * opencl-lang.c: Ditto.
10712 * parser-defs.h: Ditto.
10715 * posix-hdep.c: Ditto.
10716 * ppcbug-rom.c: Ditto.
10717 * ppc-linux-nat.c: Ditto.
10718 * ppc-linux-tdep.c: Ditto.
10719 * ppc-linux-tdep.h: Ditto.
10720 * ppcnbsd-tdep.c: Ditto.
10721 * ppcobsd-tdep.c: Ditto.
10722 * ppcobsd-tdep.h: Ditto.
10723 * ppc-sysv-tdep.c: Ditto.
10724 * ppc-tdep.h: Ditto.
10725 * printcmd.c: Ditto.
10726 * proc-abi.c: Ditto.
10727 * proc-flags.c: Ditto.
10729 * proc-utils.h: Ditto.
10730 * progspace.h: Ditto.
10731 * prologue-value.c: Ditto.
10732 * prologue-value.h: Ditto.
10733 * psympriv.h: Ditto.
10734 * psymtab.c: Ditto.
10735 * p-typeprint.c: Ditto.
10736 * p-valprint.c: Ditto.
10737 * ravenscar-sparc-thread.c: Ditto.
10738 * ravenscar-thread.c: Ditto.
10739 * ravenscar-thread.h: Ditto.
10741 * regcache.c: Ditto.
10742 * regcache.h: Ditto.
10744 * remote-fileio.c: Ditto.
10745 * remote-fileio.h: Ditto.
10747 * remote-m32r-sdi.c: Ditto.
10748 * remote-mips.c: Ditto.
10749 * remote-sim.c: Ditto.
10750 * rs6000-aix-tdep.c: Ditto.
10751 * rs6000-nat.c: Ditto.
10752 * rs6000-tdep.c: Ditto.
10754 2011-01-10 Michael Snyder <msnyder@vmware.com>
10756 * charset.c (validate): Internationalization.
10757 * coffread.c (read_one_sym): Ditto.
10758 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10759 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10760 * inflow.c (new_tty): Ditto.
10761 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10762 * m32c-tdep.c (m32c_return_value): Ditto.
10763 * mep-tdep.c (mep_store_return_value): Ditto.
10764 * score-tdep.c (score7_fetch_insn): Ditto.
10765 * ser-mingw.c (pipe_windows_open): Ditto.
10766 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10767 * spu-tdep.c (spu_register_type): Ditto.
10768 * tracepoint.c (trace_find_command): Ditto.
10769 * valarith.c (value_pos): Ditto.
10771 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10773 * ada-valprint.c (printstr): Minor comment reformatting.
10775 2011-01-08 Michael Snyder <msnyder@vmware.com>
10777 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10780 2011-01-08 Michael Snyder <msnyder@vmware.com>
10782 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10783 * hppa-hpux-tdep.c: Ditto.
10784 * hppa-linux-nat.c: Ditto.
10785 * hppa-linux-tdep.c: Ditto.
10786 * hppanbsd-tdep.c: Ditto.
10787 * hppa-tdep.c: Ditto.
10788 * hppa-tdep.h: Ditto.
10789 * hpux-thread.c: Ditto.
10790 * i386-cygwin-tdep.c: Ditto.
10791 * i386-darwin-nat.c: Ditto.
10792 * i386gnu-nat.c: Ditto.
10793 * i386-linux-nat.c: Ditto.
10794 * i386-linux-tdep.c: Ditto.
10795 * i386-nat.c: Ditto.
10796 * i386-nat.h: Ditto.
10797 * i386nbsd-tdep.c: Ditto.
10798 * i386-sol2-nat.c: Ditto.
10799 * i386-stub.c: Ditto.
10800 * i386-tdep.c: Ditto.
10801 * i386-tdep.h: Ditto.
10802 * i387-tdep.c: Ditto.
10803 * ia64-linux-nat.c: Ditto.
10804 * ia64-linux-tdep.c: Ditto.
10805 * ia64-tdep.c: Ditto.
10806 * infcall.c: Ditto.
10807 * infcall.h: Ditto.
10809 * inferior.c: Ditto.
10810 * inferior.h: Ditto.
10811 * infloop.c: Ditto.
10814 * interps.c: Ditto.
10815 * interps.h: Ditto.
10816 * iq2000-tdep.c: Ditto.
10817 * irix5-nat.c: Ditto.
10821 * jv-lang.c: Ditto.
10822 * jv-lang.h: Ditto.
10823 * jv-typeprint.c: Ditto.
10824 * jv-valprint.c: Ditto.
10825 * language.c: Ditto.
10826 * language.h: Ditto.
10827 * linespec.c: Ditto.
10828 * linux-fork.c: Ditto.
10829 * linux-nat.c: Ditto.
10830 * linux-thread-db.c: Ditto.
10831 * lm32-tdep.c: Ditto.
10833 2011-01-08 Michael Snyder <msnyder@vmware.com>
10835 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10836 * m2-lang.c: Ditto.
10837 * m2-typeprint.c: Ditto.
10838 * m2-valprint.c: Ditto.
10839 * m32c-tdep.c: Ditto.
10840 * m32r-linux-nat.c: Ditto.
10841 * m32r-rom.c: Ditto.
10842 * m32r-tdep.c: Ditto.
10843 * m32r-tdep.h: Ditto.
10844 * m68hc11-tdep.c: Ditto.
10845 * m58klinux-nat.c: Ditto.
10846 * m68k-tdep.c: Ditto.
10847 * m88k-tdep.c: Ditto.
10848 * m88k-tdep.h: Ditto.
10849 * machoread.c: Ditto.
10850 * macrocmd.c: Ditto.
10851 * macroexp.c: Ditto.
10852 * macrotab.c: Ditto.
10855 * mdebugread.c: Ditto.
10856 * mdebugread.h: Ditto.
10857 * memattr.c: Ditto.
10858 * memattr.h: Ditto.
10859 * memory-map.h: Ditto.
10860 * mep-tdep.c: Ditto.
10861 * microblaze-rom.c: Ditto.
10862 * microblaze-tdep.c: Ditto.
10863 * minsyms.c: Ditto.
10864 * mips-irix-tdep.c: Ditto.
10865 * mips-linux-nat.c: Ditto.
10866 * mips-linux-tdep.c: Ditto.
10867 * mips-linux-tdep.h: Ditto.
10868 * mipsnbsd-nat.c: Ditto.
10869 * mipsnbsd-tdep.c: Ditto.
10870 * mipsread.c: Ditto.
10871 * mips-tdep.c: Ditto.
10872 * mips-tdep.h: Ditto.
10873 * mn10300-linux-tdep.c: Ditto.
10874 * mn10300-tdep.c: Ditto.
10875 * mn10300-tdep.h: Ditto.
10876 * monitor.c: Ditto.
10877 * monitor.h: Ditto.
10878 * moxie-tdep.c: Ditto.
10879 * moxie-tdep.h: Ditto.
10880 * mt-tdep.c: Ditto.
10882 2011-01-08 Mike Frysinger <vapier@gentoo.org>
10884 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10886 2011-01-08 Robert Millan <rmh@gnu.org>
10888 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10890 2011-01-07 Michael Snyder <msnyder@vmware.com>
10892 * charset.c (_initialize_charset): Fix typo in string.
10894 2011-01-07 Michael Snyder <msnyder@vmware.com>
10896 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10898 * tui/tui-layout.c (tui_set_layout_for_display_command):
10899 Split line so that operator goes to beginning of line.
10900 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10901 assignment out of if statement.
10903 2011-01-07 Michael Snyder <msnyder@vmware.com>
10905 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10906 * ada-lang.h: Ditto.
10907 * ada-tasks.c: Ditto.
10908 * ada-valprint.c: Ditto.
10909 * aix-threads.c: Ditto.
10910 * alpha-linux-nat.c: Ditto.
10911 * alpha-linux-tdep.c: Ditto.
10912 * alpha-mdebug-tdep.c: Ditto.
10913 * alpha-nat.c: Ditto.
10914 * alpha-osf1-tdep.c: Ditto.
10915 * alpha-tdep.c: Ditto.
10916 * alphabsd-nat.c: Ditto.
10917 * alphabsd-tdep.c: Ditto.
10918 * amd64-darwin-tdep.c: Ditto.
10919 * amd64-linux-nat.c: Ditto.
10920 * amd64-linux-tdep.c: Ditto.
10921 * amd64-sol2-tdep.c: Ditto.
10922 * amd64-tdep.c: Ditto.
10923 * amd64-fbsd-tdep.c: Ditto.
10924 * amd64-nbsd-tdep.c: Ditto.
10925 * amd64-obsd-tdep.c: Ditto.
10926 * amd64-linux-nat.c: Ditto.
10927 * amd64-linux-tdep.c: Ditto.
10928 * arm-tdep.c: Ditto.
10929 * arm-tdep.h: Ditto.
10930 * armnbsd-nat.c: Ditto.
10931 * avr-tdep.c: Ditto.
10932 * bfin-tdep.c: Ditto.
10933 * bsd-kvm.c: Ditto.
10934 * c-typeprintc: Ditto.
10935 * c-valprint.c: Ditto.
10936 * coff-pe-read.h: Ditto.
10937 * coffreead.c: Ditto.
10938 * cris-tdep.c: Ditto.
10940 * darwin-nat-info.c: Ditto.
10941 * darwin-nat.c: Ditto.
10942 * dbug-rom.c: Ditto.
10943 * dbxread.c: Ditto.
10946 * dec-thread.c: Ditto.
10948 * demangle.c: Ditto.
10949 * dicos-tdep.c: Ditto.
10950 * dictionary.c: Ditto.
10951 * dictionary.h: Ditto.
10952 * dink32-rom.c: Ditto.
10954 * doublest.c: Ditto.
10956 * dummy-frame.c: Ditto.
10957 * dwarf2-frame.c: Ditto.
10958 * dwarf2expr.c: Ditto.
10959 * dwarf2loc.c: Ditto.
10960 * dwarf2read.c: Ditto.
10961 * elfread.c: Ditto.
10962 * environ.c: Ditto.
10964 * event-top.h: Ditto.
10965 * exceptions.c: Ditto.
10966 * exceptions.h: Ditto.
10968 * expprint.c: Ditto.
10969 * expression.h: Ditto.
10973 * f-typeprint.c: Ditto.
10974 * f-valprint.c: Ditto.
10975 * fbsd-nat.c: Ditto.
10976 * findvar.c: Ditto.
10977 * fork-child.c: Ditto.
10980 * frv-linux-tdep.c: Ditto.
10981 * frv-tdep.c: Ditto.
10983 * gdb-stabs.h: Ditto.
10984 * gdb_assert.h: Ditto.
10985 * gdb_string.h: Ditto.
10986 * gdb_thread_db.h: Ditto.
10987 * gdb_wait.h: Ditto.
10988 * gdbarch.sh: Ditto.
10989 * gdbcore.h: Ditto.
10990 * gdbthread.h: Ditto.
10991 * gdbtypes.c: Ditto.
10992 * gdbtypes.h: Ditto.
10993 * gnu-nat.c: Ditto.
10994 * gnu-nat.h: Ditto.
10995 * gnu-v2-abi.c: Ditto.
10996 * gnu-v3-abi.c: Ditto.
10997 * go32-nat.c: Ditto.
10998 * gdbarch.c: Regenerate.
10999 * gdbarch.h: Regenerate.
11001 2011-01-07 Michael Snyder <msnyder@vmware.com>
11003 * ax-gdb.c: Adjust some long output strings.
11004 * breakpoint.c: Ditto.
11005 * charset.c: Ditto.
11007 * infcall.c: Ditto.
11009 * linux-nat.c: Ditto.
11010 * solib-pa64.c: Ditto.
11011 * solib-som.c: Ditto.
11013 2011-01-06 Tom Tromey <tromey@redhat.com>
11017 * python/python.c (GdbMethods): Add "newest_frame" method.
11018 * python/python-internal.h (gdbpy_newest_frame): Declare.
11019 * python/py-frame.c (gdbpy_newest_frame): New function.
11021 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11023 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11024 * jit.c (jit_debug): New variable.
11025 (show_jit_debug): New function.
11026 (struct target_buffer): Use ULONGEST.
11027 (bfd_open_from_target_memory): Likewise.
11028 (jit_register_code, jit_inferior_init): Add debug output.
11029 (_initialize_jit): Register "debug jit" command.
11031 2011-01-06 Tom Tromey <tromey@redhat.com>
11033 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11034 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11037 2011-01-06 Tom Tromey <tromey@redhat.com>
11039 * python/py-frame.c (frapy_block): Use get_frame_block.
11041 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11043 Do not stop on SIGPRIO signals by default
11044 * infrun.c (_initialize_infrun): Unset signal_stop and
11045 signal_print for TARGET_SIGNAL_PRIO.
11047 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11049 * ada-tasks.c: Fix style violation in comment.
11051 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11053 * linespec.c (decode_compound, find_method): Remove trailing \n
11054 at end of error string.
11055 * solib-irix.c (irix_current_sos): Likewise.
11056 * varobj.c (uninstall_variable): Likewise.
11058 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11060 * copyright.py: New script.
11061 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11062 Launch emacs without exec'ing. Call copyright.py afterwards.
11064 2011-01-05 Michael Snyder <msnyder@vmware.com>
11066 * addrmap.c: Shorten lines of >= 80 columns.
11067 * arch-utils.c: Ditto.
11068 * arch-utils.h: Ditto.
11070 * ax-general.c: Ditto.
11072 * blockframe.c: Ditto.
11073 * breakpoint.c: Ditto.
11074 * buildsym.c: Ditto.
11076 * c-typeprint.c: Ditto.
11077 * charset.c: Ditto.
11078 * coffread.c: Ditto.
11079 * command.h: Ditto.
11080 * corelow.c: Ditto.
11082 * cp-namespace.c: Ditto.
11083 * cp-support.c: Ditto.
11084 * dbug-rom.c: Ditto.
11085 * dbxread.c: Ditto.
11089 * dictionary.c: Ditto.
11091 * doublest.c: Ditto.
11092 * dwarf2-frame.c: Ditto.
11093 * dwarf2expr.c: Ditto.
11094 * dwarf2loc.c: Ditto.
11095 * dwarf2read.c: Ditto.
11096 * elfread.c: Ditto.
11098 * event-loop.c: Ditto.
11099 * event-loop.h: Ditto.
11100 * exceptions.h: Ditto.
11102 * expprint.c: Ditto.
11103 * expression.h: Ditto.
11105 * f-valprint.c: Ditto.
11106 * findcmd.c: Ditto.
11107 * frame-base.c: Ditto.
11108 * frame-unwind.c: Ditto.
11109 * frame-unwind.h: Ditto.
11113 * gdb-stabs.h: Ditto.
11114 * gdb_assert.h: Ditto.
11115 * gdb_dirent.h: Ditto.
11116 * gdb_obstack.h: Ditto.
11117 * gdbcore.h: Ditto.
11118 * gdbtypes.c: Ditto.
11119 * gdbtypes.h: Ditto.
11120 * inf-ttrace.c: Ditto.
11121 * infcall.c: Ditto.
11125 * inline-frame.h: Ditto.
11126 * language.c: Ditto.
11127 * language.h: Ditto.
11128 * libunwind-frame.c: Ditto.
11129 * libunwind-frame.h: Ditto.
11130 * linespec.c: Ditto.
11131 * linux-nat.c: Ditto.
11132 * linux-nat.h: Ditto.
11133 * linux-thread-db.c: Ditto.
11134 * machoread.c: Ditto.
11135 * macroexp.c: Ditto.
11136 * macrotab.c: Ditto.
11139 * mdebugread.c: Ditto.
11140 * memattr.c: Ditto.
11141 * minsyms.c: Ditto.
11142 * monitor.c: Ditto.
11143 * monitor.h: Ditto.
11144 * objfiles.c: Ditto.
11145 * objfiles.h: Ditto.
11147 * p-typeprint.c: Ditto.
11148 * p-valprint.c: Ditto.
11150 * printcmd.c: Ditto.
11151 * proc-events.c: Ditto.
11153 * progspace.c: Ditto.
11154 * progspace.h: Ditto.
11155 * psympriv.h: Ditto.
11156 * psymtab.c: Ditto.
11158 * regcache.c: Ditto.
11159 * regcache.h: Ditto.
11160 * remote-fileio.c: Ditto.
11162 * ser-mingw.c: Ditto.
11163 * ser-tcp.c: Ditto.
11164 * ser-unix.c: Ditto.
11167 * solib-frv.c: Ditto.
11168 * solib-irix.c: Ditto.
11169 * solib-osf.c: Ditto.
11170 * solib-pa64.c: Ditto.
11171 * solib-som.c: Ditto.
11172 * solib-sunos.c: Ditto.
11173 * solib-svr4.c: Ditto.
11174 * solib-target.c: Ditto.
11176 * somread.c: Ditto.
11178 * stabsread.c: Ditto.
11179 * stabsread.c: Ditto.
11182 * symfile-mem.c: Ditto.
11183 * symfile.c: Ditto.
11184 * symfile.h: Ditto.
11185 * symmisc.c: Ditto.
11188 * target-descriptions.c: Ditto.
11189 * target-memory.c: Ditto.
11192 * terminal.h: Ditto.
11195 * tracepoint.c: Ditto.
11196 * tracepoint.h: Ditto.
11197 * ui-file.c: Ditto.
11198 * ui-file.h: Ditto.
11200 * user-regs.c: Ditto.
11201 * user-regs.h: Ditto.
11203 * valarith.c: Ditto.
11205 * valprint.c: Ditto.
11206 * valprint.h: Ditto.
11211 * xcoffread.c: Ditto.
11212 * xcoffsolib.c: Ditto.
11213 * xcoffsolib.h: Ditto.
11214 * xml-syscall.c: Ditto.
11215 * xml-tdesc.c: Ditto.
11217 2011-01-05 Michael Snyder <msnyder@vmware.com>
11219 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11220 * cli/cli-decode.c: Ditto.
11221 * cli/cli-dump.c: Ditto.
11222 * cli/cli-logging.c: Ditto.
11223 * cli/cli-script.c: Ditto.
11224 * cli/cli-setshow.c: Ditto.
11225 * common/signals.c: Ditto.
11226 * mi/mi-cmd-break.c: Ditto.
11227 * mi/mi-cmd-disas.c: Ditto.
11228 * mi/mi-cmd-stack.c: Ditto.
11229 * mi/mi-cmd-var.c: Ditto.
11230 * mi/mi-cmds.c: Ditto.
11231 * mi/mi-common.h: Ditto.
11232 * mi/mi-console.c: Ditto.
11233 * mi/mi-interp.c: Ditto.
11234 * mi/mi-main.c: Ditto.
11235 * osf-share/cma_attr.c: Ditto.
11236 * osf-share/cma_deb_core.h: Ditto.
11237 * osf-share/cma_debug_client.h: Ditto.
11238 * osf-share/cma_handle.h: Ditto.
11239 * osf-share/cma_mutex.h: Ditto.
11240 * osf-share/cma_stack_int.h: Ditto.
11241 * osf-share/cma_tcb_defs.h: Ditto.
11242 * python/py-auto-load.c: Ditto.
11243 * python/py-breakpoint.c: Ditto.
11244 * python/py-cmd.c: Ditto.
11245 * python/py-frame.c: Ditto.
11246 * python/py-objfile.c: Ditto.
11247 * python/py-param.c: Ditto.
11248 * python/py-progspace.c: Ditto.
11249 * python/py-symbol.c: Ditto.
11250 * python/py-value.c: Ditto.
11251 * python/python-internal.h: Ditto.
11252 * python/python.c: Ditto.
11253 * tui/tui-data.c: Ditto.
11254 * tui/tui-disasm.c: Ditto.
11255 * tui/tui-hooks.c: Ditto.
11256 * tui/tui-io.c: Ditto.
11257 * tui/tui-layout.c: Ditto.
11258 * tui/tui-regs.c: Ditto.
11259 * tui/tui-source.c: Ditto.
11260 * tui/tui-stack.c: Ditto.
11261 * tui/tui-win.c: Ditto.
11262 * tui/tui-windata.c: Ditto.
11263 * tui/tui-winsource.c: Ditto.
11265 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11267 * configure.ac, gdb.1: Copyright year update.
11269 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11271 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11272 this_pc_in_block, morestack_msym and morestack_name. Check for
11273 "__morestack" minimal symbol there.
11275 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11277 * symfile.c (find_sym_fns): Add call to dont_repeat.
11279 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11281 Copyright year update in most files (performed by copyright.sh).
11283 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11285 * top.c (print_gdb_version): Update copyright year in version output.
11287 For older changes see ChangeLog-2010.
11293 version-control: never