1 2011-11-22 Tom Tromey <tromey@redhat.com>
3 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
4 Use static_assert to check the size of
5 async_reason_string_lookup.
6 * common/gdb_assert.h (static_assert): New macro.
8 2011-11-22 Alan Modra <amodra@gmail.com>
10 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
11 destination calculation. Don't expect >> to sign extend. Don't
12 add a break if branch lands inside the sequence anywhere.
14 2011-11-21 Keith Seitz <keiths@redhat.com>
16 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
17 -var-evaluate-expression of an enumeration and fix expected result.
18 * gdb.mi/mi2-varvdisplay.exp: Likewise.
20 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
22 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
23 the case where osdata->items is empty. Rename column names to a
24 canonical form to avoid problems with unusual column names.
26 2011-11-21 Yao Qi <yao@codesourcery.com>
28 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
30 2011-11-20 Stan Shebs <stan@codesourcery.com>
32 * NEWS: Mention tracepoint additions.
33 * breakpoint.h (struct tracepoint): New field traceframe_usage.
34 * breakpoint.c (print_one_breakpoint_location): Identify
35 tracepoints as such when reporting hit counts, report
37 (create_tracepoint_from_upload): Copy status info.
38 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
39 add fields user_name, notes, start_time, stop_time.
40 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
41 * tracepoint.c (trace_user): New global.
42 (trace_notes): New global.
43 (trace_stop_notes): New global.
44 (start_tracing): Add argument and trace note handling.
45 (stop_tracing): Ditto.
46 (trace_start_command): Add notes argument.
47 (trace_stop_command): Ditto.
48 (trace_status_command): Report additional status info.
49 (trace_status_mi): Similarly.
50 (trace_save): Update, record tracepoint status.
51 (set_disconnected_tracing): Call target method directly.
52 (send_disconnected_tracing_value): Remove.
53 (set_trace_user): New function.
54 (set_trace_notes): New function.
55 (set_trace_stop_notes): New function.
56 (parse_trace_status): Handle additional status.
57 (parse_tracepoint_status): New function.
58 (parse_tracepoint_definition): Call it.
59 (tfile_get_tracepoint_status): New function.
60 (init_tfile_ops): Use it.
61 (_initialize_tracepoint): Add new setshows.
62 * target.h (struct target_ops): New methods to_get_tracepoint_status
63 and to_set_trace_notes.
64 (target_get_tracepoint_status): New macro.
65 (target_set_trace_notes): New macro.
66 * target.c (update_current_target): Add new methods.
67 * remote.c (remote_get_tracepoint_status): New function.
68 (remote_set_trace_notes): New function.
69 (init_remote_ops): Add them.
70 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
71 (mi_cmd_trace_stop): Ditto.
73 2011-11-20 Sanjoy Das <sdas@igalia.com>
75 * jit.c: Include regcache.h.
76 (jit_gdbarch_data, jit_frame_unwind): New static variables.
77 (jit_unwind_reg_set_impl, free_reg_value_impl)
78 (jit_unwind_reg_get_impl, jit_frame_sniffer)
79 (jit_frame_unwind_stop_reason, jit_frame_this_id)
80 (jit_frame_prev_register, jit_dealloc_cache)
81 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
82 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
84 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
86 2011-11-20 Sanjoy Das <sdas@igalia.com>
88 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
89 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
90 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
91 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
92 (finalize_symtab, jit_object_close_impl)
93 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
94 (free_objfile_data): New functions.
95 (_initialize_jit): Register jit_objfile_data with a proper cleanup
98 2011-11-20 Sanjoy Das <sdas@igalia.com>
100 * jit.c: Include gdb-dlfcn.h.
101 (loaded_jit_reader, reader_init_fn_sym): New static variables.
102 (jit_reader_load, jit_reader_load_command)
103 (jit_reader_unload_command): New functions.
104 (_initialize_jit): Add commands "jit-reader-load" and
107 2011-11-20 Sanjoy Das <sdas@igalia.com>
109 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
110 * config.in: Add new #define HAVE_LIBDL.
111 * configure.ac: Add check for -ldl.
112 * configure: Re-generated by autoconf.
113 * gdb-dlfcn.c: New file.
114 * gdb-dlfcn.h: New file.
116 2011-11-20 Sanjoy Das <sdas@igalia.com>
118 * config.in: Add new #defines: JIT_READER_DIR and
119 JIT_READER_DIR_RELOCATABLE.
120 * configure.ac: New GDB directory entry for jit-reader-dir.
121 * configure: Re-generated by autoconf.
122 * jit.c: New static variable: const char *jit_reader_dir.
123 (_initialize_jit): Relocate jit_reader_dir.
125 2011-11-20 Sanjoy Das <sdas@igalia.com>
127 * Makefile.in: Add jit-reader.h as a header. Have it installed in
129 * configure.ac: Generate a correct value for TARGET_PTR for
130 jit-reader.h. Tell configure to generate jit-reader.h from
132 * configure: Re-generated by autoconf.
133 * jit-reader.in: New file.
134 * jit.c: Include jit-reader.h.
136 2011-11-20 Sanjoy Das <sdas@igalia.com>
138 * MAINTAINERS (Write After Approval): Add myself to the list.
140 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
142 * findvar.c (read_frame_register_value): Respect value_offset
143 of the register value. Remove big-endian special case.
145 2011-11-18 Tom Tromey <tromey@redhat.com>
148 * remote.c (putpkt_for_catch_errors): New function.
149 (remote_kill): Use it.
151 2011-11-18 Yao Qi <yao@codesourcery.com>
153 * breakpoint.c (create_breakpoint): Produce query message according to
155 Allocate tracepoint per correct type.
156 Don't check SALs for pending fast tracepoints.
157 * tracepoint.c (process_tracepoint_on_disconnect): New.
158 (disconnect_tracing): Call process_tracepoint_on_disconnect.
160 2011-11-18 Yao Qi <yao@codesourcery.com>
162 * breakpoint.c (install_breakpoint): Add one more parameter so that
163 update_global_location_list is called conditionally.
164 (create_fork_vfork_event_catchpoint): Update.
165 (create_syscall_event_catchpoint): Update.
166 (create_breakpoint_sal): Update.
167 (create_breakpoint_sal): Update. Call do_cleanups before
169 * ada-lang.c (create_ada_exception_catchpoint): Update.
170 * breakpoint.h (install_breakpoint): Update declaration.
172 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
174 * spu-tdep.c (spu_return_value): Fix handling of
175 TYPE_CALLING_CONVENTION annotation.
177 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
179 * skip.c (skip_function_command): Work around uninitialized
182 2011-11-16 David S. Miller <davem@davemloft.net>
184 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
185 'tv_usec' to long for printf since these fields have a type which
188 2011-11-15 Doug Evans <dje@google.com>
190 * buildsym.c (add_symbol_to_list): Delete outdated comment.
192 2011-11-15 Paul Koning <paul_koning@dell.com>
194 * python/py-type.c (typy_get_composite): New function.
195 (typy_nonzero): New function.
196 (typy_values): Rename from typy_fields.
197 (typy_fields): New function.
198 (typy_length): Raise exception if not struct, union, or enum type.
199 (typy_getitem): Ditto.
200 (typy_has_key): Ditto.
201 (typy_make_iter): Ditto.
203 2011-11-15 Doug Evans <dje@google.com>
205 * NEWS: Mention new parameter basenames-may-differ.
206 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
207 ! basenames_may_differ.
208 * psymtab.c (lookup_partial_symtab): Ditto.
209 * symtab.c (lookup_symtab): Ditto.
210 (basenames_may_differ): New global.
211 (_initialize_symtab): New parameter basenames-may-differ.
212 * symtab.h (basenames_may_differ): Declare.
214 2011-11-15 Pedro Alves <pedro@codesourcery.com>
215 Luis Machado <lgustavo@codesourcery.com>
217 * auxv.c: Include observer.h.
218 (auxv_inferior_data_cleanup): New.
219 (invalidate_auxv_cache_inf): New.
220 (invalidate_auxv_cache): New.
221 (get_auxv_inferior_data): New.
222 (auxv_inferior_data): New static global.
223 (auxv_info): New structure.
224 (target_auxv_search): Use get_auxv_inferior_data instead of
225 target_read_alloc and don't free cached buffers.
226 (fprint_target_auxv): Likewise
227 (_initialize_auxv): Register per-inferior auxv cache and register
228 observers to invalidate auxv cache when needed.
230 2011-11-14 Doug Evans <dje@google.com>
232 Make "!" an alias for "shell".
234 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
235 adding "!" command, always add it.
236 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
237 command of length one.
239 2011-11-14 Stan Shebs <stan@codesourcery.com>
240 Kwok Cheung Yeung <kcy@codesourcery.com>
242 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
243 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
244 the minimum instruction size for fast tracepoints.
245 * target.h (struct target_ops): Add new method
246 to_get_min_fast_tracepoint_insn_len.
247 (target_get_min_fast_tracepoint_insn_len): New.
248 * target.c (update_current_target): Set up new target operation.
249 * remote.c (remote_write_bytes_aux): Fix typo.
250 (remote_get_min_fast_tracepoint_insn_len): New.
251 (init_remote_ops): Initialize new field.
253 2011-11-14 Tom Tromey <tromey@redhat.com>
255 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
256 (encode_actions): Likewise.
258 2011-11-14 Yao Qi <yao@codesourcery.com>
260 * remote.c (struct remote_state): <install_in_trace> new field.
261 (PACKET_InstallInTrace): New enum value.
262 (remote_install_in_trace_feature): Support InstallInTrace.
263 (remote_supports_install_in_trace): Likewise.
264 (remote_protocol_features): Likewise.
265 (_initialize_remote): Likewise.
266 (remote_can_download_tracepoint): New.
267 * target.h (struct target): New field
268 `to_can_download_tracepoint'.
269 (target_can_download_tracepoint): New macro.
270 * target.c (update_current_target): Update.
271 * breakpoint.h (struct bp_location): Add comment on field
273 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
275 (remove_breakpoints): Don't remove tracepoints.
276 (tracepoint_locations_match ): New.
277 (breakpoint_locations_match): Call it.
278 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
279 (download_tracepoint_locations): New.
280 (update_global_location_list): Call it.
281 * tracepoint.c (find_matching_tracepoint): Delete.
282 (find_matching_tracepoint_location): Renamed from
283 find_matching_tracepoint. Return bp_location rather than
285 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
288 2011-11-14 Yao Qi <yao@codesourcery.com>
290 * target.h (struct target): <to_download_tracepoint> Change type
291 of parameter from tracepoint to bp_location.
292 * target.c (update_current_target): Update.
293 * tracepoint.c (start_tracing): Update.
294 * remote.c (remote_download_tracepoint): Remove loop for each location
297 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
299 * i386-nat.c (i386_insert_hw_breakpoint): Call
300 i386_update_inferior_debug_regs.
301 (i386_remove_hw_breakpoint): Likewise.
303 2011-11-14 Yao Qi <yao@codesourcery.com>
305 * breakpoint.c (init_raw_breakpoint): Call
306 add_location_to_breakpoint to replace duplicated code.
307 (add_location_to_breakpoint): Adjust the breakpoint's
308 address prior to allocating a location.
310 2011-11-12 Matt Rice <ratmice@gmail.com>
312 * macrocmd.c (macro_no_macro_info): New function.
313 (macro_expand_command): Use macro_no_macro_info.
314 (macro_expand_once_command): Ditto.
315 (info_macro_command): Add argument processing,
316 move info_definitions_command here.
317 (_initialize_macrocmd): Remove info definitions command.
318 Add arguments to info macro help text.
319 * NEWS: Replace info definitions command with new info macro options.
321 2011-11-11 Keith Seitz <keiths@redhat.com>
324 * linespec.c (locate_first_half): Keep ':' if it looks
325 like it could be part of a Windows path starting with
328 2011-11-10 Pedro Alves <pedro@codesourcery.com>
330 * linux-nat.c (linux_nat_wait): Don't force waking up the event
331 loop when returning a TARGET_WAITKIND_NO_RESUMED.
333 2011-11-10 Pedro Alves <pedro@codesourcery.com>
335 * target.c (target_waitstatus_to_string): Handle
336 TARGET_WAITKIND_NO_RESUMED.
338 2011-11-10 Doug Evans <dje@google.com>
340 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
342 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
343 (map_partial_symbol_filenames): Ditto. All callers updated.
344 * psymtab.h (map_partial_symbol_filenames): Update prototype.
345 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
346 parameter need_fullname.
348 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
349 * source.c (symtab_to_fullname): Ditto.
351 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
352 * gdb-demangle.h: ... here. New file.
353 * demangle.c: #include "gdb-demangle.h".
354 (_initialize_demangler): Use initialize_file_ftype for prototype.
355 Move "set demangle" and "set asm-demangle" parameters here from utils.c
356 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
358 * utils.c: Update. #include "gdb-demangle.h".
359 * symtab.h (asm_demangle): Delete.
360 (demangle): Move declaration next to use.
361 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
362 * dwarf2read.c: #include "gdb-demangle.h".
363 * gnu-v2-abi.c: Ditto.
364 * jv-typeprint.c: Ditto.
365 * mdebugread.c: Ditto.
366 * p-typeprint.c: Ditto.
367 * stabsread.c: Ditto.
369 (asm_demangle): Delete declaration.
370 * tui/tui-stack.c: #include "gdb-demangle.h".
372 * python/py-type.c (typy_fields_items): Call check_typedef.
374 2011-11-10 Joel Brobecker <brobecker@adacore.com>
376 * findvar.c (read_frame_register_value): Read the correct bytes
377 from registers on big-endian architectures.
379 2011-11-10 Tom Tromey <tromey@redhat.com>
381 * procfs.c (load_syscalls): Make a cleanup.
382 (open_procinfo_files): fd==0 is ok.
384 2011-11-10 Joel Brobecker <brobecker@adacore.com>
386 * procfs.c (iterate_over_mappings): Call do_cleanups before
389 2011-11-09 Doug Evans <dje@google.com>
391 * gdbtypes.c (check_typedef): Document that this function can
394 2011-11-09 Tom Tromey <tromey@redhat.com>
397 * valops.c (value_full_object): Return early if real type is
398 smaller than the enclosing type.
400 2011-11-08 Yao Qi <yao@codesourcery.com>
402 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
404 2011-11-08 Meador Inge <meadori@codesourcery.com>
406 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
407 register when the frame can't be determined.
408 * arm-tdep.c (arm_analyze_prologue): Ditto.
410 2011-11-07 Stan Shebs <stan@codesourcery.com>
412 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
414 2011-11-07 Joel Brobecker <brobecker@adacore.com>
416 * infrun.c (handle_inferior_event): Minor reformatting.
418 2011-11-05 Doug Evans <dje@google.com>
420 * source.c (forget_cached_source_info_for_objfile): Move call to
421 objfile->sf->qf->forget_cached_source_info outside of
422 ALL_OBJFILE_SYMTABS loop.
423 (forget_cached_source_info): Delete unused variable `s'.
425 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
427 * i386-nat.c (dr_ref_count): Remove unused variable.
429 2011-11-05 Doug Evans <dje@google.com>
431 * main.c (captured_main): Set lim_at_start before calling
432 make_command_stats_cleanup.
434 2011-11-04 Doug Evans <dje@google.com>
436 * utils.c: #include "timeval-utils.h".
437 (cmd_stats): Rename start_time to start_cpu_time.
438 New member start_wall_time.
439 (report_command_stats): Report wall time.
440 (make_command_stats_cleanup): Record start wall time.
442 2011-11-04 Tom Tromey <tromey@redhat.com>
444 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
446 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
448 * coff-pe-read.c: Include defs.h before bfd.h.
450 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
454 * python/python.c (python_run_simple_file): Expand tilde in path.
456 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
460 * python/py-type.c (typy_lookup_type): Do not return a type in
461 an exception handler.
463 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
464 Eli Zaretskii <eliz@gnu.org>
466 * linux-nat.c (_initialize_linux_nat): Improve help
467 for `info proc stat', `info proc status', `info proc cwd',
468 `info proc cmdline' and `info proc exe'.
470 2011-11-02 Stan Shebs <stan@codesourcery.com>
472 String collection for tracepoints.
473 * NEWS: Mention string collection.
474 * common/ax.def (tracenz): New bytecode.
475 * ax-gdb.h (trace_string_kludge): Declare.
476 * ax-gdb.c: Include valprint.h and c-lang.h.
477 (trace_string_kludge): New global.
478 (gen_traced_pop): Add string case.
479 (agent_command): Add string case.
480 * tracepoint.h (decode_agent_options): Declare.
481 * tracepoint.c: Include cli-utils.h.
482 (decode_agent_options): New function.
483 (validate_actionline): Call it.
484 (encode_actions_1): Ditto.
485 * target.h (struct target_ops): New method to_supports_string_tracing.
486 (target_supports_string_tracing): New macro.
487 * target.c (update_current_target): Add to_supports_string_tracing.
488 * remote.c (struct remote_state): New field string_tracing.
489 (remote_string_tracing_feature): New function.
490 (remote_protocol_features): New feature tracenz.
491 (remote_supports_string_tracing): New function.
492 (init_remote_ops): Set to_supports_string_tracing.
494 2011-11-02 Pedro Alves <pedro@codesourcery.com>
495 Jan Kratochvil <jan.kratochvil@redhat.com>
497 * linux-nat.c: Include cli/cli-utils.h.
498 (enum info_proc_what): New.
499 (linux_nat_info_proc_cmd): Rename to ...
500 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
501 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
502 status_f and stat_f from WHAT. Throw error on extra parameters.
503 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
504 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
505 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
506 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
507 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
508 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
509 `info proc cmdline', `info proc exe' and `info proc all' as real
510 subcommands of `info proc'.
512 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
514 * Makefile.in: (SFILES): Add skip.c.
515 (HFILES_NO_SRCDIR): Add skip.h.
516 (COMMON_OBS): Add skip.o.
517 * skip.h, skip.c: New.
518 * breakpoint.h (set_default_breakpoint): Remove.
519 (get_sal_arch): Declare.
520 * breakpoint.c: Remove default_breakpoint_valid,
521 default_breakpoint_address, default_breakpoint_symtab,
522 default_breakpoint_line, default_breakpoint_pspace variables.
523 (get_sal_arch): Make public.
524 (set_default_breakpoint): Remove.
525 (parse_breakpoint_sals, create_breakpoint, clear_command,
526 decode_line_spec_1): Remove uses of default_breakpoint variables;
527 replaced with function calls into stack.c.
528 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
529 * cli/cli-cmds.c: Add skiplist.
530 (init_cmd_lists): Initialize skiplist.
531 (init_cli_cmds): Fix comment (classes of commands appear in
533 * infrun.c (handle_inferior_event): Add check that we don't step into
534 a function whose pc is marked for skip.
535 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
536 last_displayed_addr, last_displayed_symtab, last_displayed_line
538 (set_last_displayed_sal): New static function.
539 (print_frame_info): Switch call to set_default_breakpoint to call to
540 set_last_displayed_sal.
541 (clear_last_displayed_sal, last_displayed_sal_is_valid,
542 get_last_displayed_pspace, get_last_displayed_addr,
543 get_last_displayed_symtab, get_last_displayed_line,
544 get_last_displayed_sal): New public functions.
545 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
546 get_last_displayed_pspace, get_last_displayed_addr,
547 get_last_displayed_symtab, get_last_displayed_line,
548 get_last_displayed_sal): Declare.
550 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
552 * MAINTAINERS (Write After Approval): Add myself to the list.
554 2011-10-29 Yao Qi <yao@codesourcery.com>
556 * infcmd.c (disconnect_command): Call disconnect_tracing.
558 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
561 * symtab.c (skip_prologue_sal): Code reformatting.
563 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
566 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
567 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
570 2011-10-28 Pedro Alves <pedro@codesourcery.com>
572 * linux-nat.c (linux_nat_filter_event): Remove `options'
573 parameter, and dead code that used it. If we're handling a
574 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
575 in our lwp list, re-add it.
576 (check_zombie_leaders): New.
577 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
578 wait for children with WNOHANG, and always wait for all children.
579 Don't check for no resumed children upfront. Simplify wait loop.
580 Check for zombie thread group leaders after handling all wait
581 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
582 unwaited-for children left.
583 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
584 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
585 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
586 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
588 2011-10-28 Sterling Augustine <saugustine@google.com>
590 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
591 * symtab.c (free_completion_list): New function.
592 (do_free_completion_list): Likewise.
593 (default_make_symbol_completion_list_break_on): New variable
594 back_to. Call make_cleanup and discard_cleanups.
595 (make_source_files_completion_list): Likewise.
597 2011-10-28 Paul Koning <paul_koning@dell.com>
599 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
600 * NEWS: Mention deep_items.
602 2011-10-28 Alen Skondro <askondro@gmail.com>
604 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
607 2011-10-27 Meador Inge <meadori@codesourcery.com>
609 * MAINTAINERS (Write After Approval): Add myself to the list.
611 2011-10-27 Joel Brobecker <brobecker@adacore.com>
613 * value.h (read_frame_register_value): Add declaration.
614 * findvar.c (read_frame_register_value): New function.
615 (value_from_register): Use read_frame_register_value
616 instead of get_frame_register_value + value_contents_copy
617 to get value contents.
619 2011-10-27 Doug Evans <dje@google.com>
621 * cli/cli-cmds.c (source_script_with_search): Pass full path to
622 source_script_from_stream if it may have been found on the search path.
623 * python/py-auto-load.c (source_section_scripts): Pass full path to
624 source_python_script_for_objfile.
625 * python/python.c (source_python_script): Delete stream parameter.
627 (source_python_script_for_objfile): Ditto.
628 * python/python-internal.h (source_python_script_for_objfile): Update.
629 * python/python.h (source_python_script): Update.
631 2011-10-27 Tom Tromey <tromey@redhat.com>
633 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
634 (ada_sals_for_line): Remove declarations.
636 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
638 Move unwind reasons to an external .def file
639 * frame.c (frame_stop_reason_string): Rewrite using
640 unwind_stop_reasons.def.
641 * frame.h (enum unwind_stop_reason): Likewise.
642 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
643 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
644 constants for bound-checking.
645 * unwind_stop_reasons.def: New file.
646 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
647 instead of a distinct value.
649 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
653 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
654 (convert_values_to_python): Return on Python tuple allocation
655 failure. Return NULL on value conversion error.
657 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
659 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
660 (bppy_set_task): Ditto.
661 (bppy_delete_breakpoint): Ditto.
662 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
663 (gdbpy_lookup_global_symbol): Ditto.
664 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
665 * python/py-frame.c (frapy_is_valid): Ditto.
666 (frame_info_to_frame_object): Ditto.
667 * python/py-type.c (typy_lookup_type): Ditto.
668 (typy_getitem): Ditto.
669 (typy_has_key): Ditto.
670 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
672 2011-10-26 Joel Brobecker <brobecker@adacore.com>
674 * gdbarch.h: Regenerate.
676 2011-10-26 Meador Inge <meadori@codesourcery.com>
678 * gdbarch.sh (function_list): Use 'pstring' when printing
680 * gdbarch.c: Regenerate.
682 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
684 * regcache.c (registers_changed_ptid): Invalidate thread architecture
685 and frame caches if PTID refers to all threads of a process.
687 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
689 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
690 to create_breakpoint.
692 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
694 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
695 (ppc_sysv_abi_push_dummy_call): Use it.
696 (do_ppc_sysv_return_value): Likewise.
697 (ppc64_sysv_abi_push_dummy_call): Likewise.
698 (ppc64_sysv_abi_return_value): Likewise.
700 2011-10-26 Paul Koning <paul_koning@dell.com>
702 * python/lib/gdb/types.py (deepitems): New function.
704 2011-10-25 Paul Koning <paul_koning@dell.com>
708 * python/py-value.c (value_to_value_object): Remove fetching of
709 the value if it was lazy.
710 (valpy_get_is_lazy): New function.
711 (valpy_fetch_lazy): New function.
713 2011-10-24 Joel Brobecker <brobecker@adacore.com>
715 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
716 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
718 2011-10-24 Pedro Alves <pedro@codesourcery.com>
720 * linux-nat.c (linux_handle_extended_wait): When handling a clone
721 event, in non-stop, if not stopping, make sure the new lwp has
722 last_resume_kind set to resume_continue. Assert that when we're
723 resuming the new lwp, its last_resume_kind is resume_continue.
725 2011-10-24 Pedro Alves <pedro@codesourcery.com>
727 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
728 already set when marking the event thread as not executing in
731 2011-10-24 Pedro Alves <pedro@codesourcery.com>
733 * infrun.c (handle_inferior_event): Add debug output for
734 TARGET_WAITKIND_NO_HISTORY.
736 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
738 * NEWS: Move set/show extended-prompt to "New Options". Expand
739 description. Fix typos.
741 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
745 * python/py-param.c (call_doc_function): Correctly deference on
748 2011-10-21 Joel Brobecker <brobecker@adacore.com>
750 * ada-tasks.c (print_ada_task_info): Fix computation of
751 number of tasks displayed in command output.
753 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
754 Ulrich Weigand <uweigand@de.ibm.com>
756 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
757 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
758 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
759 gdbarch_pc_regnum and frame_unwind_register_unsigned by
762 2011-10-20 Cary Coutant <ccoutant@google.com>
764 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
766 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
767 flag. Adjust all callers.
768 (process_psymtab_comp_unit): Remove adjustment for type section.
770 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
772 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
773 arguments by adding OBJFILE. Instead of getting objfile from
774 symbol's symtab, use new argument OBJFILE.
775 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
776 arguments by adding OBJFILE.
777 * gdb/dwarf2read.c (new_symbol_full): Change call to
778 cp_scan_for_anonymous_namespaces to match new signature.
779 * gdb/stabsread.c (define_symbol): Change call to
780 cp_scan_for_anonymous_namespaces to match new signature.
782 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
787 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
789 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
790 leak. Delete unused variables.
792 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
796 * python/py-frame.c (frapy_read_var): Use const struct *block.
797 * python/py-type.c (typy_lookup_typename): Likewise.
798 (typy_lookup_type): Likewise.
799 (typy_legacy_template_argument): Likewise.
800 (typy_template_argument): Likewise.
801 (gdbpy_lookup_type): Likewise.
802 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
803 * python/py-block.c (blpy_block_object): Likewise.
804 (blpy_iter): Likewise.
805 (blpy_get_start): Likewise.
806 (blpy_get_end): Likewise.
807 (blpy_get_function): Likewise.
808 (blpy_get_superblock): Likewise.
809 (set_block): Likewise.
810 (block_to_block_object): Likewise.
811 (block_object_to_block): Likewise.
812 (blpy_is_valid): Likewise.
813 (blpy_get_global_block): New function.
814 (blpy_get_static_block): New function.
815 (blpy_is_global): New function.
816 (blpy_is_static): New function.
817 * blockframe.c (block_innermost_frame): Likewise.
818 * valops.c (value_of_variable): Likewise.
819 * frame.h: Update prototypes.
820 * python/python-internal.h: Likewise.
823 2011-10-19 Cary Coutant <ccoutant@google.com>
825 * dwarf2read.c (create_debug_types_hash_table): Fix size of
828 2011-10-19 Cary Coutant <ccoutant@google.com>
830 * dwarf2read.c (peek_abbrev_code): New function.
831 (dw2_get_file_names): Check for dummy compilation units.
832 (create_debug_types_hash_table): Likewise.
833 (process_psymtab_comp_unit): Likewise.
834 (load_partial_comp_unit): Likewise.
835 (load_full_comp_unit): Likewise.
837 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
839 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
840 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
841 pt_phdr if PT_PHDR was found.
843 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
845 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
846 type or "<unnamed type"> when there is no name assigned.
847 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
848 avoid a sigint when no name is assigned.
850 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
853 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
854 * dwarf2expr.c (ctx_no_read_reg): New function.
855 * dwarf2expr.h (ctx_no_read_reg): New declaration.
856 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
857 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
858 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
860 2011-10-16 Doug Evans <dje@google.com>
862 * NEWS: Document python gdb.printing.register_pretty_printer's new
865 2011-10-14 Keith Seitz <keiths@redhat.com>
868 * eval.c (evaluate_subexp_standard): Do not construct
869 an array of types; pass the value array directly to
871 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
872 (rank_function): Take an array of values instead of types.
873 (rank_one_type): Add struct value * parameter.
874 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
875 (rank_function): For each argument, pass the argument's
876 value to rank_one_type.
877 (rank_one_type): Add VALUE parameter.
878 If the parameter type is a pointer and the argument type
879 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
881 Update all calls to rank_one_type, passing NULL for new
883 * valarith.c (value_user_defined_cpp_op): Do not construct
884 an array of types; pass the value array directly to
886 * valops.c (find_overload_method_list): Take an array of
887 values instead of types.
888 Save the type of OBJP for later use.
889 Update calls to find_oload_champ, and find_oload_champ_namespace.
890 (find_oload_champ_namespace): Take an array of values instead
892 (find_oload_champ_namespace_loop): Likewise.
893 (find_oload_champ): Likewise.
894 (classify_oload_match): Inspect all arguments
895 until INCOMPATIBLE is found. Return the worst badness found
897 (compare_parameters): Update call to rank_one_type.
898 * value.h (find_overload_match): Take an array of values instead
901 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
903 Drop lazy lm_info reading.
904 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
905 l_addr_inferior, l_ld, l_next, l_prev and l_name.
906 (lm_info_read): New function.
907 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
908 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
909 lm_dynamic_from_link_map.
910 (lm_next, lm_prev, lm_name): Remove.
911 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
912 initialization incl. read_memory. No longer use lm_name.
913 (svr4_free_so): Drop lm_info->lm freeing.
914 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
915 explicit lm_addr and lm initialization.
916 (svr4_read_so_list): Use lm_info_read, drop the initailization of
917 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
920 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
921 Paul Pluzhnikov <ppluzhnikov@google.com>
923 * defs.h (struct so_list): New forward declaration.
924 (make_cleanup_free_so): New declaration.
925 * solib-svr4.c (ignore_first_link_map_entry): Remove.
926 (svr4_free_so): Move the function here from downwards. Handle NULL
928 (svr4_free_library_list): New.
929 (svr4_read_so_list): New, moved here code from svr4_current_sos.
930 Use more cleanups. Use new parameter ignore_first instead of
931 ignore_first_link_map_entry.
932 (svr4_current_sos): New variable ignore_first, initialize it. New
933 variable back_to, use it for svr4_free_library_list protection.
934 (svr4_free_so): Remove - move upwards.
935 * utils.c: Include solist.h.
936 (do_free_so, make_cleanup_free_so): New functions.
938 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
940 Fix internal error regression.
941 * value.c (value_primitive_field): Handle value_optimized_out. Move
942 packed bitfields comment.
944 2011-10-13 Tom Tromey <tromey@redhat.com>
946 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
949 2011-10-13 Tom Tromey <tromey@redhat.com>
951 * python/py-type.c (typy_has_key): Make 'field' const.
953 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
955 * remote.c (remote_save_trace_data): Invert comparison.
957 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
959 * tracepoint.c (trace_save_command): Use filename instead of
962 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
964 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
967 2011-10-13 Yao Qi <yao@codesourcery.com>
970 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
971 whether insn is a 32-bit Thumb-2 instruction.
972 (thumb_in_function_epilogue_p): Likewise.
973 (thumb_get_next_pc_raw): Likewise.
974 (arm_breakpoint_from_pc): Likewise.
976 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
978 Fix empty DWARF expressions DATA vs. SIZE conditionals.
979 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
980 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
981 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
982 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
984 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
986 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
987 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
988 clear DATA on zero SIZE.
990 2011-10-12 Doug Evans <dje@google.com>
992 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
993 header->first_die_offset here. All callers updated.
995 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
997 Fix compatibility with texinfo versions older than 4.12.
998 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
999 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1000 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1001 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1002 * configure: Regenerate.
1003 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1004 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1005 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1007 2011-10-12 Gary Benson <gbenson@redhat.com>
1009 * breakpoint.h (pc_at_non_inline_function): Declare.
1010 * breakpoint.c (is_non_inline_function,
1011 pc_at_non_inline_function): New functions.
1012 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1013 if the stop is at a location where functions cannot be inlined.
1015 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1017 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1018 the core wanted them stopped, or if they now have a pending event
1020 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1021 down to stop_and_resume_callback.
1022 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1023 having new pending events after calling linux_nat_filter_event.
1025 2011-10-11 Sterling Augustine <saugustine@google.com>
1027 * dwarf2read.c: Undo inadvertent changes in previous commit.
1029 2011-10-11 Sterling Augustine <saugustine@google.com>
1031 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1034 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1036 * symfile.c (separate_debug_file_exists): Fix condition.
1038 2011-10-11 David S. Miller <davem@davemloft.net>
1040 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1042 * regcache.h (regcache_restore): Remove declaration.
1044 * gdbarch.sh: New field 'long_long_align_bit'.
1045 * gdbarch.c, gdbarch.h: Regenerate.
1046 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1047 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1049 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1051 Revert this part of:
1052 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1053 Support @entry in input expressions.
1054 * c-exp.y (ENTRY, unknown_cpp_name): New.
1055 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1056 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1057 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1058 (name_not_typename: ENTRY): New.
1059 (yylex): Recognize ENTRY.
1061 Reimplement @entry in input expressions.
1062 * c-exp.y (ENTRY): New.
1063 (variable: name_not_typename ENTRY): New.
1064 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1066 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1068 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1069 parent and child's pids as soon as we detect a clone event.
1070 Adjust another debug message.
1072 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1074 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1075 not zombie instead of reading the whole file.
1077 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1079 Fix separate debuginfo warning with "remote:" access.
1080 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1081 * symfile.c (get_file_crc): New function with the code moved from ...
1082 (separate_debug_file_exists): ... this function, specifically variables
1083 buffer and count. New variable verified_as_different, set it. Remove
1084 file_crc initialization. Verify also if both files are not the same
1085 manually, if needed.
1087 2011-10-11 Yao Qi <yao@codesourcery.com>
1089 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1092 2011-10-10 Doug Evans <dje@google.com>
1094 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1095 libthread_db when we load libpthread or the main symbol file.
1096 (thread_db_inferior_created): New function.
1097 (_initialize_thread_db): Attach inferior_created observer.
1098 * linux-nat.c (linux_child_post_attach): Remove call to
1099 check_for_thread_db.
1100 (linux_child_post_startup_inferior): Ditto.
1101 * objfiles.h (OBJF_MAINLINE): Define.
1102 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1103 allocate_objfile when appropriate.
1105 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1108 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1109 Remove unused variables.
1110 (get_linux_version): Remove function.
1111 (_initialize_arm_linux_nat): Do not call it.
1113 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1115 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1116 new clone lwp if the core asked it to stop. Don't pass on
1117 unexpected signals to the new clone; leave them pending instead.
1119 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1121 * linux-nat.c (resume_lwp): Remove redundant debug output.
1123 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1125 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1126 last_resume_kind before clearing it, and use the copy instead to
1127 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1128 resume_clear_callback in the non-stop path too.
1130 2011-10-09 Yao Qi <yao@codesourcery.com>
1132 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1133 Honor OPTIONS and VAL's type.
1134 (common_val_print, value_print): Update to pass one more parameter.
1136 2011-10-09 Doug Evans <dje@google.com>
1138 Add new "alias" command.
1139 * NEWS: Mention new command.
1140 * command.h (valid_user_defined_cmd_name_p): Declare.
1141 * defs.h (make_cleanup_dyn_string_delete): Declare.
1142 * utils.c: #include "dyn-string.h".
1143 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1144 * cli/cli-cmds.c: #include "dyn-string.h".
1145 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1146 (init_cli_cmds): Add new command.
1147 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1149 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1151 Fix compatibility with older GCCs.
1152 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1153 * stack.c (read_frame_arg): Initialize val_deref.
1155 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1157 Entry values NEWS entries, DWARF disassembly support.
1158 * NEWS: New entry values entry.
1159 (set print entry-values, show print entry-values)
1160 (set debug entry-values, show debug entry-values): New entries.
1161 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1162 indent. Remove variable start. Move header printing out. Respect
1163 INDENT. Support DW_OP_GNU_entry_value.
1164 (locexpr_describe_location_1): Move the header printing here, extend
1165 the disassemble_dwarf_expression passed parameters.
1167 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1169 Display @entry parameter values even for references.
1170 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1171 coerce_ref_if_computed.
1172 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1173 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1174 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1175 existing push_dwarf_reg_entry_value call. Add new detection calling
1176 dwarf_block_to_dwarf_reg_deref. Update the error message.
1177 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1179 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1180 parameter deref_size, describe it in the comment.
1181 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1182 (dwarf_block_to_dwarf_reg_deref): New declaration.
1183 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1184 deref_size, describe it in the function comment. New variables
1185 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1186 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1187 describe it in the function comment. Fetch the alternative block
1188 accoring to DEREF_SIZE.
1189 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1190 (entry_data_value_free_closure, entry_data_value_funcs): New.
1191 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1192 outer_val, target_val, val and addr. Try to fetch and create also
1193 referenced value content.
1194 (pieced_value_funcs): NULL value for coerce_ref.
1195 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1196 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1197 coerce_ref_if_computed.
1198 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1199 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1200 * stack.c (read_frame_arg): Compare also dereferenced values.
1201 * value.c (value_computed_funcs): Make the parameter v const, use
1202 value_lval_const for it.
1203 (value_lval_const, coerce_ref_if_computed): New function.
1204 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1205 * value.h (struct lval_funcs): New field coerce_ref.
1206 (value_computed_funcs): Make the parameter v const.
1207 (value_lval_const, coerce_ref_if_computed): New declarations.
1209 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1211 Support @entry in input expressions.
1212 * c-exp.y (ENTRY, unknown_cpp_name): New.
1213 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1214 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1215 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1216 (name_not_typename: ENTRY): New.
1217 (yylex): Recognize ENTRY.
1218 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1219 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1221 * parse.c (operator_length_standard): Likewise.
1222 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1224 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1226 Display referenced values in backtraces.
1227 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1228 * stack.c (print_frame_arg): Likewise.
1230 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1232 Make some lval_funcs methods to default on NULL.
1233 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1235 (value_assign): Check if lval_computed write method is NULL.
1236 * value.h (struct lval_funcs): Comment NULL values for read and write
1239 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1241 Display @entry parameter values (without references).
1242 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1244 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1246 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1248 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1249 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1251 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1252 (loclist_read_variable_at_entry): New function.
1253 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1254 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1255 DW_AT_location, call dwarf_block_to_sp_offset for it.
1256 * frame.h (print_entry_values_no, print_entry_values_only)
1257 (print_entry_values_preferred, print_entry_values_if_needed)
1258 (print_entry_values_both, print_entry_values_compact)
1259 (print_entry_values_default, print_entry_values): New declarations.
1260 (struct frame_arg): New field entry_kind.
1261 (read_frame_arg): New parameter entryargp.
1262 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1263 arg->entry_kind. Optionally print the `@entry' suffix.
1264 (list_args_or_locals): New variable entryarg, initialize it.
1265 Initialize also entry_kind of arg and entryarg. Conditionalize
1266 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
1267 xfree for entryarg.error.
1268 * stack.c (print_entry_values_no, print_entry_values_only)
1269 (print_entry_values_preferred, print_entry_values_if_needed)
1270 (print_entry_values_both, print_entry_values_compact)
1271 (print_entry_values_default, print_entry_values_choices)
1272 (print_entry_values): New variables.
1273 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
1274 print the `@entry' suffix, possibly in combination for
1275 print_entry_values_compact.
1276 (read_frame_arg): New parameter entryargp, new variables entryval,
1277 entryval_error and val_equal. Read in also entryargp, respect
1278 print_entry_values, compare the values using val_equal, fill in also
1279 argp->entry_kind (together with entryargp->entry_kind).
1280 (print_frame_args): New variable entryarg, initialize it.
1281 Conditionalize print_frame_arg for arg, add print_frame_arg for
1282 entryarg. Call xfree for entryarg.error.
1283 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1284 * symtab.h (struct symbol_computed_ops): New field
1285 read_variable_at_entry.
1287 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1290 * frame.h (struct frame_arg): New definition.
1291 (read_frame_arg): New declaration.
1292 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1293 (list_args_or_locals): ... the code here. New variable arg, call
1294 read_frame_arg and list_arg_or_local with it. Unify the
1295 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
1297 * stack.c (print_frame_arg): New functiom from the code of
1299 (read_frame_arg): New function.
1300 (print_frame_args): Remove variable val. New variable arg, call
1301 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
1303 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1305 Protect entry values against self tail calls.
1306 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1307 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1309 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1311 Recognize virtual tail call frames.
1312 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1313 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1314 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1315 * dwarf2-frame-tailcall.c: New file.
1316 * dwarf2-frame-tailcall.h: New file.
1317 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1318 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
1319 REGS.PREV only after CIE execution.
1320 (struct dwarf2_frame_cache): New field tailcall_cache.
1321 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1322 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
1323 parts, try to find entry_cfa_sp_offset. Call
1324 dwarf2_tailcall_sniffer_first.
1325 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1327 (dwarf2_frame_dealloc_cache): New function.
1328 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1329 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1330 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1331 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1332 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1333 * dwarf2loc.c (func_addr_to_tail_call_list)
1334 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1335 (call_site_find_chain_1, call_site_find_chain): New.
1336 * dwarf2loc.h (struct call_site_chain): New.
1337 (call_site_find_chain): New declaration.
1338 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1339 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1340 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1341 * stack.c (frame_info): Support also TAILCALL_FRAME.
1343 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1345 Tail call sites reader implementation.
1346 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1347 fill in TYPE_TAIL_CALL_LIST.
1348 * gdbtypes.h (struct func_type): New field tail_call_list.
1349 (struct call_site): New field tail_call_next.
1350 (TYPE_TAIL_CALL_LIST): New definition.
1352 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1354 Implement basic support for DW_TAG_GNU_call_site.
1355 * block.c: Include gdbtypes.h and exceptions.h.
1356 (call_site_for_pc): New function.
1357 * block.h (call_site_for_pc): New declaration.
1358 * defs.h: Include hashtab.h.
1359 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1361 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1362 ctx_no_push_dwarf_reg_entry_value.
1363 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1364 (dwarf_block_to_dwarf_reg): New function.
1365 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1366 (ctx_no_push_dwarf_reg_entry_value): New function.
1367 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1368 push_dwarf_reg_entry_value.
1369 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1371 * dwarf2loc.c: Include gdbcmd.h.
1372 (dwarf_expr_ctx_funcs): New forward declaration.
1373 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1374 (dwarf_expr_reg_to_entry_parameter)
1375 (dwarf_expr_push_dwarf_reg_entry_value): New.
1376 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1377 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1378 (needs_dwarf_reg_entry_value): New function.
1379 (needs_frame_ctx_funcs): Install it.
1380 (_initialize_dwarf2loc): New function.
1381 * dwarf2loc.h (entry_values_debug): New declaration.
1382 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1383 (read_call_site_scope): New forward declaration.
1384 (process_full_comp_unit): Copy call_site_htab.
1385 (process_die): Support DW_TAG_GNU_call_site.
1386 (read_call_site_scope): New function.
1387 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1388 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1389 (cleanup_htab): Delete.
1390 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1391 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1392 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1393 FIELD_LOC_KIND_DWARF_BLOCK.
1394 * gdbtypes.h (enum field_loc_kind): New entry
1395 FIELD_LOC_KIND_DWARF_BLOCK.
1396 (struct main_type): New loc entry dwarf_block.
1397 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1398 (TYPE_FIELD_DWARF_BLOCK): New.
1399 * python/py-type.c: Include dwarf2loc.h.
1400 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
1401 internal_error call on unknown FIELD_LOC_KIND.
1402 * symtab.h (struct symtab): New field call_site_htab.
1403 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1404 (core_addr_hash, core_addr_eq): New functions.
1406 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1409 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1410 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
1411 calling_convention under func_stuff there.
1412 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1413 (init_type) <TYPE_CODE_FUNC>: Likewise.
1414 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1415 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
1416 * gdbtypes.h (enum type_specific_kind): Change
1417 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1418 (struct main_type) <type_specific>: Change calling_convention to
1419 func_stuff. Move calling_convention to ...
1420 (struct func_type): ... this new struct.
1421 (INIT_FUNC_SPECIFIC): New #define.
1422 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1424 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1426 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1427 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1428 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1429 ctx->ref_addr_size. Handle its invalid value.
1430 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1431 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1432 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1433 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1434 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1435 (dwarf2_per_cu_ref_addr_size): New function.
1437 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1440 * dwarf2read.c (per_cu_header_read_in): New function.
1441 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1442 variables cu_header_local and cu_headerp.
1444 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1446 Fix initial language detection with -readnow.
1447 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1448 * symfile.h (struct quick_symbol_functions): State find_symbol_file
1449 searches only for global symbols.
1451 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1453 Fix printed anonymous struct name.
1454 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1455 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
1456 (anonymous_struct_prefix): New function.
1457 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
1458 (dwarf2_name): Strip for anonymous structs any prefixes.
1460 2011-10-07 Doug Evans <dje@google.com>
1462 * python/lib/gdb/printing.py (register_pretty_printer): New argument
1465 * python/lib/gdb/printing.py: Whitespace cleanup.
1467 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1470 2011-10-07 Pedro Alves <pedro@codesourcery.com>
1472 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1473 * amd64-linux-nat.c (amd64_linux_dr_set_control)
1474 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1475 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1476 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1477 (arm_linux_remove_watchpoint): Adjust.
1478 * i386-linux-nat.c (i386_linux_dr_set_control)
1479 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1480 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1481 (ia64_linux_remove_watchpoint): Adjust.
1482 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1483 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1484 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1485 (ppc_linux_insert_mask_watchpoint)
1486 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1487 (ppc_linux_remove_watchpoint): Adjust.
1488 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1491 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
1493 * windows-nat.c: Include wchar.h to avoid compiler warnings.
1494 (clear_win32_environment): New function for Cygwin to clear out
1496 (windows_create_inferior): Prepare new environment from in_env
1499 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
1502 * python/py-value.c (valpy_call): Check that arguments are
1504 (is_intlike): Remove call to CHECK_TYPEDEF.
1505 (valpy_nonzero): Catch GDB exceptions.
1506 (valpy_absolute): Ditto.
1507 (valpy_lazy_string): Ditto.
1508 (valpy_call): Ditto.
1509 (valpy_get_is_optimized_out): Ditto.
1510 (valpy_long): Ditto.
1511 (valpy_float): Ditto.
1512 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
1513 (valpy_richcompare): Ditto.
1515 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
1517 * inferior.h (disable_randomization): Declare.
1518 * infrun.c (disable_randomization): New global variable.
1519 (show_disable_randomization): New function.
1520 (set_disable_randomization): Likewise.
1521 (_initialize_infrun): Install set/show disable-randomization
1523 * linux-nat.c (disable_randomization): Remove.
1524 (show_disable_randomization): Likewise.
1525 (set_disable_randomization): Likewise.
1526 (_initialize_linux_nat): No longer install set/show
1527 disable-randomization commands here.
1528 (linux_nat_supports_disable_randomization): New function.
1529 (linux_nat_add_target): Install it.
1530 * remote.c (PACKET_QDisableRandomization): New enum value.
1531 (remote_protocol_packets): Support QDisableRandomization.
1532 (_initialize_remote): Likewise.
1533 (remote_supports_disable_randomization): New function.
1534 (init_remote_ops): Install it.
1535 (extended_remote_supports_disable_randomization): New function.
1536 (init_extended_remote_ops): Install it.
1537 (extended_remote_disable_randomization): New function.
1538 (extended_remote_create_inferior_1): Call it.
1539 * target.h (struct target_ops): Add to_supports_disable_randomization.
1540 (target_supports_disable_randomization): Add prototype.
1541 * target.c (target_supports_disable_randomization): New function.
1542 (find_default_supports_disable_randomization): Likewise.
1543 (init_dummy_target): Install it.
1545 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
1547 Allow Python notification of new object-file loadings.
1548 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1549 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1550 Add build rule for this file.
1551 * python/py-event.h (emit_new_objfile_event): New prototype.
1552 (newobjfile): New Python event emitter.
1553 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1554 Python event registry.
1555 * python/py-inferior.c: Include objfiles.h
1556 (python_new_objfile): New function.
1557 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1559 * python/py-newobjfileevent.c: New file.
1560 * python-internal.h (gdbpy_initialize_new_objfile_event): New
1562 * python/python.c (_initialize_python): Add
1563 gdbpy_initialize_new_objfile_event call.
1564 * NEWS: Add item for new Python event "gdb.newobjfile"
1566 2011-10-05 Tristan Gingold <gingold@adacore.com>
1568 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1569 Extract the ravenscar task name from the symbol for the atcb.
1571 2011-10-04 Paul Koning <paul_koning@dell.com>
1573 * python/py-type.c (typy_make_iter): Add forward declaration.
1574 (typy_fields_items): Use the gdb.Type iterator.
1576 2011-10-04 Paul Koning <paul_koning@dell.com>
1578 * NEWS: Add entry for Python gdb.Type mapping methods.
1580 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
1582 PR python/12691: Add the inferior to Python exited event
1583 * python/py-exitedevent.c (create_exited_event_object): Add inferior
1585 * python/py-event.h (emit_exited_event): Likewise
1586 * python/-inferior.c (python_inferior_exit): Likewise
1588 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1590 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1591 in output of -ada-task-info GDB/MI command.
1593 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1595 * ada-lang.h (struct inferior): Declare.
1596 (print_ada_task_info): Add declaration.
1597 * ada-tasks.c (print_ada_task_info): Make non-static.
1598 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1599 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1600 * mi/mi-main.c: #include "ada-lang.h".
1601 (mi_cmd_list_features): Add "ada-task-info" to the list
1602 of supported features.
1603 (mi_cmd_ada_task_info): New function.
1605 2011-10-03 Joel Brobecker <brobecker@adacore.com>
1607 * python/python.c (python_run_simple_file): New function.
1608 (source_python_script, source_python_script_for_objfile):
1609 Replace call to PyRun_SimpleFile by call to
1610 python_run_simple_file.
1612 2011-10-03 Paul Koning <paul_koning@dell.com>
1614 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1615 (value_to_value_object): Fetch value if it was lazy.
1617 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1620 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
1621 Rearrange the code for it.
1623 2011-10-02 Joel Brobecker <brobecker@adacore.com>
1625 * breakpoint.c (bkpt_print_recreate): Add call to
1626 print_recreate_thread.
1628 2011-09-29 Mike Frysinger <vapier@gentoo.org>
1630 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1631 PTRACE_GETFDPIC_INTERP): Define.
1633 2011-09-28 Yao Qi <yao@codesourcery.com>
1635 * symfile.c (add_symbol_file_command): Update message on usage.
1637 2011-09-28 Paul Koning <paul_koning@dell.com>
1639 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1640 (typy_length, typy_get, typy_has_key, typy_make_iter)
1641 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1642 (typy_iterator_iter, typy_iterator_iternext)
1643 (typy_iterator_dealloc): New functions to implement standard
1644 Python mapping methods on gdb.Type object.
1645 (gdb.TypeIterator): New Python type.
1646 * python/python-internal.h (gdbpy_iter_kind): New enum.
1648 2011-09-28 David S. Miller <davem@davemloft.net>
1650 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1651 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1652 * sparc-tdep.c (sparc_complex_floating_p): New function.
1653 (sparc32_store_arguments): Handle complex floats.
1654 (sparc32_extract_return_value): Likewise.
1655 (sparc32_store_return_value): Likewise.
1656 (sparc32_stabs_argument_has_addr): Likewise.
1657 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1658 (sparc64_store_floating_fields): Handle complex floats.
1659 (sparc64_store_arguments): Likewise.
1660 (sparc64_store_return_value): Likewise.
1662 2011-09-28 Eli Zaretskii <eliz@gnu.org>
1664 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1665 before the change on 2006-12-09.
1666 (windows_create_inferior) [!__CYGWIN__]: Restore code that
1667 generates the environment block for CreateProcessA, modulo the
1668 Cygwin-specific parts that are not needed here.
1670 2011-09-27 Tristan Gingold <gingold@adacore.com>
1672 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1673 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1674 (darwin_solib_get_all_image_info_addr_at_init): New function.
1675 (darwin_solib_read_all_image_info_addr): Likewise.
1676 (darwin_solib_create_inferior_hook): Use the above two functions.
1677 * darwin-nat.c (darwin_execvp): Renames retval to res.
1678 (darwin_read_write_inferior): Update comment.
1679 (darwin_read_dyld_info): New function.
1680 (darwin_xfer_partial): Handle DYLD_INFO.
1682 2011-09-27 Stan Shebs <stan@codesourcery.com>
1684 Add return address collection for tracepoints.
1685 * tracepoint.c (encode_actions_1): Add case for $_ret.
1686 (validate_actionline): Check for $_ret.
1687 (trace_dump_actions): Ditto.
1688 * ax-gdb.h (gen_trace_for_return_address): Declare.
1689 * ax-gdb.c: Include arch-utils.h.
1690 (gen_trace_for_return_address): New function.
1691 (agent_command): Add return address special case.
1692 * amd64-tdep.c: Include ax.h and ax-gdb.h.
1693 (amd64_gen_return_address): New function.
1694 (amd64_init_abi): Call it.
1695 * i386-tdep.c: Include ax.h and ax-gdb.h.
1696 (i386_gen_return_address): New function.
1697 (i386_init_abi): Call it.
1698 * arch-utils.h (default_gen_return_address): Declare.
1699 * arch-utils.c (default_gen_return_address): New function.
1700 * gdbarch.sh (gen_return_address): New method.
1701 * gdbarch.h, gdbarch.c: Regenerate.
1703 2011-09-23 Joseph Myers <joseph@codesourcery.com>
1706 * i386-tdep.c (i386_frame_align): New.
1707 (i386_gdbarch_init): Use i386_frame_align.
1709 2011-09-23 Yao Qi <yao@codesourcery.com>
1711 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1714 2011-09-22 Tristan Gingold <gingold@adacore.com>
1716 * fork-child.c (fork_inferior): Add exec_fun parameter.
1717 Call exec_fun or execvp.
1718 * inferior.h: Adjust prototype.
1719 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1720 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1721 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1722 * procfs.c (procfs_create_inferior): Ditto.
1723 * darwin-nat.c (darwin_execvp): New function.
1724 (darwin_create_inferior): Use it.
1726 2011-09-22 Yao Qi <yao@codesourcery.com>
1728 * infrun.c (context_switch): Print debug message when switching to
1731 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
1733 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1734 complex and vector types.
1735 (s390_return_value_convention): Likewise.
1737 (s390_value_from_register): Call check_typedef.
1738 (extend_simple_arg): Likewise.
1739 (alignment_of): Likewise.
1740 (s390_push_dummy_call): Likewise.
1741 (s390_return_value): Likewise.
1743 2011-09-21 Joseph Myers <joseph@codesourcery.com>
1745 * event-top.c (async_disconnect): If an exception is thrown from
1746 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
1748 * top.c (quit_cover): Return void and take no arguments.
1749 * top.h (quit_cover): Update prototype.
1751 2011-09-20 Joseph Myers <joseph@codesourcery.com>
1753 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1754 current_uiout, not uiout.
1756 2011-09-19 Doug Evans <dje@google.com>
1758 * python/py-auto-load.c (source_section_scripts): Fix file
1760 * python/python.c (source_python_script_for_objfile): Tweak comments.
1762 2011-09-18 Yao Qi <yao@codesourcery.com>
1763 Ulrich Weigand <ulrich.weigand@linaro.org>
1765 Support displaced stepping for Thumb 16-bit insns.
1766 * arm-tdep.c (THUMB_NOP) Define.
1767 (thumb_copy_unmodified_16bit): New.
1768 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1769 (thumb_copy_alu_reg): New.
1770 (arm_copy_svc): Move some common code to ...
1771 (install_svc): ... here. New.
1772 (thumb_copy_svc): New.
1773 (install_pc_relative): New.
1774 (thumb_copy_pc_relative_16bit): New.
1775 (thumb_decode_pc_relative_16bit): New.
1776 (thumb_copy_16bit_ldr_literal): New.
1777 (thumb_copy_cbnz_cbz): New.
1778 (cleanup_pop_pc_16bit_all): New.
1779 (thumb_copy_pop_pc_16bit): New.
1780 (thumb_process_displaced_16bit_insn): New.
1781 (thumb_process_displaced_32bit_insn): New.
1782 (thumb_process_displaced_insn): process thumb instruction.
1784 Support displaced stepping for Thumb 32-bit insns.
1785 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1786 (thumb2_copy_preload): New.
1787 (thumb2_copy_copro_load_store): New.
1788 (thumb2_copy_b_bl_blx): New.
1789 (thumb2_copy_alu_imm): New.
1790 (thumb2_copy_load_reg_imm): New.
1791 (thumb2_copy_load_literal): New
1792 (thumb2_copy_block_xfer): New.
1793 (thumb_32bit_copy_undef): New.
1794 (thumb_32bit_copy_unpred): New.
1795 (thumb2_decode_ext_reg_ld_st): New.
1796 (thumb2_decode_svc_copro): New.
1797 (decode_thumb_32bit_store_single_data_item): New.
1798 (thumb_copy_pc_relative_32bit): New.
1799 (thumb_decode_pc_relative_32bit): New.
1800 (decode_thumb_32bit_ld_mem_hints): New.
1801 (thumb2_copy_table_branch): New
1802 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1805 2011-09-18 Yao Qi <yao@codesourcery.com>
1807 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1808 (install_b_bl_blx): Likewise.
1810 2011-09-17 Yao Qi <yao@codesourcery.com>
1812 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1813 (install_load_store): ... this. New.
1814 Change parameter BYTE to SIZE.
1815 (arm_copy_ldr_str_ldrb_strb): Update caller.
1816 (arm_decode_ld_st_word_ubyte): Update caller.
1818 2011-09-17 Yao Qi <yao@codesourcery.com>
1820 * infrun.c (displaced_step_fixup): Move some code ...
1821 (displaced_step_restore): ... here. New function.
1822 (handle_inferior_event): Cleanup displaced stepping state for both
1823 child and parent when get forked or vforked event.
1824 * regcache.c (get_thread_arch_aspace_regcache): New function.
1825 get_thread_arch_regcache (): Call it.
1827 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1829 * ada-tasks.c (print_ada_task_info): New function, merging
1830 short_task_info and info_tasks together. Reimplement using
1831 ui-out instead of printing to stdout directly. Move the code
1832 building and checking the task list here, instead of leaving it
1833 in info_tasks_command.
1834 (info_task): Move the code building and checking the task
1835 list here, instead of leaving it in info_tasks_command.
1836 (info_tasks_command): Delete code building and checking
1837 the task list - moved elsewhere. Update calls to info_tasks
1840 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1842 * ada-tasks.c (info_task): Delete parameter `from_tty'.
1844 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1846 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1848 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1850 * ada-lang.h (ada_build_task_list): Remove parameter
1852 * ada-tasks.c (ada_build_task_list): Remove parameter
1853 `warn_if_null'. Adjust implementation and documentation.
1854 (valid_task_id, ada_get_environment_task)
1855 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1856 (info_tasks_command): Adjust implementation.
1857 (task_command): Likewise.
1858 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1859 to ada_build_task_list.
1861 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1863 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1864 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1865 (ada_tasks_inferior_data_handle): New static global.
1866 (get_ada_tasks_inferior_data): New function.
1867 (ada_get_task_number, get_task_number_from_id, valid_task_id)
1868 (ada_get_environment_task, iterate_over_live_ada_tasks)
1869 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1871 (ada_set_current_inferior_known_tasks_addr): New function.
1872 (read_known_tasks, ada_build_task_list, short_task_info)
1873 (info_tasks, info_task, info_tasks_command, task_command_1)
1874 (task_command, ada_task_list_changed): Adjust.
1875 (ada_tasks_invalidate_inferior_data): New function.
1876 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1877 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1878 * ada-lang.h (struct inferior): Add declaration.
1879 (ada_task_list_changed): Update profile.
1880 * remote-wtx-pd.c: #include "inferior.h".
1881 (switch_to_pd_internal): Update call to ada_task_list_changed.
1883 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1885 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1886 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1887 (atcb_fieldno): Delete these static globals.
1888 (struct ada_tasks_pspace_data): New struct.
1889 (ada_tasks_pspace_data_handle): New static global.
1890 (get_ada_tasks_pspace_data): New function.
1891 (ada_tasks_invalidate_pspace_data): New function.
1892 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1893 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1894 (_initialize_tasks): Create this module's per-progspace
1897 2011-09-16 Joel Brobecker <brobecker@adacore.com>
1899 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1901 2011-09-16 Tristan Gingold <gingold@adacore.com>
1903 * fork-child.c (fork_inferior): Update comment. Use alloca
1904 instead of xmalloc for argv. Move len and shell_command
1905 declarations in the block where they are used.
1906 Only call execvp. Factorize failure code.
1908 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
1911 * parse.c (write_exp_elt): Change argument to pass a pointer of union
1912 `exp_element' instead of an element of the same and make the function
1914 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1915 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1916 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1917 Change argument of `write_exp_elt' function call.
1918 Remove extra spaces from comments.
1919 * parser-defs.h (write_exp_elt): Remove prototype.
1921 2011-09-15 Paul Koning <paul_koning@dell.com>
1923 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1924 count of item appended to list.
1925 * python/py-type.c (typy_fields): Likewise.
1927 2011-09-15 Paul Koning <paul_koning@dell.com>
1929 * MAINTAINERS (Write After Approval): Add myself to the list.
1931 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1934 * linux-fork.c (checkpoint_command): Disallow checkpointing of
1935 processes with multiple threads.
1936 (inf_has_multiple_thread_cb): New function.
1937 (inf_has_multiple_threads): New function.
1939 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1941 PR Python/12692 Add gdb.selected_inferior() to Python interface.
1942 * python/py-inferior.c (GdbMethods): New Python method definition.
1944 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1946 Handle multiple breakpoint hits in Python interface:
1947 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1948 variable to breakpoints.
1949 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1950 bps instead of single breakpoint. Fix some space typos.
1951 * python/py-stopevent.c (create_breakpoint_event_object): Rename
1952 variable to breakpoints.
1954 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1956 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1957 note if the breakpoint is internal.
1959 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
1961 * MAINTAINERS (Write After Approval): Add myself to the list
1963 2011-09-14 Pedro Alves <pedro@codesourcery.com>
1965 * infrun.c (prepare_for_detach, wait_for_inferior)
1966 (fetch_inferior_event): Don't flush the register cache.
1967 * remote.c (struct stop_reply) <regcache>: Add comment.
1969 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1971 Remove excessive DWARF expressions memory duplication.
1972 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1974 (indirect_pieced_value): Remove variable result. Remove variable
1975 back_to and its use for baton.data.
1976 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1978 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1979 Update the function comment.
1981 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1983 * inferior.h (ALL_INFERIORS): New.
1984 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1985 for a stopped thread.
1986 (thread_db_find_new_threads): Look for threads in all inferiors.
1988 2011-09-13 Pedro Alves <pedro@codesourcery.com>
1990 * breakpoint.c (update_watchpoint): Handle the case of the
1991 watchpoint to update not being in the breakpoint list yet.
1992 (hw_watchpoint_use_count): New, factored out from
1993 hw_watchpoint_used_count.
1994 (hw_watchpoint_used_count): Rename to ...
1995 (hw_watchpoint_used_count_others): ... this. Add `except'
1996 parameter. Don't count resources of `except'. Use
1997 hw_watchpoint_use_count.
1999 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2001 * gdbthread.h (enum thread_state): Moved here.
2002 (struct thread_info): Rename `executing_' field to `executing' and
2003 `state_' to `state'.
2004 * thread.c (enum thread_state): Moved to gdbthread.h.
2005 (new_thread, add_thread_silent, delete_thread_1)
2006 (any_live_thread_of_process, thread_alive, set_running)
2007 (set_running, is_thread_state, any_running, is_executing)
2008 (set_executing, finish_thread_state, print_thread_info)
2009 (do_captured_thread_select): Adjust.
2011 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2013 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2014 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2016 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2017 Matt Rice <ratmice@gmail.com>
2021 * interps.c (struct interp) <interpreter_out>: Delete field.
2022 (interp_new): Remove the data and uiout parameters and adjust.
2023 (interp_set): Only set the current_uiout from the interpreter's
2024 uiout after initializing the interpreter. Adjust call to
2026 (interp_ui_out): Adjust to call procs->ui_out_proc.
2027 (interp_data, interp_name): New.
2028 * interps.h (interp_init_ftype): Add `self' parameter.
2029 (interp_ui_out_ftype): New typedef.
2030 (struct interp_procs) <ui_out_proc>: New method pointer.
2031 (interp_new): Remove the data and uiout parameters.
2032 (interp_data, interp_name): Declare.
2033 * tui/tui-interp.c (tui_init): Adjust prototype.
2035 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2036 tui_out here. Adjust call to interp_new.
2037 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2038 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2040 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2041 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2042 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2043 Initialize mi->uiout depending on the mi_version as extracted from
2044 the interpreter's name.
2046 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2047 interp_new. Don't allocate the ui_out's of the interpreters here.
2049 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2051 * solib.c (solib_used): New function.
2052 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2053 by another so_list object before freeing it.
2055 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2058 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2061 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2064 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2065 (amd64_skip_xmm_prologue): ... this new function. Describe its
2066 parameters. No longer use amd64_prologue_line_bug.
2067 * defs.h (producer_is_gcc_ge_4): New declaration.
2068 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2069 (process_full_comp_unit): Update its caller. Remove
2070 amd64_prologue_line_bug initialization.
2071 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2072 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2074 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2076 * linux-nat.h (enum resume_kind): New.
2077 (struct lwp_info) <last_resume_kind>: New field.
2078 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2079 resume_stop on the new lwp.
2080 (add_lwp): Set last_resume_kind as resume_continue by default.
2081 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2082 (resume_lwp): New, factored out from resume_callback. Also check
2083 for pending status in lp->waitstatus.
2084 (resume_callback): Reimplement.
2085 (resume_clear_callback): Set last_resume_kind as resume_stop.
2086 (resume_set_callback): Set last_resume_kind as resume_continue.
2087 (linux_nat_resume, linux_handle_extended_wait): Set
2089 (running_callback): Also check lp->waitstatus for pending events.
2090 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2092 (stop_and_resume_callback): Don't re-resume if the core wanted the
2093 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2094 using an invalidated pointer.
2095 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2096 SIGSTOPs if the core wanted the LWP to stop.
2097 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2098 wanted the lwp to stop. If the core wanted the lwp to stop, and
2099 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2100 of TARGET_SIGNAL_STOP.
2101 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2102 here. Instead, signal the lwp, and set the last_resume_kind to
2105 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2107 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2108 -1 (error), if the lwp exits right after attaching.
2110 2011-09-08 Doug Evans <dje@google.com>
2112 * py-cmd.c: Some minor formatting fixes.
2113 (gdbpy_parse_command_name): Rename text arg to name, make const.
2114 All callers updated.
2115 * python-internal.h (gdbpy_parse_command_name): Update.
2117 * cli/cli-decode.c (add_cmd): Add comment.
2119 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2121 PR breakpoints/12435
2122 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2123 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2124 * dwarf2read.c (process_full_comp_unit): Initialize
2125 amd64_prologue_line_bug.
2126 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2128 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2130 Fix TUI screen corruption.
2131 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2134 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2136 * findvar.c (read_var_value): Never return NULL, throw an error
2137 instead. Update the function comment. State symbol name in the error
2139 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2141 * stack.c (print_frame_args): Likewise.
2142 * valops.c (value_of_variable): Likewise.
2144 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2146 * stack.c (print_frame_args): New variable except. Wrap
2147 read_var_value and common_val_print into TRY_CATCH.
2149 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2151 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2152 caller to value_of_this.
2153 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2155 * valops.c (value_of_this): Remove parameter complain and variable ret.
2156 Update function comment. Never return NULL by this code.
2157 (value_of_this_silent): New function.
2158 * value.h (value_of_this): Remove parameter complain.
2159 (value_of_this_silent): New declaration.
2161 2011-09-07 Yao Qi <yao@codesourcery.com>
2163 * gdbthread.h (struct thread_info): Remove fields
2164 `stepping_through_solib_after_catch' and
2165 `stepping_through_solib_catchpoints'.
2166 * infrun.c (init_thread_stepping_state): Update.
2167 (process_event_stop_test, currently_stepping): Update.
2168 (currently_stepping_or_nexting_callback): Update.
2170 2011-09-07 Yao Qi <yao@codesourcery.com>
2172 * gdbthread.h (struct thread_info): Comment on field
2173 `step_after_step_resume_breakpoint'.
2175 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2177 * remote.c (remote_console_output): Reindent.
2179 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2181 * frame.c (has_stack_frames): Check for currently selected
2184 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2186 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2187 (set_async_annotation_level, set_async_prompt, pop_prompt)
2188 (push_prompt, new_async_prompt): Delete declarations.
2189 * top.h (get_prompt, set_prompt): Change prototype.
2190 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2192 * top.c (command_loop):
2193 (top_prompt): New global.
2194 (get_prefix, set_prefix, get_suffix, ): Delete.
2195 (get_prompt, set_prompt): Rewrite.
2196 (show_new_async_prompt): Rename to ...
2197 (show_prompt): ... this.
2198 (init_main): Adjust. Don't handle --annotate=2 here.
2199 * event-top.c (new_async_prompt): Delete.
2200 (the_prompts): Delete.
2201 (more_to_come): Make static.
2202 (display_gdb_prompt): Use top_level_prompt() to compute the top
2203 level prompt, and don't notify the before_prompt observers
2204 directly here. Always trick readline into not trying to display
2205 the prompt if sync_execution and displaying the primary prompt.
2206 If displaying a local/secondary prompt, always show it, even if
2207 sync_execution is set.
2208 (change_annotation_level): Delete.
2209 (top_level_prompt): New, based on change_annotation_level.
2210 (push_prompt, pop_prompt): Delete.
2211 (async_disable_stdin): No longer pushes prompt.
2212 (command_line_handler): No longer pushes or pops prompt. If more
2213 input is expected, call display_gdb_prompt with an explicit empty
2215 (async_stop_sig): Adjust.
2216 (set_async_annotation_level, set_async_prompt): Delete.
2217 * python/python.c (before_prompt_hook): Adjust.
2219 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2223 * infrun.c (fetch_inferior_event): Check if there's a selected
2224 thread before checking if the selected thread is executing.
2226 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2228 * inf-loop.c (execute_command): Don't check if the current thread
2229 if running before synchronously waiting for command completion.
2230 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2232 (normal_stop): Call async_enable_stdin here.
2233 * inf-loop.c (inferior_event_handler): Don't call
2234 async_enable_stdin, nor handle "set exec-done-display" here.
2236 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2240 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2242 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2244 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2246 * NEWS: Add entry for OpenBSD/NetBSD build failure.
2248 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2250 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2252 2011-09-02 Matt Rice <ratmice@gmail.com>
2255 * event-top.c (cli_command_loop): Replace readline setup with
2256 direct call to display_gdb_prompt.
2257 (display_gdb_prompt): Do not call observer mechanism during
2258 synchronous execution.
2260 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2262 * linux-nat.c (in_pid_list_p): New.
2263 (linux_record_stopped_pid): Delete.
2264 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2265 already attached to the LWP. Return an indication if so.
2266 (linux_nat_filter_event): Adjust.
2267 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2268 returning an indication to ignore this thread.
2270 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2272 * top.c: Include interps.h.
2273 (execute_command): If the target can async, but the interpreter is
2274 in sync mode, synchronously wait for the command to finish before
2276 (execute_command_to_string): Force the interpreter to sync mode.
2277 * infrun.c: Include interps.h.
2278 (fetch_inferior_event): Don't restore the prompt yet if the
2279 interpreter is in sync mode.
2280 * interps.c (interpreter_async): New global.
2281 * interps.h (interpreter_async): Declare.
2282 * inf-loop.c: Include interps.h.
2283 (inferior_event_handler): Don't print the language change or run
2284 breakpoint commands yet if the interpreter in is sync mode.
2285 * main.c (captured_command_loop): Flip the interpreter to async
2287 * cli/cli-script.c: Include interps.h.
2288 (execute_user_command, while_command, if_command): Force the
2289 interpreter to sync mode.
2290 * python/python.c: Include interps.h.
2291 (python_command, execute_gdb_command): Force the interpreter to
2294 2011-09-02 Pedro Alves <pedro@codesourcery.com>
2296 * value.c (show_convenience): Catch errors thrown while printing
2297 each internal variable.
2298 * infrun.c (validate_siginfo_access): New function.
2299 (siginfo_value_read, siginfo_value_write): Call it.
2301 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2304 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2305 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2308 2011-08-29 Yao Qi <yao@codesourcery.com>
2310 * solib-dsbt.c (bfd_lookup_symbol): Removed.
2312 (enable_break2): Update caller.
2313 * solib-frv.c (bfd_lookup_symbol): Removed.
2315 (enable_break2): Update caller.
2316 * solib-pa64.c (bfd_lookup_symbol): Removed.
2318 * solib-svr4.c (bfd_lookup_symbol): Removed.
2319 (cmp_name_and_sec_flags): New.
2320 (enable_break): Update caller.
2321 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2322 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2323 (gdb_bfd_lookup_symbol): New.
2324 * solib.h: Functions declarations.
2326 2011-08-29 Yao Qi <yao@codesourcery.com>
2328 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2331 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2333 Fix TUI stepi on code without symbols.
2334 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2337 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2340 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2341 and the static keyword.
2342 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2343 Make prefix an array.
2344 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2345 * mi/mi-main.c (get_register): Remove stb initialization and the static
2348 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2350 Code cleanup - make mi_opt const.
2351 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2353 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2354 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2355 (mi_cmd_env_dir): Likewise.
2356 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2357 (mi_cmd_target_file_put): Likewise.
2358 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2359 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2360 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2361 (mi_valid_noargs): Make opts const.
2362 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2363 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2364 (mi_cmd_data_read_memory): Likewise.
2365 (mi_cmd_data_read_memory_bytes): Likewise.
2366 (mi_cmd_data_write_memory): Likewise.
2368 2011-08-26 Matt Rice <ratmice@gmail.com>
2370 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2371 bcache_xmalloc, replace bcache_xmalloc with call to
2372 psymbol_bcache_init for psymbol_cache.
2373 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2375 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2377 * inf-loop.c (inferior_event_handler): Add exception_print in
2380 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2382 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2383 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2384 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2385 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2386 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2387 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2388 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2389 * infrun.c (fetch_inferior_event): Call
2390 make_bpstat_clear_actions_cleanup.
2391 * top.c (execute_command): New variable cleanup_if_error, call
2392 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2393 * utils.c (do_bpstat_clear_actions_cleanup)
2394 (make_bpstat_clear_actions_cleanup): New functions.
2396 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2398 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2399 either the parent or the child forks. Rename a couple locals.
2401 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2403 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2404 library call. Avoid reading the `status' local if all waitpid
2407 2011-08-26 Pedro Alves <pedro@codesourcery.com>
2409 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2410 opening /proc/PID/task always succeeds.
2412 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
2414 * linespec.c (symtab_from_filename): Check for the end of string.
2416 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
2419 * varobj.c (cplus_describe_child): Add the keyword
2420 'class' to the output of the method when dealing
2421 with a cast to a base class.
2423 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2425 No functionality change.
2426 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2427 function comment a reference, new variables tp and bs, move here code
2428 from throw_exception.
2429 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2430 describe it in the comment.
2431 * exceptions.c (throw_exception): Remove variable tp, move the code for
2432 bpstat_clear_actions to bpstat_clear_actions.
2434 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
2436 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2437 * linux-nat.c: Include linux-procfs.h.
2438 (linux_proc_get_tgid): Move to ...
2439 * common/linux-procfs.c: ... here. New file.
2440 * common/linux-procfs.h: New file.
2441 * linux-thread-db.c: Include linux-procfs.h.
2442 * Makefile.in: Update dependencies.
2443 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2444 * config/arm/linux.mh: Likewise.
2445 * config/i386/linux.mh: Likewise.
2446 * config/i386/linux64.mh: Likewise.
2447 * config/ia64/linux.mh: Likewise.
2448 * config/m32r/linux.mh: Likewise.
2449 * config/m68k/linux.mh: Likewise.
2450 * config/mips/linux.mh: Likewise.
2451 * config/pa/linux.mh: Likewise.
2452 * config/pa/linux.mh: Likewise.
2453 * config/powerpc/linux.mh: Likewise.
2454 * config/powerpc/ppc64-linux.mh: Likewise.
2455 * config/powerpc/spu-linux.mh: Likewise.
2456 * config/sparc/linux.mh: Likewise.
2457 * config/sparc/linux64.mh: Likewise.
2458 * config/xtensa/linux.mh: Likewise.
2460 2011-08-24 Hui Zhu <teawater@gmail.com>
2462 * tracepoint.c (cond_string_is_same): New function.
2463 (find_matching_tracepoint): Add condition check
2464 by cond_string_is_same.
2466 2011-08-23 Josh Matthews <josh@joshmatthews.net>
2468 Fix build error in Darwin port.
2469 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2471 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2474 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2475 (command_line_is_silent): New function.
2476 (bpstat_do_actions_1): No longer use commands_left, use
2477 command_line_is_silent for commands.
2478 (bpstat_alloc): Remove clearing of commands_left.
2479 (bpstat_stop_status): Remove initialization of commands_left, use
2480 command_line_is_silent.
2481 * breakpoint.h (struct bpstats): Remove commands_left.
2483 2011-08-18 Keith Seitz <keiths@redhat.com>
2486 * cp-name-parser.y (struct demangle_info): Remove unused
2489 (allocate_info): Change return type to struct demangle_info *.
2490 Always allocate a new demangle_info.
2491 Remove unused PREV pointer.
2492 (cp_new_demangle_parse_info): New function.
2493 (cp_demangled_name_parse_free): New function.
2494 (do_demangled_name_parse_free_cleanup): New function.
2495 (make_cleanup_cp_demangled_name_parse_free): New function.
2496 (cp_demangled_name_to_comp): Change return type to
2497 struct demangle_parse_info *.
2498 Allocate a new storage for each call.
2499 (main): Update usage for cp_demangled_name_to_comp
2501 * cp-support.h (struct demangle_parse_info): New structure.
2502 (cp_demangled_name_to_comp): Update API change for
2504 (cp_new_demangle_parse_info): Declare.
2505 (make_cleanup_cp_demangled_name_parse_free): New declaration.
2506 (cp_demangled_name_parse_free): Declare.
2507 * cp-support.c (cp_canonicalize_string): Update API
2508 change for cp_demangled_name_to_comp.
2509 (mangled_name_to_comp): Likewise.
2510 Return struct demangle_parse_info, too.
2511 (cp_class_name_from_physname): Update mangled_name_to_comp
2513 (method_name_from_physname): Likewise.
2514 (cp_func_name): Update API change for cp_demangled_name_to_comp.
2515 (cp_remove_params): Likewise.
2516 * python/py-type.c (typy_legacy_template_argument): Likewise.
2518 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2519 (cp_merge_demangle_parse_infos): Declare.
2520 * cp-support.c (ignore_typedefs): New file global.
2521 (copy_string_to_obstack): New function.
2522 (inspect_type): New function.
2523 (replace_typedefs): New function.
2524 (replace_typedefs_qualified_name): New function.
2525 (cp_canonicalize_string_no_typedefs): New function.
2526 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2527 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2528 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2529 instead of cp_canonicalize_string.
2530 (find_method): Likewise.
2531 (decode_compound): Before looking up the name, call
2532 cp_canonicalize_string_no_typedefs.
2533 (decode_variable): Likewise.
2535 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
2536 Tom Tromey <tromey@redhat.com>
2537 Matt Rice <ratmice@gmail.com>
2539 * python/lib/gdb/prompt.py: New file.
2540 * python/lib/gdb/command/prompt.py: New file.
2541 * NEWS: Document set extended-prompt and gdb.prompt library
2543 2011-08-16 Yao Qi <yao@codesourcery.com>
2545 * tic6x-linux-tdep.c: Move const arrays definition from here...
2546 * tic6x-tdep.c: to here ...
2548 2011-08-14 Yao Qi <yao@codesourcery.com>
2550 * NEWS: New port to Texas Instruments TMS320C6x.
2552 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
2553 Bernd Schmidt <bernds@codesourcery.com>
2554 Yao Qi <yao@codesourcery.com>
2556 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2557 * solib-dsbt.c: New file. Support DSBT shared object.
2558 * tic6x-linux-tdep.c: New file.
2559 * tic6x-tdep.c: New file.
2560 * tic6x-tdep.h: New file.
2562 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
2563 Yao Qi <yao@codesourcery.com>
2565 * remote.c (PACKET_qXfer_fdpic): New enum value.
2566 (remote_protocol_features): Add qXfer:fdpic:read packet.
2567 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2568 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2569 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2571 2011-08-14 Yao Qi <yao@codesourcery.com>
2573 Target description for tic6x.
2574 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2575 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2576 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2577 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2578 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2579 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2580 * features/tic6x-c64xp-linux.xml: New.
2581 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2582 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2583 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2584 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2585 * regformats/tic6x-c64xp.dat,
2586 regformats/tic6x-c62x-linux.dat: Generated.
2587 * regformats/tic6x-c64x-linux.dat,
2588 regformats/tic6x-c64xp-linux.dat: Generated.
2589 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2590 features/tic6x-*.c files.
2591 Add regformats/tic6x-*.dat files.
2593 2011-08-12 Doug Evans <dje@google.com>
2595 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2596 * python/py-symbol.c (sympy_get_type): New function.
2597 (symbol_object_getset): Add "type".
2599 2011-08-12 Pedro Alves <pedro@codesourcery.com>
2603 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2605 (tui_show_register_group): Don't store a byte buffer in the data
2607 (tui_register_format): Skip registers with an empty name.
2608 (tui_get_register): Store a struct value in the data element's
2609 value field instead of a byte buffer holding the raw register
2610 contents. Account for optimized-out and unavailable registers
2611 when comparing register contents.
2613 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2615 * printcmd.c (current_display_number): Update comment.
2616 (disable_current_display_cleanup): Delete.
2617 (do_one_display): Use make_cleanup_restore_integer. Gracefully
2618 catch errors thrown while evaluating and printing the display.
2620 2011-08-09 Tom Tromey <tromey@redhat.com>
2622 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2624 2011-08-09 Pedro Alves <pedro@codesourcery.com>
2626 * elfread.c (elf_symtab_read): Rework comments.
2627 * maint.c (maintenance_command): Ditto.
2628 * somread.c (som_symtab_read): Ditto.
2629 * solib.c (solib_find, solib_map_sections, update_solib_list)
2630 (solib_add, info_sharedlibrary_command, solib_name_from_address)
2631 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2632 (sharedlibrary_command, no_shared_libraries): Ditto.
2633 * solib-irix.c (locate_base, disable_break, enable_break)
2634 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2635 (irix_current_sos, irix_open_symbol_file_object)
2636 (irix_special_symbol_handling): Ditto.
2637 * solib-sunos.c (locate_base, first_link_map_member)
2638 (sunos_current_sos, disable_break, enable_break)
2639 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2641 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2642 (open_symbol_file_object, svr4_current_sos, enable_break)
2643 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2645 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2646 (frv_current_sos, enable_break, frv_special_symbol_handling)
2647 (frv_solib_create_inferior_hook): Ditto.
2648 * solist.h (struct target_so_ops): Extend the comments of the
2649 special_symbol_handling, current_sos and open_symbol_file_object
2652 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
2654 * python/lib/gdb/__init__.py: Auto-load files in command and
2655 function directories.
2656 * python/python.c (finish_python_initialization): Use
2658 * python/lib/gdb/command/pretty_printers.py: Self register
2660 * NEWS: Document auto-loading.
2662 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2664 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2665 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2666 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
2668 2011-08-08 Tom Tromey <tromey@redhat.com>
2670 * breakpoint.c (clean_up_filters): Remove.
2671 (catch_syscall_split_args): Use VEC_cleanup.
2673 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2675 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2676 (main): Uncomment "Demangling error\n".
2678 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
2680 * solib-target.c (segment_attributes): Make them static.
2681 (section_attributes, library_children, library_attributes): Likewise.
2682 (library_list_children, library_list_attributes): Likesise.
2683 (library_list_elements): Likewise.
2685 2011-08-05 Pedro Alves <pedro@codesourcery.com>
2687 * exceptions.c (throw_exception): Don't disable the current
2689 * printcmd.c (disable_current_display_cleanup): New function.
2690 (do_one_display): Install a cleanup to disable the current display
2691 if doing the display throws.
2693 2011-08-05 Eli Zaretskii <eliz@gnu.org>
2695 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2696 initialization of the tp_new member to the corresponding
2697 gdbpy_initialize_* function.
2698 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2699 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2700 * python/py-function.c (gdbpy_initialize_functions): Likewise.
2701 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2702 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2704 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2706 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2707 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2708 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2709 references to current_uiout.
2711 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2713 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2714 (start_event_loop): Use TRY_CATCH instead of catch_errors.
2715 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2716 * top.c (gdb_readline_wrapper): Adjust.
2717 * tui/tui-interp.c (tui_command_loop):
2718 (_initialize_tui_interp): Don't install it.
2720 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2722 * ui-out.h (uiout): Rename to ...
2723 (current_uiout): ... this.
2724 * ui-out.c (uiout): Rename to ...
2725 (current_uiout): ... this.
2726 * ada-lang.c (print_it_exception, print_one_exception)
2727 (print_mention_exception): Adjust.
2728 * breakpoint.c (watchpoint_check): Adjust.
2729 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2730 (default_collect_info, watchpoints_info, print_one_catch_fork)
2731 (print_one_catch_vfork, print_one_catch_syscall)
2732 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2733 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2734 (print_it_watchpoint, print_mention_watchpoint)
2735 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2736 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2737 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2738 (bkpt_print_mention, momentary_bkpt_print_it)
2739 (tracepoint_print_mention, update_static_tracepoint)
2740 (tracepoints_info, save_breakpoints): Adjust.
2741 * cli-out.c (field_separator): Adjust.
2742 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2743 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2744 * frame.c (get_current_frame): Adjust.
2745 * infcmd.c (run_command_1, print_return_value): Adjust.
2746 * inferior.c (inferior_command, info_inferiors_command): Adjust.
2747 * infrun.c (print_end_stepping_range_reason): Adjust.
2748 (print_signal_exited_reason, print_exited_reason): Adjust.
2749 (print_signal_received_reason, print_no_history_reason): Adjust.
2750 * interps.c (interp_set): Adjust.
2751 * osdata.c (info_osdata_command): Adjust.
2752 * progspace.c (maintenance_info_program_spaces_command): Adjust.
2753 * remote-fileio.c (remote_fileio_request): Adjust.
2754 * remote.c (show_remote_cmd): Adjust.
2755 * solib.c (info_sharedlibrary_command): Adjust.
2756 * source.c (print_source_lines_base): Adjust.
2757 * stack.c (print_stack_frame): Adjust.
2758 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2759 * symfile-mem.c (add_vsyscall_page): Adjust.
2760 * symfile.c (load_progress, generic_load)
2761 (print_transfer_performance): Adjust.
2762 * thread.c (info_threads_command, restore_selected_frame)
2763 (thread_command): Adjust.
2764 * top.c (make_cleanup_restore_ui_file): Adjust.
2765 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2766 (print_one_static_tracepoint_marker): Adjust.
2767 * cli/cli-cmds.c (print_disassembly): Adjust.
2768 * cli/cli-decode.c (print_doc_line): Adjust.
2769 * cli/cli-interp.c (safe_execute_command): Adjust.
2770 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2771 (handle_redirections): Adjust.
2772 * cli/cli-script.c (show_user_1): Adjust.
2773 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2774 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2775 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2776 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2777 (mi_cmd_env_dir): Adjust.
2778 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2779 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2780 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2781 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2782 (list_args_or_locals): Adjust.
2783 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2784 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2785 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2786 (mi_cmd_var_list_children, mi_cmd_var_info_type)
2787 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2788 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2789 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2790 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2791 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2792 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2793 (list_available_thread_groups, mi_cmd_list_thread_groups)
2794 (mi_cmd_data_list_register_names)
2795 (mi_cmd_data_list_changed_registers)
2796 (mi_cmd_data_list_register_values, get_register)
2797 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2798 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2799 (mi_cmd_list_target_features, mi_cmd_add_inferior)
2800 (mi_execute_command, mi_load_progress): Adjust.
2801 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2802 * python/py-auto-load.c (print_script, info_auto_load_scripts):
2804 * python/py-breakpoint.c (bppy_get_commands): Adjust.
2805 * tui/tui-interp.c (tui_command_loop): Adjust.
2806 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2808 2011-08-04 Pedro Alves <pedro@codesourcery.com>
2810 * exceptions.c (struct catcher): Remove saved_uiout field.
2811 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2812 no longer save/resvore the global ui_out builder.
2813 (catch_exceptions_with_msg): Save/override/restore the global
2814 ui_out builder manually instead of relying on TRY_CATCH to do it.
2815 (catch_errors): Save/restore the global ui_out builder manually
2816 instead of relying on TRY_CATCH to do it.
2817 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2819 (TRY_CATCH): Adjust.
2820 * cli/cli-interp.c (safe_execute_command): Save/override/restore
2821 the global ui_out builder manually instead of relying on TRY_CATCH
2824 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2826 * breakpoint.c (update_global_location_list): Ensure
2827 invariant 'first loc marked not duplicated and inserted,
2828 following locs marked duplicated/not inserted' is respected
2829 for multiple locations at the same address.
2830 (unduplicated_should_be_inserted) New function.
2831 (swap_insertion) New function.
2833 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2835 * stack.c (print_frame_arguments_choices): Comment typo fix.
2837 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2840 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2841 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2842 argument. Update callers.
2844 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
2847 * doublest.c (convert_doublest_to_floatformat): Pass correct
2848 mantissa length to put_field.
2850 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2852 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2853 exception_print code path.
2854 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
2855 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
2856 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
2858 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2861 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2862 Remove, merge them into ...
2863 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
2864 variable args and its initialization.
2865 (struct print_args_args, print_args_stub): Remove, merge them into
2867 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2869 (do_gdb_disassembly): ... here. Remove variable args and its
2871 (print_frame): Remove variable args and its initialization, new
2872 variable gdbarch and numargs (from print_args_stub), inline here
2873 print_args_stub with a TRY_CATCH.
2874 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2876 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
2877 New variable e, remove variable btargs and its initialization.
2879 2011-08-01 Tristan Gingold <gingold@adacore.com>
2881 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2883 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2885 * breakpoint.c (insert_bp_location): Document return value.
2886 (insert_breakpoint_locations): Fix documentation.
2887 (remove_breakpoints): Add documentation.
2889 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2891 * breakpoint.c (insert_bp_location): Remove disabled_breaks
2892 argument. Update callers.
2894 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2896 * stack.c (print_frame_info): Comment typo fix.
2898 2011-07-29 Sterling Augustine <saugustine@google.com>
2900 * MAINTAINERS (Write After Approval): Add myself to the list.
2902 2011-07-29 Tom Tromey <tromey@redhat.com>
2904 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2905 (library_list_start_segment): Update.
2906 (library_list_start_section): Update.
2908 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
2910 * varobj.c (value_get_print_value): Move hint check later into the
2911 function. Comment function. Free thevalue before reusing it.
2913 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2914 Pedro Alves <pedro@codesourcery.com>
2916 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2918 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
2919 Assert the result kind.
2920 * value.h (value_one): Remove parameter lv.
2922 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2924 Fix crash on lval_computed values.
2925 * valops.c (value_zero): Use not_lval for lval_computed.
2927 2011-07-27 Tom Tromey <tromey@redhat.com>
2929 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2930 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2932 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2934 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2935 "ptype" by their typedefs difference.
2937 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2939 * dwarf2expr.c (ctx_no_read_reg): New function.
2940 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2941 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2942 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2943 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2945 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2947 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2948 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2950 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2951 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2952 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2953 (ctx_no_get_base_type): Move the functions here.
2954 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2955 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2956 (ctx_no_get_base_type): New declarations.
2958 2011-07-27 Tom Tromey <tromey@redhat.com>
2960 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2962 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2963 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2965 2011-07-26 Sterling Augustine <saugustine@google.com>
2967 * cli/cli-dump.c (dump_binary_file): Change parameter type to
2969 (dump_bfd_file): Likewise.
2971 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2973 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2974 (remote_hw_watchpoint_length_limit): New variable.
2975 (_initialize_remote) add set,show cmds for this new variable.
2976 * gdb.texinfo: document these new commands.
2977 * NEWS: Mention these new commands.
2979 2011-07-26 Pedro Alves <pedro@codesourcery.com>
2981 * breakpoint.c (works_in_software_mode_watchpoint): Also return
2982 true for software watchpoints.
2984 2011-07-26 Joel Brobecker <brobecker@adacore.com>
2988 2011-07-26 Tom Tromey <tromey@redhat.com>
2990 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2991 * dwarf2read.c (read_indirect_string_at_offset): New function.
2992 (read_indirect_string): Use it.
2993 (dwarf_decode_macro_bytes): New function, taken from
2994 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
2995 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
2996 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
2998 (struct dwarf2_per_objfile) <macro>: New field.
2999 (dwarf2_elf_names): Add .debug_macro.
3000 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3001 (dwarf2_locate_sections): Handle new section.
3002 (read_file_scope): Handle DW_AT_GNU_macros.
3003 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3005 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3007 * NEWS: Mention dcache configuration.
3008 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3009 (dcache_size, dcache_line_size): New variables.
3010 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3011 (struct dcache_block): Make it expandable.
3012 (struct dcache_struct): New field.
3013 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3014 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3015 (dcache_poke_byte, dcache_print_line): Adjust.
3016 (set_dcache_size, set_dcache_line_size): New functions.
3017 (set_dcache_command, show_dcache_command): New functions.
3018 (_initialize_dcache): Add new commands.
3020 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3022 * progspace.h (struct program_space): Add solib_add_generation.
3023 * infcmd.c (post_create_inferior): Only call solib_add if not
3025 * solib.c (solib_add): Increment solib_add_generation.
3027 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3029 Fix implicit pointer offsets.
3030 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3033 2011-07-25 Tom Tromey <tromey@redhat.com>
3035 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3037 (ada_exception_sal): Make 'ops' const.
3038 (ada_decode_exception_location): Likewise.
3039 (ada_decode_assert_location): Likewise.
3040 (catch_assert_command): Update.
3041 (catch_ada_exception_command): Update.
3042 (create_ada_exception_catchpoint): Make 'ops' const.
3043 * breakpoint.c (set_raw_breakpoint_without_location)
3044 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3046 (create_internal_breakpoint): Update.
3047 (init_raw_breakpoint_without_location): Make 'ops' const.
3048 (init_raw_breakpoint, init_catchpoint)
3049 (create_fork_vfork_event_catchpoint)
3050 (create_syscall_event_catchpoint, init_breakpoint_sal)
3051 (create_breakpoint_sal, create_breakpoints_sal)
3052 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3053 * breakpoint.h (struct breakpoint) <ops>: Now const.
3054 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3057 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3059 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3061 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3063 * breakpoint.h (print_recreate_thread): Declare.
3064 (struct breakpoint): Move step_count, pass_count,
3065 number_on_target, static_trace_marker_id,
3066 static_trace_marker_id_idx ...
3067 (struct tracepoint): ... to this new struct.
3068 (get_tracepoint, get_tracepoint_by_number_on_target)
3069 (get_tracepoint_by_number): Change return type to struct
3071 * breakpoint.c (is_tracepoint_type): New, factored out from
3073 (is_tracepoint): Adjust.
3074 (print_one_breakpoint_location): Cast to struct tracepoint as
3075 necessary, and adjust.
3076 (print_recreate_catch_fork, print_recreate_catch_vfork)
3077 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3078 print_recreate_thread.
3079 (init_breakpoint_sal): New, factored out from
3080 create_breakpoint_sal.
3081 (create_breakpoint_sal): Reimplement.
3082 (create_breakpoint): Allocate a struct tracecepoint if the caller
3083 wanted a tracepoint. Use init_breakpoint_sal and
3085 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3086 (print_recreate_masked_watchpoint)
3087 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3088 (tracepoint_print_one_detail): Adjust.
3089 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3090 Dump the pass count here.
3091 (update_static_tracepoint): Adjust.
3092 (addr_string_to_sals): Adjust.
3093 (create_tracepoint_from_upload): Adjust. Change return type to
3094 struct tracepoint pointer.
3095 (trace_pass_set_count): Change parameter type to struct tracepoint
3096 pointer, and adjust.
3097 (trace_pass_command): Adjust.
3098 (get_tracepoint, get_tracepoint_by_number_on_target)
3099 (get_tracepoint_by_number): Change return type to struct
3100 tracepoint pointer, and adjust.
3101 (print_recreate_thread): New, factored out from save_breakpoints.
3102 (save_breakpoints): Don't print thread and task and passcount
3104 * remote.c (remote_download_tracepoint): Adjust.
3105 * tracepoint.c (trace_actions_command, validate_actionline)
3106 (start_tracing, tfind_1, trace_find_tracepoint_command)
3107 (trace_dump_command): Adjust.
3108 (find_matching_tracepoint): Change return type to struct
3109 tracepoint pointer, and adjust.
3110 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3111 (tfile_trace_find, tfile_fetch_registers): Adjust.
3112 * tracepoint.h (create_tracepoint_from_upload): Change return type
3113 to struct tracepoint pointer.
3114 * ada-lang.c (print_recreate_exception): Call
3115 print_recreate_thread.
3116 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3118 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3120 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3121 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3122 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3123 watchpoint_thread, watchpoint_triggered ...
3124 (struct watchpoint): ... to this new struct.
3125 (is_watchpoint): Declare.
3126 (install_breakpoint): Add new `internal' parameter.
3127 * breakpoint.c (is_watchpoint): Delete declaration.
3128 (set_breakpoint_condition): Handle watchpoints.
3129 (is_watchpoint): Make public.
3130 (watchpoint_in_thread_scope): Change parameter type to struct
3132 (watchpoint_del_at_next_stop): Change parameter type to struct
3133 watchpoint. Remove assertion. Adjust.
3134 (update_watchpoint): Ditto.
3135 (insert_breakpoints, breakpoint_init_inferior)
3136 (watchpoints_triggered, watchpoint_check)
3137 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3138 (bpstat_stop_status, print_one_breakpoint_location)
3139 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3140 to struct watchpoint as necessary, and adjust.
3141 (install_breakpoint): Add `internal' argument. If true, don't
3142 mention the new breakpoint. Use set_breakpoint_number.
3143 (create_fork_vfork_event_catchpoint)
3144 (create_syscall_event_catchpoint): Adjust.
3145 (dtor_watchpoint): New.
3146 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3147 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3148 (print_it_watchpoint, print_mention_watchpoint)
3149 (print_recreate_watchpoint, insert_masked_watchpoint)
3150 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3151 (print_one_detail_masked_watchpoint)
3152 (print_mention_masked_watchpoint)
3153 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3154 necessary, and adjust.
3155 (watch_command_1): Allocate and initialize a struct watchpoint
3156 instead of a struct breakpoint. Use install_breakpoint.
3157 (catch_exec_command_1): Adjust.
3158 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3160 (delete_breakpoint, enable_breakpoint_disp)
3161 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3162 as necessary, and adjust.
3163 (initialize_breakpoint_ops): Install dtor_watchpoint as
3164 watchpoints' dtor method.
3165 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3166 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3167 to struct watchpoint as necessary, and adjust.
3169 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3171 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3172 the the base class ops table.
3173 (catch_exception_breakpoint_ops)
3174 (catch_exception_unhandled_breakpoint_ops)
3175 (catch_assert_breakpoint_ops): Don't statically initialize.
3176 (initialize_ada_catchpoint_ops): New.
3177 (_initialize_ada_language): Call it.
3178 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3179 (bkpt_breakpoint_ops): Forward declare.
3180 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3181 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3182 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3183 (masked_watchpoint_breakpoint_ops)
3184 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3185 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3186 base class ops table.
3187 (null_re_set, null_check_status, null_works_in_software_mode)
3188 (null_resources_needed, null_print_one_detail): Delete.
3189 (bkpt_dtor): Rename to ...
3190 (base_breakpoint_dtor): ... this. Make static.
3191 (bkpt_allocate_location): Rename to ...
3192 (base_breakpoint_allocate_location): ... this. Make static.
3193 (base_breakpoint_re_set): New.
3194 (internal_error_pure_virtual_called): New.
3195 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3196 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3197 (base_breakpoint_works_in_software_mode)
3198 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3199 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3200 (base_breakpoint_print_recreate): New functions.
3201 (base_breakpoint_ops): New global.
3202 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3203 (bkpt_breakpoint_hit): Make static.
3204 (bkpt_check_status): Delete.
3205 (bkpt_resources_needed): Make static.
3206 (bkpt_works_in_software_mode): Delete.
3207 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3209 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3210 (momentary_breakpoint_ops): Don't statically initialize.
3211 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3213 (tracepoint_insert_location, tracepoint_remove_location)
3214 (tracepoint_check_status, tracepoint_works_in_software_mode)
3215 (tracepoint_print_it): Delete.
3216 (tracepoint_breakpoint_ops): Don't statically initialize.
3217 (initialize_breakpoint_ops): New.
3218 (_initialize_breakpoint): Call it.
3219 * breakpoint.h (null_re_set, null_works_in_software_mode)
3220 (null_resources_needed, null_check_status, null_print_one_detail):
3221 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3222 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3223 (bkpt_check_status, bkpt_resources_needed)
3224 (bkpt_works_in_software_mode, bkpt_print_it)
3225 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3226 Delete declarations.
3227 (initialize_breakpoint_ops): Declare.
3229 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3231 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3232 (momentary_bkpt_print_it): Simplify.
3234 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3236 Split internal, momentary and user breakpoints breakpoint_ops
3239 * breakpoint.c (internal_breakpoint_ops)
3240 (momentary_breakpoint_ops): Forward declare.
3241 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3242 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3243 (create_overlay_event_breakpoint)
3244 (create_std_terminate_master_breakpoint)
3245 (create_exception_master_breakpoint): Create breakpoints with
3246 internal_breakpoint_ops vtable.
3247 (set_longjmp_breakpoint): Create momentary breakpoints with
3248 momentary_breakpoint_ops vtable, using
3249 momentary_breakpoint_from_master.
3250 (create_thread_event_breakpoint, create_jit_event_breakpoint)
3251 (create_solib_event_breakpoint): Create breakpoints with
3252 internal_breakpoint_ops vtable.
3253 (set_momentary_breakpoint): Create breakpoints with
3254 momentary_breakpoint_ops vtable.
3255 (momentary_breakpoint_from_master): New, factored out from
3256 clone_momentary_breakpoint.
3257 (clone_momentary_breakpoint): Adjust.
3258 (watch_command_1): Create scope breakpoints with
3259 momentary_breakpoint_ops vtable.
3260 (bkpt_re_set): Remove handling of internal and momentary
3262 (bkpt_print_mention, bkpt_print_recreate): New.
3263 (bkpt_breakpoint_ops): Adjust.
3264 (internal_bkpt_re_set, internal_bkpt_check_status)
3265 (internal_bkpt_print_it, internal_bkpt_print_mention)
3266 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3267 (momentary_bkpt_re_set, momentary_bkpt_check_status)
3268 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3269 (momentary_bkpt_print_recreate): New.
3270 (momentary_breakpoint_ops): New.
3272 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3274 Implement most breakpoint_ops methods for all breakpoint types,
3275 and move the default handlings to the proper callbacks.
3277 * breakpoint.c (update_watchpoint): Always call the breakpoint's
3278 works_in_software_mode method.
3279 (insert_bp_location): Go through breakpoint_ops->insert_location
3280 for software and hardware watchpoints.
3281 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3283 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3284 for software and hardware watchpoints.
3285 (print_it_typical): Delete.
3286 (print_bp_stop_message): Always call the breakpoint_ops->print_it
3288 (watchpoint_check): Adjust comment.
3289 (bpstat_check_location): Simply always call the breakpoint's
3290 breakpoint_hit method.
3291 (bpstat_stop_status): Always call the breakpoint's check_status
3292 method. Remove special cases for watchpoints and internal event
3293 breakpoints from here (moved to the check_status implementations).
3294 (print_one_breakpoint_location): Assume b->ops is never NULL.
3295 Remove static tracepoint marker id printing from here (moved to
3296 the print_one_detail callback implementation of tracepoints).
3297 (init_bp_location): Assert OPS is never NULL.
3298 (allocate_bp_location): Always call the breakpoint's
3299 allocate_location method, and remove the default code from here.
3300 (free_bp_location): Always call the location's dtor method, and
3301 remove the default code from here.
3302 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3303 (set_raw_breakpoint_without_location): Add new breakpoint_ops
3304 parameter. Pass it down.
3305 (set_raw_breakpoint): Ditto.
3306 (print_it_catch_fork): Adjust to take a bpstat as argument.
3307 (catch_fork_breakpoint_ops): Install methods.
3308 (print_it_catch_vfork): Adjust to take a bpstat as argument.
3309 (catch_vfork_breakpoint_ops): Install methods.
3310 (dtor_catch_syscall): Call the base dtor.
3311 (print_it_catch_syscall): Adjust to take a bpstat as argument.
3312 (catch_syscall_breakpoint_ops): Install methods.
3313 (dtor_catch_exec): Call the base dtor.
3314 (print_it_catch_exec): Adjust to take a bpstat as argument.
3315 (catch_exec_breakpoint_ops): Install methods.
3316 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3317 the breakpoint's resources_needed method, and remove the default
3319 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3321 (clone_momentary_breakpoint): Clone the original's ops.
3322 (mention): Always call the breakpoint's print_mention method, and
3323 remove the default code from here.
3324 (create_breakpoint_sal): Adjust to pass the ops to
3325 set_raw_breakpoint rather than setting it manually.
3326 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
3327 ops to set_raw_breakpoint_without_location rather than setting it
3329 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3330 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3331 (ranged_breakpoint_ops): Install methods.
3332 (break_range_command): Adjust to pass the ops to
3333 set_raw_breakpoint rather than setting it manually.
3334 (re_set_watchpoint, breakpoint_hit_watchpoint)
3335 (check_status_watchpoint, resources_needed_watchpoint)
3336 (works_in_software_mode_watchpoint, print_it_watchpoint)
3337 (print_mention_watchpoint, print_recreate_watchpoint): New
3339 (watchpoint_breakpoint_ops): Install new methods.
3340 (print_it_masked_watchpoint): New function.
3341 (masked_watchpoint_breakpoint_ops): Install new methods.
3342 (watch_command_1): Adjust to pass the right breakpoint_ops to
3343 set_raw_breakpoint_without_location rather than setting it
3344 manually later. Record the current pspace.
3345 (print_it_exception_catchpoint): Adjust to take a bpstat as
3347 (gnu_v3_exception_catchpoint_ops): Install new methods.
3348 (say_where): New function.
3349 (null_re_set, null_check_status, null_works_in_software_mode)
3350 (null_resources_needed, null_print_one_detail, bp_location_dtor):
3352 (bp_location_ops): New global.
3353 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3354 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3355 (bkpt_check_status, bkpt_resources_needed)
3356 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3357 (bkpt_print_recreate): New functions.
3358 (bkpt_breakpoint_ops): New global.
3359 (tracepoint_re_set, tracepoint_insert_location)
3360 (tracepoint_remove_location, tracepoint_breakpoint_hit)
3361 (tracepoint_check_status, tracepoint_works_in_software_mode)
3362 (tracepoint_print_it, tracepoint_print_one_detail)
3363 (tracepoint_print_mention, tracepoint_print_recreate): New
3365 (tracepoint_breakpoint_ops): New global.
3366 (delete_breakpoint): Always call the breakpoint's dtor method, and
3367 remove the default handling from here.
3368 (breakpoint_re_set_default): Make static.
3369 (breakpoint_re_set_one): Always call the breakpoints re_set
3370 method, and remove the default handling from here.
3371 (trace_command, ftrace_command, strace_command)
3372 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3373 to create_breakpoint.
3374 (save_breakpoints): Always call the breakpoint's print_recreate
3375 method, and remove the default handling from here.
3377 * ada-lang.c (dtor_exception): Call the base dtor.
3378 (re_set_exception): Call the base method.
3379 (print_it_exception, print_it_catch_exception): Adjust to take a
3381 (catch_exception_breakpoint_ops): Install methods.
3382 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3384 (catch_exception_unhandled_breakpoint_ops): Install methods.
3385 (print_it_catch_assert): Adjust to take a bpstat as argument.
3386 (catch_assert_breakpoint_ops): Install methods.
3388 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3389 to take a bpstat as argument.
3390 (enum print_stop_action): Add describing comments to each enum
3392 (breakpoint_re_set_default): Delete declaration.
3393 (null_re_set, null_works_in_software_mode, null_resources_needed)
3394 (null_check_status, null_print_one_detail): Declare.
3395 (bkpt_breakpoint_ops): Declare.
3396 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3397 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3398 (bkpt_check_status, bkpt_resources_needed)
3399 (bkpt_works_in_software_mode, bkpt_print_it)
3400 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3403 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3404 bkpt_breakpoint_ops.
3405 * python/py-breakpoint.c (bppy_init): Ditto.
3407 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3409 * MAINTAINERS (Write After Approval): Add myself to the list.
3411 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
3413 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3415 2011-07-22 Pedro Alves <pedro@codesourcery.com>
3417 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3418 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3419 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3421 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3422 (struct i386_debug_reg_state): New.
3423 (i386_init_dregs): New.
3425 (i386_cleanup_dregs): Use i386_init_dregs.
3426 (i386_show_dr): Add state parameter and adjust.
3427 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
3429 (i386_remove_aligned_watchpoint): Likewise.
3430 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3431 (i386_update_inferior_debug_regs): New.
3432 (i386_insert_watchpoint): Work on a local mirror of the debug
3433 registers, and only update the inferior on success.
3434 (i386_remove_watchpoint): Ditto.
3435 (i386_region_ok_for_watchpoint): Adjust.
3436 (i386_stopped_data_address): Adjust.
3437 (i386_insert_hw_breakpoint): Adjust.
3438 (i386_remove_hw_breakpoint): Adjust.
3440 2011-07-22 Tom Tromey <tromey@redhat.com>
3442 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3443 from amd64_pseudo_register_read. Change arguments. Call
3444 mark_value_bytes_unavailable when needed.
3445 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3446 set_gdbarch_pseudo_register_read.
3447 * sentinel-frame.c (sentinel_frame_prev_register): Use
3448 regcache_cooked_read_value.
3449 * regcache.h (regcache_cooked_read_value): Declare.
3450 * regcache.c (regcache_cooked_read_value): New function.
3451 (regcache_cooked_read): Call
3452 gdbarch_pseudo_register_read_value if available.
3453 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3454 (i386_pseudo_register_read): Remove.
3455 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3456 i386_pseudo_register_read. Change arguments. Call
3457 mark_value_bytes_unavailable when needed.
3458 (i386_pseudo_register_read_value): New function.
3459 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3460 not set_gdbarch_pseudo_register_read.
3461 * gdbarch.sh (pseudo_register_read_value): New method.
3462 * gdbarch.c, gdbarch.h: Rebuild.
3463 * findvar.c (value_from_register): Call get_frame_register_value.
3465 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
3467 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3469 (display_gdb_prompt): Likewise.
3470 (change_annotation_level): Likewise.
3471 (push_prompt): Likewise.
3472 (pop_prompt): Likewise.
3473 (handle_stop_sig): Use get_prompt with a level.
3474 * top.c (command_loop): Use get_prompt with a level.
3475 (set_async_annotation_level): Use set_prompt with a level.
3476 (get_prefix): New function.
3477 (set_prefix): Ditto.
3478 (set_suffix): Ditto.
3479 (get_suffix): Ditto.
3480 (get_prompt): Accept a level argument.
3481 (set_prompt): Accept a level argument. Free old prompts. Set
3482 new_async_prompt if level is 0.
3483 (init_main): Use set_prompt with a level. Do not set
3485 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3486 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3487 Modify set_prompt, get_prompt to account for levels.
3488 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3490 * python/python.c (before_prompt_hook): Use set_prompt.
3492 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
3494 * defs.h: Add guard against inclusion in gdbserver.
3495 (struct ptid, ptid_t): Move to common/ptid.h.
3496 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3497 xsnprintf, internal_error): Move to common/common-utils.h.
3499 * gdb_assert.h: Move into common/ sub-directory.
3500 * gdb_locale.h: Ditto.
3501 * gdb_dirent.h: Ditto.
3502 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3503 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3504 Move into common/ptid.h.
3505 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3506 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3507 Change nomem to malloc_failure.
3508 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3509 * utils.c (nomem): Rename to malloc_failure.
3510 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3511 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3512 (gdb_buildargv): Change nomem to malloc_failure.
3513 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3514 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3515 ptid_is_pid): Move into common/ptid.c.
3516 (initialize_infrun): Delete initialization of null_ptid and
3518 * linux-nat.c (linux_nat_xfer_osdata): Defer to
3519 linux_common_xfer_osdata.
3520 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3521 common/ptid.c and common/buffer.c.
3522 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3523 common/ptid.h, common/buffer.h and common/linux-osdata.h.
3524 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3525 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3527 * common/gdb_assert.h: New.
3528 * common/gdb_dirent.h: New.
3529 * common/gdb_locale.h: New.
3530 * common/buffer.c: New.
3531 * common/buffer.h: New.
3532 * common/ptid.c: New.
3533 * common/ptid.h: New.
3534 * common/xml-utils.c: New.
3535 * common/xml-utils.h: New.
3536 * common/common-utils.c: New.
3537 * common/common-utils.h: New.
3538 * common/linux-osdata.c: New.
3539 * common/linux-osdata.h: New.
3540 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3541 * config/arm/linux.mh (NATDEPFILES): Ditto.
3542 * config/i386/linux.mh (NATDEPFILES): Ditto.
3543 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3544 * config/ia64/linux.mh (NATDEPFILES): Ditto.
3545 * config/m32r/linux.mh (NATDEPFILES): Ditto.
3546 * config/m68k/linux.mh (NATDEPFILES): Ditto.
3547 * config/mips/linux.mh (NATDEPFILES): Ditto.
3548 * config/pa/linux.mh (NATDEPFILES): Ditto.
3549 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3550 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3551 * config/s390/s390.mh (NATDEPFILES): Ditto.
3552 * config/sparc/linux.mh (NATDEPFILES): Ditto.
3553 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3554 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3556 2011-07-21 Matt Rice <ratmice@gmail.com>
3558 * NEWS: Add info macros and info definitions commands.
3560 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3562 * NEWS: Document Python prompt substitution hook.
3564 2011-07-18 Matt Rice <ratmice@gmail.com>
3567 * macrotab.h (macro_callback_fn): Add new arguments to callback.
3568 * macrotab.c (foreach_macro): Ditto.
3569 (foreach_macro_in_scope): Ditto.
3570 * macrocmd.c (print_macro_callback): New function.
3571 (info_macro_command): Move some code to print_macro_definition.
3572 (print_macro_definition): New function.
3573 (print_one_macro): Add new arguments to callback.
3574 (info_definitions_command): New function.
3575 (info_macros_command): Ditto.
3576 (_initialize_macrocmd): Add info macros and info definitions commands.
3577 * symtab.c (add_macro_name): Add new arguments to callback.
3579 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
3580 Tom Tromey <tromey@redhat.com>
3582 * top.c (set_prompt): Rewrite to free previous prompt, free
3583 asynch_new_prompt and set both on new prompts.
3584 * event-top.c (display_gdb_prompt): Add prompt substitution
3586 * python/python.c (before_prompt_hook): New function.
3588 2011-07-20 Matt Rice <ratmice@gmail.com>
3590 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3591 arguments to store_unsigned_integer.
3593 2011-07-20 Tom Tromey <tromey@redhat.com>
3595 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3596 in some declaration-only cases.
3598 2011-07-18 Tom Tromey <tromey@redhat.com>
3601 * dwarf2read.c (dwarf2_section_info_def): New typedef.
3602 (struct dwarf2_per_objfile) <types>: Change to a VEC.
3603 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3604 <debug_type_section>: New field.
3605 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3606 (load_cu): Use appropriate section.
3607 (create_signatured_type_table_from_index): Add 'section'
3609 (dwarf2_read_index): Only allow a single .debug_types section.
3610 (dw2_get_file_names): Use appropriate section.
3611 (read_type_comp_unit_head): Add 'section' argument.
3612 (create_debug_types_hash_table): Loop over all .debug_types
3614 (init_cu_die_reader): Use appropriate section.
3615 (process_psymtab_comp_unit, load_partial_comp_unit)
3616 (load_full_comp_unit, read_die_and_children, find_partial_die)
3617 (lookup_die_type, determine_prefix, follow_die_offset): Update.
3618 (lookup_signatured_type_at_offset): Add 'section' argument.
3619 (read_signatured_type_at_offset): Add 'sect' argument.
3620 (read_signatured_type): Use appropriate section.
3621 (set_die_type, get_die_type_at_offset): Update.
3622 (dwarf2_per_objfile_free): Free all .debug_types sections, and
3624 (write_psymtabs_to_index): Don't allow index with more than one
3625 .debug_types section.
3627 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3629 Fix crash if referenced CU is aged out.
3630 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3631 xfree of block.data.
3632 (indirect_pieced_value): New variable back_to, use to for xfree of
3634 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3636 * dwarf2read.c (dwarf2_find_base_address): New prototype.
3637 (load_cu): New function from ...
3638 (dw2_do_instantiate_symtab): ... the code here ...
3639 (process_full_comp_unit): ... and here.
3640 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
3643 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3645 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3648 2011-07-19 Gary Benson <gbenson@redhat.com>
3650 * infrun.c (struct execution_control_state): New member
3651 stop_func_filled_in.
3652 (clear_stop_func, fill_in_stop_func): New functions.
3653 (handle_inferior_event): Call clear_stop_func rather than
3654 manipulating the execution control state directly.
3655 Call fill_in_stop_func lazily as required rather than
3656 directly calling find_pc_partial_function in all cases.
3658 2011-07-18 Tom Tromey <tromey@redhat.com>
3660 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3661 checking for variable-sized array.
3663 2011-07-18 Jean-Charles Delay <delay@adacore.com>
3665 * varobj.h (varobj_languages): Add vlang_ada definition to the list
3666 of supported languages.
3667 * varobj.c: Add top definitions and basic implementation of the
3668 following callbacks: ada_number_of_children, ada_name_of_variable,
3669 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3670 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3671 (languages): Register Ada-specific callbacks.
3672 (variable_language): Add the Ada case in the language setter switch.
3674 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3676 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3678 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3681 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3682 (execute_stack_op): Use dwarf2_frame_ctx_funcs
3683 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3684 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3685 get_frame_cfa, get_tls_address and dwarf_call via funcs.
3686 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3687 (struct dwarf_expr_context_funcs): New, move here methods from ...
3688 (struct dwarf_expr_context): ... here. New fields funcs.
3689 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3690 (dwarf_expr_ctx_funcs): New.
3691 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3692 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3693 (needs_frame_ctx_funcs): New.
3694 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3696 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3698 * MAINTAINERS (Write After Approval): Add myself to the list.
3700 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
3702 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3703 that CIE pointer of an FDE really points to a CIE .
3705 2011-07-15 Hui Zhu <teawater@gmail.com>
3707 * remote.c (remote_get_trace_status): Add comments.
3709 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3711 Code cleanup - constify struct lval_funcs.
3712 * dwarf2loc.c (pieced_value_funcs): Make it const.
3713 * infrun.c (siginfo_value_funcs): Likewise.
3714 * opencl-lang.c (opencl_value_funcs): Likewise.
3715 * valops.c (value_assign, value_ind): Make the funcs variable const.
3716 * value.c (struct value): Make location.computed.funcs target const.
3717 Rearrange the comments.
3718 (allocate_computed_value): Make the funcs parameter target const.
3719 (value_computed_funcs): Return the funcs target const.
3720 (value_free, value_copy, set_value_component_location): Make the funcs
3722 * value.h (allocate_computed_value): Make the funcs parameter target
3724 (value_computed_funcs): Return the funcs target const.
3725 * windows-tdep.c (tlb_value_funcs): Make it const.
3727 2011-07-14 Hui Zhu <teawater@gmail.com>
3729 * remote.c (remote_get_trace_status): Initialize p.
3731 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3734 * remote.c (remote_get_trace_status): New variable ex. Put
3735 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
3737 2011-07-13 Tom Tromey <tromey@redhat.com>
3739 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3740 value_from_contents for final conversion.
3742 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3745 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3746 Indent prototypes so they do not get into tags.
3748 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3750 Code cleanup making also optimized out values lazy.
3751 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3752 allocate_optimized_out_value. Twice.
3753 (loclist_read_variable) Use allocate_optimized_out_value. Once.
3754 * findvar.c (read_var_value): Likewise.
3755 * value.c (allocate_optimized_out_value): New function.
3756 * value.h (allocate_optimized_out_value): New declaration.
3758 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3760 Fix occasional crash of CTRL-C during DWARF read in.
3761 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3763 2011-07-11 Tom Tromey <tromey@redhat.com>
3765 * regcache.c (struct regcache_descr): Fix typo.
3766 * i387-tdep.c (i387_supply_xsave): Fix typo.
3768 2011-07-11 Tom Tromey <tromey@redhat.com>
3770 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3771 (read_file_scope, read_type_unit_scope): Use it.
3773 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3775 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3778 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3781 * python/python.c: Set gdbpy_should_print_stack default to off.
3782 (set_python): Deprecate maint set python print-stack to
3784 (_initialize_python): Deprecate maint set/show python print-stack.
3785 Add new prefix command, python. Add new setting, print-backtrace.
3786 * NEWS: Document set python print-stack. Document default change.
3788 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
3790 * python/py-inferior.c (infpy_dealloc): New function.
3791 (inferior_to_inferior_object): Return a new object, or a
3792 new reference to the existing object.
3793 (find_thread_object): Cleanup references to inferior.
3794 (delete_thread_object): Ditto.
3795 * python/py-infthread.c (create_thread_object): Do not increment
3796 inferior reference count.
3798 2011-07-08 Tom Tromey <tromey@redhat.com>
3800 * dwarf2loc.c (locexpr_regname): New function.
3801 (locexpr_describe_location_piece): Use it.
3802 (disassemble_dwarf_expression): Add per_cu argument. Use
3804 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3805 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3807 (locexpr_describe_location_1): Add per_cu argument.
3808 (locexpr_describe_location): Update.
3809 (loclist_describe_location): Update.
3811 2011-07-08 Tom Tromey <tromey@redhat.com>
3813 * dwarf2expr.c (execute_stack_op): Add QUIT.
3815 2011-07-07 Hui Zhu <teawater@gmail.com>
3818 2011-07-06 Hui Zhu <teawater@gmail.com>
3819 * remote.c (remote_start_remote): Add TRY_CATCH for
3820 remote_get_trace_status.
3821 * tracepoint.c (disconnect_tracing): Ditto.
3823 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
3825 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3826 variables as signed, not unsigned.
3828 2011-07-06 Joel Brobecker <brobecker@adacore.com>
3830 * jit.c (jit_inferior_init): Reformat forward declaration.
3832 2011-07-06 Matt Rice <ratmice@gmail.com>
3834 * MAINTAINERS (Write After Approval): Add myself to the list.
3836 2011-07-06 Hui Zhu <teawater@gmail.com>
3838 * remote.c (remote_start_remote): Add TRY_CATCH for
3839 remote_get_trace_status.
3840 * tracepoint.c (disconnect_tracing): Ditto.
3842 2011-07-05 Tom Tromey <tromey@redhat.com>
3844 * symtab.c (operator_chars): Now static.
3845 * linespec.c (operator_chars): Don't declare.
3847 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3849 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3851 2011-07-05 Tom Tromey <tromey@redhat.com>
3853 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3854 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3855 (TYPE_CPLUS_REALLY_JAVA): New macro.
3856 * dwarf2read.c (process_structure_scope): Set
3857 TYPE_CPLUS_REALLY_JAVA.
3859 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
3861 * ada-lang.c: Fix typos.
3862 * amd64-tdep.c: Likewise.
3863 * breakpoint.c: Likewise.
3864 * cli/cli-decode.c: Likewise.
3865 * findcmd.c: Likewise.
3866 * inline-frame.c: Likewise.
3867 * mi/mi-main.c: Likewise.
3868 * minsyms.c: Likewise.
3869 * monitor.c: Likewise.
3870 * monitor.h: Likewise.
3871 * prologue-value.c: Likewise.
3872 * reverse.c: Likewise.
3873 * s390-tdep.c: Likewise.
3875 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
3877 * jit.c (jit_inferior_init): Forward declare.
3878 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3880 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3882 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3884 2011-07-04 Tristan Gingold <gingold@adacore.com>
3886 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3887 (tcb_fieldno): Add activation_link field.
3888 (get_known_tasks_addr): Moved and rewritten.
3889 (get_tcb_types_info): Set activation_link field.
3890 (read_known_tasks_array): Add parameter. Rewritten.
3891 (read_known_tasks_list): New function.
3892 (read_known_tasks): New function.
3893 (ada_build_task_list): Call read_known_tasks instead of
3894 read_known_tasks_array.
3895 * ravenscar-thread.c: Add first_task_name constant.
3896 (has_ravenscar_runtime): Check for task list too.
3898 2011-07-04 Tristan Gingold <gingold@adacore.com>
3900 * ada-tasks.c: Renames fieldno to actb_fieldno.
3901 (ada_get_task_number): Indentation.
3902 (get_tcb_types_info): Remove all parameters. Write directly
3904 (ptid_from_atcb_common): Adjust.
3905 (read_atcb): Adjust.
3907 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3909 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3911 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3913 * ui-out.c (ui_out_field_core_addr): Mention that the function
3914 description is in the header file.
3915 * ui-out.h (ui_out_field_core_addr): Document function.
3917 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3919 * ui-out.c (ui_out_get_field_separator): Remove unused function.
3920 * ui-out.h (ui_out_get_field_separator): Remove prototype.
3922 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3924 * symtab.c (expand_line_sal): Remove empty line.
3926 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
3928 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3929 same way as ELFOSABI_NONE.
3930 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3932 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3934 * breakpoint.c: Fix typos in comments.
3935 * linespec.c: Likewise.
3936 * symtab.c: Likewise.
3938 2011-07-04 Joel Brobecker <brobecker@adacore.com>
3940 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3941 section in separate object files.
3943 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3945 Fix false GCC warning.
3946 * linespec.c (decode_line_1): Initialize values.
3948 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3950 * linespec.c (find_method): Accept the function type automatically only
3951 if it was specified with parameter types.
3953 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3955 Stop on first linespec terminator instead of eating what we can.
3956 * linespec.c (is_linespec_boundary): New function.
3957 (name_end): Remove function.
3958 (keep_name_info): New parameter on_boundary, replace the body.
3959 (decode_line_1): Provide the parameter to keep_name_info.
3960 (decode_compound): Likewise. Drop the trailing java return type
3963 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3965 Fall back linespec to minimal symbols.
3966 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
3967 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3968 (find_method, symbol_found): Change error to cplusplus_error.
3970 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3972 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3974 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3975 Tom Tromey <tromey@redhat.com>
3977 * dwarf2read.c (check_physname): New variable.
3978 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3979 (show_check_physname): New function.
3980 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3982 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3984 * machoread.c (macho_symfile_read): Delete OBE comment.
3986 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3988 * machoread.c (struct macho_oso_data): Delete.
3989 (current_oso): Delete.
3990 (macho_relocate_common_syms): New function, mostly extracted
3992 (macho_add_oso_symfile): Call macho_relocate_common_syms.
3993 Remove code that sets and unset current_oso.
3994 (macho_symfile_relocate): Delete handling of common symbols,
3995 now moved to macho_relocate_common_syms.
3997 2011-07-01 Joel Brobecker <brobecker@adacore.com>
3999 * darwin-nat.c (darwin_ptrace): Add documentation.
4000 Set errno to zero before calling ptrace. If ptrace returns
4001 -1 and errno is zero, then change then return zero.
4002 (darwin_kill_inferior): Issue a warning instead of triggering
4003 a failed assertion when the PT_KILL ptrace operations returned
4006 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4008 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4009 only when inf->private->no_ptrace.
4011 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4013 * ada-lang.c (print_it_exception): Print temporary catchpoints
4014 as "Temporary catchpoint".
4015 (print_mention_exception): Likewise.
4017 2011-07-01 Tom Tromey <tromey@redhat.com>
4019 * jv-lang.c (java_language_defn): Use java_printchar,
4021 (java_get_encoding): New function.
4022 (java_emit_char): Use generic_emit_char.
4023 (java_printchar): New function.
4024 (java_printstr): Likewise.
4026 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4028 * ada-typeprint.c (print_record_type): If unable to decode
4029 the name of the parent type, use the encoded name.
4031 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4033 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4034 pointer to constrained packed array type output.
4035 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4036 packed array output.
4038 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4040 * ada-typeprint.c (print_array_type): removed if condition on show
4041 being negative for bounds printing.
4043 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4045 * ada-lang.c (ada_identical_enum_types_p): New function.
4046 (symbols_are_identical_enums): New function.
4047 (remove_extra_symbols): Do nothing if NSYMS < 2.
4048 Use symbols_are_identical_enums.
4050 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4052 * ada-valprint.c (ada_value_print): Handle typedefs.
4054 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4056 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4058 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4060 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4061 (decode_constrained_packed_array): Likewise.
4062 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4064 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4066 * ada-exp.y (convert_char_literal): Handle typedef types.
4068 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4070 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4072 2011-06-30 Tom Tromey <tromey@redhat.com>
4074 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4075 * valops.c (find_overload_match): Call do_cleanups on early exit
4077 * solib.c (solib_find): Call do_cleanups on early exit path.
4079 2011-06-30 Tom Tromey <tromey@redhat.com>
4081 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4082 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4083 return paths. Defer final do_cleanups until last return.
4084 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4087 2011-06-30 Tom Tromey <tromey@redhat.com>
4089 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4091 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4093 * MAINTAINERS (Write After Approval): Add myself to the list.
4095 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4097 Disable epilogue unwinders on recent GCCs.
4098 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4099 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4100 * dwarf2read.c (process_full_comp_unit): Initialize
4101 EPILOGUE_UNWIND_VALID.
4102 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4103 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4104 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4106 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4108 Code cleanup - reformatting.
4109 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4110 (producer_is_gcc_ge_4): ... here, change the return value.
4111 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4114 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4116 Fix non-only rename list for Fortran modules import.
4117 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4118 cp_add_using_directive caller.
4119 (cp_add_using_directive): New parameter excludes, describe it. New
4120 variables ix and param. Compare if also excludes match. Allocate NEW
4121 with variable size, initialize EXCLUDES there.
4122 (cp_lookup_symbol_imports): New variable excludep, test
4123 current->EXCLUDES with it.
4124 * cp-support.h: Include vec.h.
4125 (struct using_direct): New field excludes, describe it.
4126 (DEF_VEC_P (const_char_ptr)): New.
4127 (cp_add_using_directive): New parameter excludes.
4128 * defs.h (const_char_ptr): New typedef.
4129 * dwarf2read.c (read_import_statement): New variables child_die,
4130 excludes and cleanups, read in excludes.
4131 (read_namespace): Adjust the cp_add_using_directive caller.
4133 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4136 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4137 negative comparisons.
4139 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4141 * mi/mi-main.c (mi_cmd_list_features): Emit
4142 breakpoint-notifications.
4144 2011-06-29 Tom Tromey <tromey@redhat.com>
4147 * valprint.h (generic_emit_char, generic_printstr): Declare.
4148 * valprint.c (wchar_printable, append_string_as_wide)
4149 (print_wchar): Move from c-lang.c.
4150 (generic_emit_char): New function; mostly taken from c_emit_char.
4151 (generic_printstr): New function; mostly taken from c_printstr.
4152 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4153 represented as arrays.
4154 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4156 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4157 identically to TYPE_CODE_INT.
4158 * f-lang.c (f_get_encoding): New function.
4159 (f_emit_char): Use generic_emit_char.
4160 (f_printchar): Replace comment.
4161 (f_printstr): Use generic_printstr.
4162 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4163 "character" types specially.
4164 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4166 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4168 (c_emit_char): Call generic_emit_char.
4169 (c_printstr): Call generic_printstr.
4171 2011-06-29 Gary Benson <gbenson@redhat.com>
4173 * breakpoint.c (bpstat_what): Removed duplicated case.
4175 2011-06-28 Tom Tromey <tromey@redhat.com>
4177 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4179 2011-06-27 Tom Tromey <tromey@redhat.com>
4181 * valops.c (find_overload_match): Call do_cleanups before early
4183 * top.c (execute_command): Call do_cleanups before early return.
4184 (command_loop): Likewise.
4185 * stack.c (backtrace_command): Make a null cleanup early. Don't
4186 conditionally call do_cleanups.
4187 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4189 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4190 so cleanups are always run.
4191 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4192 * findcmd.c (parse_find_args): Call do_cleanups on early return
4194 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4195 Don't conditionally call do_cleanups.
4196 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4199 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4201 * MAINTAINERS (Write After Approval): Use default email address.
4203 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4205 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4207 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4209 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4210 saved_regs_mask and copied_regs_mask fields.
4211 (sparc_record_save_insn): New prototype.
4212 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4213 (sparc_record_save_insn): New function.
4214 (sparc_analyze_prologue): Add head comment. Recognize store insns
4215 of call-saved registers. Use OFFSET consistently. Recognize flat
4216 frames and cache their settings.
4217 (sparc32_skip_prologue): Handle flat frames.
4218 (sparc_frame_cache): Add frame_offset to the base address.
4219 (sparc32_frame_cache): Adjust to new frame description.
4220 (sparc32_frame_prev_register): Likewise.
4221 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4222 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4223 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4224 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4225 frame by calling sparc_record_save_insn.
4226 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4227 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4228 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4230 2011-06-27 Tristan Gingold <gingold@adacore.com>
4232 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4233 field by map_addr and map_len.
4234 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4235 (munmap_section_buffer): Likewise.
4237 2011-06-24 Tom Tromey <tromey@redhat.com>
4239 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4240 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4241 * python/python.c (gdbpy_parameter): Make 'arg' const.
4242 (execute_gdb_command): Likewise.
4243 (gdbpy_decode_line): Likewise. Copy it.
4244 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4245 (gdbpy_write): Make 'arg' const.
4246 * python/py-type.c (typy_lookup_typename): Make 'type_name'
4248 (gdbpy_lookup_type): Likewise.
4249 * python/py-prettyprint.c (print_children): Make 'name' const.
4250 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
4251 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4253 * python/py-function.c (fnpy_init): Make 'name' const.
4254 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
4255 (gdbpy_string_to_argv): Make 'input' const.
4256 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
4258 * gdbtypes.h (lookup_typename): Update.
4259 * gdbtypes.c (lookup_typename): Make 'name' const.
4260 (lookup_struct): Likewise.
4261 (lookup_union): Likewise.
4262 (lookup_enum): Likewise.
4264 2011-06-24 Tom Tromey <tromey@redhat.com>
4266 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4267 gdb_thread_db.h. Move all common/ entries to be together.
4268 (TAGS): Don't depend on DEPFILES.
4270 2011-06-23 Yao Qi <yao@codesourcery.com>
4272 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4273 * remote.c (remote_start_remote): ... here.
4274 * monitor.c (monitor_open): ... here.
4276 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
4278 * gdbtypes.c (append_composite_type_field_aligned): Fix
4279 calculation of bit position based on alignment.
4281 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4283 * breakpoint.c (bpstat_stop_status): Call the check_status
4284 breakpoint_ops method.
4285 (print_one_breakpoint_location): Also print the condition for Ada
4286 exception catchpoints.
4287 (allocate_bp_location): New, factored out from
4288 allocate_bp_location.
4289 (allocate_bp_location): Adjust. Call the owner breakpoint's
4290 allocate_location method, if there is one.
4291 (free_bp_location): Call the locations's dtor method, if there is
4293 (init_raw_breakpoint_without_location): New breakpoint_ops
4295 (set_raw_breakpoint_without_location): Adjust.
4296 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
4297 (set_raw_breakpoint): Adjust.
4298 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4299 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4300 re_set and check_status methods.
4301 (init_catchpoint): Don't memset, initialize thread, addr_string
4302 and enable_state. Pass the ops down to init_raw_breakpoint.
4303 (install_catchpoint): Rename to ...
4304 (install_breakpoint): ... this, and make extern.
4305 (create_fork_vfork_event_catchpoint): Adjust.
4306 (catch_exec_breakpoint_ops): Install NULL allocate_location,
4307 re_set and check_status methods.
4308 (create_syscall_event_catchpoint): Adjust.
4309 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4310 (masked_watchpoint_breakpoint_ops): Install NULL
4311 allocate_location, re_set and check_status methods.
4312 (catch_exec_command_1): Adjust.
4313 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4314 re_set and check_status methods.
4315 (create_ada_exception_breakpoint): Rename to ...
4316 (init_ada_exception_breakpoint): ... this. Add a struct
4317 breakpoint parameter, and delete the exp_string, cond_string and
4318 cond parameters. Use init_raw_breakpoint, and don't install or
4319 mention the breakpoint yet. Don't clear breakpoint fields that
4320 init_raw_breakpoint already clears.
4321 (re_set_breakpoint): Delete, split into ...
4322 (breakpoint_re_set_default, prepare_re_set_context): ... these new
4324 (breakpoint_re_set_one): Call the breakpoint's
4325 breakpoint_ops->re_set implementation, if there's one. Adjust.
4326 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4327 (struct bp_location_ops): New type.
4328 (struct bp_location): New field `ops'.
4329 (struct breakpoint_ops): New `allocate_location', `re_set' and
4330 `check_status' fields. Make `breakpoint_hit''s description match
4332 (init_bp_location): Declare.
4333 (breakpoint_re_set_default): Declare.
4334 (create_ada_exception_breakpoint): Rename to ...
4335 (init_ada_exception_breakpoint): ... this. Add a struct
4336 breakpoint parameter, and delete the exp_string, cond_string and
4338 (install_breakpoint): Declare.
4339 * ada-lang.c: Include exceptions.h.
4340 <Ada exceptions description>: Update.
4341 (struct ada_catchpoint_location): New type.
4342 (ada_catchpoint_location_dtor): New function.
4343 (ada_catchpoint_location_ops): New global.
4344 (ada_catchpoint): New type.
4345 (create_excep_cond_exprs): New function.
4346 (dtor_exception, allocate_location_exception, re_set_exception)
4347 (should_stop_exception, check_status_exception): New functions.
4348 (print_one_exception, print_mention_exception)
4349 (print_recreate_exception): Adjust.
4350 (dtor_catch_exception, allocate_location_catch_exception)
4351 (re_set_catch_exception, check_status_catch_exception): New
4353 (catch_exception_breakpoint_ops): Install them.
4354 (dtor_catch_exception_unhandled)
4355 (allocate_location_catch_exception_unhandled)
4356 (re_set_catch_exception_unhandled)
4357 (check_status_catch_exception_unhandled): New functions.
4358 (catch_exception_unhandled_breakpoint_ops): Install them.
4359 (dtor_catch_assert, allocate_location_catch_assert)
4360 (re_set_catch_assert, check_status_catch_assert): New functions.
4361 (catch_assert_breakpoint_ops): Install them.
4362 (ada_exception_catchpoint_p): Delete.
4363 (catch_ada_exception_command_split)
4364 (ada_exception_catchpoint_cond_string): Rename exp_string
4365 parameter to excep_string. Adjust.
4366 (ada_parse_catchpoint_condition): Delete.
4367 (ada_exception_sal): Rename the exp_string parameter to
4368 excep_string. Delete the cond_string and cond parameters.
4370 (ada_decode_exception_location): Rename the exp_string parameter
4371 to excep_string. Delete the cond_string and cond parameters.
4373 (create_ada_exception_catchpoint): New function.
4374 (catch_ada_exception_command, ada_decode_assert_location)
4375 (catch_assert_command): Adjust.
4376 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4378 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4380 * ada-lang.c: Include arch-utils.h.
4381 (ada_decode_exception_location): Make static.
4382 (catch_ada_exception_command): Moved here from breakpoint.c.
4383 (ada_decode_assert_location): Make static.
4384 (catch_assert_command): Moved here from breakpoint.c.
4385 (_initialize_ada_lang): Install the exception and assert
4386 catchpoint commands here.
4387 * ada-lang.h (ada_decode_exception_location)
4388 (ada_decode_assert_location): Delete declarations.
4389 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4391 (create_ada_exception_breakpoint): Make extern.
4392 (catch_ada_exception_command, catch_assert_command): Moved to
4394 (add_catch_command): Make extern.
4395 (_initilize_breakpoint): Don't install the exception and assert
4396 catchpoint commands here.
4397 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4399 (add_catch_command, create_ada_exception_breakpoint): Declare.
4401 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4403 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4404 the breakpoint to the breakpoint chain here.
4405 (set_raw_breakpoint_without_location): Add the breakpoint to the
4406 breakpoint chain here.
4407 (init_raw_breakpoint): Adjust comments.
4408 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4410 (init_catchpoint): Don't set the catchpoint's breakpoint number
4412 (install_catchpoint): New function.
4413 (create_fork_vfork_event_catchpoint)
4414 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4415 use install_catchpoint.
4417 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4419 * breakpoint.c (create_catchpoint_without_mention)
4420 (create_catchpoint): Delete.
4422 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4424 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4425 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4426 reference to exec_pathname.
4427 (struct exec_catchpoint): New type.
4428 (dtor_catch_exec): New function.
4429 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4430 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4431 (catch_exec_command_1): Adjust to use init_catchpoint.
4432 (delete_breakpoint): Remove reference to exec_pathname.
4434 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4436 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4437 (struct breakpoint): Delete field `syscalls_to_be_caught'.
4438 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4439 reference to syscalls_to_be_caught.
4440 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4442 (struct syscall_catchpoint): New type.
4443 (dtor_catch_syscall): New function.
4444 (insert_catch_syscall, remove_catch_syscall)
4445 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4446 (print_recreate_catch_syscall): Adjust.
4447 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4448 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4449 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4450 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4451 (masked_watchpoint_breakpoint_ops)
4452 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4453 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4454 there is one. Remove references to syscalls_to_be_caught.
4455 (catching_syscall_number): Adjust.
4456 * ada-lang.c (catch_exception_breakpoint_ops)
4457 (catch_exception_unhandled_breakpoint_ops)
4458 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4460 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4462 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4464 * breakpoint.c (init_raw_breakpoint_without_location): Remove
4465 reference to forked_inferior_pid.
4466 (struct fork_catchpoint): New type.
4467 (breakpoint_hit_catch_fork, print_it_catch_fork)
4468 (print_one_catch_fork, breakpoint_hit_catch_vfork)
4469 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4470 (create_fork_vfork_event_catchpoint): Adjust to use
4473 2011-06-22 Pedro Alves <pedro@codesourcery.com>
4475 * breakpoint.c (add_to_breakpoint_chain)
4476 (init_raw_breakpoint_without_location): New functions, factored
4478 (set_raw_breakpoint_without_location): ... this one.
4479 (init_raw_breakpoint): New function, factored out from
4480 set_raw_breakpoint and adjusted to use
4481 init_raw_breakpoint_without_location.
4482 (set_raw_breakpoint): Adjust.
4483 (init_catchpoint): New function, factored out from
4484 create_catchpoint_without_mention and adjusted to use
4485 init_raw_breakpoint.
4486 (create_catchpoint_without_mention): Adjust.
4488 2011-06-22 Tom Tromey <tromey@redhat.com>
4490 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4491 argument of 0 specially.
4493 2011-06-22 Yao Qi <yao@codesourcery.com>
4495 * infrun.c (handle_inferior_event): Remove write-only local variable
4496 `sw_single_step_trap_p'.
4498 2011-06-20 Tom Tromey <tromey@redhat.com>
4500 * symtab.c (lookup_language_this): End loop if block is NULL.
4502 2011-06-17 Tom Tromey <tromey@redhat.com>
4504 * valops.c (value_of_this): Use lookup_language_this.
4505 * symtab.h (lookup_language_this): Declare.
4506 * symtab.c (lookup_language_this): New function.
4507 (lookup_symbol_aux): Use lookup_language_this.
4508 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4510 2011-06-17 Tom Tromey <tromey@redhat.com>
4512 * value.h (value_of_this): Update.
4513 (value_of_local): Remove.
4514 * valops.c (value_of_this): Rename from value_of_local. Change
4516 * p-exp.y (exp): Update.
4517 (variable): Likewise.
4518 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4520 2011-06-17 Tom Tromey <tromey@redhat.com>
4522 * valops.c (value_of_local): Complain if NAME is NULL.
4523 * std-operator.def (OP_OBJC_SELF): Remove.
4524 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4525 * objc-exp.y (name_not_typename): Use OP_THIS.
4526 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4528 <OP_OBJC_SELF>: Remove.
4529 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4531 2011-06-16 Tristan Gingold <gingold@adacore.com>
4533 * python/py-events.h (gdb_py_events): Make it extern.
4534 * python/py-evtregistry.c (gdb_py_events): Declare.
4536 2011-06-16 Hui Zhu <teawater@gmail.com>
4538 * remote.c (remote_trace_set_readonly_regions): Add check for
4539 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4542 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
4544 * arm-linux-tdep.c: Include "auxv.h".
4546 (ARM_LINUX_SIZEOF_VFP): Define.
4547 (arm_linux_supply_vfp): New function.
4548 (arm_linux_collect_vfp): Likewise.
4549 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4550 (arm_linux_fpa_regset_sections): New variable.
4551 (arm_linux_vfp_regset_sections): Likewise.
4552 (arm_linux_core_read_description): New function.
4553 (arm_linux_init_abi): Install arm_linux_core_read_description and
4554 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4555 appropriate for the architecture.
4556 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4557 (tdesc_arm_with_m): Declare.
4558 (tdesc_arm_with_iwmmxt): Likewise.
4559 (tdesc_arm_with_vfpv2): Likewise.
4560 (tdesc_arm_with_vfpv3): Likewise.
4561 (tdesc_arm_with_neon): Likewise.
4562 * arm-linux-nat.c: Move features/*.c includes ...
4563 * arm-tdep.c: ... here.
4564 * arm-linux-nat.c (arm_linux_read_description): Move initializing
4565 target description data structures ...
4566 * arm-tdep.c (_initialize_arm_tdep): ... here.
4567 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4568 HWCAP_VFPv3D16): Move definitions ...
4569 * arm-linux-tdep.h: ... here.
4571 2011-06-15 Hui Zhu <teawater@gmail.com>
4573 * remote.c (remote_trace_set_readonly_regions): Add a check for
4576 2011-06-14 Tom Tromey <tromey@redhat.com>
4578 * coffread.c (coffread_objfile): Rename from current_objfile.
4579 * dbxread.c (dbxread_objfile): Rename from current_objfile.
4580 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4582 2011-06-14 Tom Tromey <tromey@redhat.com>
4584 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4585 (class_symtab): Remove.
4586 (jv_dynamics_progspace_key): New global.
4587 (jv_per_objfile_free): Reset program space data. Update assert.
4588 Don't clear globals.
4589 (get_dynamics_objfile): Use and set program space data.
4590 (get_java_class_symtab): Use get_dynamics_objfile.
4591 (add_class_symbol): Likewise.
4592 (java_link_class_type): Likewise.
4593 (java_object_type, jv_clear_object_type, set_java_object_type):
4595 (get_java_object_type): Update. Don't cache result.
4596 (is_object_type): Don't call set_java_object_type.
4597 (_initialize_java_language): Don't set jv_type_objfile_data_key;
4598 initialize jv_dynamics_progspace_key.
4600 2011-06-14 Tom Tromey <tromey@redhat.com>
4602 * symtab.h (current_objfile): Don't declare.
4603 * objfiles.h (current_objfile): Don't declare.
4604 * objfiles.c (current_objfile): Remove.
4605 * mdebugread.c (current_objfile): New file-scope global.
4606 * dbxread.c (current_objfile): New file-scope global.
4607 * coffread.c (current_objfile): New file-scope global.
4609 2011-06-13 Pedro Alves <pedro@codesourcery.com>
4611 * top.h (line): Rename to ...
4612 (saved_command_line): ... this.
4613 (linesize): Rename to ...
4614 (saved_command_line_size): ... this.
4615 * top.c (line): Rename to ...
4616 (saved_command_line): ... this.
4617 (linesize): Rename to ...
4618 (saved_command_line_size): ... this.
4619 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4620 * event-top.c (command_line_handler): Adjust.
4621 * main.c (captured_main): Adjust.
4623 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4625 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
4626 get_frame_func instead of get_frame_pc to determine the code
4627 address used to construct the frame ID.
4628 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4629 (i386_epilogue_frame_this_id): Likewise.
4630 (i386_epilogue_frame_prev_register): New function.
4631 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4632 (i386_stack_tramp_frame_sniffer): Fix coding style.
4633 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4634 (i386_gdbarch_init): Fix comments.
4636 2011-06-12 Mark Kettenis <kettenis@gnu.org>
4638 * i386-tdep.c (i386_match_insn_block): Use length of the proper
4639 instruction when walking back through the instruction stream.
4641 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4643 * symtab.c (output_partial_symbol_filename): Exchange the filename and
4644 fullname parameters order.
4646 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4649 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4651 * psymtab.c (map_symbol_filenames_psymtab)
4652 (map_partial_symbol_filenames): Likewise.
4653 * psymtab.h: Include symfile.h.
4654 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4655 * symfile.h (symbol_filename_ftype): New.
4656 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4657 map_symbol_filenames, clarify more the naming in comment.
4659 2011-06-07 Doug Evans <dje@google.com>
4661 * cc-with-index.sh: Fix typos in comment.
4662 Look for ../../gdb, for fullname.exp.
4664 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4665 Pedro Alves <pedro@codesourcery.com>
4667 * cli/cli-cmds.c (shell_escape): Use waitpid.
4668 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4670 2011-06-07 Tristan Gingold <gingold@adacore.com>
4672 * xcoffread.c (dwarf2_xcoff_names): New variable.
4673 (aix_process_linenos): Add a guard.
4674 (xcoff_symfile_finish): Free dwarf2.
4675 (xcoff_initial_scan): Add dwarf2 support.
4677 2011-06-06 Pedro Alves <pedro@codesourcery.com>
4679 * infcall.c (run_inferior_call): Don't mask async. Instead force
4680 a synchronous wait, if the target can async.
4682 * target.h (struct target_ops): Delete to_async_mask.
4683 (target_async_mask): Delete.
4684 * target.c (update_current_target): Delete references to to_async_mask.
4685 * linux-nat.c (linux_nat_async_mask_value): Delete.
4686 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4687 to linux_nat_async_mask_value.
4688 (linux_nat_async_mask): Delete.
4689 (linux_nat_async, linux_nat_close): Remove references to
4690 linux_nat_async_mask_value.
4691 * record.c (record_async_mask_value): Delete.
4692 (record_async): Remove references to record_async_mask_value.
4693 (record_async_mask): Delete.
4694 (record_can_async_p, record_is_async_p): Remove references to
4695 record_async_mask_value.
4696 (init_record_ops, init_record_core_ops): Remove references to
4698 * remote.c (remote_async_mask_value): Delete.
4699 (init_remote_ops): Remove reference to remote_async_mask.
4700 (remote_can_async_p, remote_is_async_p): Remove references to
4701 remote_async_mask_value.
4702 (remote_async): Remove references to remote_async_mask_value.
4703 (remote_async_mask): Delete.
4705 * infrun.c (fetch_inferior_event): Don't claim registers changed
4706 if the current thread is already not executing.
4708 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
4710 From Stephen Kitt <steve@sk2.org>
4711 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4712 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4714 2011-06-03 Joel Brobecker <brobecker@adacore.com>
4716 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4717 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4719 2011-06-03 Tom Tromey <tromey@redhat.com>
4721 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4723 * python/py-exitedevent.c (create_exited_event_object): Change
4724 type of 'exit_code'. Optionally add exit_code attribute.
4725 (emit_exited_event): Change type of 'exit_code'.
4726 * python/py-event.h (emit_exited_event): Update.
4727 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4728 * infrun.c (handle_inferior_event): Set exit code fields on
4730 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4732 * inferior.c (exit_inferior_1): Initialize new fields.
4734 2011-06-03 Tom Tromey <tromey@redhat.com>
4736 * dwarf2expr.c (get_signed_type): New function.
4737 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4739 2011-06-02 Keith Seitz <keiths@redhat.com>
4741 * objc-lang.c (find_methods): Increment objfile_csym earlier.
4743 2011-06-02 Pedro Alves <pedro@codesourcery.com>
4745 * top.h (simplified_command_loop): Delete declaration.
4747 2011-06-01 Mike Frysinger <vapier@gentoo.org>
4749 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4750 gdb_sysroot to the "len" variable. Append both to "arg_buf".
4752 2011-06-01 Yao Qi <yao@codesourcery.com>
4754 * objfiles.h (obj_section_addr): Update reference to objfile from
4756 (obj_section_endaddr): Likewise.
4758 2011-06-01 Daniel Jacobowitz <drow@false.org>
4760 * MAINTAINERS: Update my email address and affiliation. Also
4761 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
4763 2010-05-31 Keith Seitz <keiths@redhat.com>
4766 * linespec.c (get_search_block): New function.
4767 (find_methods): Add FILE_SYMTATB parameter and use it and
4768 get_search_block to pass an appropriate block to
4769 lookup_symbol_in_namespace.
4770 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4771 Check if *ARGPTR starts with a filename first.
4772 If it does, call locate_first_half again to locate the next
4773 "first half" of the linespec.
4774 Pass FILE_SYMTATB to decode_objc and decode_compound.
4775 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4776 (locate_first_half): Stop on the first colon seen.
4777 (decode_compound): Add FILE_SYMTAB parameter.
4778 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4779 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4780 get_search_block with lookup_symbol.
4781 (find_method): Add FILE_SYMTAB parameter and pass it to
4783 (decode_objc): Use get_search_block.
4785 2010-05-31 Keith Seitz <keiths@redhat.com>
4788 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4789 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4790 and CP_ANONYMOUS_NAMESPACE_LEN.
4791 (cp_is_anonymous): Likewise.
4792 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4793 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4794 * dwarf2read.c (namespace_name): Likewise.
4795 (fixup_partial_die): Likewise.
4796 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4797 seen in the input, keep it.
4799 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4801 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4802 * inf-loop.h (inferior_event_handler_wrapper): Delete.
4803 * inf-loop.c (inferior_event_handler_wrapper): Delete.
4804 (inferior_event_handler): Don't handle INF_QUIT_REQ.
4805 * remote.c (_initialize_remote): Register
4806 async_remote_interrupt_twice directly as
4807 sigint_remote_twice_token event.
4809 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4811 * target.h (enum inferior_event_type): Delete INF_ERROR.
4812 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4814 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4816 * interps.c (interp_set): Don't cancel continuations.
4818 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4820 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4822 2011-05-30 Pedro Alves <pedro@codesourcery.com>
4824 * continuations.h (continuation_ftype): Add `err' parameter.
4825 Document parameters.
4826 (do_all_continuations, do_all_continuations_thread)
4827 (do_all_intermediate_continuations)
4828 (do_all_intermediate_continuations_thread)
4829 (do_all_inferior_continuations): Add `err' parameter.
4830 * continuations.c (do_my_continuations_1, do_my_continuations)
4831 (do_all_inferior_continuations, do_all_continuations_ptid)
4832 (do_all_continuations_thread_callback)
4833 (do_all_continuations_thread, do_all_continuations)
4834 (do_all_intermediate_continuations_thread_callback)
4835 (do_all_intermediate_continuations_thread)
4836 (do_all_intermediate_continuations): Add `err' parameter, and pass
4837 it down all the way to the continuations proper.
4838 * inf-loop.c (inferior_event_handler): If fetching an inferior
4839 event throws an error, don't pop the target, and still call the
4840 continuations, but with `err' set. Adjust all other continuation
4842 * breakpoint.c (until_break_command_continuation): Add `err'
4844 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
4845 issue another step if `err' is set.
4846 (struct until_next_continuation_args): New.
4847 (until_next_continuation): Add `err' parameter. Adjust.
4848 (until_next_command): Adjust.
4849 (struct finish_command_continuation_args): Add `thread' field.
4850 (finish_command_continuation): Add `err' parameter. Handle it.
4851 (finish_forward): Adjust.
4852 (attach_command_continuation): Add `err' parameter. Handle it.
4853 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4854 cancel the continuations.
4855 * interps.c (interp_set): Adjust to cancel the continuations.
4856 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4857 continuations rather than discarding.
4858 (free_thread): Don't clear thread inferior resources here.
4859 (delete_thread_1): Do it here instead. And do it before removing
4860 the thread from the threads list. Tag the thread as exited before
4861 clearing thread inferior resources.
4863 2011-05-30 Joel Brobecker <brobecker@adacore.com>
4865 * infcall.c (call_function_by_hand): Rephrase error message.
4867 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4869 * defs.h (struct thread_info, struct inferior): Delete forward
4871 * breakpoint.h (struct thread_info): New forward declaration.
4872 * observer.sh (struct inferior): New forward declaration.
4873 * python/python-internal.h (struct inferior): New forward
4876 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4878 * defs.h (struct continuation, continuation_ftype)
4879 (continuation_free_arg_ftype, add_continuation)
4880 (do_all_continuations, do_all_continuations_thread)
4881 (discard_all_continuations, discard_all_continuations_thread)
4882 (add_intermediate_continuation, do_all_intermediate_continuations)
4883 (do_all_intermediate_continuations_thread)
4884 (discard_all_intermediate_continuations)
4885 (discard_all_intermediate_continuations_thread)
4886 (add_inferior_continuation, do_all_inferior_continuations)
4887 (discard_all_inferior_continuations): Move to ...
4888 * continuations.h: ... this new file.
4889 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4890 infcmd.c, inferior.c, infrun.c, interps.c: Include
4893 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4894 Doug Evans <dje@google.com>
4896 Fix PR 10970, PR 12702.
4897 * linux-nat.c (linux_lwp_is_zombie): New function.
4898 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
4899 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
4901 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4903 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4905 (add_continuation, add_intermediate_continuation)
4906 (add_inferior_continuation): Use them.
4907 * continuations.c (struct continuation): Use them.
4908 (make_continuation_ftype): Delete.
4909 (make_continuation, add_inferior_continuation, add_continuation)
4910 (add_intermediate_continuation): Use continuation_ftype and
4911 continuation_free_arg_ftype. Rename parameters to shorter names.
4913 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4915 * continuations.c (make_continuation): Make it return void.
4916 (do_my_continuations): Rename to ...
4917 (do_my_continuations_1): ... this. Remove old_chain parameter and
4919 (do_my_continuations): New.
4920 (discard_my_continuations): Rename to ...
4921 (discard_my_continuations_1): ... this. Remove old_chain
4922 parameter and adjust.
4923 (discard_my_continuations): New.
4924 (add_inferior_continuation): Simplify.
4925 (do_all_inferior_continuations): Reimplement on top
4926 do_my_continuations.
4927 (discard_all_inferior_continuations): Simplify.
4928 (add_continuation): Simplify.
4929 (do_all_continuations_ptid): Simplify.
4930 (discard_all_continuations_thread_callback): Simplify.
4931 (add_intermediate_continuation): Simplify.
4932 (discard_all_intermediate_continuations_thread_callback):
4935 2011-05-27 Pedro Alves <pedro@codesourcery.com>
4937 * utils.c (struct continuation, add_continuation)
4938 (add_inferior_continuation)
4939 (do_all_inferior_continuations, discard_all_inferior_continuations)
4940 (restore_thread_cleanup, do_all_continuations_ptid)
4941 (do_all_continuations_thread_callback)
4942 (do_all_continuations_thread, do_all_continuations)
4943 (discard_all_continuations_thread_callback)
4944 (discard_all_continuations_thread, discard_all_continuations)
4945 (add_intermediate_continuation)
4946 (do_all_intermediate_continuations_thread_callback)
4947 (do_all_intermediate_continuations_thread)
4948 (do_all_intermediate_continuations)
4949 (discard_all_intermediate_continuations_thread_callback)
4950 (discard_all_intermediate_continuations_thread)
4951 (discard_all_intermediate_continuations): Move to ...
4952 * continuations.c: ... this new file, and adjust to no longer
4953 implement continuations on top of cleanups.
4954 * Makefile.in (SFILES): Add continuations.c.
4955 (COMMON_OBS): Add continuations.o.
4957 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4959 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4960 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4961 Internal error on invalid values.
4962 * reverse.c: Don't handle EXEC_ERROR.
4963 * mi/mi-main.c: Don't handle EXEC_ERROR.
4965 2011-05-26 Pedro Alves <pedro@codesourcery.com>
4967 * record.c: Include event-loop.h, inf-loop.h.
4968 (record_beneath_to_async): New global.
4969 (tmp_to_async): New global.
4970 (record_async_inferior_event_token): New global.
4971 (record_open_1): Don't error out if async is enabled.
4972 (record_open): Handle to_async. Create an async event source in
4974 (record_close): Delete the async event source.
4975 (record_resumed): New global.
4976 (record_execution_dir): New global.
4977 (record_resume, record_core_resume): Set them. Register the
4978 target on the event loop.
4979 (record_wait): Rename to ...
4980 (record_wait_1): ... this. Add more debug output. Handle
4981 TARGET_WNOHANG, and the target beneath returning
4982 TARGET_WAITKIND_IGNORE.
4983 (record_wait): Reimplement on top of record_wait_1.
4984 (record_async_mask_value): New global.
4985 (record_async, record_async_mask, record_can_async_p)
4986 (record_is_async_p, record_execution_direction): New functions.
4987 (init_record_ops, init_record_core_ops): Install new methods.
4988 * infrun.c (fetch_inferior_event): Temporarily switch the global
4989 execution direction to the direction the target was going.
4990 (execution_direction): Change type to int.
4991 * target.c (default_execution_direction): New function.
4992 (update_current_target): Inherit and de_fault
4993 to_execution_direction.
4994 * target.h (struct target_ops) <to_execution_direction>: New
4996 (target_execution_direction): New macro.
4997 * inferior.h (execution_direction): Change type to int.
4999 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5001 * infcall.c (call_function_by_hand): Don't allow calling functions
5002 in reverse execution mode.
5004 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5006 * infcmd.c (finish_command): Allow async finish in reverse.
5008 2011-05-26 Yao Qi <yao@codesourcery.com>
5010 * gdb_thread_db.h: Delete. Move to ...
5011 * common/gdb_thread_db.h: ... here.
5013 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5015 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5016 function's entry point instead of a manually managed momentary
5017 breakpoint, and only ever issue one proceed call.
5018 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5019 doing a reverse-finish, switch to stepi mode, to do another step.
5020 (insert_step_resume_breakpoint_at_sal): Make public.
5021 (normal_stop): No need to save function value return registers if
5023 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5025 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5027 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5028 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5029 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5031 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5032 step-resume breakpoints.
5033 (print_it_typical): Handle bp_hp_step_resume.
5034 (bpstat_what): Ditto.
5035 (bptype_string): Ditto.
5036 (print_one_breakpoint_location): Ditto.
5037 (allocate_bp_location): Ditto.
5039 (breakpoint_re_set_one): Ditto.
5040 * infrun.c (handle_inferior_event): Adjust. Split
5041 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5042 BPSTAT_WHAT_HP_STEP_RESUME.
5043 (insert_step_resume_breakpoint_at_sal): Rename to ...
5044 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5045 parameter. Handle it.
5046 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5047 insert_step_resume_breakpoint_at_sal_1.
5048 (insert_step_resume_breakpoint_at_frame): Rename to ...
5049 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5050 set a high-priority step-resume breakpoint.
5051 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5052 (insert_step_resume_breakpoint_at_caller): Ditto.
5054 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5056 * breakpoint.c (iterate_over_related_breakpoints): New.
5057 (do_map_delete_breakpoint): New.
5058 (delete_command): Pass do_map_delete_breakpoint to
5059 map_breakpoint_numbers.
5060 (do_disable_breakpoint): New.
5061 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5063 (do_enable_breakpoint): Rename to ...
5064 (enable_breakpoint_disp): ... this.
5065 (enable_breakpoint): Adjust.
5066 (do_enable_breakpoint): New.
5067 (enable_once_breakpoint): Delete.
5068 (do_map_enable_breakpoint): New.
5069 (do_map_enable_once_breakpoint): New.
5070 (enable_once_command, enable_delete_command)
5071 (delete_trace_command): Iterate over the breakpoint's related
5074 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5076 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5077 for ALPHA_ZERO_REGNUM.
5078 (alpha_supply_int_regs): Explicitly supply zero as the value for
5079 ALPHA_ZERO_REGNUM in the register cache.
5080 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5082 2011-05-26 Yao Qi <yao@codesourcery.com>
5084 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5086 2011-05-26 Tristan Gingold <gingold@adacore.com>
5088 * symfile.h (struct dwarf2_section_names): New type.
5089 (struct dwarf2_debug_sections): New type.
5090 (dwarf2_has_info): Add parameter.
5091 * dwarf2read.c (dwarf2_elf_names): New variable.
5092 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5093 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5094 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5095 (dwarf2_has_info): Add names parameter. Pass names
5096 to dwarf2_locate_sections.
5097 (section_is_p): Rewrite using the names parameter.
5098 (dwarf2_locate_sections): Use section names from the names parameter.
5099 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5100 * elfread.c (read_psyms): Ditto.
5101 * machoread.c (macho_symfile_read): Ditto.
5103 2011-05-25 Andreas Schwab <schwab@redhat.com>
5106 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5108 2011-05-24 Keith Seitz <keiths@redhat.com>
5111 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5112 (decode_compound): Unconditionally call keep_name_info.
5114 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5116 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5117 scope, clear its command list.
5118 (map_breakpoint_numbers): Don't walk the related breakpoints list
5121 2011-05-24 Tom Tromey <tromey@redhat.com>
5123 * MAINTAINERS: Move Jim Blandy to past maintainers.
5125 2011-05-24 Tristan Gingold <gingold@adacore.com>
5127 * symfile.h (enum dwarf2_section_enum): New type.
5128 (dwarf2_get_section_info): New prototype.
5129 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5130 section_name by sect. Use a switch to select the info.
5131 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5132 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5134 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5136 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5137 shared library event breakpoint if there's no execution.
5139 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5141 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5142 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5144 2011-05-23 Tom Tromey <tromey@redhat.com>
5146 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5149 2011-05-23 Doug Evans <dje@google.com>
5151 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5152 entry for RuntimeError to doc string.
5154 2011-05-23 Jerome Guitton <guitton@adacore.com>
5156 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5157 sequence for probing loops.
5159 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5161 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5164 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5166 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5167 zero as the value for %g0 in the register cache.
5168 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5169 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5171 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5173 * infrun.c (proceed): Set previous_inferior_ptid here.
5174 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5175 inferior_ptid, not null_ptid.
5176 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5177 (fetch_inferior_event): Nor here.
5179 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5181 * inf-loop.c (inferior_event_handler): Only output a message if
5184 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5186 * MAINTAINERS: Update my e-mail address.
5188 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5190 * infrun.c (proceed): Switch the inferior event loop to
5191 INF_EXEC_COMPLETE if the target refused to resume from a
5194 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5196 * infcmd.c: Include "inf-loop.h".
5197 (step_once): When stepping into an inline subroutine, pretend the
5198 target has run. If the target can async, switch the inferior
5199 event loop to INF_EXEC_COMPLETE.
5200 * inferior.h (user_visible_resume_ptid): Declare.
5201 * infrun.c (user_visible_resume_ptid): New function, factored out
5204 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5205 that the current thread is running. Merge async and sync
5208 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5210 * infcmd.c (step_1): Simplify synchronous case.
5212 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5214 * tracepoint.c: Include exceptions.h.
5215 (TFILE_PID): Move higher in file.
5216 (tfile_open): Delay pushing the tfile target until we're assured
5217 the tfile header is present in the file. Wrap reading the initial
5218 newline-terminated lines in TRY_CATCH. Pop the target if the
5219 initial setup failed. Add the tfile's thread immediately
5220 aftwards, before any non-essential setup. Don't skip
5221 post_create_inferior if there are no traceframes present in the
5223 (tfile_close): Remove redundant check for null before xfree call.
5224 (tfile_thread_alive): New function.
5225 (init_tfile_ops): Register it as to_thread_alive callback.
5227 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5229 * tracepoint.c (tfile_open): Delete #if 0'd code.
5231 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5233 Fix -readnow for -gdwarf-4 unused type units.
5234 * dwarf2read.c (struct signatured_type): Remove the field offset.
5235 (create_signatured_type_table_from_index): Remove its initialization.
5236 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5237 instead. Add a complaint call.
5238 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5239 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5240 (lookup_signatured_type_at_offset, read_signatured_type)
5241 (write_one_signatured_type): Update the field for per_cu.
5243 2011-05-19 Tom Tromey <tromey@redhat.com>
5245 * python/py-inferior.c (python_inferior_exit): Use
5247 (python_on_resume): Likewise.
5249 2011-05-19 Matt Rice <ratmice@gmail.com>
5251 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5253 2011-05-19 Hui Zhu <teawater@gmail.com>
5255 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5257 2011-05-19 Hui Zhu <teawater@gmail.com>
5259 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5261 2011-05-18 Tom Tromey <tromey@redhat.com>
5263 * dwarf2read.c (dwarf2_add_field): Constify.
5264 * value.c (value_static_field): Constify.
5265 * gdbtypes.h (struct main_type) <field.field_location.physname>:
5267 * ax-gdb.c (gen_static_field): Constify
5269 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5271 * linux-nat.c (kill_callback): Use SIGKILL first.
5273 2011-05-18 Joel Brobecker <brobecker@adacore.com>
5275 * ada-lang.c (print_it_exception): Avoid use of sprintf.
5277 2011-05-18 Tom Tromey <tromey@redhat.com>
5279 * value.c (value_fn_field): Constify.
5280 * symtab.c (gdb_mangle_name): Constify.
5281 * stabsread.c (update_method_name_from_physname): Make 'physname'
5283 * p-typeprint.c (pascal_type_print_method_args): Make arguments
5284 const. Use explicit fputc_filtered loop.
5285 (pascal_type_print_base): Constify.
5286 * p-lang.h (pascal_type_print_method_args): Update.
5287 * linespec.c (add_matching_methods): Constify.
5288 (add_constructors): Likewise.
5289 * jv-typeprint.c (java_type_print_base): Constify.
5290 * gdbtypes.h (struct cplus_struct_type)
5291 <fn_fieldlist.fn_field.physname>: Now const.
5292 * dwarf2read.c (compute_delayed_physnames): Constify.
5293 (dwarf2_add_member_fn): Likewise.
5294 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
5296 2011-05-18 Pedro Alves <pedro@codesourcery.com>
5298 * infrun.c (resume): Mention which is the current thread, and its
5299 current PC in debug output.
5300 (prepare_to_proceed): Mention the thread switching in debug
5303 2011-05-18 Tom Tromey <tromey@redhat.com>
5305 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5306 path check. Use xmalloc and cleanups.
5307 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5309 2011-05-17 Tom Tromey <tromey@redhat.com>
5311 * cp-valprint.c (cp_print_value_fields): Catch errors from
5314 2011-05-17 Tom Tromey <tromey@redhat.com>
5316 * dwarf2read.c (dwarf2_get_die_type): Call
5317 get_die_type_at_offset.
5318 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5319 get_base_type function.
5321 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
5323 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5326 2011-05-16 Doug Evans <dje@google.com>
5328 * python/py-auto-load.c (source_section_scripts): Mention objfile
5331 2011-05-15 Doug Evans <dje@google.com>
5333 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5334 (try_thread_db_load_from_pdir): Call it. If unable to find
5335 libthread_db in directory of libpthread, see if we're looking at
5336 the separate-debug-info copy.
5338 * python/py-autoload.c (print_script): Print "Missing" instead of
5339 "No" for missing scripts.
5340 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5342 2011-05-13 Doug Evans <dje@google.com>
5344 * ui-file.c (stdio_file_write_async_safe): Add comment.
5346 2011-05-14 Hui Zhu <teawater@gmail.com>
5348 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5350 2011-05-13 Doug Evans <dje@google.com>
5352 Support $pdir and $sdir in libthread-db-search-path.
5353 * NEWS: Mention $sdir,$pdir.
5354 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5355 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5356 (try_thread_db_load_from_sdir): New function.
5357 (try_thread_db_load_from_dir): New function.
5358 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
5359 system directories if search of libthread-db-search-path fails,
5360 that is now done via $sdir.
5361 (has_libpthread): New function.
5362 (thread_db_load): Remove search for libthread_db in directory of
5363 libpthread, that is now done via $pdir.
5365 * NEWS: Mention "info auto-load-scripts".
5366 * python/py-auto-load.c (struct auto_load_pspace_info): New member
5367 script_not_found_warning_printed.
5368 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5369 all callers updated. Initialize script_not_found_warning_printed.
5370 (get_auto_load_pspace_data_for_loading): New function.
5371 (maybe_add_script): New function.
5372 (source_section_scripts): Simplify. Only print one warning regardless
5373 of the number of auto-load scripts not found.
5374 (clear_section_scripts): Clear script_not_found_warning_printed.
5375 (auto_load_objfile_script): Record script in hash table.
5376 (count_matching_scripts): New function.
5377 (maybe_print_script): Renamed from maybe_print_section_script, all
5378 callers updated. Rewrite to use ui_out_*.
5379 (info_auto_load_scripts): Renamed from
5380 maintenance_print_section_scripts, all callers updated.
5381 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5382 renamed as "info auto-load-scripts".
5384 2011-05-13 Tom Tromey <tromey@redhat.com>
5386 * dwarf2expr.c (read_uleb128): Cast intermediate result.
5387 (read_sleb128): Likewise.
5389 2011-05-13 Tom Tromey <tromey@redhat.com>
5391 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5394 2011-05-13 Doug Evans <dje@google.com>
5396 * linux-nat.c (debug_linux_nat_async): Delete.
5397 Replace all references to use debug_linux_nat instead.
5398 (show_debug_linux_nat_async): Delete.
5399 (sigchld_handler): Call ui_file_write_async_safe instead of
5401 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5402 * ui-file.c (struct ui_file): New member to_write_async_safe.
5403 (null_file_write_async_safe): New function.
5404 (ui_file_write_async_safe): New function.
5405 (set_ui_file_write_async_safe): New function.
5406 (ui_file_new): Initialize to_write_async_safe.
5407 (stdio_file_write_async_safe): New function.
5408 (struct stdio_file): New member fd.
5409 (stdio_file_new): Initialize to_write_async_safe, fd.
5410 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5412 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5413 (set_ui_file_write_async_safe): Declare.
5414 (ui_file_write_async_safe): Declare.
5416 2011-05-13 Tom Tromey <tromey@redhat.com>
5418 * utils.c (do_value_free): New function.
5419 (make_cleanup_value_free): Likewise.
5420 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5422 (dwarf2_loc_desc_needs_frame): Call
5423 make_cleanup_value_free_to_mark.
5424 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5425 * dwarf2expr.c (free_dwarf_expr_context): Don't call
5427 (new_dwarf_expr_context): Don't call value_mark.
5428 * dwarf2-frame.c (execute_stack_op): Call
5429 make_cleanup_value_free_to_mark.
5430 * defs.h (make_cleanup_value_free): Declare.
5432 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
5434 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5435 prepare_execute_command.
5436 * top.c (prepare_execute_command): Return cleanup.
5437 (execute_command): Use cleanup from prepare_execute_command.
5438 * top.h (prepare_execute_command): Change prototype to return
5440 * defs.h (struct value): Add opaque declaration.
5441 (make_cleanup_value_free_to_mark): Add prototype.
5442 * utils.c (do_value_free_to_mark): New function.
5443 (make_cleanup_value_free_to_mark): Likewise.
5445 2011-05-12 Tom Tromey <tromey@redhat.com>
5447 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5448 cast left-hand-side to unsigned.
5450 2011-05-12 Tom Tromey <tromey@redhat.com>
5453 * value.h (value_from_contents): Declare.
5454 * value.c (value_from_contents): New function.
5455 * dwarf2read.c (dwarf_stack_op_name): Add new values.
5456 (dwarf2_get_die_type): New function.
5457 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5458 (allocate_piece_closure): Acquire reference to values.
5459 (read_pieced_value): Update for value-based expressions.
5460 (write_pieced_value): Likewise.
5461 (free_pieced_value_closure): Call value_free as needed.
5462 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5463 Update for value-based expressions.
5464 * dwarf2loc.h (dwarf2_get_die_type): Declare.
5465 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5466 <get_base_type>: New field.
5467 (struct dwarf_expr_piece) <v.value>: Change type.
5468 <v.regno>: New field.
5469 (struct dwarf_expr_context) <mark>: New field.
5470 (dwarf_expr_piece, dwarf_expr_fetch): Update.
5471 (dwarf_expr_pop, dwarf_expr_push): Remove.
5472 (dwarf_expr_push_address): Declare.
5473 * dwarf2expr.c (dwarf_arch_cookie): New global.
5474 (struct dwarf_gdbarch_types): New.
5475 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5477 (dwarf_expr_push): Change type of 'value' argument. Update. Now
5479 (dwarf_expr_push_address): New function.
5480 (dwarf_expr_pop): Now static.
5481 (dwarf_expr_fetch): Change return type.
5482 (dwarf_require_integral): New function.
5483 (dwarf_expr_fetch): Simplify.
5484 (add_piece): Update.
5485 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5487 (execute_stack_op) <sign_ext>: Remove.
5488 Use values for DWARF stack.
5489 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5490 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5492 (_initialize_dwarf2expr): New function.
5493 (add_piece): Update.
5494 (new_dwarf_expr_context): Set new field.
5495 (free_dwarf_expr_context): Call value_free_to_mark.
5496 * dwarf2-frame.c (no_base_type): New function.
5497 (execute_stack_op): Set get_base_type field. Update.
5499 2011-05-12 Tom Tromey <tromey@redhat.com>
5501 * dwarf2read.c (read_common_block): Fix formatting.
5503 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
5505 * breakpoint.c (disable_breakpoint): Disable all locations
5506 associated with a tracepoint on target if a trace experiment is
5508 (disable_command): Disable a specific tracepoint location on target if
5509 a trace experiment is running.
5510 (do_enable_breakpoint): Enable all locations associated with a
5511 tracepoint on target if a trace experiment is running.
5512 (enable_command) Enable a specific tracepoint location on target if a
5513 trace experiment is running.
5514 * target.c (update_current_target): Add INHERIT and de_fault clauses for
5515 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5516 to_disable_tracepoint.
5517 * target.h: Add declaration of struct bp_location.
5518 (struct target_ops): Add new functions
5519 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5520 to_disable_tracepoint to target operations.
5521 (target_supports_enable_disable_tracepoint): New macro.
5522 (target_enable_tracepoint): New macro.
5523 (target_disable_tracepoint): New macro.
5524 * remote.c (struct remote_state): Add new field.
5525 (remote_enable_disable_tracepoint_feature): New.
5526 (remote_protocol_features): Add new entry.
5527 (remote_supports_enable_disable_tracepoint): New.
5528 (remote_enable_tracepoint): New.
5529 (remote_disable_tracepoint): New.
5530 (init_remote_ops): Add remote_enable_tracepoint,
5531 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5532 to remote operations.
5533 * tracepoint.c (start_tracing): Allow tracing to start without any
5534 tracepoints enabled with just a warning if they can be re-enabled
5536 * NEWS: Add news item for the new behaviour of the enable and disable
5537 GDB commands when applied to tracepoints.
5538 Add news items for the new remote packets QTEnable and QTDisable.
5540 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5542 * config.in: Regenerate.
5543 * configure: Regenerate.
5544 * configure.ac <--with-system-readline> (for readline_echoing_p):
5546 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5547 (tui_old_rl_echoing_p): ... here.
5548 (tui_setup_io): Rename extern declaration readline_echoing_p to
5549 _rl_echoing_p. Adjust assignments for the both renames.
5551 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5553 * symtab.c (lookup_symtab): Run cleanup before returning.
5555 2011-05-11 Tom Tromey <tromey@redhat.com>
5557 * dwarf2read.c (handle_data_member_location): New function.
5558 (dwarf2_add_field): Use it.
5559 (read_common_block): Likewise.
5561 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5563 Make addrs->SECTINDEX always defined.
5564 * symfile.c (relative_addr_info_to_section_offsets): Check for
5565 SECTINDEX -1, not for zero ADDR.
5566 (addrs_section_compar): Remove checking for invalid SECTINDEX.
5567 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5568 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5571 2011-05-10 Doug Evans <dje@google.com>
5573 * linux-thread-db.c: Whitespace cleanup.
5574 (try_thread_db_load_1): Fix comment.
5576 * linux-thread-db.c (set_libthread_db_search_path): New function.
5577 (_initialize_thread_db): Add setter for libthread-db-search-path.
5579 2011-05-09 Doug Evans <dje@google.com>
5581 * NEWS: Mention --with-iconv-bin.
5582 * configure.ac: New option --with-iconv-bin.
5583 * configure: Regenerate.
5584 * config.in: Regenerate.
5585 * defs.h (relocate_gdb_directory): Declare.
5586 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5587 removed progname parameter, and exported. All callers updated.
5588 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5590 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5591 adding missing call to restore_child_signals_mask.
5593 2011-05-09 Pedro Alves <pedro@codesourcery.com>
5595 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5597 * infrun.c (proceed, start_remote): Adjust.
5598 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5599 and adjust to not handle it.
5600 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5601 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5602 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5603 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5604 * windows-nat.c (do_initial_windows_stuff): Adjust.
5605 * infcmd.c (attach_command): Adjust.
5606 (notice_new_inferior): Adjust.
5608 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5610 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5611 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5612 * spu-tdep.c (op_selb): Use correct value.
5614 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
5616 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5617 "parent" parameter to symbol_file_add_from_bfd call.
5619 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5620 Thiago Jung Bauermann <bauerman@br.ibm.com>
5622 Implement support for PowerPC BookE masked watchpoints.
5623 * NEWS: Mention masked watchpoint support. Create "Changed commands"
5625 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5626 method. Initialize to NULL in all existing breakpoint_ops instances.
5627 (struct breakpoint) <hw_wp_mask>: New field.
5628 * breakpoint.c (is_masked_watchpoint): Add prototype.
5629 (update_watchpoint): Don't set b->val for masked watchpoints. Call
5630 breakpoint's breakpoint_ops.works_in_software_mode if available.
5631 (watchpoints_triggered): Handle the case of a hardware masked
5633 (watchpoint_check): Likewise.
5634 (works_in_software_mode_watchpoint): New function.
5635 (insert_masked_watchpoint, remove_masked_watchpoint)
5636 (resources_needed_masked_watchpoint)
5637 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5638 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5639 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5641 (masked_watchpoint_breakpoint_ops): New structure.
5642 (watch_command_1): Check for the existence of the `mask' parameter.
5643 Set b->ops according to the type of hardware watchpoint being created.
5644 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5645 (ppc_linux_remove_mask_watchpoint)
5646 (ppc_linux_masked_watch_num_registers): New functions.
5647 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5648 to_remove_mask_watchpoint and to_masked_watch_num_registers.
5649 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5650 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5651 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5652 (target_masked_watch_num_registers): New functions.
5653 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5654 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5656 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5657 (target_masked_watch_num_registers): Add prototypes.
5659 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5662 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5663 (producer_is_gcc_ge_4_0): New function.
5664 (process_full_comp_unit): Set also symtab->locations_valid. Move the
5665 symtab->language code.
5666 (var_decode_location): Set cu->has_loclist.
5667 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5668 skip. Intialize force_skip from locations_valid. Move the prologue
5669 skipping code into two passes.
5670 * symtab.h (struct symtab): Make the primary field a bitfield. New
5671 field locations_valid.
5673 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5675 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5676 (classify_inner_name): Call cp_lookup_nested_type with
5678 * cp-namespace.c (cp_lookup_nested_type): New variable
5679 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
5680 type_name_no_tag_or_error with saved_parent_type.
5681 * dwarf2read.c (load_partial_dies): Read in any children of
5682 DW_TAG_typedef with complaint in such case.
5683 * gdbtypes.c (type_name_no_tag_or_error): New function.
5684 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5685 * valops.c (destructor_name_p): New comment for parameter type. Remove
5686 type const. Make dname and cp const. Call type_name_no_tag_or_error.
5687 * value.h (destructor_name_p): Remove type const.
5689 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5691 * symtab.c (compare_symbol_name): New function.
5692 (completion_list_add_name, expand_partial_symbol_name): Call it,
5693 remove the variable ncmp.
5694 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5697 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5699 Demote to sw watchpoint only in update_watchpoint.
5700 * breakpoint.c (update_watchpoint): Change between software and
5701 hardware watchpoint for all kinds of watchpoints, not just
5702 read/write ones. Determine b->exact value here instead of
5703 in watch_command_1. Error out if there are not enough resources
5704 for a read or access hardware watchpoint.
5705 (watch_command_1): Remove logic of checking whether there are
5706 enough resources available, since update_watchpoint will do that
5707 work now. Don't set b->exact here. Catch exceptions thrown by
5708 update_watchpoint and delete the watchpoint.
5709 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5710 Use target_exact_watchpoints instead.
5711 (delete_breakpoint): Notify observers only if deleted watchpoint
5712 has a breakpoint number assigned to it.
5714 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
5716 * MAINTAINERS: Add myself as a write-after-approval maintainer.
5718 2011-05-05 Jerome Guitton <guitton@adacore.com>
5720 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5722 (i386_stack_tramp_frame_unwind): New static global.
5723 (i386_match_pattern): New function, extracted from i386_match_insn.
5724 (i386_match_insn): Use i386_match_pattern.
5725 (i386_match_insn_block): New function.
5726 (i386_tramp_chain_in_reg_insns)
5727 (i386_tramp_chain_on_stack_insns): New static variables.
5728 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5731 2011-05-04 Joseph Myers <joseph@codesourcery.com>
5733 * configure.host (xscale*): Don't handle target.
5734 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5737 2011-05-04 Yao Qi <yao@codesourcery.com>
5739 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5741 2011-05-03 Joel Brobecker <brobecker@adacore.com>
5744 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
5745 | * elfread.c (elf_symtab_read): Stop memory leak.
5747 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5749 * nto-tdep.c (nto_target): Replace deprecated call to
5750 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5752 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5754 Fix false GCC warning.
5755 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5757 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
5759 * breakpoint.c (update_watchpoint): Move code to change
5760 the enable state of breakpoint from here ...
5761 (do_enable_breakpoint): ... to here.
5763 2011-04-26 Andrew Gontarek <andrewg@cray.com>
5765 * valprint.c (val_print_array_elements): Fixed poor performance
5766 of printing very large arrays with repeat_count_threshold set
5767 to unlimited. New comment.
5769 2011-04-29 Tom Tromey <tromey@redhat.com>
5771 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5772 (mi_parse): Likewise.
5773 * breakpoint.c (break_range_command): Use sizeof char*, not
5775 (create_breakpoint): Likewise.
5776 (parse_breakpoint_sals): Likewise.
5778 2011-04-29 Pedro Alves <pedro@codesourcery.com>
5780 * linux-nat.c (linux_child_remove_fork_catchpoint)
5781 (linux_child_remove_vfork_catchpoint)
5782 (linux_child_remove_exec_catchpoint): New functions.
5783 (linux_target_install_ops): Install them.
5785 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
5789 * varobj.c (install_default_visualizer): Do not install a
5790 visualizer if the varobj is CPLUS_FAKE_CHILD.
5791 (construct_visualizer): Likewise.
5793 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5795 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
5796 case insensitive comparison.
5798 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
5800 * infrun.c (proceed): Revert previous change.
5801 (resume): Instead, handle the case of signal delivery while stepping
5802 off a breakpoint location here, and only if software single-stepping
5803 is used. Handle nested signals.
5805 2011-04-28 Yao Qi <yao@codesourcery.com>
5807 * arm-tdep.c (copy_unmodified): Rename to ...
5808 (arm_copy_unmodified): .. this. New.
5809 (copy_preload): Move common part to ...
5810 (install_preload): .. this. New.
5811 (arm_copy_preload): New.
5812 (copy_preload_reg): Move common part to ...
5813 (install_preload_reg): ... this. New.
5814 (arm_copy_preload_reg): New.
5815 (copy_b_bl_blx): Move common part to ...
5816 (install_b_bl_blx): .. this. New.
5817 (arm_copy_b_bl_blx): New.
5818 (copy_bx_blx_reg): Move common part to ...
5819 (install_bx_blx_reg): ... this. New.
5820 (arm_copy_bx_blx_reg): New.
5821 (copy_alu_reg): Move common part to ...
5822 (install_alu_reg): ... this. New.
5823 (arm_copy_alu_reg): New.
5824 (copy_alu_shifted_reg): Move common part to ...
5825 (install_alu_shifted_reg): ... this. New.
5826 (copy_ldr_str_ldrb_strb): Move common part to ...
5827 (install_ldr_str_ldrb_strb): ... this. New.
5828 (arm_copy_ldr_str_ldrb_strb): New.
5829 (copy_copro_load_store): Move some common part to ...
5830 (install_copy_copro_load_store): ... this. New.
5831 (arm_copy_copro_load_store): New.
5833 (arm_copy_svc): Renamed from copy_svc.
5834 (copy_undef): Delete.
5835 (arm_copy_undef): Renamed from copy_undef.
5836 (decode_ext_reg_ld_st): Delete.
5837 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5838 (decode_svc_copro): Delete.
5839 (arm_decode_svc_copro): Renamed from decode_svc_copro.
5840 (copy_copro_load_store, copy_alu_imm): update callers.
5841 (copy_extra_ld_st, copy_block_xfer): Likewise.
5842 (decode_misc_memhint_neon, decode_unconditional): Likewise.
5843 (decode_miscellaneous, decode_dp_misc): Likewise.
5844 (decode_ld_st_word_ubyte, decode_media): Likewise.
5845 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5846 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5847 (decode_unconditional, decode_miscellaneous): Likewise.
5848 (decode_media, decode_b_bl_ldmstm): Likewise.
5849 (arm_process_displaced_insn): Likewise..
5850 (decode_misc_memhint_neon): Delete.
5851 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5852 (decode_miscellaneous): Delete.
5853 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5854 (decode_dp_misc): Delete.
5855 (arm_decode_dp_misc): Renamed from decode_dp_misc.
5856 (decode_ld_st_word_ubyte): Delete.
5857 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5858 (decode_media): Delete.
5859 (arm_decode_media): Renamed from decode_media.
5860 (decode_b_bl_ldmstm): Delete.
5861 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5862 (decode_ext_reg_ld_st): Delete.
5863 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5864 (decode_unconditional): Delete.
5865 (arm_decode_unconditional): Renamed from decode_unconditional.
5867 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5869 Case insensitive lookups implementation.
5870 * dwarf2read.c: Include ctype.h.
5871 (struct mapped_index): New field version.
5872 (mapped_index_string_hash): New parameter index_version. New comment
5873 for it. Call tolower appropriately.
5874 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5875 Choose the right index version for mapped_index_string_hash.
5876 (dwarf2_read_index): Support also the index version 5. Initialize the
5877 new struct mapped_index field version.
5878 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5879 (find_slot): Explain the version needs. Pass INT_MAX for the new
5881 (write_psymtabs_to_index): Produce version 5.
5882 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5883 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
5884 * psymtab.c (lookup_partial_symbol): Find the
5885 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5887 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5889 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5890 (completion_list_add_name): New variable ncmp, initialize it, use it.
5891 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5892 * utils.c (strcmp_iw): Support case_sensitive_off.
5893 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5894 New function comment part. New variables saved_string1,
5895 saved_string2 and case_pass. Add a proper second pass.
5897 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5899 Replace re_comp/re_exec by regcomp/regexec.
5900 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5901 (search_symbols_name_matches): Use them, use regexec.
5902 (search_symbols): New variable retval_chain, adjust the use of
5903 old_chain against it. Replace re_comp by regcomp. Use the new struct
5904 search_symbols_data fields, use regexec instead of re_exec.
5906 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5908 Format the code for the next patch.
5909 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5910 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5911 New variables c1 and c2.
5913 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5915 * infrun.c (proceed): Do not single-step into signal delivery
5916 when stepping off a breakpoint location.
5917 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5918 (insert_step_resume_breakpoint_at_caller): Likewise.
5919 (insert_step_resume_breakpoint_at_sal): Likewise.
5920 (insert_longjmp_resume_breakpoint): Likewise.
5922 2011-04-27 Yao Qi <yao@codesourcery.com>
5924 * common/linux-ptrace.h: Remove include <sys/wait.h>.
5926 2011-04-27 Joel Brobecker <brobecker@adacore.com>
5928 * procfs.c (procfs_pass_signals): Fix advance declaration.
5930 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
5932 * target.h (struct target_ops): Remove to_notice_signals;
5933 add to_pass_signals.
5934 (target_notice_signals): Remove.
5935 (target_pass_signals): Add prototype.
5936 * target.c (update_current_target): Remove to_notice_signals;
5937 mention to_pass_signals.
5938 (target_pass_signals): New function.
5939 (debug_to_notice_signals): Remove.
5940 (setup_target_debug): Do not install debug_to_notice_signals.
5942 * infrun.c (signal_pass): New global.
5943 (resume): Call target_pass_signals.
5944 (handle_inferior_event): Report all signals while stepping over
5945 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
5946 are re-inserted when stepping over a signal handler.
5947 (signal_cache_update): New function.
5948 (signal_stop_update): Call it.
5949 (signal_print_update): Likewise.
5950 (signal_pass_update): Likewise.
5951 (handle_command): Call signal_cache_update and target_pass_signals
5952 instead of target_notice_signals.
5953 (_initialize_infrun): Initialize signal_pass.
5955 * linux-nat.c (pass_mask): New global.
5956 (linux_nat_pass_signals): New function.
5957 (linux_nat_create_inferior): Report all signals initially.
5958 (linux_nat_attach): Likewise.
5959 (linux_nat_resume): Use pass_mask to decide whether to directly
5960 handle an inferior signal.
5961 (linux_nat_wait_1): Likewise.
5962 (linux_nat_add_target): Install to_pass_signals callback.
5964 * nto-procfs.c (notice_signals): Remove.
5965 (procfs_resume): Do not call notice_signals.
5966 (procfs_notice_signals): Remove.
5967 (procfs_pass_signals): New function.
5968 (init_procfs_ops): Install to_pass_signals callback instead of
5969 to_notice_signals callback.
5970 (_initialize_procfs): Report all signals initially.
5972 * procfs.c (procfs_notice_signals): Remove.
5973 (procfs_pass_signals): New function.
5974 (procfs_target): Install to_pass_signals callback instead of
5975 to_notice_signals callback.
5976 (register_gdb_signals): Remove.
5977 (procfs_debug_inferior): Report all signals initially.
5978 (procfs_init_inferior): Remove redundant register_gdb_signals call.
5980 * remote.c (remote_pass_signals): Add numsigs and pass_signals
5981 parameters; use them instead of calling signal_..._state routines.
5982 (remote_notice_signals): Remove.
5983 (remote_start_remote): Report all signals initially.
5984 (remote_resume): Do not call remote_pass_signals.
5985 (_initialize_remote): Install to_pass_signals callback instead of
5986 to_notice_signals callback.
5988 2011-04-27 Pedro Alves <pedro@codesourcery.com>
5990 * breakpoint.c (user_settable_breakpoint): Delete.
5991 (user_breakpoint_p): Remove check on user_settable_breakpoint.
5992 (delete_command): Check user_breakpoint_p instead of looking at
5993 the breakpoint's type.
5994 (disable_command): Ditto.
5995 (enable_command): Ditto.
5996 (delete_trace_command): Use user_breakpoint_p instead of looking
5997 at the breakpoint number directly. When checking if there are
5998 user visible tracepoints, in order to know whether to ask the user
5999 for confirmation, check whether the breakpoint is actually a
6002 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6004 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6007 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6009 MI breakpoint notifications.
6011 * annotate.c (breakpoint_changed): Adjust parameter type.
6012 * breakpoint.c (set_breakpoint_condition): Adjust to change
6013 in breakpoint_modified type.
6014 (breakpoint_set_commands): Likewise.
6015 (do_map_commands_command): Likewise.
6016 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6017 changed after bumping hit count.
6018 (bpstat_stop_status): Likewise.
6019 (print_one_breakpoint_location): Don't wrap in tuple here.
6020 (print_one_breakpoint): Always print individual locations.
6021 For locations, use unnamed tuple.
6022 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6024 (create_catchpoint, create_syscall_event_catchpoint): Call
6025 breakpoint_created obsever.
6026 (mention): Don't call breakpoint_created observer.
6027 (create_breakpoint_sal): Call breakpoint_created observer.
6028 (create_breakpoint, watch_command_1): Likewise.
6029 (create_ada_exception_breakpoint): Likewise.
6030 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6031 (locations_are_equal): New.
6032 (update_breakpoint_locations): If locations were changed, notify.
6033 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6034 Call breakpoint_modified observer.
6036 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6037 (mi_cmd_break_insert): Don't set observers for modify and delete.
6038 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6039 (mi_breakpoint_created, mi_breakpoint_deleted)
6040 (mi_breakpoint_modified): New.
6041 (mi_interpreter_init): Hook the above.
6042 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6043 while -break-* commands are executing.
6044 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6045 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6047 (mi_ui_out_impl): Hook in mi_redirect.
6048 (mi_field_skip): True to the name, skip the field, don't output
6049 a field with an empty value.
6051 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6052 (gdbpy_breakpoint_deleted): Adjust.
6053 * tui/tui-hooks.c (tui_event_create_breakpoint)
6054 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6056 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6058 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6059 (procfs_remove_hw_watchpoint): Likewise.
6061 2011-04-26 Michael Walle <michael@walle.cc>
6063 * remote.c (remote_start_remote): Ack packet after sending the
6066 2011-04-26 Yao Qi <yao@codesourcery.com>
6068 * linux-nat.c: Move common macros to ...
6069 Include linux-ptrace.h.
6070 * common/linux-ptrace.h: ... here. New.
6072 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6074 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6075 !objfile_has_partial_symbols. New comment.
6076 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6077 SYM_READ_PSYMBOLS is not present. Extend the comment.
6078 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6080 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6082 * defs.h (ENUM_BITFIELD): Remove.
6084 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6085 Eli Zaretskii <eliz@gnu.org>
6087 * NEWS: Document the new gdbserver --once option.
6089 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6091 * MAINTAINERS: Update my email address.
6093 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6095 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6096 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6097 function call if __STDC_ISO_10646__ macro is defined.
6098 (intermediate_encoding): New prototype.
6099 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6100 to generate compile time error for unsupported gdb_wchar_t size.
6101 (ENDIAN_SUFFIX): New macro.
6102 (intermediate_encoding): New function.
6104 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6106 * ada-lang.c (struct add_partial_datum): Update the comment for
6107 expand_partial_symbol_name.
6108 (ada_add_partial_symbol_completions): Rename to ...
6109 (ada_expand_partial_symbol_name): ... here, change return type, update
6110 function comment, call symbol_completion_match instead of
6111 symbol_completion_add.
6112 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6113 and ada_expand_partial_symbol_name.
6114 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6116 (dw2_map_symbol_names): Remove.
6117 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6118 * psymtab.c (map_symbol_names_psymtab): Remove.
6119 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6120 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6122 (psym_functions): Unlist map_symbol_names_psymtab.
6123 (map_partial_symbol_names): Rename to ...
6124 (expand_partial_symbol_names): ... here, change the FUN type, call
6125 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6126 * psymtab.h (map_partial_symbol_names): Rename to ...
6127 (expand_partial_symbol_names): ... here, change the FUN type.
6128 * symfile.h (struct quick_symbol_functions): Update the description of
6129 expand_symtabs_matching. Remove map_symbol_names.
6130 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6131 (struct add_name_data): Update the comment for
6132 expand_partial_symbol_name.
6133 (add_partial_symbol_name): Rename to ...
6134 (expand_partial_symbol_name): ... here. Replace
6135 completion_list_add_name call by strncmp.
6136 (default_make_symbol_completion_list_break_on): Use now
6137 expand_partial_symbol_names and expand_partial_symbol_name.
6138 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6140 2011-04-20 Tom Tromey <tromey@redhat.com>
6142 * dwarf2read.c (save_gdb_index_command): Replace format
6143 documentation with a pointer to the manual.
6145 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6147 * regcache.c: Include remote.h.
6148 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6149 (regcache_dump): Handle regcache_dump_remote.
6150 (maintenance_print_remote_registers): New function.
6151 (_initialize_regcache): Install "maint print remote-registers"
6153 * remote.c (map_regcache_remote_table): New function, factored out
6155 (init_remote_state): ... here.
6156 (remote_register_number_and_offset): New.
6157 * remote.h (remote_register_number_and_offset): Declare.
6159 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6161 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6162 null_ptid, assume and allow a NULL address space, instead of
6163 asking the target for the ptid's address space.
6164 * infrun.c (ptid_is_pid): Remove assertion.
6166 2011-04-19 Tom Tromey <tromey@redhat.com>
6168 * windows-tdep.c (windows_xfer_shared_library):
6169 * windows-nat.c (get_module_name, windows_make_so):
6170 * v850-tdep.c (v850_handle_pushm):
6171 * utils.c (null_cleanup, gdb_realpath):
6172 * ui-out.c (get_next_header):
6173 * tracepoint.c (clear_traceframe_info):
6174 * symtab.c (lookup_symtab):
6175 * serial.h (struct serial_ops):
6176 * mipsread.c (read_alphacoff_dynamic_symtab):
6177 * infcmd.c (print_return_value):
6178 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6179 * f-exp.y (parse_number):
6180 * exceptions.c (catch_exceptions):
6181 * dummy-frame.c (dummy_frame_this_id):
6182 * defs.h (struct cleanup):
6183 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6184 * arm-tdep.c (arm_push_dummy_call):
6185 * amd64-tdep.h (amd64_collect_xsave):
6186 * amd64-tdep.c (amd64_collect_xsave):
6187 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6188 * README (typing): Remove duplicate words.
6189 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6190 * infrun.c (siginfo_value_read): Fix typo.
6191 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6192 * top.c (source_line_number): Add comma.
6194 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6196 * thread.c (any_live_thread_of_process): Prioritize threads
6197 that are not executing.
6198 * gdbthread.h (any_live_thread_of_process): Update comment
6199 as per above change.
6201 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6203 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6204 (scan_xcoff_symtab): Likewise.
6206 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6208 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6211 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6212 Pedro Alves <pedro@codesourcery.com>
6214 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6215 variables to simplify code and avoid == operator at end of
6216 line as this is against GNU coding standards.
6218 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6220 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6221 lm_name to name_lm to avoid conflict with lm_name function.
6223 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6225 ARI fixes: Use only lowercase function name for static functions.
6226 * nto-tdep.c (LM_ADDR): Rename to...
6227 (lm_addr): New function name.
6228 (nto_relocate_section_addresses): Adapt to change above.
6229 * solib-sunos.c (LM_ADDR): Rename to...
6230 (lm_addr): New function name.
6231 (LM_NEXT): Rename to...
6232 (lm_next): New function name.
6233 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6234 function name changes above.
6235 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6236 (lm_addr_from_link_map): New function name.
6237 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6238 (has_lm_dynamic_from_link_map): New function name.
6239 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6240 (lm_dynamic_from_link_map): New function name.
6241 (LM_ADDR_CHECK): Rename to...
6242 (lm_addr_check): New function name.
6243 (LM_NEXT): Rename to...
6244 (lm_next): New function name.
6245 (LM_PREV): Rename to...
6246 (lm_prev): New function name.
6247 (LM_NAME): Rename to...
6248 (lm_name): New function name.
6249 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6250 (ignore_first_link_map_entry): New function name.
6251 (svr4_keep_data_in_core): Adapt to function name changes above.
6252 (svr4_current_sos): Likewise.
6253 (enable_break): Likewise.
6254 (svr4_relocate_section_addresses): Likewise.
6256 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6259 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6260 sprintf. Simplify code and avoid loosing memory.
6261 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6262 (call0_frame_cache): Remove && operator from end of line.
6264 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6266 Fix libraries displacement if they change whether they were prelinked.
6267 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6268 does not match. Comment why.
6270 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6272 * corelow.c: Include wrapper.h.
6273 (core_open): Call now gdb_target_find_new_threads.
6274 * wrapper.c: Include target.h.
6275 (gdb_target_find_new_threads): New.
6276 * wrapper.h (gdb_target_find_new_threads): New declaration.
6278 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6280 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6281 even if !TARGET_HAS_EXECUTION.
6283 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6285 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6286 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6287 bfd_get_synthetic_symtab.
6288 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6289 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6290 parameter parent, remove the call to add_separate_debug_objfile.
6291 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6292 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6293 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6294 parent, new comment for it, call add_separate_debug_objfile for it.
6295 (symbol_file_add_separate): Pass objfile as the parameter parent,
6296 remove the call to add_separate_debug_objfile.
6297 (symbol_file_add_from_bfd): New parameter parent, pass it.
6298 (symbol_file_add): Pass NULL to the new parameter parent.
6299 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6301 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6303 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6306 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6308 Fix Python access to inlined frames.
6309 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6310 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6312 2011-04-15 Tom Tromey <tromey@redhat.com>
6314 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6316 2011-04-15 Gary Benson <gbenson@redhat.com>
6318 * MAINTAINERS: Add myself to write-after-approval section.
6320 2011-04-14 Mike Frysinger <vapier@gentoo.org>
6322 * remote-sim.c (sim_command_completer): New function.
6323 (_initialize_remote_sim): Set completer to sim_command_completer.
6325 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6327 * breakpoint.c (print_exception_catchpoint): Rename to ...
6328 (print_it_exception_catchpoint): ... this.
6329 (gnu_v3_exception_catchpoint_ops): Update with new name
6330 for print_it_exception_catchpoint.
6332 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
6334 * MAINTAINERS: Add myself for write after approval privileges.
6336 2011-04-13 Marek Polacek <mpolacek@redhat.com>
6338 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6340 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6342 * breakpoint.c (watch_command_1): Remove colon from exp_string.
6344 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6346 * breakpoint.c (save_breakpoints): Verify whether
6347 breakpoint_ops.print_recreate is defined before calling it.
6349 2011-04-11 Gary Benson <gbenson@redhat.com>
6351 Fix failure with --enable-maintainer-mode.
6352 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6354 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6357 * symtab.c (search_symbols): Reorder the KIND description in the
6358 function comment. Remove the unused 4th element of types, types2,
6359 types3 and types4. New gdb_assert on KIND.
6360 (symtab_symbol_info): Remove the unused 4th element of classnames.
6361 New gdb_assert on KIND.
6362 * symtab.h (enum search_domain): New warning in the enum comment.
6363 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6366 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6368 Fix crash of gdb save-index on a STABS file.
6369 * dwarf2read.c (write_psymtabs_to_index): Return also on no
6372 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6374 Fix DW_AT_accessibility compatibility with gcc-4.6+.
6375 * dwarf2read.c: Include ctype.h.
6376 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6378 (dwarf2_add_field): Fix new_field->accessibility by calling
6379 dwarf2_default_access_attribute. Restructure setting accessibility
6381 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
6382 is_private and is_protected by calling
6383 dwarf2_default_access_attribute.
6385 2011-04-08 Kevin Buettner <kevinb@redhat.com>
6387 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6388 to the initialization.
6390 2011-04-08 Steve Ellcey <sje@cup.hp.com>
6392 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6395 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
6397 Remove support for old Cygwin 1.5 versions.
6398 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6399 function on old Cygwin version.
6400 * windows-nat.c: Remove cygwin version check and always define
6401 __USEWIDE for Cygwin compilation.
6403 2011-04-07 Yao Qi <yao@codesourcery.com>
6405 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6407 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6408 (arm_copy_svc): Remove parameters INSN and TO.
6409 (decode_svc_copro): Update caller.
6410 * arm-tdep.h (struct displaced_step_closure): Remove parameters
6411 from function pointer `copy_svc_os'.
6413 2011-04-07 Yao Qi <yao@codesourcery.com>
6415 * arm-tdep.c (cleanup_branch): Set a correct return address in
6416 LR for ARM and Thumb.
6418 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6421 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6422 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6423 in the function comment, a new note on values compatibility.
6424 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6425 * symtab.h (SYMBOL_HASH_NEXT): New.
6427 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
6429 * ppc-linux-nat.c (check_condition): Add len output parameter.
6430 Set it based on the memory region referenced in the condition
6431 expression. Update all callers.
6433 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6435 Fix crash regression on systems featuring .gdb_index.
6436 * objfiles.c (free_objfile): Move the
6437 forget_cached_source_info_for_objfile call earlier. Comment it.
6438 Extend the comment for objfile_free_data.
6440 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6442 Fix regression of displaying the debug format.
6443 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6446 2011-04-04 Tom Tromey <tromey@redhat.com>
6448 * cli/cli-interp.c (struct captured_execute_command_args):
6450 (do_captured_execute_command): Remove.
6451 (safe_execute_command): Use TRY_CATCH.
6452 * cli/cli-script.c (struct wrapped_read_command_file_args):
6454 (wrapped_read_command_file): Remove.
6455 (script_from_file): Use TRY_CATCH.
6456 * exceptions.c (catch_exception): Remove.
6457 * exceptions.h (catch_exception): Remove.
6458 (deprecated_throw_reason): Update comment.
6459 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6460 argument to 'context'.
6461 (mi_execute_command): Use TRY_CATCH.
6462 * remote.c (struct start_remote_args): Remove.
6463 (remote_start_remote): Update; change arguments.
6464 (remote_open_1): Use TRY_CATCH.
6466 2011-04-04 Tom Tromey <tromey@redhat.com>
6468 * tracepoint.c (scope_info): Update.
6469 * symtab.c (decode_line_spec): Update.
6470 * python/python.c (gdbpy_decode_line): Update.
6471 * linespec.h (decode_line_1): Update.
6472 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6473 (decode_compound, find_method, symtab_from_filename)
6474 (decode_variable): Likewise.
6475 * cli/cli-cmds.c (edit_command): Update.
6476 (list_command): Update.
6477 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6479 (create_breakpoint): Update.
6480 (until_break_command): Update.
6481 (addr_string_to_sals): Update.
6482 (decode_line_spec_1): Update.
6484 2011-04-04 Tom Tromey <tromey@redhat.com>
6486 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6487 (do_captured_parse_breakpoint): Remove.
6488 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
6489 Use TRY_CATCH directly.
6491 2011-04-04 Tom Tromey <tromey@redhat.com>
6493 * symtab.h (free_symtab): Remove.
6494 (forget_cached_source_info_for_objfile): Declare.
6495 * symmisc.c (free_symtab): Remove.
6496 * source.c (forget_cached_source_info_for_objfile): New function.
6497 (forget_cached_source_info): Use it.
6498 * objfiles.c (free_objfile): Simplify check before calling
6499 clear_current_source_symtab_and_line. Call
6500 forget_cached_source_info_for_objfile.
6502 2011-04-04 Tom Tromey <tromey@redhat.com>
6504 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6505 (new_symtab): Don't set `free_code' on symtab.
6506 (new_linetable): Properly handle size==0.
6507 * symtab.h (struct symtab) <free_code, free_func>: Remove.
6508 * symmisc.c (free_symtab): Don't free the linetable. Don't call
6510 * jv-lang.c (struct jv_per_objfile_data): New.
6511 (jv_per_objfile_free): Free the data.
6512 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6513 (get_java_class_symtab): Set the `dict' field on the
6514 jv_per_objfile_data.
6515 (free_class_block): Remove.
6516 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6519 2011-04-04 Tom Tromey <tromey@redhat.com>
6521 * symfile.c (reread_symbols): Update.
6522 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6524 * objfiles.c (allocate_objfile): Update.
6525 * cp-support.h (cp_check_possible_namespace_symbols): Don't
6527 * cp-namespace.c (lookup_symbol_file): Don't call
6528 lookup_possible_namespace_symbol.
6529 (initialize_namespace_symtab, get_possible_namespace_block)
6530 (free_namespace_block, cp_check_possible_namespace_symbols)
6531 (check_possible_namespace_symbols_loop)
6532 (check_one_possible_namespace_symbol)
6533 (lookup_possible_namespace_symbol): Remove.
6534 (maintenance_cplus_namespace): Replace with notice.
6535 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6537 2011-04-04 Tom Tromey <tromey@redhat.com>
6539 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6540 * symtab.h (struct symtab) <producer, debugformat>: Now const.
6541 * symmisc.c (free_symtab): Don't free debugformat.
6542 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6543 (record_debugformat, record_producer): Document.
6544 * buildsym.c (end_symtab): Don't save debugformat and producer
6546 (end_symtab): Don't free debugformat and producer fields.
6547 (record_debugformat): Don't call xstrdup.
6548 (record_producer): Likewise.
6550 2011-04-04 Tom Tromey <tromey@redhat.com>
6552 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6553 (source_line_charpos, source_charpos_line): Remove.
6555 2011-04-04 Tom Tromey <tromey@redhat.com>
6557 * symtab.h (domain_enum): Split in two...
6558 (enum search_domain): New.
6559 (search_symbols): Update.
6560 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6561 redundant declarations.
6562 (search_symbols): Change 'kind' argument to search_domain.
6564 (print_symbol_info): Likewise.
6565 (symtab_symbol_info): Likewise.
6566 * symfile.h (struct quick_symbol_functions)
6567 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6568 <expand_symtabs_matching>: Likewise.
6569 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6570 (expand_symtabs_matching_via_partial): Update.
6571 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6572 (dw2_expand_symtabs_for_function): Update.
6573 * block.h: Moved anonymous enum...
6574 * defs.h (enum block_enum): ... here. Now named.
6576 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6578 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6579 * version.in: Bump version to 7.3.50.20110403-cvs.
6581 2011-04-03 Joel Brobecker <brobecker@adacore.com>
6583 * NEWS: Create a new section for the next release branch.
6584 Rename the section of the current branch, now that it has
6587 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6589 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6590 for "fpscr" in target description.
6592 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6594 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6595 initialize it. Delay HASH initialization. Strip the part after open
6596 parenthesis for languages with qualifiers. Call do_cleanups.
6598 2011-04-01 Tom Tromey <tromey@redhat.com>
6600 * utils.c (report_command_stats): Don't print `-' for negative
6603 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
6605 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6606 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6609 2011-04-01 Joel Brobecker <brobecker@adacore.com>
6611 * breakpoint.h (bpdisp_text): Add declaration.
6612 * breakpoint.c (bpdisp_text): Make non-static.
6613 * ada-lang.c: #include "mi/mi-common.h".
6614 (print_it_exception): Rewrite to improve GDB/MI output.
6616 2011-04-01 Pedro Alves <pedro@codesourcery.com>
6618 * arm-tdep.h (struct address_space): Add forward declaration.
6620 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
6622 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6623 * arm-tdep.c (arm_override_mode): New global.
6624 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
6625 execution mode heuristics.
6626 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6627 second single-step breakpoint if needed, using
6628 arm_insert_single_step_breakpoint.
6629 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
6630 ARM execution mode, do not call thumb_get_next_pc_raw.
6631 (arm_get_next_pc): Encode execution mode in return value. Call
6632 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6633 (arm_insert_single_step_breakpoint): New function.
6634 (arm_software_single_step): Call it.
6635 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6636 argument to return execution mode of sigreturn target.
6637 (arm_linux_syscall_next_pc): Use it.
6638 (arm_linux_copy_svc): Update call.
6639 (arm_linux_software_single_step): Call
6640 arm_insert_single_step_breakpoint.
6642 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6644 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6647 2011-03-31 Tom Tromey <tromey@redhat.com>
6649 * varobj.c (update_dynamic_varobj_children): Properly handle
6650 errors from iterator.
6652 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6654 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
6655 struct linkage name twice.
6657 2011-03-31 Tom Tromey <tromey@redhat.com>
6659 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6660 missing ">" to message.
6662 2011-03-31 Tom Tromey <tromey@redhat.com>
6664 * varobj.c (instantiate_pretty_printer): Remove duplicate
6667 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
6669 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6670 if neither saved value nor register available (e.g. signal frame).
6672 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6674 * macroexp.c (expand): Avoid uninitialized variable
6677 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6679 * breakpoint.c (break_range_command): Fix typo in comment.
6681 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
6682 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6684 Implement support for PowerPC BookE ranged breakpoints.
6685 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6686 * breakpoint.h (struct bp_target_info) <length>: New member
6688 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6689 instead of struct breakpoint as argument, and also add ASPACE
6690 and BP_ADDR arguments. Update all callers.
6691 (struct breakpoint_ops) <print_one_detail>: New method.
6692 (struct breakpoint) <addr_string_range_end>: New member variable.
6693 * breakpoint.c (breakpoint_location_address_match): Add function
6695 (insert_bp_location): Set bl->target_info.length.
6696 (breakpoint_here_p): Call breakpoint_location_address_match.
6697 (moribund_breakpoint_here_p): Likewise.
6698 (regular_breakpoint_inserted_here_p): Likewise.
6699 (breakpoint_thread_match): Likewise.
6700 (bpstat_stop_status): Likewise.
6701 (bpstat_check_location): Move call to
6702 breakpoint_ops.breakpoint_hit to the top.
6703 (print_one_breakpoint_location): Call
6704 breakpoint_ops.print_one_detail if available.
6705 (breakpoint_address_match_range): New function.
6706 (breakpoint_location_address_match): Likewise.
6707 (breakpoint_locations_match): Compare the length field of the
6709 (hw_breakpoint_used_count): Count resources used by all locations
6710 in a breakpoint, and use breakpoint_ops.resources_needed if
6712 (breakpoint_hit_ranged_breakpoint): New function.
6713 (resources_needed_ranged_breakpoint): Likewise.
6714 (print_it_ranged_breakpoint): Likewise.
6715 (print_one_ranged_breakpoint): Likewise.
6716 (print_one_detail_ranged_breakpoint): Likewise.
6717 (print_mention_ranged_breakpoint): Likewise.
6718 (print_recreate_ranged_breakpoint): Likewise.
6719 (ranged_breakpoint_ops): New structure.
6720 (find_breakpoint_range_end): New function.
6721 (break_range_command): Likewise.
6722 (delete_breakpoint): Free addr_string_range_end.
6723 (update_breakpoint_locations): Add SALS_END argument. Update
6724 all callers. Calculate breakpoint length if a non-zero SALS_END
6725 is given. Call breakpoint_locations_match instead of
6726 breakpoint_address_match.
6727 (reset_breakpoint): Find SaL of the end of the range if B is a
6729 (_initialize_breakpoint): Register break-range command.
6730 * defs.h (print_core_address): Add function prototype.
6731 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6733 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6734 (ppc_linux_remove_hw_breakpoint): Likewise.
6735 (_initialize_ppc_linux_nat): Initialize
6736 to_ranged_break_num_registers.
6737 * target.c (update_current_target): Add comment about
6738 to_ranged_break_num_registers.
6739 (target_ranged_break_num_registers): New function.
6740 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6742 (target_ranged_break_num_registers): Add function prototype.
6743 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6744 * utils.c (print_core_address): ... here.
6746 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
6748 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6749 variable compiler warning.
6751 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
6753 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6755 (re_set_breakpoint): ... to here ...
6756 (addr_string_to_sals): ... and here.
6758 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6760 * Makefile.in (SFILES): Add missing C sources.
6761 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6762 Add missing headers.
6764 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6766 * .gitignore: New file.
6768 2011-03-29 Mike Frysinger <vapier@gentoo.org>
6770 * NEWS: Mention new cfi device simulation.
6772 2011-03-29 Tom Tromey <tromey@redhat.com>
6774 * dwarf2read.c (fixup_partial_die): Handle linkage name on
6775 otherwise anonymous types.
6776 (dwarf2_name): Likewise.
6777 * valops.c (value_struct_elt_for_reference): Refine artificial
6778 type logic. Call error if j==-1.
6780 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
6782 Fix false GCC warning.
6783 * infcall.c (find_function_addr): Initialize funaddr.
6785 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
6787 Fix mingw compilation with --enable-targets=all.
6788 * remote-mips.c (gdb_usleep.h): Include header.
6789 (mips_enter_debug): Use gdb_usleep instead of sleep.
6791 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6793 Support resolution of STT_GNU_IFUNC via breakpoints.
6794 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6795 bp_gnu_ifunc_resolver_return.
6796 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6797 the loop. Support bp_gnu_ifunc_resolver and
6798 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
6799 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6801 (bptype_string, print_one_breakpoint_location): Support
6802 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6803 (user_settable_breakpoint): Return true also for
6804 bp_gnu_ifunc_resolver.
6805 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6806 bp_gnu_ifunc_resolver_return.
6807 (set_breakpoint_location_function): New parameter explicit_loc,
6808 describe it. Call find_pc_partial_function_gnu_ifunc with new
6809 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6810 EXPLICIT_LOC is not set.
6811 (set_raw_breakpoint): Set EXPLICIT_LOC for
6812 set_breakpoint_location_function.
6813 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6814 set_breakpoint_location_function.
6815 (mention): Support bp_gnu_ifunc_resolver and
6816 bp_gnu_ifunc_resolver_return.
6817 (add_location_to_breakpoint): Set EXPLICIT_LOC for
6818 set_breakpoint_location_function.
6819 (update_breakpoint_locations): Remove static.
6820 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6821 bp_gnu_ifunc_resolver_return.
6822 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6823 bp_gnu_ifunc_resolver_return.
6824 (update_breakpoint_locations): New declaration.
6825 * elfread.c: Include gdbthread.h and regcache.h.
6826 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6828 (elf_gnu_ifunc_fns): Install them.
6829 * minsyms.c (stub_gnu_ifunc_resolver_stop)
6830 (stub_gnu_ifunc_resolver_return_stop): New functions.
6831 (stub_gnu_ifunc_fns): Install them.
6832 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6833 and gnu_ifunc_resolver_return_stop.
6834 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6836 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6838 STT_GNU_IFUNC reader implementation.
6839 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6840 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6841 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6842 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6843 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6844 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6845 (elf_gnu_ifunc_resolve_addr): New.
6846 (elf_symfile_read): Call elf_rel_plt_read.
6847 (elf_gnu_ifunc_fns): New.
6848 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6849 Install elf_gnu_ifunc_fns.
6850 * infcall.c (find_function_return_type): New function.
6851 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6852 * minsyms.c (stub_gnu_ifunc_resolve_addr)
6853 (stub_gnu_ifunc_resolve_name): New functions.
6854 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6855 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6856 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6858 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6860 Code cleanup for later STT_GNU_IFUNC support.
6861 * infcall.c (find_function_addr): Remove variable code, use explicit
6862 dereferences for it. Move VALUE_TYPE initialization later.
6864 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6866 GDB find_pc_partial_function support for STT_GNU_IFUNC.
6867 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6868 (clear_pc_function_cache): Clear it.
6869 (find_pc_partial_function): Rename to ...
6870 (find_pc_partial_function_gnu_ifunc): ... this function. New
6871 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
6872 (find_pc_partial_function): New wrapper for this function.
6873 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6875 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6877 GDB internal type support for STT_GNU_IFUNC.
6878 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6879 (elf_symtab_read): Set mst_text_gnu_ifunc for
6880 BSF_GNU_INDIRECT_FUNCTION.
6881 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6882 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6883 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6884 nodebug_got_plt_symbol.
6885 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6886 (TYPE_GNU_IFUNC): New.
6887 (struct main_type): New field flag_gnu_ifunc.
6888 (struct builtin_type): New field builtin_func_func.
6889 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6890 nodebug_got_plt_symbol.
6891 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6892 (in_gnu_ifunc_stub): New.
6893 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6895 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
6896 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
6897 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6899 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6900 * symtab.c (search_symbols): Likewise.
6901 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6902 and mst_slot_got_plt.
6903 (in_gnu_ifunc_stub): New declaration.
6905 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6907 Support a ring of related breakpoints.
6908 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6909 other functions, add gdb_assert.
6910 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
6911 watchpoint_del_at_next_stop.
6912 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6913 (bpstat_stop_status): Handle ring in related_breakpoint.
6914 (set_raw_breakpoint_without_location): Initialize ring in
6916 (delete_breakpoint): Handle ring in related_breakpoint, use
6917 watchpoint_del_at_next_stop.
6918 (map_breakpoint_numbers): Handle ring in related_breakpoint.
6920 2011-03-28 Tom Tromey <tromey@redhat.com>
6923 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6924 with `language_minimal'.
6926 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
6928 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6929 instead of checking for STT_ARM_TFUNC symbol type.
6931 2011-03-25 Tom Tromey <tromey@redhat.com>
6933 * linespec.c (symbol_found): Restore line-based result for
6934 non-LOC_LABEL symbols.
6936 2011-03-25 Kai Tietz <ktietz@redhat.com>
6938 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6939 instead of strcmp for comparison.
6940 (tui_source_is_displayed): Likewise.
6941 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6943 2011-03-24 Mark Wielaard <mjw@redhat.com>
6945 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6947 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6948 (find_partial_die_in_comp_unit): Likewise in comment.
6949 (read_attribute_value): Likewise.
6950 (lookup_die_type): Likewise.
6951 (dwarf_form_name): Likewise.
6952 (dump_die_shallow): Likewise.
6953 (follow_die_ref_or_sig): Likewise.
6955 2011-03-24 Tom Tromey <tromey@redhat.com>
6957 PR breakpoints/11816:
6958 * linespec.c (decode_line_1): Parse `function:label' linespecs.
6959 (decode_compound): Update.
6960 (find_function_symbol): New function.
6961 (decode_dollar): Update.
6962 (decode_label): Add 'function_symbol' parameter. Handle
6963 function-relative labels.
6964 (decode_variable): Update.
6965 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
6966 not its line. Set `special_display' and canonical name for
6969 2011-03-24 Tom Tromey <tromey@redhat.com>
6971 * linespec.h (struct linespec_result) <special_display>: New
6973 * breakpoint.h (struct breakpoint) <display_canonical>: New
6975 * breakpoint.c (print_breakpoint_location): Respect
6977 (create_breakpoint_sal): Add 'display_canonical' parameter.
6978 (create_breakpoints_sal): Update.
6979 (create_breakpoint): Update.
6981 2011-03-24 Tom Tromey <tromey@redhat.com>
6983 * symtab.c (decode_line_spec): Update.
6984 * linespec.c (build_canonical_line_spec): Change type of
6986 (decode_line_2, decode_line_1, decode_objc, decode_compound)
6987 (find_method, decode_all_digits, decode_dollar, decode_label)
6988 (symbol_found): Likewise.
6989 (init_linespec_result): New function.
6990 * breakpoint.c (struct captured_parse_breakpoint_args)
6991 <canonical_p>: New field, replaces addr_string_p.
6992 (create_breakpoints_sal): Add 'canonical' parameter, replacing
6994 (parse_breakpoint_sals): Likewise.
6995 (do_captured_parse_breakpoint): Update.
6996 (create_breakpoint): Use struct linespec_result.
6997 (until_break_command): Update.
6998 (breakpoint_re_set_one): Update.
6999 (decode_line_spec_1): Update.
7000 * linespec.h (struct linespec_result): New.
7001 (init_linespec_result): Declare.
7003 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7005 * regcache.c (regcache_raw_read): If the target didn't supply a
7006 given raw register, mark it as unavailable.
7008 2011-03-23 Kai Tietz <ktietz@redhat.com>
7010 * breakpoint.c (clear_command): Use filename_cmp
7011 instead of strcmp for comparison.
7012 * buildsym.c (watch_main_source_file_lossage): Likewise.
7013 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7014 checking just for slash.
7015 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7016 strrchr and filename_cmp instead of strcmp for filenames.
7017 (add_old_header_file): Use filename_cmp
7018 instead of strcmp for comparison.
7019 * exec.c (exec_set_section_address): Likewise.
7020 * macrotab.c (macro_lookup_inclusion): Likewise.
7021 (macro_lookup_inclusion): Likewise.
7022 * elfread.c (_initialize_elfread): Likewise.
7023 (elfstab_offset_sections): Likewise.
7024 (elfstab_offset_sections): Use lbasename instead of
7026 * mdebugread.c (parse_partial_symbols): Likewise.
7027 (arse_partial_symbols): Use filename_(n)cmp instead of
7028 str(n)cmp for comparison.
7029 * minsyms.c (lookup_minimal_symbol): Likewise.
7030 * psymtab.c (read_psymtabs_with_filename): Likewise.
7031 * solib.c (solib_read_symbols): Likewise.
7032 (reload_shared_libraries_1): Likewise.
7033 * symmisc.c (maintenance_print_symbols): Likewise.
7034 * symfile.c (separate_debug_file_exists): Likewise.
7035 (reread_symbols): Likewise.
7036 (find_separate_debug_file_by_debuglink): Likewise.
7037 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7038 * source.c (add_path): Likewise.
7039 * symtab.c (filename_seen): Likewise.
7040 (file_matches): Likewise.
7041 (print_symbol_info): Likewise.
7042 (maybe_add_partial_symtab_filename): Likewise.
7043 (make_source_files_completion_list): Likewise.
7044 * xml-syscall.c (init_sysinfo): Likewise.
7045 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7046 IS_DIR_SEPARATOR for checking for trailing path separator.
7048 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7050 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7051 label abort_expression.
7052 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7053 DWARF_VALUE_OPTIMIZED_OUT.
7055 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7058 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7059 to linkage_name. Invert its value. Update the function comment.
7060 (c_type_print_varspec_suffix): Invert it at the caller.
7061 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7063 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7065 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7066 errors when reading the `stop_pc'.
7067 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7070 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7072 * NEWS: Document gdb.Write stream keyword.
7074 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7077 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7078 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7079 (dwarf2_add_field): Fix new_field->accessibility for
7080 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7082 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7086 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7087 other error classes. Do not print stack trace.
7089 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7091 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7092 (dwarf2_add_field): Fix new_field->accessibility for
7093 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7095 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7097 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7098 encountering a load via a non-SP register.
7100 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7102 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7103 field in returned unwinder.
7105 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7107 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7109 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7111 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7114 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7116 * frame.c (frame_unwind_register): Throw an error if unwinding the
7118 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7119 an unwind stop reason.
7120 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7121 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7122 UNWIND_UNAVAILABLE>: New.
7123 * inline-frame.c (inline_frame_unwind): Install
7124 default_frame_unwind_stop_reason.
7125 * frame-unwind.c: Include "exceptions.h".
7126 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7127 (default_frame_unwind_stop_reason): New.
7128 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7129 (default_frame_unwind_stop_reason): Declare.
7130 (struct frame_unwind) <stop_reason>: New function pointer.
7132 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7133 * dwarf2-frame.c: Include exceptions.h.
7134 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7135 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7136 computing the CFA. If such an error was thrown, set
7137 unavailable_retaddr.
7138 (dwarf2_frame_unwind_stop_reason): New.
7139 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7141 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7142 (dwarf2_signal_frame_unwind): Ditto.
7144 * amd64-tdep.c: Include "exceptions.h".
7145 (struct amd64_frame_cache): New field "base_p".
7146 (amd64_init_frame_cache): Clear it.
7147 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7148 Avoid reading registers with functions that throw if the register
7149 is not necessary to compute the frame base.
7150 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7151 swallowing NOT_AVAILABLE_ERROR.
7152 (amd64_frame_unwind_stop_reason): New.
7153 (amd64_frame_this_id): Don't build a frame id if the frame base
7155 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7156 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7157 base_p if the frame base was computable.
7158 (amd64_sigtramp_frame_unwind_stop_reason): New.
7159 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7160 frame base was unavailable.
7161 (amd64_sigtramp_frame_unwind): Install
7162 amd64_sigtramp_frame_unwind_stop_reason.
7163 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7164 base_p if the frame base was computable.
7165 (amd64_epilogue_frame_unwind_stop_reason): New.
7166 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7167 frame base was unavailable.
7168 (amd64_epilogue_frame_unwind): Install
7169 amd64_epilogue_frame_unwind_stop_reason.
7170 * i386-tdep.c: Include "exceptions.h".
7171 (struct i386_frame_cache): New field "base_p".
7172 (i386_init_frame_cache): Clear it.
7173 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7174 Avoid reading registers with functions that throw if the register
7175 is not necessary to compute the frame base.
7176 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7177 swallowing NOT_AVAILABLE_ERROR.
7178 (i386_frame_unwind_stop_reason): New.
7179 (i386_frame_this_id): Don't build a frame id if the frame base was
7181 (i386_frame_prev_register): Handle unavailable SP.
7182 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7183 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7184 base_p if the frame base was computable.
7185 (i386_epilogue_frame_unwind_stop_reason): New.
7186 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7187 base was unavailable.
7188 (i386_epilogue_frame_unwind): Install
7189 i386_epilogue_frame_unwind_stop_reason.
7190 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7191 base_p if the frame base was computable.
7192 (i386_sigtramp_frame_unwind_stop_reason): New.
7193 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7194 base was unavailable.
7195 (i386_sigtramp_frame_unwind): Install
7196 i386_sigtramp_frame_unwind_stop_reason.
7197 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7198 type's size, not the register's.
7199 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7201 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7202 default_frame_unwind_stop_reason.
7203 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7204 (alpha_heuristic_frame_unwind): Ditto.
7205 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7206 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7207 * avr-tdep.c (avr_frame_unwind): Ditto.
7208 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7210 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7211 * frv-tdep.c (frv_frame_unwind): Ditto.
7212 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7213 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7214 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7215 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7216 (hppa_stub_frame_unwind): Ditto.
7217 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7218 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7219 (ia64_libunwind_frame_unwind)
7220 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7221 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7222 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7223 * m32c-tdep.c (m32c_unwind): Ditto.
7224 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7225 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7226 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7227 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7228 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7229 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7230 * mep-tdep.c (mep_frame_unwind): Ditto.
7231 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7232 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7233 (mips_stub_frame_unwind): Ditto.
7234 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7235 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7236 * mt-tdep.c (mt_frame_unwind): Ditto.
7237 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7238 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7239 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7240 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7241 (s390_sigtramp_frame_unwind): Ditto.
7242 * score-tdep.c (score_prologue_unwind): Ditto.
7243 * sh-tdep.c (sh_frame_unwind): Ditto.
7244 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7245 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7246 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7247 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7248 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7249 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7250 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7251 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7252 (sparc64obsd_trapframe_unwind): Ditto.
7253 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7254 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7255 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7256 * v850-tdep.c (v850_frame_unwind): Ditto.
7257 * vax-tdep.c (vax_frame_unwind): Ditto.
7258 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7259 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7260 * xtensa-tdep.c (xtensa_unwind): Ditto.
7262 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7264 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7265 there's always a frame. Use get_frame_pc_if_available instead of
7266 get_frame_pc, and if there's no PC available, don't look up a
7269 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7271 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7274 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7276 * tracepoint.c (set_traceframe_context): Handle unavailable PC
7279 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7281 * frame.h (frame_unwind_caller_pc_if_available): Declare.
7282 * frame.c (frame_unwind_caller_pc_if_available): New.
7283 * stack.c (frame_info): Handle unavailable PC.
7285 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7287 * frame.c (frame_unwind_pc): Rename to ...
7288 (frame_unwind_pc_if_available): ... this. New `pc' output
7289 parameter. Change return type to int. Gracefully handle
7290 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
7291 happened, or 1 otherwise.
7292 (frame_unwind_pc): Reimplement on top of
7293 frame_unwind_pc_if_available.
7294 (get_frame_func): Rename to ...
7295 (get_frame_func_if_available): New `pc' output parameter. Change
7296 return type to int. Gracefully handle the PC not being available.
7297 (get_frame_func): Reimplement on top of
7298 get_frame_func_if_available.
7299 (select_frame): Handle the PC being unavailable.
7300 (get_prev_frame): Handle the PC being unavailable.
7301 (get_frame_pc_if_available): New.
7302 (get_frame_address_in_block_if_available): New.
7303 (find_frame_sal): Handle the frame PC not being available.
7304 * frame.h (get_frame_pc_if_available): Declare.
7305 (get_frame_address_in_block_if_available): Declare.
7306 (get_frame_func_if_available): Declare.
7307 * stack.c (print_frame_info): Handle the PC being unavailable.
7308 (find_frame_funname): Ditto.
7309 (print_frame): Handle the PC being unavailable.
7310 (get_frame_language): Ditto.
7311 * blockframe.c (get_frame_block): Ditto.
7312 * macroscope.c (default_macro_scope): Ditto.
7313 * tui/tui-stack.c (tui_show_frame_info): Ditto.
7315 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7317 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7318 NOT_AVAILABLE_ERROR when evaluating the location expression.
7320 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7322 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7323 returning that the register piece is unavailable/optimized out.
7324 (write_pieced_value): Handle get_frame_register_bytes returning
7325 that the register piece is unavailable/optimized out when doing a
7326 read-modify write of a bitfield.
7327 * findvar.c (value_from_register): Handle get_frame_register_bytes
7328 returning that the register piece is unavailable/optimized out.
7329 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7330 and `unavailablep'. Throw error on bad debug info. Use
7331 frame_register instead of frame_register_read, to fill in the new
7333 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7335 * valops.c: (value_assign): Adjust, and handle
7336 get_frame_register_bytes failing.
7337 * spu-tdep.c: Include exceptions.h.
7338 (spu_software_single_step): Adjust, and handle
7339 get_frame_register_bytes failing.
7340 (spu_get_longjmp_target): Ditto.
7341 * gdbarch.sh (register_to_value): Change to return int. New
7342 parameters `optimizedp' and `unavailablep'.
7343 * gdbarch.h, gdbarch.c: Regenerate.
7344 * i386-tdep.c (i386_register_to_value): Adjust to new
7345 gdbarch_register_to_value interface.
7346 * i387-tdep.c (i387_register_to_value): Ditto.
7347 * i387-tdep.h (i387_register_to_value): Ditto.
7348 * alpha-tdep.c (alpha_register_to_value): Ditto.
7349 * ia64-tdep.c (ia64_register_to_value): Ditto.
7350 * m68k-tdep.c (m68k_register_to_value): Ditto.
7351 * mips-tdep.c (mips_register_to_value): Ditto.
7352 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7354 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7356 * findvar.c (value_of_register): Mark the value as unavailable, if
7357 the register is unavailable.
7358 * frame.h (frame_register_unwind): New `unavailablep' parameter.
7359 (frame_register): New `unavailablep' parameter.
7360 (frame_register_read): Update comment.
7361 * frame.c (frame_register_unwind): New `unavailablep' parameter.
7362 Set it if the register is unavailable. If the register is
7363 unavailable, clear the output buffer.
7364 (frame_register): New `unavailablep' parameter. Pass it down.
7365 (frame_unwind_register): Adjust.
7366 (put_frame_register): Adjust.
7367 (frame_register_read): Adjust. Also return false if the register
7369 (frame_register_unwind_location): Adjust.
7370 * sentinel-frame.c (sentinel_frame_prev_register): If the register
7371 is unavailable, mark the value accordingly.
7372 * stack.c (frame_info): Handle unavailable registers.
7374 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7376 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7377 simplify, using regcache_cooked_read.
7379 2011-03-18 Pedro Alves <pedro@codesourcery.com>
7381 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7382 (regcache_raw_read_unsigned, regcache_raw_read_signed)
7383 (regcache_raw_read_unsigned, regcache_raw_read_part)
7384 (regcache_cooked_read, regcache_cooked_read_signed)
7385 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7386 (regcache_cooked_read_ftype): Change return to enum
7388 * regcache.c: Include exceptions.h
7389 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7390 (do_cooked_read): Change return to enum register_status. Always
7391 forward to regcache_cooked_read.
7392 (regcache_raw_read): Change return to enum register_status. If
7393 the register is not REG_VALID, memset the buffer. Return the
7395 (regcache_raw_read_signed): Handle non-REG_VALID registers and
7396 return the register's status.
7397 (regcache_raw_read_unsigned): Ditto.
7398 (regcache_cooked_read): Change return to enum register_status.
7399 Assert that with read-only regcaches, the register's status must
7400 be known. If the regcache is read-only, and the register is not
7401 REG_VALID, memset the buffer. Return the register's status.
7402 (regcache_cooked_read_signed): Change return to enum
7403 register_status. Handle non-REG_VALID registers and return the
7405 (regcache_cooked_read_unsigned): Change return to enum
7406 register_status. Handle non-REG_VALID registers and return the
7408 (regcache_xfer_part, regcache_raw_read_part)
7409 (regcache_cooked_read_part): Change return to enum
7410 register_status. Return the register's status.
7411 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7413 (regcache_dump): Handle unavailable cooked registers.
7414 * frame.c (do_frame_register_read): Adjust interface to match
7415 regcache_cooked_read_ftype.
7416 * gdbarch.sh (pseudo_register_read): Change return to enum
7418 * gdbarch.h, gdbarch.c: Regenerate.
7420 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7422 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7423 register_status. If reading a raw register indicates the raw
7424 register is not valid, return the raw register's status,
7425 otherwise, return REG_VALID.
7426 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7427 register_status. Handle non-REG_VALID raw registers and return
7428 the register's status.
7429 * arm-tdep.c (arm_neon_quad_read)
7430 (arm_pseudo_read): Change return to enum register_status. Handle
7431 non-REG_VALID raw registers and return the register's status.
7432 * avr-tdep.c (avr_pseudo_register_read): Ditto.
7433 * frv-tdep.c (frv_pseudo_register_read): Ditto.
7434 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7435 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7436 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7438 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7439 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7440 (m32c_part_write, m32c_cat_read, m32c_cat_write)
7441 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7442 (m32c_pseudo_register_read): Change return to enum
7443 register_status. Adjust.
7444 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7445 enum register_status. Return the register's status.
7446 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7447 register_status. Return the register's status.
7448 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7449 * mips-tdep.c (mips_pseudo_register_read): Ditto.
7450 * mt-tdep.c (mt_pseudo_register_read): Ditto.
7451 * rs6000-tdep.c (move_ev_register_func): New typedef.
7452 (e500_move_ev_register): Use it. Change return to enum
7453 register_status. Return the register's status.
7454 (do_regcache_raw_read): New function.
7455 (do_regcache_raw_write): New function.
7456 (e500_pseudo_register_read): Change return to enum
7457 register_status. Return the register's status. Use
7458 do_regcache_raw_read.
7459 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
7460 (dfp_pseudo_register_read): Change return to enum register_status.
7461 Return the register's status.
7462 (vsx_pseudo_register_read): Ditto.
7463 (efpr_pseudo_register_read): Ditto.
7464 (rs6000_pseudo_register_read): Ditto.
7465 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7466 register_status. Return the register's status.
7467 * sh64-tdep.c (pseudo_register_read_portions): New function.
7468 (sh64_pseudo_register_read): Change return to enum
7469 register_status. Use pseudo_register_read_portions. Return the
7471 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7472 register_status. Return the register's status.
7473 * sh-tdep.c (pseudo_register_read_portions): New function.
7474 (sh_pseudo_register_read): Change return to enum register_status.
7475 Use pseudo_register_read_portions. Return the register's status.
7476 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7477 enum register_status. Return the register's status.
7478 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7479 * spu-tdep.c (spu_pseudo_register_read_spu)
7480 (spu_pseudo_register_read): Ditto.
7481 * xtensa-tdep.c (xtensa_register_read_masked)
7482 (xtensa_pseudo_register_read): Ditto.
7483 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7485 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7487 * python/py-value.c (valpy_getitem): Fix formatting of error function
7490 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7492 ARI fixes: Add missing internationalization markups throughout
7494 * darwin-nat-info.c: Ditto.
7497 * mi/mi-main.c: Ditto.
7499 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7501 ARI fixes: Add missing internationalization markups throughout
7504 * cp-name-parser.y: Ditto.
7507 * objc-exp.y: Ditto.
7510 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7512 ARI fixes: Messages should have no trailing new lines.
7513 * darwin-nat.c (mach_check_error): Remove trailing new line from
7514 warning function call message.
7515 * record.c (bfdcore_read): Idem for error call.
7517 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
7519 * common/signals.c (target_signal_from_host): Add _ markup to error
7520 function call message.
7521 (target_signal_to_host): Add _ markup and remove trailing new line
7522 from warning call message.
7523 (target_signal_from_command): Add _ markup to error function call
7526 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
7530 * python/python.c (gdbpy_write): Accept a stream argument and
7531 operate to the appropriate stream.
7532 (gdbpy_flush): Likewise.
7533 (_initialize_python): Add stream constants.
7534 (finish_python_initialization): Add GdbOutputErrorFile class.
7536 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7538 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7540 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
7542 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7543 to store_signed_integer. Add debug message when relocating CALL
7544 instructions. Fix formatting of debug message.
7545 * i386-tdep.c (i386_relocate_instruction): Ditto.
7547 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7549 * target.h (struct target_ops): Remove to_lookup_symbol field.
7550 (target_lookup_symbol): Delete macro.
7551 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7552 (update_current_target, setup_target_debug): Remove handling
7553 of to_lookup_symbol target_ops field.
7554 * ada-tasks.c (get_known_tasks_addr): Remove use of
7555 target_lookup_symbol.
7556 * coffread.c (coff_symtab_read): Likewise.
7557 * dbxread.c (read_dbx_symtab): Ditto.
7559 2011-03-17 Joel Brobecker <brobecker@gnat.com>
7562 * configure.ac: Add getthrds declaration check.
7563 * configure, config.in: Regenerate.
7564 * aix-thread.c (getthrds): Declare only if not already declared
7565 in procinfo.h. More declaration out of get_signaled_thread to
7568 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
7570 * python/py-symtab.c: Populate symtab_object_methods,
7572 (stpy_is_valid): New function.
7573 (salpy_is_valid): Ditto.
7574 * python/py-symbol.c: Declare symbol_object_methods. Populate.
7575 (sympy_is_valid): New function.
7576 * python/py-objfile.c: Declare objfile_object_methods. Populate.
7577 (objfpy_is_valid): New function.
7578 * python/py-inferior.c: Populate inferior_object_methods.
7579 (infpy_is_valid): New function.
7580 * python/py-infthread.c: Populate thread_object_methods.
7581 (thpy_is_valid): New function.
7582 * python/py-block.c: Declare block_object_methods. Populate. Declare
7583 block_iterator_object_methods. Populate.
7584 (blpy_is_valid): New function.
7585 (blpy_iter_is_valid): Ditto.
7587 2011-03-16 Keith Seitz <keiths@redhat.com>
7589 * linespec.c (find_methods): Canonicalize NAME before looking
7591 (name_end): New function.
7592 (keep_name_info): New function.
7593 (decode_line_1): Use keep_name_info.
7594 (decode_compound): Likewise.
7595 * cli/cli-utils.h (remove_trailing_whitespace): New function.
7596 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7599 * linespec.c (locate_first_half): Keep overload information, too.
7600 (decode_compound): Use a string to represent break characters
7602 If P points to a break character, do not increment it.
7603 For C++ and Java, keep overload information and relevant keywords.
7604 If we cannot find a symbol, search the minimal symbols.
7607 * linespec.c (decode_compound): Rename SAVED_ARG to
7609 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7611 Pass a valid block to lookup_symbol.
7612 (lookup_prefix_sym): Likewise.
7613 (find_method): Construct search name based on SYM_CLASS instead
7615 * psymtab.c (lookup_partial_symbol): Add language parameter.
7616 (lookup_symbol_aux_psymtabs): Likewise.
7617 Don't assume that the psymtab we found was the right one. Search
7618 for the desired symbol in the symtab to be certain.
7619 (psymtab_search_name): New function.
7620 (lookup_partial_symbol): Use psymtab_search_name.
7621 Add language parameter.
7622 (read_symtabs_for_function): Add language parameter and pass to
7623 lookup_partial_symbol.
7624 (find_symbol_file_from_partial): Likewise.
7626 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
7629 * dwarf2read.c (noop_record_line): New function.
7630 (dwarf_decode_lines): Ignore line tables for GCd functions.
7632 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7634 Fix ARI warnings about new lines at the end of messages, which
7635 are unneeded as there is a new line added at the end of the message
7637 * darwin-nat.c (darwin_stop_inferior): Ditto.
7638 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7639 * dfp.c (decimal_to_number): Ditto.
7640 * exec.c (print_section_info): Ditto.
7641 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7642 * osdata.c (get_osdata): Ditto.
7643 * record.c (bfdcore_write): Ditto.
7644 * remote-mips.c (mips_readchar): Ditto.
7645 * remote.c (read_ptid): Ditto.
7646 * ser-mingw.c (ser_windows_raw): Ditto.
7647 * tracepoint.c (add_local_symbols): Ditto.
7648 * windows-nat.c (fake_create_process): Ditto.
7650 2011-03-16 Tom Tromey <tromey@redhat.com>
7652 * tracepoint.c (stop_tracing): Don't declare.
7653 * event-top.c (after_char_processing_hook): Add `(void)'.
7655 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
7657 * NEWS: Add Parameter sub-classing description.
7659 2011-03-16 Kai Tietz <ktietz@redhat.com>
7661 * MAINTAINERS: Update my e-mail address.
7663 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
7665 * MAINTAINERS: Add myself for write after approval privileges.
7667 2011-03-15 Michael Snyder <msnyder@vmware.com>
7669 * frame.c (find_frame_sal): Assert sym is not null.
7671 * dbxread.c (process_one_symbol): Assert 'name' is not null.
7673 * objc-lang.c (selectors_info): Check strchr for null result.
7675 * stabsread.c (define_symbol): Guard against bad stabstring input.
7677 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7679 Remove trailing spaces and tabulations from pascal language
7684 p-valprint.c: Ditto.
7686 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7688 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7689 than LOW. Comment it.
7690 (read_partial_die): Call complaint for inappropriate zero LOWPC or
7691 HIGHPC not strictly higher than LOWPC.
7693 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
7695 Fix formatting of function declarations returning a pointer in
7697 * varobj.c (varobj_add_child): Ditto.
7698 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7699 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7701 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7703 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7704 for the "generic" vector ABI used with GCC 4.3 and later.
7705 (ppc64_sysv_abi_return_value): Likewise.
7707 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
7709 * infcall.c (call_function_by_hand): Function return value is
7710 always a non_lval, even when using struct_return.
7712 2011-03-15 Pedro Alves <pedro@codesourcery.com>
7714 * printcmd.c (ALL_DISPLAYS_SAFE): New.
7715 (map_display_numbers): New.
7716 (do_delete_display): New.
7717 (undisplay_command): Use map_display_numbers.
7718 (do_enable_disable_display): New.
7719 (enable_disable_display_command): New function.
7720 (enable_display): Delete.
7721 (enable_display_command): New.
7722 (disable_display_command): Reimplement.
7723 (_initialize_printcmd): Adjust "enable display" command to use
7724 `enable_display_command' as callback.
7726 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7728 * NEWS: Add Python breakpoint 'stop' operation.
7730 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7732 * NEWS: Delete duplicate entry. Fix typo.
7734 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7736 Fix ARI warning about function names in first column.
7737 Put prototype declaration on same line as return type.
7738 * objc-exp.y: Ditto.
7740 * python/py-stopevent.h: Ditto.
7741 For long function names, split parameters to
7742 allow function name on same line as return type.
7743 * solib-pa64.c: Ditto.
7746 For long function declaration, use single line.
7747 * hppa-tdep.h: Ditto.
7748 * inferior.h: Ditto.
7750 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
7752 * python/python.h: Declare gdbpy_should_stop and
7753 gdbpy_breakpoint_has_py_cond.
7754 * python/python.c: Add python.h to includes. Remove python.h from
7755 HAVE_PYTHON definition
7756 (gdbpy_should_stop): New dummy function.
7757 (gdbpy_breakpoint_has_py_cond): New dummy function.
7758 * python/py-breakpoint.c (bppy_init): Rewrite to allow
7759 sub-classing capabilities.
7760 (gdbpy_should_stop): New function.
7761 (gdbpy_breakpoint_has_py_cond): New function.
7762 (local_setattro): New function.
7763 * breakpoint.c (condition_command): Add check for Python 'stop'
7765 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7766 operation function as part of stop/continue tests.
7768 2011-03-14 Tom Tromey <tromey@redhat.com>
7771 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7772 (needs_frame_dwarf_call): Likewise.
7774 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
7776 Fix ARI warning about functions without parameters that do not
7778 * breakpoint.c (all_tracepoints): Replace () by (void).
7779 * f-exp.y (match_string_literal): Ditto.
7781 * m2-exp.y (yylex): Ditto.
7782 * mep-tdep.c (current_me_module): Ditto.
7783 (current_options): Ditto.
7784 (current_cop_data_bus_width): Ditto.
7785 (current_cr_names): Ditto.
7786 (current_cr_is_float): Ditto.
7787 (current_ccr_names): Ditto.
7788 * objc-exp.y (yylex): Ditto.
7789 * p-exp.y (yylex): Ditto.
7790 * remote.c (send_interrupt_sequence): Ditto.
7791 * tracepoint.c (current_trace_status): Ditto.
7792 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7793 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7795 2011-03-11 Michael Snyder <msnyder@vmware.com>
7797 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7798 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7799 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7800 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7801 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7803 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7804 (delete_async_event_handler): Ditto.
7806 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7808 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7810 * top.c (set_verbose): Assert showcmd was found.
7812 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
7814 * xtensa-tdep.c (warning_once): Correct style issues.
7816 2011-03-11 Yao Qi <yao@codesourcery.com>
7818 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7820 2011-03-11 Andreas Schwab <schwab@redhat.com>
7822 * common/aclocal.m4: Remove.
7824 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7826 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7827 (xtensa_write_register, xtensa_read_register): Likewise.
7828 (xtensa_hextochar): Removed.
7829 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7831 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
7833 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
7834 (xtensa_call0_frame_cache_t): Update comments. New fields added.
7835 (xtensa_alloc_frame_cache): Add initialization for new fields.
7836 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7837 (warning_once): New function.
7838 (xtensa_insn_kind): New item c0opc_and.
7839 (call0_classify_opcode): Add the case for AND instruction.
7840 (call0_track_op): Change arguments. New local variable litbase.
7841 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
7842 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7844 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
7845 (call0_analyze_prologue): Update the comments. Change arguments.
7846 Add the variety of updates to handle extended prologues, which now can
7847 conduct dynamic stack adjustments.
7848 (call0_frame_cache): Likewise.
7849 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7850 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7852 2011-03-10 Michael Snyder <msnyder@vmware.com>
7854 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7855 (cmd_qtframe): Ditto.
7856 (cmd_qtbuffer): Ditto.
7857 (cmd_bigqtbuffer): Ditto.
7859 2011-03-10 Tom Tromey <tromey@redhat.com>
7861 * tracepoint.c (trace_actions_command): Update.
7862 * thread.c (thread_apply_command): Update.
7863 * reverse.c (delete_bookmark_command): Update.
7864 (bookmarks_info): Update.
7865 * printcmd.c (undisplay_command): Update.
7866 * memattr.c (mem_enable_command): Update.
7867 (mem_disable_command): Update.
7868 (mem_delete_command): Update.
7869 * inferior.c (detach_inferior_command): Update.
7870 (kill_inferior_command): Update.
7871 (remove_inferior_command): Update.
7872 * cli/cli-utils.h (struct get_number_or_range_state): New.
7873 (init_number_or_range): Declare.
7874 (get_number_or_range): Update.
7875 * cli/cli-utils.c (init_number_or_range): New function.
7876 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
7878 (number_is_in_list): Update.
7879 * breakpoint.h (get_tracepoint_by_number): Update.
7880 * breakpoint.c (map_breakpoint_numbers): Update for change to
7881 get_number_or_range.
7882 (find_location_by_number): Use get_number, not
7883 get_number_or_range.
7884 (trace_pass_set_count): New function.
7885 (trace_pass_command): Update for change to get_number_or_range.
7887 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7890 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
7892 * python/py-param.c (add_setshow_generic): Add set/show callback
7893 parameters. Register Python object context.
7894 (get_show_value): New function.
7895 (get_set_value): New function.
7896 (call_doc_function): New function.
7897 (get_doc_string): Move behind get_show_value/get_set_value.
7899 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
7901 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7903 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
7905 * xtensa-tdep.c (xtensa_read_register): Add comment.
7906 (xtensa_write_register): Likewise.
7907 (xtensa_hextochar): Add comment and update to match coding conventions.
7908 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7909 (execute_l32e, execute_s32e, execute_code): Update comments.
7910 (xtensa_exception_handler_t): Update to match coding conventions.
7911 (xtensa_insn_kind): Likewise.
7913 2011-03-09 Michael Snyder <msnyder@vmware.com>
7915 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7917 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7919 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7921 2011-03-09 Tom Tromey <tromey@redhat.com>
7923 * thread.c (restore_selected_frame): Handle frame_level == -1.
7924 (make_cleanup_restore_current_thread): Use
7925 get_selected_frame_if_set.
7926 * frame.h (get_selected_frame_if_set): Declare.
7927 * frame.c (get_selected_frame_if_set): New function.
7929 2011-03-09 Pedro Alves <pedro@codesourcery.com>
7931 * cli/cli-cmds.c (shell_escape): Use lbasename.
7932 * coffread.c (coff_start_symtab): Constify parameter.
7933 (complete_symtab): Constify `name' parameter.
7934 (coff_symtab_read): Constify `filestring' local.
7935 (coff_getfilename): Constify return and `result' local.
7937 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7938 * linux-fork.c (info_checkpoints_command): Use lbasename.
7939 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7940 * minsyms.c (lookup_minimal_symbol): Use lbasename.
7941 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7942 * procfs.c (procfs_make_note_section): Use lbasename.
7943 * tui/tui-io.c (printable_part): Constity return and parameter.
7945 (print_filename): Constify parameters, and local `s'.
7946 (tui_rl_display_match_list): Constify local `temp'.
7948 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7951 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7952 Fix DWARF-3+ DW_AT_accessibility default assumption.
7953 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7954 cu->header.version >= 3.
7956 2011-03-09 Yao Qi <yao@codesourcery.com>
7958 * common/Makefile.in: Remove.
7959 * common/configure: Remove.
7960 * common/configure.ac: Remove.
7962 2011-03-09 Yao Qi <yao@codesourcery.com>
7965 2011-02-11 Yao Qi <yao@codesourcery.com>
7967 * common/Makefile.in: Add copyright header.
7969 2011-02-11 Yao Qi <yao@codesourcery.com>
7971 * Makefile.in: Remove signals.o from COMMON_OBS. Link
7973 * configure.ac: Add common to sub dir.
7974 * configure: Regenerate.
7976 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7978 * xtensa-tdep.c (call0_ret): New function.
7979 (xtensa_skip_prologue): Speed up analysis.
7981 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7983 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7984 while executing MI command -data-list-changed-registers.
7986 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
7988 * xtensa-tdep.c (xtensa_read_register): New function.
7989 (xtensa_write_register): New function.
7990 (xtensa_find_register_by_name): New function.
7991 (xtensa_windowed_frame_cache): Update comments in type description.
7992 (xtensa_frame_cache): Likewise.
7993 (xtensa_window_interrupt_insn): New function.
7994 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7995 (xtensa_insn_kind): Add new instructions.
7996 (rwx_special_register): New function.
7997 (call0_classify_opcode): Add new instructions to the analysis.
7998 (a0_saved, a7_saved, a11_saved): New variables.
7999 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8000 (execute_l32e): New function.
8001 (execute_s32e): New function.
8002 (xtensa_exception_handler_t): New type.
8003 (execute_code): New function.
8004 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8005 analysis for Xtensa Window Exception handlers.
8007 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8009 * xtensa-tdep.c (TX_PS): New.
8010 (windowing_enabled): Update to count for Call0 ABI.
8011 (xtensa_hextochar): New.
8012 (xtensa_init_reggroups): Make algorithm generic.
8013 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8015 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8017 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8019 2011-03-08 Michael Snyder <msnyder@vmware.com>
8021 * i386-tdep.c (i386_follow_jump): Check return value of
8023 (i386_analyze_struct_return): Ditto.
8024 (i386_skip_probe): Ditto.
8025 (i386_match_insn): Ditto.
8026 (i386_skip_noop): Ditto.
8027 (i386_analyze_frame_setup): Ditto.
8028 (i386_analyze_register_saves): Ditto.
8029 (i386_skip_prologue): Ditto.
8030 (i386_skip_main_prologue): Ditto.
8032 * target.c (read_whatever_is_readable): Fix memory leak.
8034 * i386-tdep.c (i386_process_record): Document fall through.
8036 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8038 Fix DWARF-3+ DW_AT_accessibility default assumption.
8039 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8040 cu->header.version >= 3.
8042 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8044 * remote.c (remote_check_symbols): Skip if the target has no
8047 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8049 * target.c (read_whatever_is_readable): Reformat comment,
8050 with a minor typo fix. Minor reformatting of the code.
8052 2011-03-08 Yao Qi <yao@codesourcery.com>
8054 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8055 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8056 Use cached result instead of calling displaced_in_arm_mode again.
8057 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8058 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8059 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8060 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8061 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8062 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8063 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8064 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8065 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8066 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8067 (arm_catch_kernel_helper_return): Likewise.
8068 * gdb/arm-tdep.h : Update function declarations.
8070 2011-03-07 Michael Snyder <msnyder@vmware.com>
8072 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8074 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8076 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8078 * elfread.c (elf_symtab_read): Stop memory leak.
8080 * main.c (captured_main): Fix memory leak.
8082 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8084 * ada-lang.c (compare_names): Call is_name_suffix with string1
8087 2011-03-07 Tom Tromey <tromey@redhat.com>
8089 * xcoffread.c (xcoff_sym_fns): Update.
8090 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8091 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8092 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8093 (symbol_file_add_with_addrs_or_offsets): Likewise.
8094 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8095 * somread.c (som_sym_fns): Update.
8096 * psymtab.h (require_partial_symbols): Declare.
8097 * psymtab.c (require_partial_symbols): New function.
8098 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8099 (ALL_OBJFILE_PSYMTABS): Undef.
8100 (ALL_PSYMTABS): Move from psympriv.h.
8101 (lookup_partial_symtab, find_pc_sect_psymtab)
8102 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8103 (find_last_source_symtab_from_partial)
8104 (forget_cached_source_info_partial)
8105 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8106 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8107 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8108 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8109 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8110 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8111 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8112 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8113 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8115 * mipsread.c (ecoff_sym_fns): Update.
8116 * machoread.c (macho_sym_fns): Update.
8117 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8118 (read_psyms): New function.
8119 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8120 (elf_sym_fns_lazy_psyms): New global.
8121 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8122 dwarf2_build_psymtabs.
8123 * dbxread.c (aout_sym_fns): Update.
8124 * coffread.c (coff_sym_fns): Update.
8126 2011-03-07 Tom Tromey <tromey@redhat.com>
8128 * infrun.c (print_exited_reason): Include inferior id and pid in
8131 2011-03-07 Tom Tromey <tromey@redhat.com>
8133 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8135 (target_has_execution_1): Update.
8136 (target_has_execution_current): Declare.
8137 (target_has_execution): Call target_has_execution_current.
8138 (default_child_has_execution): Update.
8139 * target.c (default_child_has_execution): Add 'the_ptid'
8141 (target_has_execution_1): Likewise.
8142 (target_has_execution_current): New function.
8143 (add_target): Update.
8144 (init_dummy_target): Update.
8145 * remote-m32r-sdi.c (m32r_has_execution): New function.
8146 (init_m32r_ops): Use it.
8147 * record.c (record_core_has_execution): Now static. Add
8148 'the_ptid' parameter.
8149 * inferior.c (have_live_inferiors): Don't save current thread.
8150 Use target_has_execution_1.
8152 2011-03-07 Yao Qi <yao@codesourcery.com>
8154 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8156 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8158 * elfread.c (elf_symtab_read): Minor reformatting.
8160 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8162 * objc-lang.c (selectors_info): Minor reformatting.
8164 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8166 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8168 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8169 Michael Snyder <msnyder@vmware.com>
8171 * ada-valprint.c (ada_val_print_array): Move the declaration of
8172 "byte_order" and "elttype" inside the block where these variables
8173 are actually used. Remove some special handling for the case
8174 where "elttype" and "eltlen" are null. Replace by a comment
8175 and a couple of assertion checks.
8177 2011-03-05 Michael Snyder <msnyder@vmware.com>
8179 * source.c (add_path): Replace semicolon at end of block.
8180 * dwarf2expr.c (execute_stack_op): Ditto.
8182 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8184 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8185 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8186 (bfin-*-*): Likewise.
8188 2011-03-05 Michael Snyder <msnyder@vmware.com>
8190 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8191 * mdebugread.c (parse_symbol): Ditto.
8192 * parse.c (parse_exp_in_context): Ditto.
8193 * source.c (add_path): Ditto.
8194 * utils.c (gnu_debuglink_crc32): Ditto.
8195 * varobj.c (variable_language): Ditto.
8197 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8199 2011-03-04 Michael Snyder <msnyder@vmware.com>
8201 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8203 * symfile.c (simple_overlay_update): Check for null return value
8204 from lookup_minimal_symbol.
8206 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8208 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8210 * eval.c (parse_and_eval_address_1): Remove function.
8211 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8212 instead of parse_and_eval_address_1.
8213 * value.h (parse_and_eval_address_1): Remove prototype.
8215 2011-03-04 Michael Snyder <msnyder@vmware.com>
8217 * remote.c (putpkt_binary): Document that case stmt falls through.
8219 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8221 * breakpointc (print_it_typical): Move NULL check from here...
8222 (print_bp_stop_message): ... to here.
8224 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8226 * breakpoint.c (enable_command): Use break instead of continue,
8227 and fill in a missing break.
8228 (disable_command): Ditto.
8230 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8232 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8233 (terminal_save_ours): Remove misleading comment.
8234 (inflow_inferior_data_cleanup): Free ttystate.
8235 (inflow_inferior_exit): Likewise.
8236 (copy_terminal_info): Copy ttystate.
8238 * serial.c (serial_copy_tty_state): New function.
8239 * serial.h (serial_copy_tty_state): Add prototype.
8240 (struct serial_ops): Add copy_tty_state callback.
8241 * ser-base.c (ser_base_copy_tty_state): New function.
8242 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8243 * ser-go32.c (dos_copy_tty_state): New function.
8244 (dos_ops): Install copy_tty_state callback.
8245 * ser-mingw.c (_initialize_ser_windows): Likewise.
8246 * ser-pipe.c (_initialize_ser_pipe): Likewise.
8247 * ser-unix.c (hardwire_copy_tty_state): New function.
8248 (_initialize_ser_hardwire): Install it.
8250 2011-03-04 Michael Snyder <msnyder@vmware.com>
8252 * breakpoint.c (create_breakpoint): Add missing break statement.
8254 Reverting this patch:
8255 * infcall.c (call_function_by_hand): Add break statements for lint.
8257 Reverting this patch:
8258 * cli/cli-script.c (script_from_file): Add break for lint.
8260 2011-03-04 Michael Snyder <msnyder@vmware.com>
8262 * solib.c (reload_shared_libraries_1): Close memory leak.
8264 2011-03-03 Tom Tromey <tromey@redhat.com>
8267 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8270 2011-03-03 Michael Snyder <msnyder@vmware.com>
8272 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8273 fields of struct 'st' to zero.
8275 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8276 sal.pspace before calling set_current_source_symtab_and_line.
8278 2011-03-03 Yao Qi <yao@codesourcery.com>
8280 * Makefile.in (configure-common): Remove. Let Makefile
8281 in dir common to rebuild itself.
8282 (common/Makefile): Likewise.
8284 2011-03-03 Joel Brobecker <brobecker@adacore.com>
8286 * utils.c (parse_escape): Add i18n markup in error message.
8288 2011-03-03 Yao Qi <yao@codesourcery.com>
8290 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8292 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8293 (displaced_write_reg, displaced_read_reg): Likewise.
8294 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8295 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8296 (cleanup_branch): Replace magic number 14 and 15 with
8297 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8299 2011-03-02 Michael Snyder <msnyder@vmware.com>
8301 * maint.c (maintenance_do_deprecate): No need to check for NULL.
8303 * cli/cli-script.c (script_from_file): Add break for lint.
8305 * mdebugread.c (parse_partial_symbols): Fix indent.
8307 * target-descriptions.c (tdesc_gdb_type): No need to call
8308 xstrdup, callee saves a copy.
8310 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8312 * infcall.c (call_function_by_hand): Add break statements for lint.
8314 * utils.c (parse_escape): Escape the escape char.
8316 * python/py-inferior.c (build_inferior_list): Error out if
8317 PyList_Append fails.
8318 (gdbpy_inferiors): Error out if build_inferior_list fails.
8320 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8323 * record.c (record_restore): Move printf to before error return.
8325 2011-03-02 Yao Qi <yao@codesourcery.com>
8327 * arm-tdep.h (struct displaced_step_closure): Add two new fields
8328 is_thumb and insn_size.
8329 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8330 on both ARM and Thumb mode.
8331 (arm_process_displaced_insn): Set is_thumb and insn_size.
8332 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8333 (arm_displaced_step_fixup): Likewise.
8335 2011-03-01 Michael Snyder <msnyder@vmware.com>
8337 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8339 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8341 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8343 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8345 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8348 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8349 which shadows function parameter.
8351 * tracepoint.c (create_tsv_from_upload): Superfluous call
8352 to xstrdup. Callee already calls xstrdup.
8354 * linespec.c (decode_line_1): Remove unnecessary null check.
8356 * tracepoint.c (scope_info): Fix mem leak, remove underused
8359 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8360 superfluous null check.
8362 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8363 (value_of_builtin_frame_fp_reg): Ditto.
8365 * event-top.c (display_gdb_prompt): Remove superfluous null check.
8367 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8370 * linespec.c (decode_line_1): Check for null before dereference.
8372 * reverse.c (record_restore): Move null-check to before pointer
8375 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8377 * objc-lang.c (selectors_info): Add explanitory comment.
8378 (classes_info): Ditto.
8380 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8382 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8383 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8384 versions of the trampoline. Handle Thumb vs. ARM addresses.
8385 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8386 (arm_linux_init_abi): Install it.
8387 * arm-tdep.c (arm_psr_thumb_bit): Make global.
8388 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8390 2011-02-28 Michael Snyder <msnyder@vmware.com>
8392 * ui-out.c (ui_out_field_core_addr): Make local char buffer
8393 a little bigger, to avoid possibility of an overflow.
8395 * breakpoint.c (breakpoint_adjustment_warning): Make local char
8396 buffers a little bigger, to avoid possibility of an overflow.
8398 * coffread.c (coff_getfilename): Add check to avoid overflow.
8400 * objc-lang.c (selectors_info): Add a small safety margin to
8402 (classes_info): Error out on too long REGEXP.
8404 * infrun.c (handle_inferior_event): Remove unused function call.
8406 * fork-child.c (fork_inferior): Remove ifdef'd code and
8409 * linux-thread-db.c (attach_thread): Discard unused value.
8411 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8413 * remote.c (remote_get_noisy_reply): Discard unused value.
8414 (remote_vcont_resume): Ditto.
8415 (remote_stop_ns): Ditto.
8417 * linespec.c (decode_objc): Delete unused variable.
8419 * tui/tui-regs.c (tui_register_format): Delete unused variable.
8421 * dwarf2read.c (add_partial_symbol): Discard unused values.
8422 (read_base_type): Delete unused variable.
8424 * dbxread.c (read_dbx_symtab): Discard unused value.
8426 * eval.c (evaluate_subexp_standard): Delete unused variable,
8427 and discard unused values.
8429 * infcmd.c (_initialize_infcmd): Discard unused values.
8431 * stabsread.c (rs6000_builtin_type): Missing break statement.
8433 * dbxread.c (process_one_symbol): Discard unused value.
8435 * coffread.c (coff_end_symtab): Delete unused variable.
8437 * dwarf2read.c (dw2_get_file_names): Discard unused value.
8438 (dwarf2_add_typedef): Delete unused variable.
8439 (read_namespace): Ditto.
8440 (dwarf_decode_macros): Ditto.
8442 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8444 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8446 * p-valprint.c (pascal_val_print): Discard unused value.
8448 * utils.c (nquery): Call va_end before return;
8452 * proc-service.c (ps_plog): Call va_end before return.
8454 2011-02-28 Tom Tromey <tromey@redhat.com>
8456 * python/python.c (gdbpy_value_cst): New global.
8457 (_initialize_python): Initialize it.
8458 * python/python-internal.h (gdbpy_value_cst): Declare.
8459 * python/py-value.c (convert_value_from_python): Use
8462 2011-02-28 Michael Snyder <msnyder@vmware.com>
8464 * python/py-cmd.c (cmdpy_init): Fix memory leak.
8466 * breakpoint.c (catch_syscall_completer): Free malloced list.
8468 * jv-lang.c (java_primitive_type_from_name): Add missing break.
8470 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8471 (lval_func_check_synthetic_pointer): Ditto.
8472 (lval_func_free_closure): Fix use-after-free.
8474 2011-02-28 Tom Tromey <tromey@redhat.com>
8476 * psymtab.c (expand_partial_symbol_tables): Use
8477 ALL_OBJFILE_PSYMTABS.
8479 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8481 * objc-lang.c (selectors_info): Error on too long REGEXP.
8483 2011-02-28 Michael Snyder <msnyder@vmware.com>
8485 * python/py-param.c (set_parameter_value): Add missing
8488 * linux-record.c (record_linux_system_call): Add missing
8491 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8493 * breakpoint.c (print_one_breakpoint_location): Remove unused
8494 argument PRINT_ADDRESS_BITS. Update callers.
8495 (print_one_breakpoint): Likewise.
8497 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8499 * breakpoint.c (wrap_indent_at_field): New function.
8500 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8501 Allocate ui_stream locally instead of using STB argument.
8502 (print_one_breakpoint_location): Update call.
8503 * ui-out.c (ui_out_query_field): New function.
8504 * ui-out.h (ui_out_query_field): Add prototype.
8506 2011-02-28 Joel Brobecker <brobecker@adacore.com>
8508 From Michael Snyder <msnyder@vmware.com>
8509 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8511 2011-02-27 Michael Snyder <msnyder@vmware.com>
8513 * objc-lang.c (selectors_info): Prevent string overrun.
8515 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8518 * symtab.c (rbreak_command): Move variable 'file_name' to
8521 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8522 param with a local variable of the same name.
8524 2011-02-27 Michael Snyder <msnyder@vmware.com>
8526 * value.c (value_from_history_ref): New function.
8527 * value.h (value_from_history_ref): Export.
8528 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8529 to parse value history references.
8530 * cli/cli-utils.h (get_number_trailer): Update comment.
8532 2011-02-27 Michael Snyder <msnyder@vmware.com>
8534 * inferior.c (detach_inferior_command): Use get_number_or_range.
8535 (kill_inferior_command): Ditto.
8536 (remove_inferior_command): Ditto.
8537 (initialize_inferiors): Make command names plural.
8538 Update help strings.
8540 2011-02-27 Michael Snyder <msnyder@vmware.com>
8542 * darwin-nat-info.c: Fix comment typo.
8543 * dwarf2expr.h: Ditto.
8544 * fbsd-nat.c: Ditto.
8545 * fbsd-nat.h: Ditto.
8546 * frame-unwind.h: Ditto.
8548 * hppa-hpux-tdep.c: Ditto.
8549 * i386-linux-nat.c: Ditto.
8550 * linux-nat.c: Ditto.
8551 * nbsd-nat.c: Ditto.
8552 * nbsd-nat.h: Ditto.
8553 * ppc-linux-tdep.c: Ditto.
8556 * tui/tui-winsource.c: Ditto.
8558 2011-02-26 Michael Snyder <msnyder@vmware.com>
8560 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8562 * maint.c (maintenance_do_deprecate): Plug a memory leak.
8564 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8565 with a local variable of the same name.
8567 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8568 param with a local variable of the same name.
8569 (i387_supply_xsave): Ditto.
8571 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8572 that it does not shadow a function parameter.
8574 * i386-nat.c (i386_length_and_rw_bits): Document that case
8575 statement is meant to fall through.
8577 * expprint.c (dump_subexp_body_standard): Document that case
8578 statement is meant to fall through.
8580 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8581 dead if statement. Condition can't be false.
8583 2011-02-25 Michael Snyder <msnyder@vmware.com>
8585 * arm-tdep.c: Fix typos in comments.
8586 * bsd-uthread.c: Ditto.
8587 * completer.c: Ditto.
8589 * cp-namespace.c: Ditto.
8590 * cp-support.c: Ditto.
8591 * cris-tdep.c: Ditto.
8593 * dwarf2read.c: Ditto.
8595 * gdbtypes.h: Ditto.
8596 * inferior.h: Ditto.
8597 * mdebugread.c: Ditto.
8598 * mips-tdep.c: Ditto.
8599 * ppc-linux-nat.c: Ditto.
8600 * ppc-linux-tdep.c: Ditto.
8601 * printcmd.c: Ditto.
8602 * sol-thread.c: Ditto.
8603 * solib-frv.c: Ditto.
8605 * sparc64-tdep.c: Ditto.
8606 * spu-tdep.c: Ditto.
8607 * stabsread.c: Ditto.
8612 * python/py-block.c: Ditto.
8613 * python/py-symbol.c: Ditto.
8614 * python/py-symtab.c: Ditto.
8615 * python/py-value.c: Ditto.
8616 * tui/tui-win.c: Ditto.
8618 2011-02-25 Michael Snyder <msnyder@vmware.com>
8620 * inferior.c (print_inferior): Accept a string instead of an int
8621 for requested_inferiors, and use get_number_or_range to parse it.
8622 (info_inferiors_command): Pass args string to print_inferior.
8623 (initialize_inferiors): Change help string for info inferiors.
8624 * inferior.h (print_inferior): Export prototype change.
8626 2011-02-25 Tom Tromey <tromey@redhat.com>
8628 * common/ax.def (invalid2): Set to 0x31.
8630 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8632 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8634 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8636 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8638 2011-02-24 Michael Snyder <msnyder@vmware.com>
8640 * Makefile.in (clean): Make clean should remove generated files
8641 observer.h and observer.inc.
8643 2011-02-24 Joel Brobecker <brobecker@adacore.com>
8645 Revert the following patch (not approved yet):
8646 2011-02-21 Hui Zhu <teawater@gmail.com>
8647 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8648 * ax-gdb.c (gen_printf_expr_callback): New function.
8649 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8650 * ax-general.c (ax_memcpy): New function.
8651 (ax_print): Handle "printf".
8653 * ax.h (ax_memcpy): Forward declare.
8654 * common/ax.def (invalid2): Removed.
8655 (printf): New entry.
8656 * printcmd.c (printcmd.h): New include.
8657 (string_printf): New function.
8658 (ui_printf): Removed.
8659 (printf_command): Remove static. Call string_printf.
8660 (eval_command): Call string_printf.
8661 * printcmd.h: New file.
8662 * tracepoint.c (validate_actionline,
8663 encode_actions_1): handle printf_command.
8665 2011-02-23 Tom Tromey <tromey@redhat.com>
8667 * ax-general.c (ax_pick): Add missing newline.
8669 2011-02-23 Michael Snyder <msnyder@vmware.com>
8671 * breakpoint.c (breakpoint_1): Change first argument from an int
8672 to a char pointer, so that the function now accepts a list of
8673 breakpoints rather than just one. Use new function
8674 'number_is_in_list' to implement.
8675 (breakpoints_info): Pass char * instead of int to breakpoint_1.
8676 (watchpoints_info): Ditto.
8677 (tracepoints_info): Ditto.
8678 (maintenance_info_breakpoints): Ditto.
8679 (_initialize_breakpoint): Update help strings to reflect the fact
8680 that these functions can now take more than one argument.
8681 * cli/cli-utils.c (number_is_in_list): New function.
8682 * cli/cli-utils.h (number_is_in_list): Export.
8684 2011-02-23 Michael Snyder <msnyder@vmware.com>
8686 * memattr.c (mem_enable_command): Use get_number_or_range.
8687 (mem_disable_command): Ditto.
8688 (mem_delete_command): Ditto.
8689 (_initialize_mem): Tweak usage message to reflect multiple
8692 2011-02-22 Doug Evans <dje@google.com>
8694 Add gdb.lookup_global_symbol python function.
8696 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8697 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8698 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8700 2011-02-22 Tom Tromey <tromey@redhat.com>
8702 * language.c (language_class_name_from_physname): Rename
8703 'curr_language' argument to 'lang'; use in body.
8705 2011-02-22 Michael Snyder <msnyder@vmware.com>
8707 * cli/cli-utils.c (number_is_in_list): Check for zero return.
8709 2011-02-22 Pedro Alves <pedro@codesourcery.com>
8711 * frame-unwind.h: Fix comment to mention the this frame, not the
8714 2011-02-22 Tom Tromey <tromey@redhat.com>
8716 * symfile.c (auto_solib_limit): Remove.
8717 * symfile.h (auto_solib_limit): Remove.
8719 2011-02-22 Joel Brobecker <brobecker@adacore.com>
8721 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
8723 2011-02-21 Michael Snyder <msnyder@vmware.com>
8725 * gdbthread.h (print_thread_info): Change prototype.
8726 * thread.c (print_thread_info): Accept char* instead of int for
8727 requested_threads argument. Use new function number_is_in_list
8728 to determine which threads to list.
8729 (info_threads_command): Pass char* to print_thread_info.
8730 * cli/cli-utils.c (number_is_in_list): New function.
8731 * cli/cli-utils.h (number_is_in_list): Export.
8732 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8734 (print_one_inferior): Ditto.
8735 (mi_cmd_list_thread_groups): Ditto.
8737 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8739 * common/Makefile.in (CFLAGS): New.
8740 (COMPILE): Add $(CFLAGS).
8742 2011-02-21 Tom Tromey <tromey@redhat.com>
8744 * breakpoint.c (catch_syscall_command_1): Fix typo.
8746 2011-02-21 Tom Tromey <tromey@redhat.com>
8748 * reverse.c: Include cli-utils.h.
8749 * printcmd.c: Include cli-utils.h.
8750 (string_printf): Use skip_spaces.
8751 * cli/cli-utils.h: New file.
8752 * cli/cli-utils.c: New file.
8753 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8754 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8755 * breakpoint.h (get_number, get_number_or_range): Move to
8757 * breakpoint.c: Include cli-utils.h.
8758 (get_number_trailer, get_number, get_number_or_range)
8759 (ep_skip_leading_whitespace): Move to cli-utils.c.
8760 (create_breakpoint_sal, find_condition_and_thread)
8761 (decode_static_tracepoint_spec, watch_command_1)
8762 (watch_maybe_just_location, ep_parse_optional_if_clause)
8763 (catch_fork_command_1, catch_exec_command_1)
8764 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8765 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8766 (SUBDIR_CLI_SRCS): Add cli-utils.c.
8767 (HFILES_NO_SRCDIR): Add cli-utils.h.
8768 (cli-utils.o): New target.
8770 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8772 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8773 before calling discard_all_inferiors.
8775 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8777 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8778 (struct builtin_opencl_type): Remove.
8779 (builtin_opencl_type): Change return type to "struct type **".
8780 (lookup_opencl_vector_type): Update caller.
8781 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8782 (build_opencl_types): Install plain array of "struct type *"
8783 instead of "struct builtin_opencl_type".
8785 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8786 Ulrich Weigand <uweigand@de.ibm.com>
8788 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8789 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8790 (struct arm_linux_hwbp_cap): New type.
8791 (arm_linux_get_hwbp_cap): New function.
8792 (arm_linux_get_hw_breakpoint_count): Likewise.
8793 (arm_linux_get_hw_watchpoint_count): Likewise.
8794 (arm_linux_can_use_hw_breakpoint): Likewise.
8795 (arm_hwbp_type): New type.
8796 (arm_hwbp_control_t): Likewise.
8797 (struct arm_linux_hw_breakpoint): Likewise.
8798 (struct arm_linux_thread_points): Likewise.
8799 (arm_threads): New global variable.
8800 (arm_linux_find_breakpoints_by_tid): New function.
8801 (arm_hwbp_control_initialize): Likewise.
8802 (arm_hwbp_control_is_enabled): Likewise.
8803 (arm_hwbp_control_disable): Likewise.
8804 (arm_linux_hw_breakpoint_initialize): Likewise.
8805 (arm_linux_get_hwbp_type): Likewise.
8806 (arm_linux_hw_watchpoint_initialize): Likewise.
8807 (arm_linux_hw_breakpoint_equal): Likewise.
8808 (arm_linux_insert_hw_breakpoint1): Likewise.
8809 (arm_linux_remove_hw_breakpoint1): Likewise.
8810 (arm_linux_insert_hw_breakpoint): Likewise.
8811 (arm_linux_remove_hw_breakpoint): Likewise.
8812 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8813 (arm_linux_insert_watchpoint): Likewise.
8814 (arm_linux_remove_watchpoint): Likewise.
8815 (arm_linux_stopped_data_address): Likewise.
8816 (arm_linux_stopped_by_watchpoint): Likewise.
8817 (arm_linux_watchpoint_addr_within_range): Likewise.
8818 (arm_linux_new_thread): Likewise.
8819 (arm_linux_thread_exit): Likewise.
8820 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8821 related target callbacks. Register arm_linux_new_thread and
8822 arm_linux_thread_exit.
8823 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8824 * arm-tdep.c (arm_pc_is_thumb): Make global.
8825 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8827 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
8829 * breakpoint.c (update_watchpoint): Do not attempt to recreate
8830 per-frame locations while within a function epilogue.
8832 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8834 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8835 to GNU coding standards.
8837 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
8839 Allow use of mingw native on Windows 95 OS.
8840 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
8841 (ser_windows_close): Only call CancelIo if function exists.
8842 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8843 to check for existence of CancelIo function in kernel32 DLL.
8845 2011-02-21 Hui Zhu <teawater@gmail.com>
8847 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8848 * ax-gdb.c (gen_printf_expr_callback): New function.
8849 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8850 * ax-general.c (ax_memcpy): New function.
8851 (ax_print): Handle "printf".
8853 * ax.h (ax_memcpy): Forward declare.
8854 * common/ax.def (invalid2): Removed.
8855 (printf): New entry.
8856 * printcmd.c (printcmd.h): New include.
8857 (string_printf): New function.
8858 (ui_printf): Removed.
8859 (printf_command): Remove static. Call string_printf.
8860 (eval_command): Call string_printf.
8861 * printcmd.h: New file.
8862 * tracepoint.c (validate_actionline,
8863 encode_actions_1): handle printf_command.
8865 2011-02-19 Michael Snyder <msnyder@vmware.com>
8867 * reverse.c (delete_one_bookmark): Argument is now bookmark
8868 id rather than pointer to bookmark struct.
8869 (delete_bookmark_command): Use get_number_or_range.
8870 (goto_bookmark_command): Parse with get_number instead of strtoul.
8871 (bookmark_1): New function. Print info for one bookmark.
8872 (bookmarks_info): Use get_number_or_range and bookmark_1.
8874 2011-02-18 Michael Snyder <msnyder@vmware.com>
8876 * thread.c (info_threads_command): Re-implement using
8877 get_number_or_range.
8878 (thread_apply_command): Ditto.
8880 2011-02-18 Tom Tromey <tromey@redhat.com>
8882 * common/ax.def: New file.
8883 * ax.h (enum agent_op): Use ax.def.
8884 * ax-general.c (aop_map): Use ax.def.
8886 2011-02-18 Tom Tromey <tromey@redhat.com>
8888 * ax-general.c (aop_map): Add pick and rot.
8889 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8890 <DW_OP_rot>: Implement.
8891 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8893 * ax-general.c (ax_pick): New function.
8895 2011-02-18 Tom Tromey <tromey@redhat.com>
8897 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8899 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8900 Tom Tromey <tromey@redhat.com>
8902 * cp-support.c (make_symbol_overload_list_namespace): Do not call
8903 make_symbol_overload_list_block with NULL BLOCK.
8904 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8906 2011-02-18 Pedro Alves <pedro@codesourcery.com>
8908 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8909 * breakpoint.h (get_number_or_range): Declare.
8910 * printcmd.c (ALL_DISPLAYS): Declare.
8911 (delete_display): Reimplement taking a display pointer.
8912 (undisplay_command): Accept a range of displays to delete, using
8913 get_number_or_range.
8915 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8917 * c-valprint.c (c_val_print): Add embedded_offset to address
8918 for arrays of unspecified length.
8919 * p-valprint.c (pascal_val_print): Likewise.
8921 2011-02-18 Yao Qi <yao@codesourcery.com>
8923 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8924 (arm_process_displaced_insn): .. here. Remove parameter INSN.
8925 (thumb_process_displaced_insn): New.
8926 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8927 call to arm_process_displaced_insn.
8928 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8930 2011-02-17 Tom Tromey <tromey@redhat.com>
8932 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8933 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8934 compile_dwarf_to_ax. No longer static. Call
8935 dwarf2_compile_cfa_to_ax.
8936 (locexpr_tracepoint_var_ref): Update.
8937 (loclist_tracepoint_var_ref): Update.
8938 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8939 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8940 argument; add 'gdbarch' and 'pc'.
8941 (dwarf2_compile_cfa_to_ax): New function.
8942 (dwarf2_frame_cache): Update.
8944 2011-02-17 Joel Brobecker <brobecker@adacore.com>
8946 * ada-lang.c (ada_type_of_array): Fix the size of the array
8947 in the case of an unconstrained packed array.
8949 2011-02-17 Yao Qi <yao@codesourcery.com>
8951 * common/Makefile.in: Add more targets for make.
8953 2011-02-16 Tom Tromey <tromey@redhat.com>
8955 * dwarf2loc.c (unimplemented): Fix typo.
8957 2011-02-16 Tom Tromey <tromey@redhat.com>
8959 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8960 (compile_dwarf_to_ax) <default>: Use unimplemented.
8961 <DW_OP_deref>: Update.
8962 (disassemble_dwarf_expression): Update.
8963 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8964 (decode_locdesc): Update.
8965 * dwarf2expr.h (dwarf_stack_op_name): Update.
8967 2011-02-16 Tom Tromey <tromey@redhat.com>
8969 * ax.h (struct aop_map) <name>: Now const.
8971 2011-02-16 Tom Tromey <tromey@redhat.com>
8973 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8976 2011-02-16 Yao Qi <yao@codesourcery.com>
8978 * infrun.c (get_displaced_step_closure_by_addr): New.
8979 * inferior.h: Declare it.
8980 * arm-tdep.c: (arm_pc_is_thumb): Call
8981 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
8984 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8985 Jan Kratochvil <jan.kratochvil@redhat.com>
8988 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8990 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8991 Jan Kratochvil <jan.kratochvil@redhat.com>
8993 * value.c (value_contents_copy_raw): Extend describing comment.
8994 Assert that the destination contents we're overwriting are wholly
8996 (value_contents_copy): Extend describing comment.
8998 2011-02-16 Pedro Alves <pedro@codesourcery.com>
8999 Jan Kratochvil <jan.kratochvil@redhat.com>
9001 * value.c (value_available_contents_eq): Remove redundant local
9002 variables. Fix available contents comparision.
9003 * value.h (value_available_contents_eq): Extend describing
9006 2011-02-16 Yao Qi <yao@codesourcery.com>
9008 * thread.c (info_threads_command): Add missing i18n markup and remove
9011 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9013 * breakpoint.c (longjmp_names): New variable.
9014 (struct breakpoint_objfile_data): New type.
9015 (breakpoint_objfile_key): New variable.
9016 (msym_not_found): New variable.
9017 (msym_not_found_p): New predicate.
9018 (get_breakpoint_objfile_data): New function.
9019 (create_overlay_event_breakpoint): Check per-objfile cache for
9021 (create_longjmp_master_breakpoint): Likewise.
9022 (create_std_terminate_master_breakpoint): Likewise.
9023 (create_exception_master_breakpoint): Likewise.
9024 (_initialize_breakpoint): Register per-objfile data key.
9026 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9028 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9030 (create_longjmp_master_breakpoint): Loop over longjmp names.
9031 (create_std_terminate_master_breakpoint): Const-propagate parameter
9033 (update_breakpoints_after_exec): Adjust.
9034 (breakpoint_re_set): Adjust.
9036 2011-02-15 Michael Snyder <msnyder@vmware.com>
9038 * thread.c (info_threads_command): Process arg as thread id,
9039 or list of thread ids.
9040 (thread_find_command): New command.
9041 (_initialize_thread): Document argument for info threads.
9042 Document 'thread find' command.
9043 * NEWS: Document new command "thread find".
9045 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9047 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9048 * aclocal.m4: Regenerated with aclocal-1.11.1.
9049 * common/configure: Regenerate with autoconf-2.64.
9051 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9053 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9054 bool data type to a size of one byte.
9056 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9057 Jan Kratochvil <jan.kratochvil@redhat.com>
9059 * target.c (memory_xfer_live_readonly_partial): Document where to
9060 look for interface description.
9062 2011-02-15 Yao Qi <yao@codesourcery.com>
9065 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9066 order to store PC value on stack instead of text section.
9068 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9070 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9071 the EFP register set size.
9072 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9073 data from the VMX register.
9074 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9075 and write data from/to the VMX register.
9077 2011-02-14 Michael Snyder <msnyder@vmware.com>
9079 * command.h (enum command_class): New class 'no_set_class', for
9080 "show" commands without a corresponding "set" command.
9081 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9082 * copying.c (_initialize_copying): Ditto for "show copying" and
9084 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9086 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9087 which there is no corresponding "set" command (eg. "show copying").
9089 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9090 Jan Kratochvil <jan.kratochvil@redhat.com>
9092 * exec.c (section_table_available_memory): Change `len' parameter
9094 * exec.h (section_table_available_memory): Ditto.
9095 * value.h (read_value_memory): Rename the `offset' parameter to
9098 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9099 Jan Kratochvil <jan.kratochvil@redhat.com>
9101 * memrange.c (compare_mem_ranges): Mention sort order in
9103 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9104 * tracepoint.c (traceframe_available_memory): Extend comment to
9105 mention what happens to RESULT when the target does not support
9108 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9109 Jan Kratochvil <jan.kratochvil@redhat.com>
9111 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9114 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9116 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9117 No longer handle NULL values.
9119 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9121 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9122 * value.c: Include "exceptions.h".
9123 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9125 * cp-abi.c: Include gdb_assert.h.
9126 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9127 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9129 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9130 parameters. No longer returns -1 on error.
9131 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9133 * cp-valprint.c: Include exceptions.h.
9134 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9135 the baseclass_offset. Handle unavailable base classes. Use
9136 val_print_invalid_address.
9137 * p-valprint.c: Include exceptions.h.
9138 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9139 when fetching the baseclass_offset. No longer expect
9140 baseclass_offset returning -1. Handle unavailable base classes.
9141 Use val_print_invalid_address.
9142 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9143 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9144 `embedded_offset' and `val' parameters. Adjust.
9145 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9146 parameter, and change its type to gdb_byte pointer. Add
9147 `embedded_offset' and `val' parameters. Adjust. No longer expect
9148 baseclass_offset returning -1.
9149 (value_dynamic_cast): Use value_contents_for_printing rather than
9150 value_contents. Adjust.
9151 (search_struct_field): No longer expect baseclass_offset returning
9153 (search_struct_method): If reading memory from the target is
9154 necessary, wrap it in a new value to pass to baseclass_offset. No
9155 longer expect baseclass_offset returning -1.
9156 (find_method_list): No longer expect baseclass_offset returning
9157 -1. Use value_contents_for_printing rather than value_contents.
9158 * valprint.c (val_print_invalid_address): New function.
9159 * valprint.h (val_print_invalid_address): Declare.
9160 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9161 and `val' parameters. No longer expect baseclass_offset returning
9163 * gnu-v2-abi.c: Include "exceptions.h".
9164 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9165 parameters. Handle unavailable memory. Recurse through
9166 gnuv2_baseclass_offset directly, rather than through
9167 baseclass_offset. No longer returns -1 on not found, instead
9169 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9170 `val' parameters. Adjust.
9172 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9174 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9175 almost but not quite adjacent.
9177 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9179 * value.h (value_entirely_available): Declare.
9180 * value.c (value_entirely_available): New function.
9181 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9182 real type if the pointer is unavailable.
9184 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9186 * valops.c (value_repeat): Use read_value_memory instead of
9189 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9191 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9192 * value.c (value_contents_copy_raw, value_contents_copy): New
9194 (value_primitive_field): Use value_contents_copy_raw instead of
9196 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9198 (value_array, value_slice): Ditto.
9199 * valarith.c (value_subscripted_rvalue): Use
9200 value_contents_copy_raw instead of memcpy.
9202 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9204 <unavailable> references.
9206 * valops.c (get_value_at): Use value_from_contents_and_address,
9207 avoiding read_memory.
9209 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9211 * c-valprint.c (c_val_print): Print a string with unavailable
9212 contents as an array.
9214 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9216 * value.h (unpack_bits_as_long): Delete declaration.
9217 (unpack_value_bits_as_long): Declare.
9218 (unpack_value_field_as_long): Declare.
9219 (value_field_bitfield): Declare.
9220 * value.c (unpack_bits_as_long): Rename to...
9221 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9222 value parameters. Return the extracted result in a new output
9223 parameter. If the value contents are unavailable, return false,
9224 otherwise return true.
9225 (unpack_value_bits_as_long): New.
9226 (unpack_field_as_long): Rename to...
9227 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9228 Add embedded_offset and value parameters. Return the extracted
9229 result in a new output parameter. If the value contents are
9230 unavailable, return false, otherwise return true.
9231 (unpack_value_field_as_long): New.
9232 (unpack_field_as_long_1): New.
9233 (unpack_field_as_long): Reimplement as wrapper around
9234 unpack_value_field_as_long_1.
9235 (value_field_bitfield): New function.
9236 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9237 unpack_value_bits_as_long. Mark the value as unavailable, if it
9239 * jv-valprint.c (java_print_value_fields): Use
9240 value_field_bitfield.
9241 * p-valprint.c (pascal_object_print_value_fields): Use
9242 value_field_bitfield.
9243 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9245 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9247 * value.c (get_internalvar_integer): Also return the int value of
9248 TYPE_CODE_INT INTERNALVAR_VALUE values.
9249 (set_internalvar): Don't special case TYPE_CODE_INT.
9251 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9253 * value.c (struct internalvar) <enum internalvar_kind>: Remove
9254 INTERNALVAR_POINTER.
9256 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9257 (set_internalvar): Remove special TYPE_CODE_PTR handling.
9258 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9260 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9262 * value.h (value_available_contents_eq): Declare.
9263 * value.c (find_first_range_overlap): New function.
9264 (value_available_contents_eq): New function.
9265 * valprint.c (val_print_array_elements): Use
9266 value_available_contents_eq.
9267 * ada-valprint.c (val_print_packed_array_elements): Use
9268 value_available_contents_eq.
9269 * jv-valprint.c (java_value_print): Use
9270 value_available_contents_eq.
9272 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9274 * target.c (target_read_live_memory): New function.
9275 (memory_xfer_live_readonly_partial): New.
9276 (memory_xfer_partial): If reading from a traceframe, fallback to
9277 reading unavailable read-only memory from read-only regions of
9279 * tracepoint.c (disconnect_tracing): Adjust.
9280 (set_current_traceframe): New, factored out from
9281 set_traceframe_number.
9282 (set_traceframe_number): Reimplement to only change the traceframe
9283 number on the GDB side.
9284 (do_restore_current_traceframe_cleanup): Adjust.
9285 (make_cleanup_restore_traceframe_number): New.
9286 (cur_traceframe_number): New global.
9287 (tfile_open): Set cur_traceframe_number to no traceframe.
9288 (set_tfile_traceframe): New function.
9289 (tfile_trace_find): If looking up a traceframe using any method
9290 other than by number, make sure the current tfile traceframe
9291 matches gdb's current traceframe. Update the current tfile
9292 traceframe if the lookup succeeded.
9293 (tfile_fetch_registers, tfile_xfer_partial)
9294 (tfile_get_trace_state_variable_value): Make sure the remote
9295 traceframe matches gdb's current traceframe.
9296 * remote.c (remote_traceframe_number): New global.
9297 (remote_open_1): Set it to -1.
9298 (set_remote_traceframe): New function.
9299 (remote_fetch_registers, remote_store_registers)
9300 (remote_xfer_memory, remote_xfer_partial)
9301 (remote_get_trace_state_variable_value): Make sure the remote
9302 traceframe matches gdb's current traceframe.
9303 (remote_trace_find): If looking up a traceframe using any method
9304 other than by number, make sure the current remote traceframe
9305 matches gdb's current traceframe. Update the current remote
9306 traceframe if the lookup succeeded.
9307 * infrun.c (fetch_inferior_event): Adjust.
9308 * tracepoint.h (set_current_traceframe): Declare.
9309 (get_traceframe_number, set_traceframe_number): Add describing
9312 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9314 Mark pieces of values as unavailable if the corresponding memory
9317 * valops.c: Include tracepoint.h.
9318 (value_fetch_lazy): Use read_value_memory.
9319 (read_value_memory): New.
9320 * value.h (read_value_memory): Declare.
9321 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9322 * exec.c (section_table_available_memory): New function.
9323 * exec.h (section_table_available_memory): Declare.
9325 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9327 * Makefile.in (SFILES): Add memrange.c.
9328 (HFILES_NO_SRCDIR): Add memrange.h.
9329 (COMMON_OBS): Add memrange.o.
9330 * memrange.c: New file.
9331 * memrange.h: New file.
9332 * tracepoint.c: Include memrange.h.
9333 (struct mem_range): Delete.
9334 (mem_range_s): Delete.
9335 (traceframe_available_memory): New function.
9336 * tracepoint.h (traceframe_available_memory): Declare.
9338 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9340 * target.h (struct traceframe_info): Forward declare.
9341 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9342 (struct target_ops) <to_traceframe_info>: New field.
9343 (target_traceframe_info): New.
9344 * target.c (update_current_target): Inherit and default
9346 * remote.c (PACKET_qXfer_traceframe_info): New.
9347 (remote_protocol_features): Register qXfer:traceframe-info:read.
9348 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9349 (remote_traceframe_info): New.
9350 (init_remote_ops): Install it.
9351 (_initialize_remote): Install "set/show remote traceframe-info"
9353 * tracepoint.h (parse_traceframe_info): Declare.
9354 * tracepoint.c (struct mem_range): New.
9355 (mem_range_s): New typedef.
9356 (struct traceframe_info): New.
9357 (traceframe_info): New global.
9358 (free_traceframe_info): New function.
9359 (clear_traceframe_info): New function.
9360 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9362 (build_traceframe_info): New function.
9363 (tfile_traceframe_info): New function.
9364 (init_tfile_ops): Install tfile_traceframe_info.
9365 (traceframe_info_start_memory, free_result): New functions.
9366 (memory_attributes, traceframe_info_elements): New globals.
9367 (parse_traceframe_info, get_traceframe_info): New functions.
9368 * features/traceframe-info.dtd: New file.
9369 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9371 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9373 Base support for <unavailable> value contents.
9375 * value.h (value_bytes_available): Declare.
9376 (mark_value_bytes_unavailable): Declare.
9377 * value.c (struct range): New struct.
9378 (range_s): New typedef.
9379 (ranges_overlap): New function.
9380 (range_lessthan): New function.
9381 (ranges_contain_p): New function.
9382 (struct value) <unavailable>: New field.
9383 (value_bytes_available): New function.
9384 (mark_value_bytes_unavailable): New function.
9385 (require_not_optimized_out): Constify parameter.
9386 (require_available): New function.
9387 (value_contents_all, value_contents): Require all bytes be
9389 (value_free): Free `unavailable'.
9390 (value_copy): Copy `unavailable'.
9391 * valprint.h (val_print_unavailable): Declare.
9392 * valprint.c (valprint_check_validity): Rename `offset' parameter
9393 to `embedded_offset'. If printing a scalar, check whether the
9394 value chunk is available.
9395 (val_print_unavailable): New.
9396 (val_print_scalar_formatted): Check whether the value is
9398 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9399 pretty-printing unavailable values.
9401 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9403 Fix const/volatile qualifiers of C++ types, PR c++/12328.
9404 * c-typeprint.c (c_type_print_args): Update the function comment. New
9405 variable param_type, initialize it. Remove const/volatile qualifiers
9406 for language_cplus and !show_artificial. Use param_type.
9408 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9410 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9411 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
9412 * symtab.h (struct symtab) <next>: Comment extension.
9414 2011-02-12 Yao Qi <yao@codesourcery.com>
9416 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9418 2011-02-11 Yao Qi <yao@codesourcery.com>
9420 * common/Makefile.in: Add copyright header.
9422 2011-02-11 Pedro Alves <pedro@codesourcery.com>
9424 * infrun.c (proceed): Move switching out and in of tfind mode from
9426 (fetch_inferior_event): ... to here.
9428 2011-02-11 Yao Qi <yao@codesourcery.com>
9430 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9432 * configure.ac: Add common to sub dir.
9433 * configure: Regenerate.
9435 2011-02-11 Yao Qi <yao@codesourcery.com>
9439 * common/Makefile.in: New.
9440 * common/configure.ac: New.
9441 * common/aclocal.m4: New.
9442 * common/configure: Generate.
9444 2011-02-10 Pedro Alves <pedro@codesourcery.com>
9446 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9447 side of the parenthesis.
9450 2010-07-13 Jakub Jelinek <jakub@redhat.com>
9451 * vec.h (VEC_block_remove): Fix comment.
9453 2011-02-08 Michael Snyder <msnyder@vmware.com>
9455 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9457 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9459 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9460 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9463 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9466 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9468 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9469 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9471 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9473 * dwarf2read.c (read_subroutine_type): Set special calling
9474 convention flag for functions compiled by IBM XL C for OpenCL.
9475 * ppc-sysv-tdep.c: Include "dwarf2.h"
9476 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9478 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
9479 IBM OpenCL vector types calling convention.
9480 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9481 (ppc_sysv_abi_broken_return_value): Likewise.
9482 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9483 types calling convention.
9484 (ppc64_sysv_abi_return_value): Likewise.
9485 * spu-tdep.c: Include "dwarf2.h"
9486 (spu_return_value): Implement IBM OpenCL vector types calling
9489 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9491 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9492 correct ABI for AltiVec vector arguments.
9494 2011-02-07 Pedro Alves <pedro@codesourcery.com>
9496 * valprint.c (val_print): Extend comment.
9497 * ada-valprint.c (ada_valprint): Rewrite comment deferring
9498 interface explanation to val_print.
9499 (ada_val_print_array): Adjust comment to current interface.
9500 (print_field_values): Adjust comment to current interface.
9501 * c-valprint.c (c_val_print): Rewrite comment deferring interface
9502 explanation to val_print.
9503 * f-valprint.c (f_val_print): Ditto.
9504 * jv-valprint.c (java_val_print): Ditto.
9505 * m2-valprint.c (m2_val_print): Ditto.
9506 * p-valprint.c (pascal_val_print): Ditto.
9508 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
9510 * breakpoint.c (parse_breakpoint_sals): Fix description.
9512 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9513 Oguz Kayral <oguzkayral@gmail.com>
9515 * python/py-inferior.c (python_on_normal_stop): New function.
9516 (python_on_resume): New function.
9517 (python_inferior_exit): New function.
9518 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9519 inferior_exit observers.
9520 * python/py-evtregistry.c: New file.
9521 * python/py-threadevent.c : New file.
9522 * python/py-event.c: New file.
9523 * python/py-evts.c: New file.
9524 * python/py-continueevent.c: New file.
9525 * python/py-bpevent.c: New file.
9526 * python/py-signalevent.c: New file.
9527 * python/py-exetiedevent.c: New file.
9528 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9529 Move struct breakpoint_object from here...
9530 * python/python-internal.h: ... to here.
9531 * python/py-event.h: New file.
9532 * python/py-events.h: New file.
9533 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9534 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9535 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9536 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9537 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9538 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9539 Add build rules for all the above.
9541 2011-02-04 Tom Tromey <tromey@redhat.com>
9543 * dwarf2read.c (dwarf2_section_empty_p): New function.
9544 (dwarf2_read_section): Use dwarf2_section_empty_p.
9545 (dwarf2_section_size): New function.
9546 (dwarf2_get_section_info): Unconditionally read section.
9547 (dwarf2_read_index): Use dwarf2_section_empty_p.
9548 (partial_read_comp_unit_head): Use dwarf2_section_size.
9549 (dwarf2_symbol_mark_computed): Likewise.
9551 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9553 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9555 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9557 * mips-linux-tdep.c: Include xml-syscall.h.
9558 (mips_linux_get_syscall_number): New function.
9559 (mips_linux_init_abi): Add calls to
9560 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9561 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9562 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9563 * syscalls/mips-n32-linux.xml: New file.
9564 * syscalls/mips-n64-linux.xml: New file.
9565 * syscalls/mips-o32-linux.xml: New file.
9567 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9569 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9570 Complain about inverted range entries.
9571 (dwarf2_record_block_ranges): Likewise.
9573 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9576 * breakpoint.c (update_watchpoint): Fix name of the
9577 update_global_location_list function.
9578 (print_one_breakpoint): Fix typo.
9579 (_initialize_breakpoint): Remove extra space in hbreak help
9581 * breakpoint.h (struct bp_location) <length>: Fix field
9584 2011-02-04 Pedro Alves <pedro@codesourcery.com>
9586 * regcache.c (registers_changed_ptid): Don't explictly always
9587 clear `current_regcache'. Only clear current_thread_ptid and
9588 current_thread_arch when PTID matches. Only reinit the frame
9589 cache if PTID matches the current inferior_ptid. Move alloca(0)
9591 (registers_changed): ... here.
9593 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
9595 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9596 starts with __stack_chk_guard as stack guard symbol.
9598 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
9600 * disasm.c (compare_lines): Handle the end of sequence markers
9601 within the line table to better support disassembling over
9602 compilation unit boundaries.
9604 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9606 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9607 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
9608 implementation even if no symbols are available.
9609 (thumb_analyze_prologue): Update call to skip_prologue_function.
9610 (arm_analyze_prologue): Likewise.
9612 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9614 * arm-tdep.c: Include "observer.h".
9615 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9616 (arm_exidx_data_key): New static variable.
9617 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9618 (struct arm_exidx_data): Likewise.
9619 (arm_exidx_data_free): New function.
9620 (arm_compare_exidx_entries): Likewise.
9621 (arm_obj_section_from_vma): Likewise.
9622 (arm_exidx_new_objfile): Likewise.
9623 (arm_find_exidx_entry): Likewise.
9624 (arm_exidx_fill_cache): Likewise.
9625 (arm_exidx_unwind_sniffer): Likewise.
9626 (arm_exidx_unwind): New global variable.
9627 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9628 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9629 observer. Register arm_exidx_data_key as objfile data.
9631 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
9633 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9634 due to accessing uninitialized variable. Fix indentation.
9636 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9638 * c-valprint.c (c_value_print): When doing virtual base pointer
9639 adjustment, create a new value with adjusted contents rather than
9640 changing the contents of the value being printed (and getting it
9643 2011-02-02 Pedro Alves <pedro@codesourcery.com>
9645 * xml-support.c (xml_find_attribute): New.
9646 (xinclude_start_include): Use it.
9647 * xml-support.h (xml_find_attribute): Declare.
9648 * memory-map.c (memory_map_start_memory)
9649 (memory_map_start_property): Use xml_find_attribute.
9650 * osdata.c (osdata_start_osdata, osdata_start_column): Use
9652 * remote.c (start_thread): Use xml_find_attribute.
9653 * solib-target.c (library_list_start_segment)
9654 (library_list_start_section, library_list_start_library)
9655 (library_list_start_list): Use xml_find_attribute.
9656 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9657 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9658 (tdesc_start_field): Use xml_find_attribute.
9660 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
9662 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9663 (BUILD_OCL_VTYPES): Update.
9665 2011-02-02 Joel Brobecker <brobecker@adacore.com>
9667 * configure.ac: Work around non-GNU sed limitation when computing
9668 python version number.
9669 * configure: Regenerate.
9671 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9673 Fix debug printing of TYPE_INSTANCE.
9674 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9675 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9677 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9679 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9680 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9681 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9682 * ada-operator.inc: Rename the file to ...
9683 * ada-operator.def: ... here, wrap all the entries by macro OP.
9684 * expprint.c (op_name_standard): Remove all the entries. Include
9685 "std-operator.def" instead.
9686 * expression.h (enum exp_opcode): Include "std-operator.def" and
9687 "ada-operator.def". Move all the entries ...
9688 * std-operator.def: ... here, wrap all the entries by macro OP.
9690 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9692 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9693 * breakpoint.c (remove_jit_event_breakpoints): New function.
9694 * jit.c (jit_descriptor_addr): Delete.
9695 (registering_code): Delete.
9696 (clear_int): Delete.
9697 (jit_inferior_data): New variable.
9698 (struct jit_inferior_data): New type.
9699 (get_jit_inferior_data): New function.
9700 (jit_inferior_data_cleanup): New function.
9701 (jit_read_descriptor): Adjust.
9702 (jit_register_code): Adjust.
9703 (jit_breakpoint_re_set_internal): New function; move code here ...
9704 (jit_inferior_init): ... from here.
9705 (jit_breakpoint_re_set): Adjust.
9706 (jit_reset_inferior_data_and_breakpoints): New function.
9707 (jit_inferior_created_observer): Adjust.
9708 (jit_inferior_exit_hook): Adjust.
9709 (jit_executable_changed_observer): New function.
9710 (jit_event_handler): Adjust.
9711 (_initialize_jit): Adjust.
9713 2011-01-31 Michael Snyder <msnyder@vmware.com>
9715 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9718 2011-01-31 Tom Tromey <tromey@redhat.com>
9721 * python/python.c (execute_gdb_command): Call
9722 prevent_dont_repeat.
9723 * top.c (suppress_dont_repeat): New global.
9724 (dont_repeat): Use it.
9725 (prevent_dont_repeat): New function.
9726 * command.h (prevent_dont_repeat): Declare.
9728 2011-01-31 Tom Tromey <tromey@redhat.com>
9730 * infcmd.c (finish_backward): Use breakpoint_set_silent.
9731 * python/py-breakpoint.c (bppy_set_silent): Use
9732 breakpoint_set_silent.
9733 (bppy_set_thread): Use breakpoint_set_thread.
9734 (bppy_set_task): Use breakpoint_set_task.
9735 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9736 (breakpoint_set_task): Declare.
9737 (make_breakpoint_silent): Remove.
9738 * breakpoint.c (breakpoint_set_silent): New function.
9739 (breakpoint_set_thread): Likewise.
9740 (breakpoint_set_task): Likewise.
9741 (make_breakpoint_silent): Remove.
9743 2011-01-31 Tom Tromey <tromey@redhat.com>
9745 * breakpoint.h (user_breakpoint_p): Declare.
9746 * breakpoint.c (user_breakpoint_p): New function.
9747 (breakpoint_1): Use it.
9748 (save_breakpoints): Likewise.
9750 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9752 * configure.ac: Add handling of Python distribution on Windows.
9753 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9754 sysconfig variables are not defined, then do not use them.
9755 On Windows, if LIBPL is not defined, then use prefix + '/libs'
9756 instead. On Windows, return all paths using forward-slashes
9757 rather than backslashes.
9759 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9761 * configure.ac: Remove fallback behavior for building
9762 against Python. Remove tweaking of Python include path.
9763 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9764 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
9765 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9766 Always restore CPPFLAGS and LIBS after linking test.
9767 * configure: Regenerated.
9768 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9769 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9770 * python/python-internal.h: Adjust includes of Python .h files.
9772 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9774 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9777 2011-01-31 Joel Brobecker <brobecker@adacore.com>
9779 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9782 2011-01-31 Yao Qi <yao@codesourcery.com>
9784 * arm-linux-nat.c: Update calls to regcache_register_status
9785 instead of regcache_valid_p.
9786 * aix-thread.c: Likewise.
9787 * i386gnu-nat.c: Likewise.
9789 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9792 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9793 touching TYPE_FIELD_ARTIFICIAL.
9795 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
9797 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9800 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9802 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9803 selected, don't try iterating over the traceframe's blocks.
9804 (tfile_has_stack): If there's no traceframe selected, then there's
9806 (tfile_has_registers): If there's no traceframe selected, then
9807 there's no registers.
9809 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9811 * target.c (memory_xfer_partial): No need to restore shadows if we
9812 haven't read anything.
9814 2011-01-28 Pedro Alves <pedro@codesourcery.com>
9816 * mips-tdep.c (mips_print_register): Use get_frame_register_value
9817 and val_print_scalar_formatted.
9819 2011-01-27 Pedro Alves <pedro@codesourcery.com>
9821 * tracepoint.c (tfile_read): New.
9822 (tfile_open): Use it.
9823 (tfile_get_traceframe_address): Use it.
9824 (tfile_trace_find): Use it.
9825 (walk_blocks_callback_func): New typedef.
9826 (match_blocktype): New function.
9827 (traceframe_walk_blocks): New function.
9828 (traceframe_find_block_type): New function.
9829 (tfile_fetch_registers, tfile_xfer_partial)
9830 (tfile_get_trace_state_variable_value): Use
9831 traceframe_find_block_type and tfile_read.
9833 2011-01-26 Kevin Buettner <kevinb@redhat.com>
9835 * remote-mips.c: Add internationalization mark ups. Remove
9836 trailing \n from already marked up strings.
9838 2011-01-26 Tom Tromey <tromey@redhat.com>
9840 * python/py-prettyprint.c (print_string_repr): Clear
9841 'addressprint' option when calling val_print_string.
9842 (print_children): Handle Val_pretty_default. Clear 'addressprint'
9843 option when calling val_print_string.
9845 2011-01-26 Tom Tromey <tromey@redhat.com>
9847 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9849 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9851 (gdb_py_longest, gdb_py_ulongest): New typedefs.
9852 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9853 (gdb_py_long_as_ulongest): New defines.
9854 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9855 (gdb_py_int_as_long): Declare.
9856 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9857 GDB_PY_LL_ARG, gdb_py_object_from_longest.
9858 (valpy_long): Add comment.
9859 * python/py-utils.c (get_addr_from_python): Use
9860 gdb_py_long_as_ulongest. Handle overflow properly.
9861 (gdb_py_object_from_longest): New function.
9862 (gdb_py_object_from_ulongest): Likewise.
9863 (gdb_py_int_as_long): Likewise.
9864 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9865 * python/py-symtab.c (salpy_get_pc): Use
9866 gdb_py_long_from_ulongest.
9867 (salpy_get_line): Use PyInt_FromLong.
9868 * python/py-param.c (set_parameter_value): Use
9870 * python/py-lazy-string.c (stpy_get_address): Use
9871 gdb_py_long_from_ulongest.
9872 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9873 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9874 * python/py-breakpoint.c (bppy_set_thread): Use
9876 (bppy_set_task): Likewise.
9877 (bppy_set_ignore_count): Likewise.
9878 (bppy_set_hit_count): Likewise.
9879 * python/py-block.c (blpy_get_start): Use
9880 gdb_py_object_from_ulongest.
9881 (blpy_get_end): Likewise.
9882 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9884 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
9887 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9888 * gdb/solib.c (solib_read_symbols): Check for addr_low in
9889 equality test for objfile, initialize addr_low if needed.
9891 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9893 * tui/tui-regs.c (tui_register_format): Remove dead code.
9895 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9897 * printcmd.c (print_formatted): Use val_print_scalar_formatted
9898 instead of print_scalar_formatted.
9899 (print_scalar_formatted): Don't handle 's' format strings here,
9900 and add an assertion that we never see such format here.
9901 * valprint.h (val_print_scalar_formatted): Declare.
9902 * valprint.c (val_print_scalar_formatted): New.
9903 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9904 instead of print_scalar_formatted.
9905 * jv-valprint.c (java_val_print): Ditto.
9906 * p-valprint.c (pascal_val_print): Ditto.
9907 * ada-valprint.c (ada_val_print_1): Ditto.
9908 * f-valprint.c (f_val_print): Ditto.
9909 * infcmd.c (registers_info): Ditto.
9910 * m2-valprint.c (m2_val_print): Ditto.
9912 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9914 * m2-valprint.c (print_unbounded_array): Pass
9915 value_contents_for_printing rather than value_contents, to
9916 m2_print_array_contents. Also pass in the value.
9918 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9920 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9921 (save_gdb_index_command): Switch to .gdb_index version 4.
9923 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9925 * mi/mi-main.c (get_register): Use get_frame_register_value rather
9926 than frame_register, and always pass a valid value to val_print.
9928 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9930 Centralize printing "<optimized out>".
9932 * valprint.h (val_print_optimized_out): Declare.
9933 * cp-valprint.c (cp_print_value_fields): Use
9934 val_print_optimized_out.
9935 * jv-valprint.c (java_print_value_fields): Ditto.
9936 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9937 * printcmd.c (print_formatted): Ditto.
9938 * valprint.c (valprint_check_validity): Ditto.
9939 (value_check_printable): Ditto.
9940 (val_print_optimized_out): New.
9942 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9944 * infcmd.c (default_print_registers_info): Allocate values so to
9945 never pass a NULL value to val_print.
9947 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9949 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9950 boolean. Make sure to always pass a value that matches the
9951 contents buffer to callees. Preserve `address' for following
9953 * value.c (value_contents_for_printing_const): New.
9954 (value_address): Constify value argument.
9955 * value.h (value_contents_for_printing_const): Declare.
9956 (value_address): Constify value argument.
9958 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9960 * regcache.c (struct regcache_descr): Rename
9961 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9962 and sizeof_cooked_register_valid_p to
9963 sizeof_cooked_register_status.
9964 (init_regcache_descr): Adjust.
9965 (struct regcache): Rename register_valid_p field to
9967 (regcache_xmalloc_1, regcache_xfree, regcache_save)
9968 (do_cooked_read): Adjust.
9969 (regcache_valid_p): Rename to ...
9970 (regcache_register_status): ... this. Adjust.
9971 (regcache_invalidate): Adjust.
9972 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9974 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
9975 as unavailable, not valid.
9976 (regcache_dump): Adjust.
9977 * regcache.h (enum register_status): New.
9978 (regcache_register_status): Declare.
9979 (regcache_invalidate): Delete declaration.
9980 * corelow.c (get_core_registers): Adjust.
9981 * tracepoint.c (tfile_fetch_registers): Adjust.
9982 * trad-frame.c (REG_VALUE): Rename to ...
9983 (TF_REG_VALUE): ... this.
9984 (REG_UNKNOWN): Rename to ...
9985 (TF_REG_UNKNOWN): ... this.
9986 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9987 * mi/mi-main.c (register_changed_p): Adjust.
9989 2011-01-25 Pedro Alves <pedro@codesourcery.com>
9991 * regcache.c (struct regcache_descr): Remove outdated comment.
9992 (init_regcache_descr): Remove sizeof_raw_register_valid_p
9994 (regcache_xmalloc): Rename to ...
9995 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
9996 Allocate the regcache type accordingly.
9997 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
9998 (regcache_xfree): Asser the source is also readonly. Copy sizeof
9999 cooked registers, not raw.
10000 (regcache_dup_no_passthrough): Delete.
10001 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10002 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10003 mention obsolete write_register_bytes.
10004 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10006 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10008 Stop remote_read_bytes from handling partial reads itself.
10010 * remote-fileio.c: Include target.h.
10011 (remote_fileio_write_bytes): Delete.
10012 (remote_fileio_func_open, remote_fileio_func_write)
10013 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10014 target_read_memory.
10015 (remote_fileio_func_stat): Use target_read_memory and
10016 target_write_memory.
10017 (remote_fileio_func_gettimeofday): Use target_write_memory.
10018 (remote_fileio_func_system): Use target_read_memory.
10019 * remote.c (remote_write_bytes): Make it static.
10020 (remote_read_bytes): Don't handle partial reads here.
10021 * remote.h (remote_read_bytes): Delete declaration.
10023 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10025 Simplify XML parsing a bit.
10027 * xml-support.h (gdb_xml_parse_quick): Declare.
10028 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10029 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10031 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10032 gdb_xml_create_parser_and_cleanup_1.
10033 (gdb_xml_parse_quick): New.
10034 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10035 * osdata.c (osdata_parse): Ditto.
10036 * remote.c (remote_threads_info): Ditto.
10037 * solib-target.c (solib_target_parse_libraries): Ditto.
10038 * xml-syscall.c (syscall_parse_xml): Ditto.
10039 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10041 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10043 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10044 with remote-mips.o added to gdb_target_obs.
10045 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10047 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10049 * ada-valprint.c (val_print_packed_array_elements): Pass the
10050 correct struct value to val_print.
10051 (ada_val_print_1): Ditto.
10053 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10055 Don't lose embedded_offset in printing routines throughout.
10057 * valprint.h (val_print_array_elements): Change prototype.
10058 * valprint.c (val_print_array_elements): Add `embedded_offset'
10059 parameter, and adjust to pass it down to val_print, while passing
10060 `valaddr' or `address' unmodified. Take embedded_offset into
10061 account when checking repetitions.
10062 * c-valprint.c (c_val_print): Pass embedded_offset to
10063 val_print_array_elements instead of adjusting `valaddr' and
10065 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10066 embedded_offset to val_print_array_elements instead of adjusting
10068 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10069 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10070 val_print_array_elements and pascal_object_print_value_fields
10071 instead of adjusting `valaddr'.
10072 (pascal_object_print_value_fields): Add `offset' parameter, and
10074 (pascal_object_print_value): Add `offset' parameter, and adjust to
10076 (pascal_object_print_static_field): Use
10077 value_contents_for_printing/value_embedded_offset, rather than
10079 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10080 parameter, and adjust to use it. Use
10081 value_contents_for_printing/value_embedded_offset, rather than
10083 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10084 (ada_val_print_array): Add `offset' parameter, and adjust to use
10086 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10087 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10088 Instead work with offsets. Use
10089 value_contents_for_printing/value_embedded_offset, rather than
10090 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10091 and use value_from_pointer to extract a target pointer, rather
10092 than value_from_longest.
10093 (print_variant_part): Add `offset' parameter. Replace
10094 `outer_valaddr' parameter by a new `outer_offset' parameter.
10095 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10096 (ada_value_print): Use
10097 value_contents_for_printing/value_embedded_offset, rather than
10099 (print_record): Add `offset' parameter, and adjust to pass it
10101 (print_field_values): Add `offset' parameter. Replace
10102 `outer_valaddr' parameter by a new `outer_offset' parameter.
10103 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10104 Use value_contents_for_printing/value_embedded_offset, rather than
10106 * d-valprint.c (dynamic_array_type): Use
10107 value_contents_for_printing/value_embedded_offset, rather than
10109 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10110 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10111 (java_print_value_fields): Take `offset' into account. Don't
10112 re-adjust `valaddr'. Instead pass down adjusted offsets.
10113 (java_val_print): Take `embedded_offset' into account. Pass it to
10114 java_print_value_fields.
10115 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10116 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10117 down adjusted offsets.
10118 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10119 (f_val_print): Take `embedded_offset' into account.
10121 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10123 * inflow.c: Include "gdbcmd.h".
10124 (interactive_mode): New static global, moved here from top.c.
10125 (show_interactive_mode): New function, moved here from top.c.
10126 use gdb_has_a_terminal instead of input_from_terminal_p to
10127 determine the current mode.
10128 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10130 (_initialize_inflow): Add the "set/show interactive-mode"
10131 commands. Moved here from top.c, after having adjusted slightly
10133 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10135 (input_from_terminal_p): Remove handling of "interactive-mode"
10136 setting, moved to infow.c.
10137 (init_main): Remove creation of the "set/show interactive-mode"
10138 commands, moved to inflow.c.
10140 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10142 * NEWS: Add entry for native ia64-hpux support.
10144 2011-01-19 Tom Tromey <tromey@redhat.com>
10147 * thread.c (free_thread): Free 'name'.
10148 (print_thread_info): Emit thread name. Change CLI output.
10149 (thread_name_command): New function.
10150 (do_captured_thread_select): Emit newline.
10151 (_initialize_thread): Register 'thread name' command.
10152 * target.h (struct target_ops) <to_thread_name>: New field.
10153 (target_thread_name): New macro.
10154 * target.c (update_current_target): Handle to_thread_name.
10155 * python/py-infthread.c (thpy_get_name): New function.
10156 (thpy_set_name): Likewise.
10157 (thread_object_getset): Add "name".
10158 * linux-nat.c (linux_nat_thread_name): New function.
10159 (linux_nat_add_target): Set to_thread_name.
10160 * gdbthread.h (struct thread_info) <name>: New field.
10162 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10164 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10165 (ada_val_print_1): Likewise.
10167 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10169 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10170 upper limit address is not greater than the function end address
10171 when the upper limit could not be computed using the debugging
10174 2011-01-17 Tom Tromey <tromey@redhat.com>
10176 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10178 * utils.c: Include gdb_regex.h.
10179 (do_regfree_cleanup): New function.
10180 (make_regfree_cleanup): Likewise.
10181 (get_regcomp_error): Likewise.
10182 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10184 2011-01-17 Tom Tromey <tromey@redhat.com>
10186 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10187 re_compile_fastmap.
10189 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10191 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10192 for internal variables.
10193 (last_was_structop): New static variable.
10194 (COMPLETE): New token.
10195 (field_exp): New rule to group all '.' suffix handling.
10196 Add mark_struct_expression calls when approriate to be able
10197 to correctly find fields for completion.
10198 (yylex): Adapt to handle field completion and set INTVAR when
10201 2011-01-14 Yao Qi <yao@codesourcery.com>
10203 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10204 save_reggroup, restore_reggroup and all_reggroup.
10206 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10208 * ada-valprint. (ada_printchar): Use the correct type length
10209 in call to ada_emit_char.
10210 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10212 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10214 * solib-som.h (hpux_major_release): Declare variable here.
10215 * solib-som.c: Remove <sys/utsname.h> header.
10216 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10217 (hpux_major_release): Make global, change default value to
10218 DEFAULT_HPUX_MAJOR_RELEASE.
10219 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10220 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10221 Add "solib-som.h" header.
10222 (set_hpux_major_release): New function.
10223 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10225 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10227 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10229 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10231 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10232 new-line at end of warning message.
10233 (ia64_hpux_store_register): Remove trailing new-line at end of
10235 * ia64-hpux-tdep.c: Rephrase comment.
10236 * solib-ia64-hpux.c (struct dld_info): Change type of field
10237 dld_flags from "long long" to ULONGEST.
10239 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10241 * target.h (deprecated_child_ops): Delete declaration.
10242 * target.c (deprecated_child_ops): Delete definition.
10244 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10246 * Makefile.in (hpux-thread.o): Delete rule.
10247 * configure.ac: Don't check for HPUX DCE threads support.
10248 * configure, config.in: Regenerate.
10249 * hppa-hpux-nat.c (child_suppress_run): Delete.
10250 (hppa_hpux_child_can_run): Delete.
10251 (_initialize_hppa_hpux_nat): Don't override to_can_run.
10252 * hpux-thread.c: Delete.
10254 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10256 * hpux-thread.c (hpux_pid_to_str): Delete.
10258 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10260 * ada-valprint.c (ada_emit_char): Remove strange code.
10261 Check that c is <= UCHAR_MAX before passing it to isascii.
10262 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10264 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10266 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10267 to the case where instream is stdin.
10269 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10271 * ia64-tdep.h (struct regcache): Forward declare.
10272 (struct ia64_infcall_ops): New struct type.
10273 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10275 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10276 Renames ia64_find_global_pointer.
10277 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10278 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10279 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10281 (ia64_infcall_ops): New static global constant.
10282 (ia64_gdbarch_init): Set tdep->infcall_ops.
10283 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10284 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10285 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10286 (ia64_hpux_dummy_code): New static global constant.
10287 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10288 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10289 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10291 (ia64_hpux_infcall_ops): New static global constant.
10292 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10293 for inferior function calls to work properly on ia64-hpux.
10295 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10297 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10298 * ia64-tdep.h (struct frame_info): forward declaration.
10299 (struct gdbarch_tdep): Add field size_of_register_frame.
10300 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10301 to determine the size of the register frame.
10302 (ia64_size_of_register_frame): New function.
10303 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10304 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10305 (IA64_HPUX_UREG_REASON): New macro.
10306 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10308 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10309 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10310 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10313 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10315 Add support for ia64-hpux.
10316 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10317 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10319 * configure.host: Add handling for ia64-hpux hosts. Add associated
10321 * configure.tgt: Add handling for ia64-hpux targets.
10322 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10323 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10324 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10326 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10328 [ttrace] Compute thread list immediately after attach.
10329 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10331 (inf_ttrace_attach): Use it.
10333 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10335 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10336 if we could not determine the frame's function address. Instead,
10337 use the frame's PC, and then continue.
10339 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10341 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10342 not already defined.
10344 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10346 * ia64-tdep.c (ia64_struct_type_p): New function.
10347 (ia64_extract_return_value): Handle integral values that are
10348 less than 8 bytes long.
10349 (ia64_push_dummy_call): Likewise.
10351 2011-01-13 Joel Brobecker <brobecker@adacore.com>
10353 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10354 floatformat_ia64_ext.
10355 (floatformat_ia64_ext_big): New static const.
10356 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10358 2011-01-12 Tom Tromey <tromey@redhat.com>
10360 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10362 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10363 (mi_cmd_thread_list_ids): Likewise.
10364 (mi_cmd_data_list_changed_registers): Likewise.
10365 (mi_cmd_data_list_register_values): Likewise.
10366 (mi_cmd_data_write_register_values): Likewise.
10367 (mi_cmd_data_evaluate_expression): Likewise.
10368 (mi_cmd_data_read_memory): Likewise.
10369 (mi_cmd_data_read_memory_bytes): Likewise.
10370 (mi_cmd_data_write_memory): Likewise.
10371 (mi_cmd_enable_timings): Likewise.
10372 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10373 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10374 (mi_cmd_var_delete): Likewise.
10375 (mi_cmd_var_set_format): Likewise.
10376 (mi_cmd_var_show_format): Likewise.
10377 (mi_cmd_var_info_num_children): Likewise.
10378 (mi_cmd_var_list_children): Likewise.
10379 (mi_cmd_var_info_type): Likewise.
10380 (mi_cmd_var_info_expression): Likewise.
10381 (mi_cmd_var_show_attributes): Likewise.
10382 (mi_cmd_var_assign): Likewise.
10383 (mi_cmd_var_update): Likewise.
10384 (mi_cmd_enable_pretty_printing): Likewise.
10385 (mi_cmd_var_set_update_range): Likewise.
10386 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10388 (mi_cmd_target_file_put): Likewise.
10389 (mi_cmd_target_file_delete): Likewise.
10390 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10392 (mi_cmd_stack_info_depth): Likewise.
10393 (mi_cmd_stack_list_locals): Likewise.
10394 (mi_cmd_stack_list_args): Likewise.
10395 (mi_cmd_stack_select_frame): Likewise.
10396 (mi_cmd_stack_select_frame): Likewise.
10397 (mi_cmd_stack_info_frame): Likewise.
10398 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10400 (mi_cmd_file_list_exec_source_files): Likewise.
10401 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10402 (mi_cmd_env_cd): Likewise.
10403 (mi_cmd_env_path): Likewise.
10404 (mi_cmd_env_dir): Likewise.
10405 (mi_cmd_inferior_tty_show): Likewise.
10406 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10407 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10408 (mi_cmd_break_watch): Likewise.
10410 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
10412 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10413 (ppc_linux_insert_hw_breakpoint): Likewise.
10414 (ppc_linux_remove_hw_breakpoint): Likewise.
10415 (ppc_linux_insert_watchpoint): Likewise.
10417 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10418 Jan Kratochvil <jan.kratochvil@redhat.com>
10420 PR fortran/11104 and DWARF unbound arrays detection.
10421 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10422 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10423 unspecified upper bound.
10424 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10425 variables array_size_array, tmp_type and offset_item. New variable
10426 array. Remove call to f77_get_upperbound. New variables array_type
10427 and index. Call value_subscripted_rvalue for each dimenasion. Remove
10428 the final call to deprecated_set_value_type.
10430 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10432 Make value allocations more lazy.
10433 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10434 instead of allocate_value and set_value_lazy when possible.
10435 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10436 instead of allocate_value and set_value_lazy.
10437 * findvar.c (value_of_register_lazy): Likewise.
10438 (read_var_value): Remove V preallocation, call just check_typedef in
10439 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
10440 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10441 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
10442 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
10443 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
10444 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
10445 the end, remove set_value_lazy there.
10446 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10447 instead of allocate_value and set_value_lazy when possible.
10448 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10449 * value.c (allocate_computed_value): Use allocate_value_lazy instead
10450 of allocate_value and set_value_lazy.
10451 (value_from_contents_and_address): Use allocate_value_lazy instead of
10452 allocate_value and set_value_lazy when possible.
10454 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
10456 * disasm.c (dump_insns): Support dumping opcodes for MI.
10457 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10458 dumping of instruction opcodes.
10460 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
10462 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10465 2011-01-11 Tom Tromey <tromey@redhat.com>
10467 * thread.c (do_captured_thread_select): Emit newline before
10470 2011-01-11 Michael Snyder <msnyder@vmware.com>
10472 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10473 * score-tdep.c: Ditto.
10474 * score-tdep.h: Ditto.
10475 * ser-base.c: Ditto.
10476 * ser-go32.c: Ditto.
10479 * ser-mingw.c: Ditto.
10480 * ser-pipe.c: Ditto.
10481 * ser-tcp.c: Ditto.
10482 * ser-unix.c: Ditto.
10483 * sh64-tdep.c: Ditto.
10484 * shnbsd-nat.c: Ditto.
10485 * sh-tdep.c: Ditto.
10486 * sh-tdep.h: Ditto.
10488 * solib-darwin.c: Ditto.
10489 * solib-frv.c: Ditto.
10491 * solib-irix.c: Ditto.
10492 * solib-osf.c: Ditto.
10493 * solib-pa64.c: Ditto.
10494 * solib-som.c: Ditto.
10495 * solib-spu.c: Ditto.
10496 * solib-sunos.c: Ditto.
10497 * solib-svr4.c: Ditto.
10499 * sol-thread.c: Ditto.
10500 * somread.c: Ditto.
10503 * sparc64-linux-tdep.c: Ditto.
10504 * sparc64-tdep.c: Ditto.
10505 * sparc-linux-nat.c: Ditto.
10506 * sparc-linux-tdep.c: Ditto.
10507 * sparc-sol2-nat.c: Ditto.
10508 * sparc-sol2-tdep.c: Ditto.
10509 * sparc-tdep.c: Ditto.
10510 * sparc-tdep.h: Ditto.
10511 * spu-tdep.c: Ditto.
10512 * stabsread.c: Ditto.
10513 * stabsread.h: Ditto.
10515 * symfile.c: Ditto.
10516 * symfile.h: Ditto.
10517 * symmisc.c: Ditto.
10521 * target-descriptions.c: Ditto.
10522 * target-descriptions.h: Ditto.
10524 * target-memory.c: Ditto.
10525 * terminal.h: Ditto.
10528 * tracepoint.c: Ditto.
10529 * tracepoint.h: Ditto.
10530 * trad-frame.h: Ditto.
10531 * typeprint.c: Ditto.
10533 2011-01-11 Michael Snyder <msnyder@vmware.com>
10535 * ui-file.c: Comment cleanup, mostly periods and spaces.
10536 * ui-file.h: Ditto.
10540 * v850-tdep.c: Ditto.
10541 * valarith.c: Ditto.
10543 * valprint.c: Ditto.
10544 * valprint.h: Ditto.
10549 * vax-tdep.c: Ditto.
10552 * version.h: Ditto.
10553 * windows-nat.c: Ditto.
10554 * windows-tdep.c: Ditto.
10555 * xcoffread.c: Ditto.
10556 * xcoffsolib.c: Ditto.
10557 * xml-support.c: Ditto.
10558 * xstormy16-tdep.c: Ditto.
10559 * xtensa-tdep.c: Ditto.
10560 * xtensa-tdep.h: Ditto.
10562 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10564 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10565 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10567 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
10568 Thiago Jung Bauermann <bauerman@br.ibm.com>
10570 Implement support for PowerPC BookE ranged watchpoints.
10572 (struct breakpoint_ops) <resources_needed>: New method.
10573 Initialize to NULL in all existing breakpoint_ops instances.
10574 (struct breakpoint) <exact>: New field.
10575 (target_exact_watchpoints): Declare external global.
10576 * breakpoint.c (target_exact_watchpoints): New global flag.
10577 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10578 b->enable_state to bp_enabled before calling
10579 hw_watchpoint_used_count.
10580 (hw_watchpoint_used_count): Iterate over all bp_locations in a
10581 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
10583 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10584 if the watchpoint is exact.
10585 (resources_needed_watchpoint): New function.
10586 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10587 (watch_command_1): Set b->exact if the user asked for an exact
10588 watchpoint and one can be set.
10589 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10590 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10591 the user asks for an exact watchpoint and one can be set. Return
10592 number of needed debug registers to watch the expression.
10593 * gdbtypes.c (is_scalar_type): New function, based on
10594 valprint.c:scalar_type_p.
10595 (is_scalar_type_recursive): New function.
10596 * gdbtypes.h (is_scalar_type_recursive): Declare.
10597 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10598 handle regions when ranged watchpoints are available.
10599 (create_watchpoint_request): New function.
10600 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10601 create_watchpoint_request.
10602 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10603 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10604 `set powerpc' and `show powerpc' commands.
10605 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10606 Mention documentation comment in the target macro.
10607 (target_region_ok_for_hw_watchpoint): Document return value.
10609 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10611 * breakpoint.c (update_watchpoint): Decide on using a software or
10612 hardware watchpoint after the bp_locations are created.
10614 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
10616 Convert hardware watchpoints to use breakpoint_ops.
10617 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10618 <insert_location>: ... this. Return int instead of void.
10619 Accept pointer to struct bp_location instead of pointer to
10620 struct breakpoint. Adapt all implementations.
10621 (breakpoint_ops) <remove>: Rename to...
10622 <remove_location>: ... this. Accept pointer to struct bp_location
10623 instead of pointer to struct breakpoint. Adapt all implementations.
10624 * breakpoint.c (insert_catchpoint): Delete function.
10625 (insert_bp_location): Call the watchpoint or catchpoint's
10626 breakpoint_ops.insert method.
10627 (remove_breakpoint_1): Call the watchpoint or catchpoint's
10628 breakpoint_ops.remove method.
10629 (insert_watchpoint, remove_watchpoint): New functions.
10630 (watchpoint_breakpoint_ops): New structure.
10631 (watch_command_1): Initialize the OPS field.
10632 * inf-child.c (inf_child_insert_fork_catchpoint)
10633 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10634 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10635 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10637 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10638 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10639 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10640 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10641 * target.c (update_current_target): Change default implementation of
10642 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10643 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10644 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10645 to_set_syscall_catchpoint to return_one.
10646 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10647 (debug_to_insert_exec_catchpoint): Report return value.
10648 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10649 (to_insert_exec_catchpoint): Change declaration to return int instead
10652 2011-01-11 Michael Snyder <msnyder@vmware.com>
10654 * arm-tdep.c: Internationalization.
10656 * charset.c: Ditto.
10657 * fork-child.c: Ditto.
10658 * nto-procfs.c: Ditto.
10659 * ppc-sysv-tdep.c: Ditto.
10661 * remote-mips.c: Ditto.
10663 * rs6000-nat.c: Ditto.
10664 * rs6000-tdep.c: Ditto.
10668 * xml-support.c: Ditto.
10669 * mi/mi-cmd-break.c: Ditto.
10670 * mi/mi-cmd-var.c: Ditto.
10671 * mi/mi-interp.c: Ditto.
10672 * mi/mi-main.c: Ditto.
10674 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
10676 * remote-sim.c (gdbsim_store_register): Update API to
10677 sim_store_register to check more error conditions.
10679 2011-01-10 Michael Snyder <msnyder@vmware.com>
10681 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10682 * nto-tdep.c: Ditto.
10683 * nto-tdep.h: Ditto.
10684 * objc-exp.y: Ditto.
10685 * objc-lang.c: Ditto.
10686 * objfiles.c: Ditto.
10687 * objfiles.h: Ditto.
10688 * observer.c: Ditto.
10689 * opencl-lang.c: Ditto.
10692 * parser-defs.h: Ditto.
10695 * posix-hdep.c: Ditto.
10696 * ppcbug-rom.c: Ditto.
10697 * ppc-linux-nat.c: Ditto.
10698 * ppc-linux-tdep.c: Ditto.
10699 * ppc-linux-tdep.h: Ditto.
10700 * ppcnbsd-tdep.c: Ditto.
10701 * ppcobsd-tdep.c: Ditto.
10702 * ppcobsd-tdep.h: Ditto.
10703 * ppc-sysv-tdep.c: Ditto.
10704 * ppc-tdep.h: Ditto.
10705 * printcmd.c: Ditto.
10706 * proc-abi.c: Ditto.
10707 * proc-flags.c: Ditto.
10709 * proc-utils.h: Ditto.
10710 * progspace.h: Ditto.
10711 * prologue-value.c: Ditto.
10712 * prologue-value.h: Ditto.
10713 * psympriv.h: Ditto.
10714 * psymtab.c: Ditto.
10715 * p-typeprint.c: Ditto.
10716 * p-valprint.c: Ditto.
10717 * ravenscar-sparc-thread.c: Ditto.
10718 * ravenscar-thread.c: Ditto.
10719 * ravenscar-thread.h: Ditto.
10721 * regcache.c: Ditto.
10722 * regcache.h: Ditto.
10724 * remote-fileio.c: Ditto.
10725 * remote-fileio.h: Ditto.
10727 * remote-m32r-sdi.c: Ditto.
10728 * remote-mips.c: Ditto.
10729 * remote-sim.c: Ditto.
10730 * rs6000-aix-tdep.c: Ditto.
10731 * rs6000-nat.c: Ditto.
10732 * rs6000-tdep.c: Ditto.
10734 2011-01-10 Michael Snyder <msnyder@vmware.com>
10736 * charset.c (validate): Internationalization.
10737 * coffread.c (read_one_sym): Ditto.
10738 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10739 * h8300-tdep.c (H8300_extract_return_value): Ditto.
10740 * inflow.c (new_tty): Ditto.
10741 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10742 * m32c-tdep.c (m32c_return_value): Ditto.
10743 * mep-tdep.c (mep_store_return_value): Ditto.
10744 * score-tdep.c (score7_fetch_insn): Ditto.
10745 * ser-mingw.c (pipe_windows_open): Ditto.
10746 * sh64-tdep.c (sh64_extract_return_value): Ditto.
10747 * spu-tdep.c (spu_register_type): Ditto.
10748 * tracepoint.c (trace_find_command): Ditto.
10749 * valarith.c (value_pos): Ditto.
10751 2011-01-10 Joel Brobecker <brobecker@adacore.com>
10753 * ada-valprint.c (printstr): Minor comment reformatting.
10755 2011-01-08 Michael Snyder <msnyder@vmware.com>
10757 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10760 2011-01-08 Michael Snyder <msnyder@vmware.com>
10762 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10763 * hppa-hpux-tdep.c: Ditto.
10764 * hppa-linux-nat.c: Ditto.
10765 * hppa-linux-tdep.c: Ditto.
10766 * hppanbsd-tdep.c: Ditto.
10767 * hppa-tdep.c: Ditto.
10768 * hppa-tdep.h: Ditto.
10769 * hpux-thread.c: Ditto.
10770 * i386-cygwin-tdep.c: Ditto.
10771 * i386-darwin-nat.c: Ditto.
10772 * i386gnu-nat.c: Ditto.
10773 * i386-linux-nat.c: Ditto.
10774 * i386-linux-tdep.c: Ditto.
10775 * i386-nat.c: Ditto.
10776 * i386-nat.h: Ditto.
10777 * i386nbsd-tdep.c: Ditto.
10778 * i386-sol2-nat.c: Ditto.
10779 * i386-stub.c: Ditto.
10780 * i386-tdep.c: Ditto.
10781 * i386-tdep.h: Ditto.
10782 * i387-tdep.c: Ditto.
10783 * ia64-linux-nat.c: Ditto.
10784 * ia64-linux-tdep.c: Ditto.
10785 * ia64-tdep.c: Ditto.
10786 * infcall.c: Ditto.
10787 * infcall.h: Ditto.
10789 * inferior.c: Ditto.
10790 * inferior.h: Ditto.
10791 * infloop.c: Ditto.
10794 * interps.c: Ditto.
10795 * interps.h: Ditto.
10796 * iq2000-tdep.c: Ditto.
10797 * irix5-nat.c: Ditto.
10801 * jv-lang.c: Ditto.
10802 * jv-lang.h: Ditto.
10803 * jv-typeprint.c: Ditto.
10804 * jv-valprint.c: Ditto.
10805 * language.c: Ditto.
10806 * language.h: Ditto.
10807 * linespec.c: Ditto.
10808 * linux-fork.c: Ditto.
10809 * linux-nat.c: Ditto.
10810 * linux-thread-db.c: Ditto.
10811 * lm32-tdep.c: Ditto.
10813 2011-01-08 Michael Snyder <msnyder@vmware.com>
10815 * m2-exp.y: Comment cleanup, mostly periods and spaces.
10816 * m2-lang.c: Ditto.
10817 * m2-typeprint.c: Ditto.
10818 * m2-valprint.c: Ditto.
10819 * m32c-tdep.c: Ditto.
10820 * m32r-linux-nat.c: Ditto.
10821 * m32r-rom.c: Ditto.
10822 * m32r-tdep.c: Ditto.
10823 * m32r-tdep.h: Ditto.
10824 * m68hc11-tdep.c: Ditto.
10825 * m58klinux-nat.c: Ditto.
10826 * m68k-tdep.c: Ditto.
10827 * m88k-tdep.c: Ditto.
10828 * m88k-tdep.h: Ditto.
10829 * machoread.c: Ditto.
10830 * macrocmd.c: Ditto.
10831 * macroexp.c: Ditto.
10832 * macrotab.c: Ditto.
10835 * mdebugread.c: Ditto.
10836 * mdebugread.h: Ditto.
10837 * memattr.c: Ditto.
10838 * memattr.h: Ditto.
10839 * memory-map.h: Ditto.
10840 * mep-tdep.c: Ditto.
10841 * microblaze-rom.c: Ditto.
10842 * microblaze-tdep.c: Ditto.
10843 * minsyms.c: Ditto.
10844 * mips-irix-tdep.c: Ditto.
10845 * mips-linux-nat.c: Ditto.
10846 * mips-linux-tdep.c: Ditto.
10847 * mips-linux-tdep.h: Ditto.
10848 * mipsnbsd-nat.c: Ditto.
10849 * mipsnbsd-tdep.c: Ditto.
10850 * mipsread.c: Ditto.
10851 * mips-tdep.c: Ditto.
10852 * mips-tdep.h: Ditto.
10853 * mn10300-linux-tdep.c: Ditto.
10854 * mn10300-tdep.c: Ditto.
10855 * mn10300-tdep.h: Ditto.
10856 * monitor.c: Ditto.
10857 * monitor.h: Ditto.
10858 * moxie-tdep.c: Ditto.
10859 * moxie-tdep.h: Ditto.
10860 * mt-tdep.c: Ditto.
10862 2011-01-08 Mike Frysinger <vapier@gentoo.org>
10864 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10866 2011-01-08 Robert Millan <rmh@gnu.org>
10868 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10870 2011-01-07 Michael Snyder <msnyder@vmware.com>
10872 * charset.c (_initialize_charset): Fix typo in string.
10874 2011-01-07 Michael Snyder <msnyder@vmware.com>
10876 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10878 * tui/tui-layout.c (tui_set_layout_for_display_command):
10879 Split line so that operator goes to beginning of line.
10880 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10881 assignment out of if statement.
10883 2011-01-07 Michael Snyder <msnyder@vmware.com>
10885 * ada-lang.c: Comment cleanup, mostly periods and spaces.
10886 * ada-lang.h: Ditto.
10887 * ada-tasks.c: Ditto.
10888 * ada-valprint.c: Ditto.
10889 * aix-threads.c: Ditto.
10890 * alpha-linux-nat.c: Ditto.
10891 * alpha-linux-tdep.c: Ditto.
10892 * alpha-mdebug-tdep.c: Ditto.
10893 * alpha-nat.c: Ditto.
10894 * alpha-osf1-tdep.c: Ditto.
10895 * alpha-tdep.c: Ditto.
10896 * alphabsd-nat.c: Ditto.
10897 * alphabsd-tdep.c: Ditto.
10898 * amd64-darwin-tdep.c: Ditto.
10899 * amd64-linux-nat.c: Ditto.
10900 * amd64-linux-tdep.c: Ditto.
10901 * amd64-sol2-tdep.c: Ditto.
10902 * amd64-tdep.c: Ditto.
10903 * amd64-fbsd-tdep.c: Ditto.
10904 * amd64-nbsd-tdep.c: Ditto.
10905 * amd64-obsd-tdep.c: Ditto.
10906 * amd64-linux-nat.c: Ditto.
10907 * amd64-linux-tdep.c: Ditto.
10908 * arm-tdep.c: Ditto.
10909 * arm-tdep.h: Ditto.
10910 * armnbsd-nat.c: Ditto.
10911 * avr-tdep.c: Ditto.
10912 * bfin-tdep.c: Ditto.
10913 * bsd-kvm.c: Ditto.
10914 * c-typeprintc: Ditto.
10915 * c-valprint.c: Ditto.
10916 * coff-pe-read.h: Ditto.
10917 * coffreead.c: Ditto.
10918 * cris-tdep.c: Ditto.
10920 * darwin-nat-info.c: Ditto.
10921 * darwin-nat.c: Ditto.
10922 * dbug-rom.c: Ditto.
10923 * dbxread.c: Ditto.
10926 * dec-thread.c: Ditto.
10928 * demangle.c: Ditto.
10929 * dicos-tdep.c: Ditto.
10930 * dictionary.c: Ditto.
10931 * dictionary.h: Ditto.
10932 * dink32-rom.c: Ditto.
10934 * doublest.c: Ditto.
10936 * dummy-frame.c: Ditto.
10937 * dwarf2-frame.c: Ditto.
10938 * dwarf2expr.c: Ditto.
10939 * dwarf2loc.c: Ditto.
10940 * dwarf2read.c: Ditto.
10941 * elfread.c: Ditto.
10942 * environ.c: Ditto.
10944 * event-top.h: Ditto.
10945 * exceptions.c: Ditto.
10946 * exceptions.h: Ditto.
10948 * expprint.c: Ditto.
10949 * expression.h: Ditto.
10953 * f-typeprint.c: Ditto.
10954 * f-valprint.c: Ditto.
10955 * fbsd-nat.c: Ditto.
10956 * findvar.c: Ditto.
10957 * fork-child.c: Ditto.
10960 * frv-linux-tdep.c: Ditto.
10961 * frv-tdep.c: Ditto.
10963 * gdb-stabs.h: Ditto.
10964 * gdb_assert.h: Ditto.
10965 * gdb_string.h: Ditto.
10966 * gdb_thread_db.h: Ditto.
10967 * gdb_wait.h: Ditto.
10968 * gdbarch.sh: Ditto.
10969 * gdbcore.h: Ditto.
10970 * gdbthread.h: Ditto.
10971 * gdbtypes.c: Ditto.
10972 * gdbtypes.h: Ditto.
10973 * gnu-nat.c: Ditto.
10974 * gnu-nat.h: Ditto.
10975 * gnu-v2-abi.c: Ditto.
10976 * gnu-v3-abi.c: Ditto.
10977 * go32-nat.c: Ditto.
10978 * gdbarch.c: Regenerate.
10979 * gdbarch.h: Regenerate.
10981 2011-01-07 Michael Snyder <msnyder@vmware.com>
10983 * ax-gdb.c: Adjust some long output strings.
10984 * breakpoint.c: Ditto.
10985 * charset.c: Ditto.
10987 * infcall.c: Ditto.
10989 * linux-nat.c: Ditto.
10990 * solib-pa64.c: Ditto.
10991 * solib-som.c: Ditto.
10993 2011-01-06 Tom Tromey <tromey@redhat.com>
10997 * python/python.c (GdbMethods): Add "newest_frame" method.
10998 * python/python-internal.h (gdbpy_newest_frame): Declare.
10999 * python/py-frame.c (gdbpy_newest_frame): New function.
11001 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11003 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11004 * jit.c (jit_debug): New variable.
11005 (show_jit_debug): New function.
11006 (struct target_buffer): Use ULONGEST.
11007 (bfd_open_from_target_memory): Likewise.
11008 (jit_register_code, jit_inferior_init): Add debug output.
11009 (_initialize_jit): Register "debug jit" command.
11011 2011-01-06 Tom Tromey <tromey@redhat.com>
11013 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11014 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11017 2011-01-06 Tom Tromey <tromey@redhat.com>
11019 * python/py-frame.c (frapy_block): Use get_frame_block.
11021 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11023 Do not stop on SIGPRIO signals by default
11024 * infrun.c (_initialize_infrun): Unset signal_stop and
11025 signal_print for TARGET_SIGNAL_PRIO.
11027 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11029 * ada-tasks.c: Fix style violation in comment.
11031 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11033 * linespec.c (decode_compound, find_method): Remove trailing \n
11034 at end of error string.
11035 * solib-irix.c (irix_current_sos): Likewise.
11036 * varobj.c (uninstall_variable): Likewise.
11038 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11040 * copyright.py: New script.
11041 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11042 Launch emacs without exec'ing. Call copyright.py afterwards.
11044 2011-01-05 Michael Snyder <msnyder@vmware.com>
11046 * addrmap.c: Shorten lines of >= 80 columns.
11047 * arch-utils.c: Ditto.
11048 * arch-utils.h: Ditto.
11050 * ax-general.c: Ditto.
11052 * blockframe.c: Ditto.
11053 * breakpoint.c: Ditto.
11054 * buildsym.c: Ditto.
11056 * c-typeprint.c: Ditto.
11057 * charset.c: Ditto.
11058 * coffread.c: Ditto.
11059 * command.h: Ditto.
11060 * corelow.c: Ditto.
11062 * cp-namespace.c: Ditto.
11063 * cp-support.c: Ditto.
11064 * dbug-rom.c: Ditto.
11065 * dbxread.c: Ditto.
11069 * dictionary.c: Ditto.
11071 * doublest.c: Ditto.
11072 * dwarf2-frame.c: Ditto.
11073 * dwarf2expr.c: Ditto.
11074 * dwarf2loc.c: Ditto.
11075 * dwarf2read.c: Ditto.
11076 * elfread.c: Ditto.
11078 * event-loop.c: Ditto.
11079 * event-loop.h: Ditto.
11080 * exceptions.h: Ditto.
11082 * expprint.c: Ditto.
11083 * expression.h: Ditto.
11085 * f-valprint.c: Ditto.
11086 * findcmd.c: Ditto.
11087 * frame-base.c: Ditto.
11088 * frame-unwind.c: Ditto.
11089 * frame-unwind.h: Ditto.
11093 * gdb-stabs.h: Ditto.
11094 * gdb_assert.h: Ditto.
11095 * gdb_dirent.h: Ditto.
11096 * gdb_obstack.h: Ditto.
11097 * gdbcore.h: Ditto.
11098 * gdbtypes.c: Ditto.
11099 * gdbtypes.h: Ditto.
11100 * inf-ttrace.c: Ditto.
11101 * infcall.c: Ditto.
11105 * inline-frame.h: Ditto.
11106 * language.c: Ditto.
11107 * language.h: Ditto.
11108 * libunwind-frame.c: Ditto.
11109 * libunwind-frame.h: Ditto.
11110 * linespec.c: Ditto.
11111 * linux-nat.c: Ditto.
11112 * linux-nat.h: Ditto.
11113 * linux-thread-db.c: Ditto.
11114 * machoread.c: Ditto.
11115 * macroexp.c: Ditto.
11116 * macrotab.c: Ditto.
11119 * mdebugread.c: Ditto.
11120 * memattr.c: Ditto.
11121 * minsyms.c: Ditto.
11122 * monitor.c: Ditto.
11123 * monitor.h: Ditto.
11124 * objfiles.c: Ditto.
11125 * objfiles.h: Ditto.
11127 * p-typeprint.c: Ditto.
11128 * p-valprint.c: Ditto.
11130 * printcmd.c: Ditto.
11131 * proc-events.c: Ditto.
11133 * progspace.c: Ditto.
11134 * progspace.h: Ditto.
11135 * psympriv.h: Ditto.
11136 * psymtab.c: Ditto.
11138 * regcache.c: Ditto.
11139 * regcache.h: Ditto.
11140 * remote-fileio.c: Ditto.
11142 * ser-mingw.c: Ditto.
11143 * ser-tcp.c: Ditto.
11144 * ser-unix.c: Ditto.
11147 * solib-frv.c: Ditto.
11148 * solib-irix.c: Ditto.
11149 * solib-osf.c: Ditto.
11150 * solib-pa64.c: Ditto.
11151 * solib-som.c: Ditto.
11152 * solib-sunos.c: Ditto.
11153 * solib-svr4.c: Ditto.
11154 * solib-target.c: Ditto.
11156 * somread.c: Ditto.
11158 * stabsread.c: Ditto.
11159 * stabsread.c: Ditto.
11162 * symfile-mem.c: Ditto.
11163 * symfile.c: Ditto.
11164 * symfile.h: Ditto.
11165 * symmisc.c: Ditto.
11168 * target-descriptions.c: Ditto.
11169 * target-memory.c: Ditto.
11172 * terminal.h: Ditto.
11175 * tracepoint.c: Ditto.
11176 * tracepoint.h: Ditto.
11177 * ui-file.c: Ditto.
11178 * ui-file.h: Ditto.
11180 * user-regs.c: Ditto.
11181 * user-regs.h: Ditto.
11183 * valarith.c: Ditto.
11185 * valprint.c: Ditto.
11186 * valprint.h: Ditto.
11191 * xcoffread.c: Ditto.
11192 * xcoffsolib.c: Ditto.
11193 * xcoffsolib.h: Ditto.
11194 * xml-syscall.c: Ditto.
11195 * xml-tdesc.c: Ditto.
11197 2011-01-05 Michael Snyder <msnyder@vmware.com>
11199 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11200 * cli/cli-decode.c: Ditto.
11201 * cli/cli-dump.c: Ditto.
11202 * cli/cli-logging.c: Ditto.
11203 * cli/cli-script.c: Ditto.
11204 * cli/cli-setshow.c: Ditto.
11205 * common/signals.c: Ditto.
11206 * mi/mi-cmd-break.c: Ditto.
11207 * mi/mi-cmd-disas.c: Ditto.
11208 * mi/mi-cmd-stack.c: Ditto.
11209 * mi/mi-cmd-var.c: Ditto.
11210 * mi/mi-cmds.c: Ditto.
11211 * mi/mi-common.h: Ditto.
11212 * mi/mi-console.c: Ditto.
11213 * mi/mi-interp.c: Ditto.
11214 * mi/mi-main.c: Ditto.
11215 * osf-share/cma_attr.c: Ditto.
11216 * osf-share/cma_deb_core.h: Ditto.
11217 * osf-share/cma_debug_client.h: Ditto.
11218 * osf-share/cma_handle.h: Ditto.
11219 * osf-share/cma_mutex.h: Ditto.
11220 * osf-share/cma_stack_int.h: Ditto.
11221 * osf-share/cma_tcb_defs.h: Ditto.
11222 * python/py-auto-load.c: Ditto.
11223 * python/py-breakpoint.c: Ditto.
11224 * python/py-cmd.c: Ditto.
11225 * python/py-frame.c: Ditto.
11226 * python/py-objfile.c: Ditto.
11227 * python/py-param.c: Ditto.
11228 * python/py-progspace.c: Ditto.
11229 * python/py-symbol.c: Ditto.
11230 * python/py-value.c: Ditto.
11231 * python/python-internal.h: Ditto.
11232 * python/python.c: Ditto.
11233 * tui/tui-data.c: Ditto.
11234 * tui/tui-disasm.c: Ditto.
11235 * tui/tui-hooks.c: Ditto.
11236 * tui/tui-io.c: Ditto.
11237 * tui/tui-layout.c: Ditto.
11238 * tui/tui-regs.c: Ditto.
11239 * tui/tui-source.c: Ditto.
11240 * tui/tui-stack.c: Ditto.
11241 * tui/tui-win.c: Ditto.
11242 * tui/tui-windata.c: Ditto.
11243 * tui/tui-winsource.c: Ditto.
11245 2011-01-05 Joel Brobecker <brobecker@adacore.com>
11247 * configure.ac, gdb.1: Copyright year update.
11249 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11251 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11252 this_pc_in_block, morestack_msym and morestack_name. Check for
11253 "__morestack" minimal symbol there.
11255 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11257 * symfile.c (find_sym_fns): Add call to dont_repeat.
11259 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11261 Copyright year update in most files (performed by copyright.sh).
11263 2011-01-01 Joel Brobecker <brobecker@adacore.com>
11265 * top.c (print_gdb_version): Update copyright year in version output.
11267 For older changes see ChangeLog-2010.
11273 version-control: never