* mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2011-11-22  Tom Tromey  <tromey@redhat.com>
2
3         * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
4
5 2011-11-22  Tom Tromey  <tromey@redhat.com>
6
7         * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
8         Use static_assert to check the size of
9         async_reason_string_lookup.
10         * common/gdb_assert.h (static_assert): New macro.
11
12 2011-11-22  Alan Modra  <amodra@gmail.com>
13
14         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
15         destination calculation.  Don't expect >> to sign extend.  Don't
16         add a break if branch lands inside the sequence anywhere.
17
18 2011-11-21  Keith Seitz  <keiths@redhat.com>
19
20         * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
21         -var-evaluate-expression of an enumeration and fix expected result.
22         * gdb.mi/mi2-varvdisplay.exp: Likewise.
23
24 2011-11-21  Kwok Cheung Yeung  <kcy@codesourcery.com>
25
26         * osdata.c (info_osdata_command): Rename nprocs to nrows.  Handle
27         the case where osdata->items is empty.  Rename column names to a
28         canonical form to avoid problems with unusual column names.
29
30 2011-11-21  Yao Qi  <yao@codesourcery.com>
31
32         * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
33
34 2011-11-20  Stan Shebs  <stan@codesourcery.com>
35
36         * NEWS: Mention tracepoint additions.
37         * breakpoint.h (struct tracepoint): New field traceframe_usage.
38         * breakpoint.c (print_one_breakpoint_location): Identify
39         tracepoints as such when reporting hit counts, report
40         trace buffer usage.
41         (create_tracepoint_from_upload): Copy status info.
42         * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
43         add fields user_name, notes, start_time, stop_time.
44         (struct uploaded_tp): Add fields hit_count, traceframe_usage.
45         * tracepoint.c (trace_user): New global.
46         (trace_notes): New global.
47         (trace_stop_notes): New global.
48         (start_tracing): Add argument and trace note handling.
49         (stop_tracing): Ditto.
50         (trace_start_command): Add notes argument.
51         (trace_stop_command): Ditto.
52         (trace_status_command): Report additional status info.
53         (trace_status_mi): Similarly.
54         (trace_save): Update, record tracepoint status.
55         (set_disconnected_tracing): Call target method directly.
56         (send_disconnected_tracing_value): Remove.
57         (set_trace_user): New function.
58         (set_trace_notes): New function.
59         (set_trace_stop_notes): New function.
60         (parse_trace_status): Handle additional status.
61         (parse_tracepoint_status): New function.
62         (parse_tracepoint_definition): Call it.
63         (tfile_get_tracepoint_status): New function.
64         (init_tfile_ops): Use it.
65         (_initialize_tracepoint): Add new setshows.
66         * target.h (struct target_ops): New methods to_get_tracepoint_status
67         and to_set_trace_notes.
68         (target_get_tracepoint_status): New macro.
69         (target_set_trace_notes): New macro.
70         * target.c (update_current_target): Add new methods.
71         * remote.c (remote_get_tracepoint_status): New function.
72         (remote_set_trace_notes): New function.
73         (init_remote_ops): Add them.
74         * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
75         (mi_cmd_trace_stop): Ditto.
76
77 2011-11-20  Sanjoy Das  <sdas@igalia.com>
78
79         * jit.c: Include regcache.h.
80         (jit_gdbarch_data, jit_frame_unwind): New static variables.
81         (jit_unwind_reg_set_impl, free_reg_value_impl)
82         (jit_unwind_reg_get_impl, jit_frame_sniffer)
83         (jit_frame_unwind_stop_reason, jit_frame_this_id)
84         (jit_frame_prev_register, jit_dealloc_cache)
85         (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
86         (jit_inferior_init): Prepend (new) pseudo unwinder by calling
87         jit_prepend_unwinder.
88         (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
89
90 2011-11-20  Sanjoy Das  <sdas@igalia.com>
91
92         * jit.c: Include block.h, dictionary.h and frame-unwind.h.
93         (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
94         (jit_symtab_open_impl, compare_block, jit_block_open_impl)
95         (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
96         (finalize_symtab, jit_object_close_impl)
97         (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
98         (free_objfile_data): New functions.
99         (_initialize_jit): Register jit_objfile_data with a proper cleanup
100         function.
101
102 2011-11-20  Sanjoy Das  <sdas@igalia.com>
103
104         * jit.c: Include gdb-dlfcn.h.
105         (loaded_jit_reader, reader_init_fn_sym): New static variables.
106         (jit_reader_load, jit_reader_load_command)
107         (jit_reader_unload_command): New functions.
108         (_initialize_jit): Add commands "jit-reader-load" and
109         "jit-reader-unload".
110
111 2011-11-20  Sanjoy Das  <sdas@igalia.com>
112
113         * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
114         * config.in: Add new #define HAVE_LIBDL.
115         * configure.ac: Add check for -ldl.
116         * configure: Re-generated by autoconf.
117         * gdb-dlfcn.c: New file.
118         * gdb-dlfcn.h: New file.
119
120 2011-11-20  Sanjoy Das  <sdas@igalia.com>
121
122         * config.in: Add new #defines: JIT_READER_DIR and
123         JIT_READER_DIR_RELOCATABLE.
124         * configure.ac: New GDB directory entry for jit-reader-dir.
125         * configure: Re-generated by autoconf.
126         * jit.c: New static variable: const char *jit_reader_dir.
127         (_initialize_jit): Relocate jit_reader_dir.
128
129 2011-11-20  Sanjoy Das  <sdas@igalia.com>
130
131         * Makefile.in: Add jit-reader.h as a header.  Have it installed in
132         $(includedir)/gdb.
133         * configure.ac: Generate a correct value for TARGET_PTR for
134         jit-reader.h.  Tell configure to generate jit-reader.h from
135         jit-reader.in.
136         * configure: Re-generated by autoconf.
137         * jit-reader.in: New file.
138         * jit.c: Include jit-reader.h.
139
140 2011-11-20  Sanjoy Das  <sdas@igalia.com>
141
142         * MAINTAINERS (Write After Approval): Add myself to the list.
143
144 2011-11-18  Ulrich Weigand  <uweigand@de.ibm.com>
145
146         * findvar.c (read_frame_register_value): Respect value_offset
147         of the register value.  Remove big-endian special case.
148
149 2011-11-18  Tom Tromey  <tromey@redhat.com>
150
151         PR build/7196:
152         * remote.c (putpkt_for_catch_errors): New function.
153         (remote_kill): Use it.
154
155 2011-11-18  Yao Qi  <yao@codesourcery.com>
156
157         * breakpoint.c (create_breakpoint): Produce query message according to
158         breakpoint's type.
159         Allocate tracepoint per correct type.
160         Don't check SALs for pending fast tracepoints.
161         * tracepoint.c (process_tracepoint_on_disconnect): New.
162         (disconnect_tracing): Call process_tracepoint_on_disconnect.
163
164 2011-11-18  Yao Qi  <yao@codesourcery.com>
165
166         * breakpoint.c (install_breakpoint):  Add one more parameter so that
167         update_global_location_list is called conditionally.
168         (create_fork_vfork_event_catchpoint): Update.
169         (create_syscall_event_catchpoint): Update.
170         (create_breakpoint_sal): Update.
171         (create_breakpoint_sal): Update. Call do_cleanups before
172         install_breakpoint.
173         * ada-lang.c (create_ada_exception_catchpoint): Update.
174         * breakpoint.h (install_breakpoint): Update declaration.
175
176 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
177
178         * spu-tdep.c (spu_return_value): Fix handling of
179         TYPE_CALLING_CONVENTION annotation.
180
181 2011-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
182
183         * skip.c (skip_function_command): Work around uninitialized
184         variable warning.
185
186 2011-11-16  David S. Miller  <davem@davemloft.net>
187
188         * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
189         'tv_usec' to long for printf since these fields have a type which
190         varies.
191
192 2011-11-15  Doug Evans  <dje@google.com>
193
194         * buildsym.c (add_symbol_to_list): Delete outdated comment.
195
196 2011-11-15  Paul Koning  <paul_koning@dell.com>
197
198         * python/py-type.c (typy_get_composite): New function.
199         (typy_nonzero): New function.
200         (typy_values): Rename from typy_fields.
201         (typy_fields): New function.
202         (typy_length): Raise exception if not struct, union, or enum type.
203         (typy_getitem): Ditto.
204         (typy_has_key): Ditto.
205         (typy_make_iter): Ditto.
206
207 2011-11-15  Doug Evans  <dje@google.com>
208
209         * NEWS: Mention new parameter basenames-may-differ.
210         * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
211         ! basenames_may_differ.
212         * psymtab.c (lookup_partial_symtab): Ditto.
213         * symtab.c (lookup_symtab): Ditto.
214         (basenames_may_differ): New global.
215         (_initialize_symtab): New parameter basenames-may-differ.
216         * symtab.h (basenames_may_differ): Declare.
217
218 2011-11-15  Pedro Alves  <pedro@codesourcery.com>
219             Luis Machado  <lgustavo@codesourcery.com>
220
221         * auxv.c: Include observer.h.
222         (auxv_inferior_data_cleanup): New.
223         (invalidate_auxv_cache_inf): New.
224         (invalidate_auxv_cache): New.
225         (get_auxv_inferior_data): New.
226         (auxv_inferior_data): New static global.
227         (auxv_info): New structure.
228         (target_auxv_search): Use get_auxv_inferior_data instead of
229         target_read_alloc and don't free cached buffers.
230         (fprint_target_auxv): Likewise
231         (_initialize_auxv): Register per-inferior auxv cache and register
232         observers to invalidate auxv cache when needed.
233
234 2011-11-14  Doug Evans  <dje@google.com>
235
236         Make "!" an alias for "shell".
237         * NEWS: Add mention.
238         * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
239         adding "!" command, always add it.
240         * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
241         command of length one.
242
243 2011-11-14  Stan Shebs  <stan@codesourcery.com>
244             Kwok Cheung Yeung  <kcy@codesourcery.com>
245
246         * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
247         * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
248         the minimum instruction size for fast tracepoints.
249         * target.h (struct target_ops): Add new method
250         to_get_min_fast_tracepoint_insn_len.
251         (target_get_min_fast_tracepoint_insn_len): New.
252         * target.c (update_current_target): Set up new target operation.
253         * remote.c (remote_write_bytes_aux): Fix typo.
254         (remote_get_min_fast_tracepoint_insn_len): New.
255         (init_remote_ops): Initialize new field.
256
257 2011-11-14  Tom Tromey  <tromey@redhat.com>
258
259         * tracepoint.c (encode_actions_1): Use the location's gdbarch.
260         (encode_actions): Likewise.
261
262 2011-11-14  Yao Qi  <yao@codesourcery.com>
263
264         * remote.c (struct remote_state): <install_in_trace> new field.
265         (PACKET_InstallInTrace): New enum value.
266         (remote_install_in_trace_feature): Support InstallInTrace.
267         (remote_supports_install_in_trace): Likewise.
268         (remote_protocol_features): Likewise.
269         (_initialize_remote): Likewise.
270         (remote_can_download_tracepoint): New.
271         * target.h (struct target): New field
272         `to_can_download_tracepoint'.
273         (target_can_download_tracepoint): New macro.
274         * target.c (update_current_target): Update.
275         * breakpoint.h (struct bp_location): Add comment on field
276         `duplicate'.
277         * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
278         and tracepoint.
279         (remove_breakpoints): Don't remove tracepoints.
280         (tracepoint_locations_match ): New.
281         (breakpoint_locations_match): Call it.
282         (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
283         (download_tracepoint_locations): New.
284         (update_global_location_list): Call it.
285         * tracepoint.c (find_matching_tracepoint): Delete.
286         (find_matching_tracepoint_location): Renamed from
287         find_matching_tracepoint.  Return bp_location rather than
288         tracepoint.
289         (merge_uploaded_tracepoints): Set `inserted' field to 1 if
290         tracepoint is found.
291
292 2011-11-14  Yao Qi  <yao@codesourcery.com>
293
294         * target.h (struct target): <to_download_tracepoint> Change type
295         of parameter from tracepoint to bp_location.
296         * target.c (update_current_target): Update.
297         * tracepoint.c (start_tracing): Update.
298         * remote.c (remote_download_tracepoint): Remove loop for each location
299         of a tracepoint.
300
301 2011-11-14  Maciej W. Rozycki  <macro@codesourcery.com>
302
303         * i386-nat.c (i386_insert_hw_breakpoint): Call
304         i386_update_inferior_debug_regs.
305         (i386_remove_hw_breakpoint): Likewise.
306
307 2011-11-14  Yao Qi  <yao@codesourcery.com>
308
309         * breakpoint.c (init_raw_breakpoint): Call
310         add_location_to_breakpoint to replace duplicated code.
311         (add_location_to_breakpoint): Adjust the breakpoint's
312         address prior to allocating a location.
313
314 2011-11-12  Matt Rice  <ratmice@gmail.com>
315
316         * macrocmd.c (macro_no_macro_info): New function.
317         (macro_expand_command): Use macro_no_macro_info.
318         (macro_expand_once_command): Ditto.
319         (info_macro_command): Add argument processing,
320         move info_definitions_command here.
321         (_initialize_macrocmd): Remove info definitions command.
322         Add arguments to info macro help text.
323         * NEWS: Replace info definitions command with new info macro options.
324
325 2011-11-11  Keith Seitz  <keiths@redhat.com>
326
327         PR gdb/12843
328         * linespec.c (locate_first_half): Keep ':' if it looks
329         like it could be part of a Windows path starting with
330         a drive letter.
331
332 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
333
334         * linux-nat.c (linux_nat_wait): Don't force waking up the event
335         loop when returning a TARGET_WAITKIND_NO_RESUMED.
336
337 2011-11-10  Pedro Alves  <pedro@codesourcery.com>
338
339         * target.c (target_waitstatus_to_string): Handle
340         TARGET_WAITKIND_NO_RESUMED.
341
342 2011-11-10  Doug Evans  <dje@google.com>
343
344         * dwarf2read.c (dw2_map_symbol_filenames): New parameter
345         `need_fullname'.
346         * psymtab.c (map_symbol_filenames_psymtab): Ditto.
347         (map_partial_symbol_filenames): Ditto.  All callers updated.
348         * psymtab.h (map_partial_symbol_filenames): Update prototype.
349         * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
350         parameter need_fullname.
351
352         * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
353         * source.c (symtab_to_fullname): Ditto.
354
355         * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
356         * gdb-demangle.h: ... here.  New file.
357         * demangle.c: #include "gdb-demangle.h".
358         (_initialize_demangler): Use initialize_file_ftype for prototype.
359         Move "set demangle" and "set asm-demangle" parameters here from utils.c
360         (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
361         from utils.c
362         * utils.c: Update. #include "gdb-demangle.h".
363         * symtab.h (asm_demangle): Delete.
364         (demangle): Move declaration next to use.
365         * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
366         * dwarf2read.c: #include "gdb-demangle.h".
367         * gnu-v2-abi.c: Ditto.
368         * jv-typeprint.c: Ditto.
369         * mdebugread.c: Ditto.
370         * p-typeprint.c: Ditto.
371         * stabsread.c: Ditto.
372         * printcmd.c: Ditto.
373         (asm_demangle): Delete declaration.
374         * tui/tui-stack.c: #include "gdb-demangle.h".
375
376         * python/py-type.c (typy_fields_items): Call check_typedef.
377
378 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
379
380         * findvar.c (read_frame_register_value): Read the correct bytes
381         from registers on big-endian architectures.
382
383 2011-11-10  Tom Tromey  <tromey@redhat.com>
384
385         * procfs.c (load_syscalls): Make a cleanup.
386         (open_procinfo_files): fd==0 is ok.
387
388 2011-11-10  Joel Brobecker  <brobecker@adacore.com>
389
390         * procfs.c (iterate_over_mappings): Call do_cleanups before
391         returning.
392
393 2011-11-09  Doug Evans  <dje@google.com>
394
395         * gdbtypes.c (check_typedef): Document that this function can
396         throw an exception.
397
398 2011-11-09  Tom Tromey  <tromey@redhat.com>
399
400         PR c++/13342:
401         * valops.c (value_full_object): Return early if real type is
402         smaller than the enclosing type.
403
404 2011-11-08  Yao Qi  <yao@codesourcery.com>
405
406         * amd64-tdep.c (amd64_relocate_instruction): Make it static.
407
408 2011-11-08  Meador Inge  <meadori@codesourcery.com>
409
410         * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
411         register when the frame can't be determined.
412         * arm-tdep.c (arm_analyze_prologue): Ditto.
413
414 2011-11-07  Stan Shebs  <stan@codesourcery.com>
415
416         * MAINTAINERS: Move Michael Snyder to Past Maintainers.
417
418 2011-11-07  Joel Brobecker  <brobecker@adacore.com>
419
420         * infrun.c (handle_inferior_event): Minor reformatting.
421
422 2011-11-05  Doug Evans  <dje@google.com>
423
424         * source.c (forget_cached_source_info_for_objfile): Move call to
425         objfile->sf->qf->forget_cached_source_info outside of
426         ALL_OBJFILE_SYMTABS loop.
427         (forget_cached_source_info): Delete unused variable `s'.
428
429 2011-11-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
430
431         * i386-nat.c (dr_ref_count): Remove unused variable.
432
433 2011-11-05  Doug Evans  <dje@google.com>
434
435         * main.c (captured_main): Set lim_at_start before calling
436         make_command_stats_cleanup.
437
438 2011-11-04  Doug Evans  <dje@google.com>
439
440         * utils.c: #include "timeval-utils.h".
441         (cmd_stats): Rename start_time to start_cpu_time.
442         New member start_wall_time.
443         (report_command_stats): Report wall time.
444         (make_command_stats_cleanup): Record start wall time.
445
446 2011-11-04  Tom Tromey  <tromey@redhat.com>
447
448         * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
449
450 2011-11-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
451
452         * coff-pe-read.c: Include defs.h before bfd.h.
453
454 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
455
456         PR Python/13345
457
458         * python/python.c (python_run_simple_file): Expand tilde in path.
459
460 2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>
461
462         PR Python/13363
463
464         * python/py-type.c (typy_lookup_type): Do not return a type in
465           an exception handler.
466
467 2011-11-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
468             Eli Zaretskii  <eliz@gnu.org>
469
470         * linux-nat.c (_initialize_linux_nat): Improve help
471         for `info proc stat', `info proc status', `info proc cwd',
472         `info proc cmdline' and `info proc exe'.
473
474 2011-11-02  Stan Shebs  <stan@codesourcery.com>
475
476         String collection for tracepoints.
477         * NEWS: Mention string collection.
478         * common/ax.def (tracenz): New bytecode.
479         * ax-gdb.h (trace_string_kludge): Declare.
480         * ax-gdb.c: Include valprint.h and c-lang.h.
481         (trace_string_kludge): New global.
482         (gen_traced_pop): Add string case.
483         (agent_command): Add string case.
484         * tracepoint.h (decode_agent_options): Declare.
485         * tracepoint.c: Include cli-utils.h.
486         (decode_agent_options): New function.
487         (validate_actionline): Call it.
488         (encode_actions_1): Ditto.
489         * target.h (struct target_ops): New method to_supports_string_tracing.
490         (target_supports_string_tracing): New macro.
491         * target.c (update_current_target): Add to_supports_string_tracing.
492         * remote.c (struct remote_state): New field string_tracing.
493         (remote_string_tracing_feature): New function.
494         (remote_protocol_features): New feature tracenz.
495         (remote_supports_string_tracing): New function.
496         (init_remote_ops): Set to_supports_string_tracing.
497
498 2011-11-02  Pedro Alves  <pedro@codesourcery.com>
499             Jan Kratochvil  <jan.kratochvil@redhat.com>
500
501         * linux-nat.c: Include cli/cli-utils.h.
502         (enum info_proc_what): New.
503         (linux_nat_info_proc_cmd): Rename to ...
504         (linux_nat_info_proc_cmd_1): ... here.  Remove variables argv and all.
505         New parameter what.  Initialize cmdline_f, cwd_f, exe_f, mappings_f,
506         status_f and stat_f from WHAT.  Throw error on extra parameters.
507         (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
508         (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
509         (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
510         (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
511         (_initialize_linux_nat): New variable info_proc_cmdlist.  Install `info
512         proc mappings', `info proc stat`, `info proc status', `info proc cwd',
513         `info proc cmdline', `info proc exe' and `info proc all' as real
514         subcommands of `info proc'.
515
516 2011-11-01  Justin Lebar  <justin.lebar@gmail.com>
517
518         * Makefile.in: (SFILES): Add skip.c.
519         (HFILES_NO_SRCDIR): Add skip.h.
520         (COMMON_OBS): Add skip.o.
521         * skip.h, skip.c: New.
522         * breakpoint.h (set_default_breakpoint): Remove.
523         (get_sal_arch): Declare.
524         * breakpoint.c: Remove default_breakpoint_valid,
525         default_breakpoint_address, default_breakpoint_symtab,
526         default_breakpoint_line, default_breakpoint_pspace variables.
527         (get_sal_arch): Make public.
528         (set_default_breakpoint): Remove.
529         (parse_breakpoint_sals, create_breakpoint, clear_command,
530         decode_line_spec_1): Remove uses of default_breakpoint variables;
531         replaced with function calls into stack.c.
532         * cli/cli-cmds.h: Add cmd_list_element *skiplist.
533         * cli/cli-cmds.c: Add skiplist.
534         (init_cmd_lists): Initialize skiplist.
535         (init_cli_cmds): Fix comment (classes of commands appear in
536         alphabetical order).
537         * infrun.c (handle_inferior_event): Add check that we don't step into
538         a function whose pc is marked for skip.
539         * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
540         last_displayed_addr, last_displayed_symtab, last_displayed_line
541         variables.
542         (set_last_displayed_sal): New static function.
543         (print_frame_info): Switch call to set_default_breakpoint to call to
544         set_last_displayed_sal.
545         (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): New public functions.
549         * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
550         get_last_displayed_pspace, get_last_displayed_addr,
551         get_last_displayed_symtab, get_last_displayed_line,
552         get_last_displayed_sal): Declare.
553
554 2011-11-01  Justin Lebar <justin.lebar@gmail.com>
555
556         * MAINTAINERS (Write After Approval): Add myself to the list.
557
558 2011-10-29  Yao Qi  <yao@codesourcery.com>
559
560         * infcmd.c (disconnect_command): Call disconnect_tracing.
561
562 2011-10-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
563
564         Code cleanup.
565         * symtab.c (skip_prologue_sal): Code reformatting.
566
567 2011-10-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
568
569         PR symtab/13208
570         * jit.c (jit_register_code): Remove unused variable my_cleanups.  Check
571         for NULL from bfd_open_from_target_memory.  Fix ownership of NBFD and
572         SAI.
573
574 2011-10-28  Pedro Alves  <pedro@codesourcery.com>
575
576         * linux-nat.c (linux_nat_filter_event): Remove `options'
577         parameter, and dead code that used it.  If we're handling a
578         PTRACE_EVENT_EXEC event, and the thread group leader is no longer
579         in our lwp list, re-add it.
580         (check_zombie_leaders): New.
581         (linux_nat_wait_1): Remove `options' and `pid' locals.  Always
582         wait for children with WNOHANG, and always wait for all children.
583         Don't check for no resumed children upfront.  Simplify wait loop.
584         Check for zombie thread group leaders after handling all wait
585         statuses.  Return TARGET_WAITKIND_NO_RESUMED if there no
586         unwaited-for children left.
587         * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
588         (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
589         (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
590         * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
591
592 2011-10-28  Sterling Augustine  <saugustine@google.com>
593
594         * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
595         * symtab.c (free_completion_list): New function.
596         (do_free_completion_list): Likewise.
597         (default_make_symbol_completion_list_break_on): New variable
598         back_to. Call make_cleanup and discard_cleanups.
599         (make_source_files_completion_list): Likewise.
600
601 2011-10-28  Paul Koning  <paul_koning@dell.com>
602
603         * python/lib/gdb/types.py (deep_items): Rename from deepitems.
604         * NEWS: Mention deep_items.
605
606 2011-10-28  Alen Skondro  <askondro@gmail.com>
607
608         * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
609         defined.
610
611 2011-10-27  Meador Inge  <meadori@codesourcery.com>
612
613         * MAINTAINERS (Write After Approval): Add myself to the list.
614
615 2011-10-27  Joel Brobecker  <brobecker@adacore.com>
616
617         * value.h (read_frame_register_value): Add declaration.
618         * findvar.c (read_frame_register_value): New function.
619         (value_from_register): Use read_frame_register_value
620         instead of get_frame_register_value + value_contents_copy
621         to get value contents.
622
623 2011-10-27  Doug Evans  <dje@google.com>
624
625         * cli/cli-cmds.c (source_script_with_search): Pass full path to
626         source_script_from_stream if it may have been found on the search path.
627         * python/py-auto-load.c (source_section_scripts): Pass full path to
628         source_python_script_for_objfile.
629         * python/python.c (source_python_script): Delete stream parameter.
630         All callers updated.
631         (source_python_script_for_objfile): Ditto.
632         * python/python-internal.h (source_python_script_for_objfile): Update.
633         * python/python.h (source_python_script): Update.
634
635 2011-10-27  Tom Tromey  <tromey@redhat.com>
636
637         * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
638         (ada_sals_for_line): Remove declarations.
639
640 2011-10-27  Kevin Pouget  <kevin.pouget@st.com>
641
642         Move unwind reasons to an external .def file
643         * frame.c (frame_stop_reason_string): Rewrite using
644         unwind_stop_reasons.def.
645         * frame.h (enum unwind_stop_reason): Likewise.
646         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
647         (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
648         constants for bound-checking.
649         * unwind_stop_reasons.def: New file.
650         * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
651         instead of a distinct value.
652
653 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
654
655         PR python/13331
656
657         * python/py-function.c (fnpy_call): Check 'args' is not NULL.
658         (convert_values_to_python): Return on Python tuple allocation
659         failure.  Return NULL on value conversion error.
660
661 2011-10-27  Phil Muldoon  <pmuldoon@redhat.com>
662
663         * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
664         (bppy_set_task): Ditto.
665         (bppy_delete_breakpoint): Ditto.
666         * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
667         (gdbpy_lookup_global_symbol): Ditto.
668         * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
669         * python/py-frame.c (frapy_is_valid): Ditto.
670         (frame_info_to_frame_object): Ditto.
671         * python/py-type.c (typy_lookup_type): Ditto.
672         (typy_getitem): Ditto.
673         (typy_has_key): Ditto.
674         (typy_richcompare): Use TRY_CATCH.  Do not return Py_NE on error.
675
676 2011-10-26  Joel Brobecker  <brobecker@adacore.com>
677
678         * gdbarch.h: Regenerate.
679
680 2011-10-26  Meador Inge  <meadori@codesourcery.com>
681
682         * gdbarch.sh (function_list): Use 'pstring' when printing
683         'gcore_bfd_target'.
684         * gdbarch.c: Regenerate.
685
686 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
687
688         * regcache.c (registers_changed_ptid): Invalidate thread architecture
689         and frame caches if PTID refers to all threads of a process.
690
691 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
692
693         * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
694         to create_breakpoint.
695
696 2011-10-26  Ulrich Weigand  <uweigand@de.ibm.com>
697
698         * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
699         (ppc_sysv_abi_push_dummy_call): Use it.
700         (do_ppc_sysv_return_value): Likewise.
701         (ppc64_sysv_abi_push_dummy_call): Likewise.
702         (ppc64_sysv_abi_return_value): Likewise.
703
704 2011-10-26  Paul Koning  <paul_koning@dell.com>
705
706         * python/lib/gdb/types.py (deepitems): New function.
707         
708 2011-10-25  Paul Koning  <paul_koning@dell.com>
709
710         PR python/13327
711         
712         * python/py-value.c (value_to_value_object): Remove fetching of
713         the value if it was lazy.
714         (valpy_get_is_lazy): New function.
715         (valpy_fetch_lazy): New function.
716
717 2011-10-24  Joel Brobecker  <brobecker@adacore.com>
718
719         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
720         FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
721
722 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
723
724         * linux-nat.c (linux_handle_extended_wait): When handling a clone
725         event, in non-stop, if not stopping, make sure the new lwp has
726         last_resume_kind set to resume_continue.  Assert that when we're
727         resuming the new lwp, its last_resume_kind is resume_continue.
728
729 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
730
731         * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
732         already set when marking the event thread as not executing in
733         non-stop mode.
734
735 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
736
737         * infrun.c (handle_inferior_event): Add debug output for
738         TARGET_WAITKIND_NO_HISTORY.
739
740 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
741
742         * NEWS: Move set/show extended-prompt to "New Options". Expand
743         description. Fix typos.
744
745 2011-10-24  Phil Muldoon  <pmuldoon@redhat.com>
746
747         PR python/13310
748
749         * python/py-param.c (call_doc_function): Correctly deference on
750         function exit.
751
752 2011-10-21  Joel Brobecker  <brobecker@adacore.com>
753
754         * ada-tasks.c (print_ada_task_info): Fix computation of
755         number of tasks displayed in command output.
756
757 2011-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
758             Ulrich Weigand  <uweigand@de.ibm.com>
759
760         * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
761         (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
762         (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum.  Replace
763         gdbarch_pc_regnum and frame_unwind_register_unsigned by
764         gdbarch_unwind_pc.
765
766 2011-10-20  Cary Coutant  <ccoutant@google.com>
767
768         * dwarf2read.c (dw2_get_file_names): Move adjustment for type
769         section to...
770         (partial_read_comp_unit_head): ...here.  Add is_debug_type_section
771         flag.  Adjust all callers.
772         (process_psymtab_comp_unit): Remove adjustment for type section.
773
774 2011-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
775
776         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
777         arguments by adding OBJFILE.  Instead of getting objfile from
778         symbol's symtab, use new argument OBJFILE.
779         * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
780         arguments by adding OBJFILE.
781         * gdb/dwarf2read.c (new_symbol_full): Change call to
782         cp_scan_for_anonymous_namespaces to match new signature.
783         * gdb/stabsread.c (define_symbol): Change call to
784         cp_scan_for_anonymous_namespaces to match new signature.
785
786 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
787
788         PR python/13308
789         PR python/13309
790
791         * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
792         leak.
793         * python/py-inferior.c (gdbpy_inferiors): Fix List reference
794         leak.  Delete unused variables.
795
796 2011-10-20  Phil Muldoon  <pmuldoon@redhat.com>
797
798         PR python/12656
799
800         * python/py-frame.c (frapy_read_var): Use const struct *block.
801         * python/py-type.c (typy_lookup_typename): Likewise.
802         (typy_lookup_type): Likewise.
803         (typy_legacy_template_argument): Likewise.
804         (typy_template_argument): Likewise.
805         (gdbpy_lookup_type): Likewise.
806         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
807         * python/py-block.c (blpy_block_object): Likewise.
808         (blpy_iter): Likewise.
809         (blpy_get_start): Likewise.
810         (blpy_get_end): Likewise.
811         (blpy_get_function): Likewise.
812         (blpy_get_superblock): Likewise.
813         (set_block):  Likewise.
814         (block_to_block_object): Likewise.
815         (block_object_to_block): Likewise.
816         (blpy_is_valid): Likewise.
817         (blpy_get_global_block): New function.
818         (blpy_get_static_block): New function.
819         (blpy_is_global): New function.
820         (blpy_is_static): New function.
821         * blockframe.c (block_innermost_frame): Likewise.
822         * valops.c (value_of_variable): Likewise.
823         * frame.h: Update prototypes.
824         * python/python-internal.h: Likewise.
825         * value.h: Likewise.
826
827 2011-10-19  Cary Coutant  <ccoutant@google.com>
828
829         * dwarf2read.c (create_debug_types_hash_table): Fix size of
830         type_offset field.
831
832 2011-10-19  Cary Coutant  <ccoutant@google.com>
833
834         * dwarf2read.c (peek_abbrev_code): New function.
835         (dw2_get_file_names): Check for dummy compilation units.
836         (create_debug_types_hash_table): Likewise.
837         (process_psymtab_comp_unit): Likewise.
838         (load_partial_comp_unit): Likewise.
839         (load_full_comp_unit): Likewise.
840
841 2011-10-18  Aleksandar Ristovski  <aristovski@qnx.com>
842
843         * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
844         initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
845         pt_phdr if PT_PHDR was found.
846
847 2011-10-17  Joost van der Sluis  <joost@cnoc.nl>
848
849         * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
850         type or "<unnamed type"> when there is no name assigned.
851         * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
852         avoid a sigint when no name is assigned.
853
854 2011-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
855
856         Revert:
857         2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
858         * dwarf2expr.c (ctx_no_read_reg): New function.
859         * dwarf2expr.h (ctx_no_read_reg): New declaration.
860         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
861         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
862         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
863
864 2011-10-16  Doug Evans  <dje@google.com>
865
866         * NEWS: Document python gdb.printing.register_pretty_printer's new
867         `replace' parameter.
868
869 2011-10-14  Keith Seitz  <keiths@redhat.com>
870
871         PR c++/13225
872         * eval.c (evaluate_subexp_standard): Do not construct
873         an array of types; pass the value array directly to
874         find_overload_match.
875         * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
876         (rank_function): Take an array of values instead of types.
877         (rank_one_type): Add struct value * parameter.
878         * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
879         (rank_function): For each argument, pass the argument's
880         value to rank_one_type.
881         (rank_one_type): Add VALUE parameter.
882         If the parameter type is a pointer and the argument type
883         is an integer, return NULL_POINTER_CONVERSION_BADNESS if
884         VALUE is zero.
885         Update all calls to rank_one_type, passing NULL for new
886         VALUE parameter.
887         * valarith.c (value_user_defined_cpp_op): Do not construct
888         an array of types; pass the value array directly to
889         find_overload_match.
890         * valops.c (find_overload_method_list): Take an array of
891         values instead of types.
892         Save the type of OBJP for later use.
893         Update calls to find_oload_champ, and find_oload_champ_namespace.
894         (find_oload_champ_namespace): Take an array of values instead
895         of types.
896         (find_oload_champ_namespace_loop): Likewise.
897         (find_oload_champ): Likewise.
898         (classify_oload_match): Inspect all arguments
899         until INCOMPATIBLE is found. Return the worst badness found
900         otherwise.
901         (compare_parameters): Update call to rank_one_type.
902         * value.h (find_overload_match): Take an array of values instead
903         of types.
904
905 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
906
907         Drop lazy lm_info reading.
908         * solib-svr4.c (struct lm_info): Remove field lm.  New fields l_addr_p,
909         l_addr_inferior, l_ld, l_next, l_prev and l_name.
910         (lm_info_read): New function.
911         (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
912         (lm_addr_check): Use l_addr_p.  No longer use lm_addr_from_link_map and
913         lm_dynamic_from_link_map.
914         (lm_next, lm_prev, lm_name): Remove.
915         (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
916         initialization incl. read_memory.  No longer use lm_name.
917         (svr4_free_so): Drop lm_info->lm freeing.
918         (svr4_default_sos): Initialize lminfo with zeroes.  Use l_addr_p.  Drop
919         explicit lm_addr and lm initialization.
920         (svr4_read_so_list): Use lm_info_read, drop the initailization of
921         fields by hand, incl. read_memory.  No longer use lm_next, lm_prev and
922         lm_name.
923
924 2011-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
925             Paul Pluzhnikov  <ppluzhnikov@google.com>
926
927         * defs.h (struct so_list): New forward declaration.
928         (make_cleanup_free_so): New declaration.
929         * solib-svr4.c (ignore_first_link_map_entry): Remove.
930         (svr4_free_so): Move the function here from downwards.  Handle NULL
931         so->lm_info.
932         (svr4_free_library_list): New.
933         (svr4_read_so_list): New, moved here code from svr4_current_sos.
934         Use more cleanups.  Use new parameter ignore_first instead of
935         ignore_first_link_map_entry.
936         (svr4_current_sos): New variable ignore_first, initialize it.  New
937         variable back_to, use it for svr4_free_library_list protection.
938         (svr4_free_so): Remove - move upwards.
939         * utils.c: Include solist.h.
940         (do_free_so, make_cleanup_free_so): New functions.
941
942 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
943
944         Fix internal error regression.
945         * value.c (value_primitive_field): Handle value_optimized_out.  Move
946         packed bitfields comment.
947
948 2011-10-13  Tom Tromey  <tromey@redhat.com>
949
950         * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
951         always released.
952
953 2011-10-13  Tom Tromey  <tromey@redhat.com>
954
955         * python/py-type.c (typy_has_key): Make 'field' const.
956
957 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
958
959         * remote.c (remote_save_trace_data): Invert comparison.
960
961 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
962
963         * tracepoint.c (trace_save_command): Use filename instead of
964         args when printing.
965
966 2011-10-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
967
968         * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
969         if .size is 0.
970
971 2011-10-13  Yao Qi  <yao@codesourcery.com>
972
973         PR gdb/12703
974         * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
975         whether insn is a 32-bit Thumb-2 instruction.
976         (thumb_in_function_epilogue_p): Likewise.
977         (thumb_get_next_pc_raw): Likewise.
978         (arm_breakpoint_from_pc): Likewise.
979
980 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
981
982         Fix empty DWARF expressions DATA vs. SIZE conditionals.
983         * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
984         (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
985         (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
986         (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
987         zero DATA.
988         * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
989         validity.
990         * dwarf2read.c (struct dwarf_block): Comment DATA validity.
991         (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
992         clear DATA on zero SIZE.
993
994 2011-10-12  Doug Evans  <dje@google.com>
995
996         * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
997         header->first_die_offset here.  All callers updated.
998
999 2011-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
1000
1001         Fix compatibility with texinfo versions older than 4.12.
1002         * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1003         (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1004         (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1005         (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1006         * configure: Regenerate.
1007         * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1008         (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1009         (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1010
1011 2011-10-12  Gary Benson  <gbenson@redhat.com>
1012
1013         * breakpoint.h (pc_at_non_inline_function): Declare.
1014         * breakpoint.c (is_non_inline_function,
1015         pc_at_non_inline_function): New functions.
1016         * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1017         if the stop is at a location where functions cannot be inlined.
1018
1019 2011-10-12  Pedro Alves  <pedro@codesourcery.com>
1020
1021         * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1022         the core wanted them stopped, or if they now have a pending event
1023         to report.
1024         (linux_nat_filter_event): New parameter `new_pending_p'.  Pass it
1025         down to stop_and_resume_callback.
1026         (linux_nat_wait_1): Always clear `options' when retrying.  Handle
1027         having new pending events after calling linux_nat_filter_event.
1028
1029 2011-10-11  Sterling Augustine  <saugustine@google.com>
1030
1031         * dwarf2read.c: Undo inadvertent changes in previous commit.
1032
1033 2011-10-11  Sterling Augustine  <saugustine@google.com>
1034
1035         * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1036         logic.
1037
1038 2011-10-11  Ulrich Weigand  <ulrich.weigand@linaro.org>
1039
1040         * symfile.c (separate_debug_file_exists): Fix condition.
1041
1042 2011-10-11  David S. Miller  <davem@davemloft.net>
1043
1044         * regcache.c (regcache_restore): Do not write unavailable regs, mark
1045         static.
1046         * regcache.h (regcache_restore): Remove declaration.
1047
1048         * gdbarch.sh: New field 'long_long_align_bit'.
1049         * gdbarch.c, gdbarch.h: Regenerate.
1050         * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1051         * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1052
1053 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1054
1055         Revert this part of:
1056         2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1057         Support @entry in input expressions.
1058         * c-exp.y (ENTRY, unknown_cpp_name): New.
1059         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1060         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1061         (variable: name_not_typename '@' ENTRY, name: ENTRY)
1062         (name_not_typename: ENTRY): New.
1063         (yylex): Recognize ENTRY.
1064
1065         Reimplement @entry in input expressions.
1066         * c-exp.y (ENTRY): New.
1067         (variable: name_not_typename ENTRY): New.
1068         (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1069
1070 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
1071
1072         * linux-nat.c (linux_handle_extended_wait): Always dump both the
1073         parent and child's pids as soon as we detect a clone event.
1074         Adjust another debug message.
1075
1076 2011-10-11  Pedro Alves  <pedro@codesourcery.com>
1077
1078         * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1079         not zombie instead of reading the whole file.
1080
1081 2011-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1082
1083         Fix separate debuginfo warning with "remote:" access.
1084         * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1085         * symfile.c (get_file_crc): New function with the code moved from ...
1086         (separate_debug_file_exists): ... this function, specifically variables
1087         buffer and count.  New variable verified_as_different, set it.  Remove
1088         file_crc initialization.  Verify also if both files are not the same
1089         manually, if needed.
1090
1091 2011-10-11  Yao Qi  <yao@codesourcery.com>
1092
1093         * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1094         to get address.
1095
1096 2011-10-10  Doug Evans  <dje@google.com>
1097
1098         * linux-thread-db.c (thread_db_new_objfile): Only try to load
1099         libthread_db when we load libpthread or the main symbol file.
1100         (thread_db_inferior_created): New function.
1101         (_initialize_thread_db): Attach inferior_created observer.
1102         * linux-nat.c (linux_child_post_attach): Remove call to
1103         check_for_thread_db.
1104         (linux_child_post_startup_inferior): Ditto.
1105         * objfiles.h (OBJF_MAINLINE): Define.
1106         * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1107         allocate_objfile when appropriate.
1108
1109 2011-10-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
1110
1111         PR gdb/13218
1112         * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1113         Remove unused variables.
1114         (get_linux_version): Remove function.
1115         (_initialize_arm_linux_nat): Do not call it.
1116
1117 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
1118
1119         * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1120         new clone lwp if the core asked it to stop.  Don't pass on
1121         unexpected signals to the new clone; leave them pending instead.
1122
1123 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
1124
1125         * linux-nat.c (resume_lwp): Remove redundant debug output.
1126
1127 2011-10-10  Pedro Alves  <pedro@codesourcery.com>
1128
1129         * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1130         last_resume_kind before clearing it, and use the copy instead to
1131         determine whether to report a SIGSTOP as TARGET_SIGNAL_0.  Use
1132         resume_clear_callback in the non-stop path too.
1133
1134 2011-10-09  Yao Qi  <yao@codesourcery.com>
1135
1136         * valprint.c (value_check_printable): Add one parameter OPTIONS.
1137         Honor OPTIONS and VAL's type.
1138         (common_val_print, value_print): Update to pass one more parameter.
1139
1140 2011-10-09  Doug Evans  <dje@google.com>
1141
1142         Add new "alias" command.
1143         * NEWS: Mention new command.
1144         * command.h (valid_user_defined_cmd_name_p): Declare.
1145         * defs.h (make_cleanup_dyn_string_delete): Declare.
1146         * utils.c: #include "dyn-string.h".
1147         (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1148         * cli/cli-cmds.c: #include "dyn-string.h".
1149         (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1150         (init_cli_cmds): Add new command.
1151         * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1152
1153 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1154
1155         Fix compatibility with older GCCs.
1156         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1157         * stack.c (read_frame_arg): Initialize val_deref.
1158
1159 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1160
1161         Entry values NEWS entries, DWARF disassembly support.
1162         * NEWS: New entry values entry.
1163         (set print entry-values, show print entry-values)
1164         (set debug entry-values, show debug entry-values): New entries.
1165         * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1166         indent.  Remove variable start.  Move header printing out.  Respect
1167         INDENT.  Support DW_OP_GNU_entry_value.
1168         (locexpr_describe_location_1): Move the header printing here, extend
1169         the disassemble_dwarf_expression passed parameters.
1170
1171 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1172
1173         Display @entry parameter values even for references.
1174         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1175         coerce_ref_if_computed.
1176         * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1177         * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1178         (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1179         existing push_dwarf_reg_entry_value call.  Add new detection calling
1180         dwarf_block_to_dwarf_reg_deref.  Update the error message.
1181         (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1182         * dwarf2expr.h
1183         (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1184         parameter deref_size, describe it in the comment.
1185         (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1186         (dwarf_block_to_dwarf_reg_deref): New declaration.
1187         * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1188         deref_size, describe it in the function comment.  New variables
1189         data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1190         (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1191         describe it in the function comment.  Fetch the alternative block
1192         accoring to DEREF_SIZE.
1193         (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1194         (entry_data_value_free_closure, entry_data_value_funcs): New.
1195         (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1196         outer_val, target_val, val and addr.  Try to fetch and create also
1197         referenced value content.
1198         (pieced_value_funcs): NULL value for coerce_ref.
1199         (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1200         * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1201         coerce_ref_if_computed.
1202         * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1203         * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1204         * stack.c (read_frame_arg): Compare also dereferenced values.
1205         * value.c (value_computed_funcs): Make the parameter v const, use
1206         value_lval_const for it.
1207         (value_lval_const, coerce_ref_if_computed): New function.
1208         (coerce_ref): New variable retval.  Call also coerce_ref_if_computed.
1209         * value.h (struct lval_funcs): New field coerce_ref.
1210         (value_computed_funcs): Make the parameter v const.
1211         (value_lval_const, coerce_ref_if_computed): New declarations.
1212
1213 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1214
1215         Support @entry in input expressions.
1216         * c-exp.y (ENTRY, unknown_cpp_name): New.
1217         (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1218         (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1219         (variable: name_not_typename '@' ENTRY, name: ENTRY)
1220         (name_not_typename: ENTRY): New.
1221         (yylex): Recognize ENTRY.
1222         * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1223         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1224         Likewise.
1225         * parse.c (operator_length_standard): Likewise.
1226         * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1227
1228 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1229
1230         Display referenced values in backtraces.
1231         * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1232         * stack.c (print_frame_arg): Likewise.
1233
1234 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1235
1236         Make some lval_funcs methods to default on NULL.
1237         * valops.c (value_fetch_lazy): Check if lval_computed read method is
1238         NULL.
1239         (value_assign): Check if lval_computed write method is NULL.
1240         * value.h (struct lval_funcs): Comment NULL values for read and write
1241         methods.
1242
1243 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1244
1245         Display @entry parameter values (without references).
1246         * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1247         New functions.
1248         * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1249         New declarations.
1250         * dwarf2loc.c (dwarf2_find_location_expression): Support location list
1251         entry record.
1252         (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
1253         (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
1254         functions.
1255         (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
1256         (loclist_read_variable_at_entry): New function.
1257         (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
1258         * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
1259         DW_AT_location, call dwarf_block_to_sp_offset for it.
1260         * frame.h (print_entry_values_no, print_entry_values_only)
1261         (print_entry_values_preferred, print_entry_values_if_needed)
1262         (print_entry_values_both, print_entry_values_compact)
1263         (print_entry_values_default, print_entry_values): New declarations.
1264         (struct frame_arg): New field entry_kind.
1265         (read_frame_arg): New parameter entryargp.
1266         * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
1267         arg->entry_kind.  Optionally print the `@entry' suffix.
1268         (list_args_or_locals): New variable entryarg, initialize it.
1269         Initialize also entry_kind of arg and entryarg.  Conditionalize
1270         list_arg_or_local for arg, add list_arg_or_local for entryarg.  Call
1271         xfree for entryarg.error.
1272         * stack.c (print_entry_values_no, print_entry_values_only)
1273         (print_entry_values_preferred, print_entry_values_if_needed)
1274         (print_entry_values_both, print_entry_values_compact)
1275         (print_entry_values_default, print_entry_values_choices)
1276         (print_entry_values): New variables.
1277         (print_frame_arg): New gdb_assert for arg->entry_kind.  Optionally
1278         print the `@entry' suffix, possibly in combination for
1279         print_entry_values_compact.
1280         (read_frame_arg): New parameter entryargp, new variables entryval,
1281         entryval_error and val_equal.  Read in also entryargp, respect
1282         print_entry_values, compare the values using val_equal, fill in also
1283         argp->entry_kind (together with entryargp->entry_kind).
1284         (print_frame_args): New variable entryarg, initialize it.
1285         Conditionalize print_frame_arg for arg, add print_frame_arg for
1286         entryarg.  Call xfree for entryarg.error.
1287         (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
1288         * symtab.h (struct symbol_computed_ops): New field
1289         read_variable_at_entry.
1290
1291 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1292
1293         Code reshuffle.
1294         * frame.h (struct frame_arg): New definition.
1295         (read_frame_arg): New declaration.
1296         * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
1297         (list_args_or_locals): ... the code here.  New variable arg, call
1298         read_frame_arg and list_arg_or_local with it.  Unify the
1299         PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases.  Call xfree for
1300         arg.error.
1301         * stack.c (print_frame_arg): New functiom from the code of
1302         print_frame_args.
1303         (read_frame_arg): New function.
1304         (print_frame_args): Remove variable val.  New variable arg, call
1305         read_frame_arg and print_frame_arg with it.  Call xfree for arg.error.
1306
1307 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1308
1309         Protect entry values against self tail calls.
1310         * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
1311         (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
1312
1313 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1314
1315         Recognize virtual tail call frames.
1316         * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
1317         (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
1318         (COMMON_OBS): Add dwarf2-frame-tailcall.o.
1319         * dwarf2-frame-tailcall.c: New file.
1320         * dwarf2-frame-tailcall.h: New file.
1321         * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
1322         (execute_cfa_program): New function comment.  Return INSN_PTR.  Reset
1323         REGS.PREV only after CIE execution.
1324         (struct dwarf2_frame_cache): New field tailcall_cache.
1325         (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
1326         entry_cfa_sp_offset_p and instr.  Execute FDE instructions in two
1327         parts, try to find entry_cfa_sp_offset.  Call
1328         dwarf2_tailcall_sniffer_first.
1329         (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
1330         when appropriate.
1331         (dwarf2_frame_dealloc_cache): New function.
1332         (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
1333         (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
1334         (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
1335         (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
1336         (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
1337         * dwarf2loc.c (func_addr_to_tail_call_list)
1338         (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
1339         (call_site_find_chain_1, call_site_find_chain): New.
1340         * dwarf2loc.h (struct call_site_chain): New.
1341         (call_site_find_chain): New declaration.
1342         * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
1343         * frame.h (enum frame_type): New entry TAILCALL_FRAME.
1344         * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
1345         * stack.c (frame_info): Support also TAILCALL_FRAME.
1346
1347 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1348
1349         Tail call sites reader implementation.
1350         * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
1351         fill in TYPE_TAIL_CALL_LIST.
1352         * gdbtypes.h (struct func_type): New field tail_call_list.
1353         (struct call_site): New field tail_call_next.
1354         (TYPE_TAIL_CALL_LIST): New definition.
1355
1356 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1357
1358         Implement basic support for DW_TAG_GNU_call_site.
1359         * block.c: Include gdbtypes.h and exceptions.h.
1360         (call_site_for_pc): New function.
1361         * block.h (call_site_for_pc): New declaration.
1362         * defs.h: Include hashtab.h.
1363         (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
1364         declarations.
1365         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
1366         ctx_no_push_dwarf_reg_entry_value.
1367         * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
1368         (dwarf_block_to_dwarf_reg): New function.
1369         (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
1370         (ctx_no_push_dwarf_reg_entry_value): New function.
1371         * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
1372         push_dwarf_reg_entry_value.
1373         (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
1374         declarations.
1375         * dwarf2loc.c: Include gdbcmd.h.
1376         (dwarf_expr_ctx_funcs): New forward declaration.
1377         (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
1378         (dwarf_expr_reg_to_entry_parameter)
1379         (dwarf_expr_push_dwarf_reg_entry_value): New.
1380         (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
1381         (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
1382         (needs_dwarf_reg_entry_value): New function.
1383         (needs_frame_ctx_funcs): Install it.
1384         (_initialize_dwarf2loc): New function.
1385         * dwarf2loc.h (entry_values_debug): New declaration.
1386         * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
1387         (read_call_site_scope): New forward declaration.
1388         (process_full_comp_unit): Copy call_site_htab.
1389         (process_die): Support DW_TAG_GNU_call_site.
1390         (read_call_site_scope): New function.
1391         (dwarf2_get_pc_bounds): Support NULL HIGHPC.
1392         (dwarf_tag_name): Support DW_TAG_GNU_call_site.
1393         (cleanup_htab): Delete.
1394         (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
1395         * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
1396         * gdb-gdb.py (StructMainTypePrettyPrinter): Support
1397         FIELD_LOC_KIND_DWARF_BLOCK.
1398         * gdbtypes.h (enum field_loc_kind): New entry
1399         FIELD_LOC_KIND_DWARF_BLOCK.
1400         (struct main_type): New loc entry dwarf_block.
1401         (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
1402         (TYPE_FIELD_DWARF_BLOCK): New.
1403         * python/py-type.c: Include dwarf2loc.h.
1404         (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK.  New
1405         internal_error call on unknown FIELD_LOC_KIND.
1406         * symtab.h (struct symtab): New field call_site_htab.
1407         * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
1408         (core_addr_hash, core_addr_eq): New functions.
1409
1410 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1411
1412         Code reshuffle.
1413         * gdb-gdb.py (StructMainTypePrettyPrinter): Change
1414         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.  Move
1415         calling_convention under func_stuff there.
1416         * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
1417         (init_type) <TYPE_CODE_FUNC>: Likewise.
1418         (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
1419         TYPE_SPECIFIC_FUNC.  New comment for tail_call_list.
1420         * gdbtypes.h (enum type_specific_kind): Change
1421         TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
1422         (struct main_type) <type_specific>: Change calling_convention to
1423         func_stuff.  Move calling_convention to ...
1424         (struct func_type): ... this new struct.
1425         (INIT_FUNC_SPECIFIC): New #define.
1426         (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
1427
1428 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1429
1430         Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
1431         * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
1432         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
1433         ctx->ref_addr_size.  Handle its invalid value.
1434         * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
1435         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1436         (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
1437         * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
1438         * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
1439         (dwarf2_per_cu_ref_addr_size): New function.
1440
1441 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1442
1443         Code cleanup.
1444         * dwarf2read.c (per_cu_header_read_in): New function.
1445         (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
1446         variables cu_header_local and cu_headerp.
1447
1448 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1449
1450         Fix initial language detection with -readnow.
1451         * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
1452         * symfile.h (struct quick_symbol_functions): State find_symbol_file
1453         searches only for global symbols.
1454
1455 2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1456
1457         Fix printed anonymous struct name.
1458         * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
1459         DW_TAG_interface_type.  Strip for anonymous structs any prefixes.
1460         (anonymous_struct_prefix): New function.
1461         (determine_prefix): New variables retval.  Call anonymous_struct_prefix.
1462         (dwarf2_name): Strip for anonymous structs any prefixes.
1463
1464 2011-10-07  Doug Evans  <dje@google.com>
1465
1466         * python/lib/gdb/printing.py (register_pretty_printer): New argument
1467         `replace'.
1468
1469         * python/lib/gdb/printing.py: Whitespace cleanup.
1470
1471         * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
1472         warning.
1473
1474 2011-10-07  Pedro Alves  <pedro@codesourcery.com>
1475
1476         * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
1477         * amd64-linux-nat.c (amd64_linux_dr_set_control)
1478         (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
1479         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
1480         (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
1481         (arm_linux_remove_watchpoint): Adjust.
1482         * i386-linux-nat.c (i386_linux_dr_set_control)
1483         (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
1484         * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
1485         (ia64_linux_remove_watchpoint): Adjust.
1486         * mips-linux-nat.c (write_watchpoint_regs): Adjust.
1487         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
1488         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
1489         (ppc_linux_insert_mask_watchpoint)
1490         (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
1491         (ppc_linux_remove_watchpoint): Adjust.
1492         * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
1493         Adjust.
1494
1495 2011-10-07  Corinna Vinschen  <vinschen@redhat.com>
1496
1497         * windows-nat.c: Include wchar.h to avoid compiler warnings.
1498         (clear_win32_environment): New function for Cygwin to clear out
1499         Win32 environment.
1500         (windows_create_inferior): Prepare new environment from in_env
1501         for Cygwin, too.
1502
1503 2011-10-07  Phil Muldoon  <pmuldoon@redhat.com>
1504
1505         PR python/13264
1506         * python/py-value.c (valpy_call): Check that arguments are
1507         a tuple.
1508         (is_intlike): Remove call to CHECK_TYPEDEF.
1509         (valpy_nonzero): Catch GDB exceptions.
1510         (valpy_absolute): Ditto.
1511         (valpy_lazy_string): Ditto.
1512         (valpy_call): Ditto.
1513         (valpy_get_is_optimized_out): Ditto.
1514         (valpy_long): Ditto.
1515         (valpy_float): Ditto.
1516         (valpy_int): Call CHECK_TYPEDEF.  Catch GDB exceptions.
1517         (valpy_richcompare): Ditto.
1518
1519 2011-10-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
1520
1521         * inferior.h (disable_randomization): Declare.
1522         * infrun.c (disable_randomization): New global variable.
1523         (show_disable_randomization): New function.
1524         (set_disable_randomization): Likewise.
1525         (_initialize_infrun): Install set/show disable-randomization
1526         commands.
1527         * linux-nat.c (disable_randomization): Remove.
1528         (show_disable_randomization): Likewise.
1529         (set_disable_randomization): Likewise.
1530         (_initialize_linux_nat): No longer install set/show
1531         disable-randomization commands here.
1532         (linux_nat_supports_disable_randomization): New function.
1533         (linux_nat_add_target): Install it.
1534         * remote.c (PACKET_QDisableRandomization): New enum value.
1535         (remote_protocol_packets): Support QDisableRandomization.
1536         (_initialize_remote): Likewise.
1537         (remote_supports_disable_randomization): New function.
1538         (init_remote_ops): Install it.
1539         (extended_remote_supports_disable_randomization): New function.
1540         (init_extended_remote_ops): Install it.
1541         (extended_remote_disable_randomization): New function.
1542         (extended_remote_create_inferior_1): Call it.
1543         * target.h (struct target_ops): Add to_supports_disable_randomization.
1544         (target_supports_disable_randomization): Add prototype.
1545         * target.c (target_supports_disable_randomization): New function.
1546         (find_default_supports_disable_randomization): Likewise.
1547         (init_dummy_target): Install it.
1548
1549 2011-10-07  Kevin Pouget  <kevin.pouget@st.com>
1550
1551         Allow Python notification of new object-file loadings.
1552         * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
1553         (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
1554         Add build rule for this file.
1555         * python/py-event.h (emit_new_objfile_event): New prototype.
1556         (newobjfile): New Python event emitter.
1557         * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
1558         Python event registry.
1559         * python/py-inferior.c: Include objfiles.h
1560         (python_new_objfile): New function.
1561         (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
1562         observers.
1563         * python/py-newobjfileevent.c: New file.
1564         * python-internal.h (gdbpy_initialize_new_objfile_event): New
1565         prototype.
1566         * python/python.c (_initialize_python): Add 
1567         gdbpy_initialize_new_objfile_event call.
1568         * NEWS: Add item for new Python event "gdb.newobjfile"
1569
1570 2011-10-05  Tristan Gingold  <gingold@adacore.com>
1571
1572         * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
1573         Extract the ravenscar task name from the symbol for the atcb.
1574
1575 2011-10-04  Paul Koning  <paul_koning@dell.com>
1576
1577         * python/py-type.c (typy_make_iter): Add forward declaration.
1578         (typy_fields_items):  Use the gdb.Type iterator.
1579
1580 2011-10-04  Paul Koning  <paul_koning@dell.com>
1581
1582         * NEWS: Add entry for Python gdb.Type mapping methods.
1583
1584 2011-10-04  Kevin Pouget  <kevin.pouget@st.com>
1585
1586         PR python/12691: Add the inferior to Python exited event
1587         * python/py-exitedevent.c (create_exited_event_object): Add inferior
1588         to exited_event.
1589         * python/py-event.h (emit_exited_event): Likewise
1590         * python/-inferior.c (python_inferior_exit): Likewise
1591
1592 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
1593
1594         * ada-tasks.c (print_ada_task_info): Add "thread-id" field
1595         in output of -ada-task-info GDB/MI command.
1596
1597 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
1598
1599         * ada-lang.h (struct inferior): Declare.
1600         (print_ada_task_info): Add declaration.
1601         * ada-tasks.c (print_ada_task_info): Make non-static.
1602         * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
1603         * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
1604         * mi/mi-main.c: #include "ada-lang.h".
1605         (mi_cmd_list_features): Add "ada-task-info" to the list
1606         of supported features.
1607         (mi_cmd_ada_task_info): New function.
1608
1609 2011-10-03  Joel Brobecker  <brobecker@adacore.com>
1610
1611         * python/python.c (python_run_simple_file): New function.
1612         (source_python_script, source_python_script_for_objfile):
1613         Replace call to PyRun_SimpleFile by call to
1614         python_run_simple_file.
1615
1616 2011-10-03  Paul Koning  <paul_koning@dell.com>
1617
1618         * python/py-value.c (valpy_get_address): Use Py_XINCREF.
1619         (value_to_value_object): Fetch value if it was lazy.
1620
1621 2011-10-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1622
1623         Code cleanup.
1624         * solib-svr4.c (svr4_default_sos):  Remove variables head and link_ptr.
1625         Rearrange the code for it.
1626
1627 2011-10-02  Joel Brobecker  <brobecker@adacore.com>
1628
1629         * breakpoint.c (bkpt_print_recreate): Add call to
1630         print_recreate_thread.
1631
1632 2011-09-29  Mike Frysinger  <vapier@gentoo.org>
1633
1634         * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
1635         PTRACE_GETFDPIC_INTERP): Define.
1636
1637 2011-09-28  Yao Qi  <yao@codesourcery.com>
1638
1639         * symfile.c (add_symbol_file_command): Update message on usage.
1640
1641 2011-09-28  Paul Koning  <paul_koning@dell.com>
1642
1643         * python/py-type.c (make_fielditem, typy_field_names, typy_items)
1644         (typy_length, typy_get, typy_has_key, typy_make_iter)
1645         (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
1646         (typy_iterator_iter, typy_iterator_iternext)
1647         (typy_iterator_dealloc): New functions to implement standard
1648         Python mapping methods on gdb.Type object.
1649         (gdb.TypeIterator): New Python type.
1650         * python/python-internal.h (gdbpy_iter_kind): New enum.
1651
1652 2011-09-28  David S. Miller  <davem@davemloft.net>
1653
1654         * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
1655         SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
1656         * sparc-tdep.c (sparc_complex_floating_p): New function.
1657         (sparc32_store_arguments): Handle complex floats.
1658         (sparc32_extract_return_value): Likewise.
1659         (sparc32_store_return_value): Likewise.
1660         (sparc32_stabs_argument_has_addr): Likewise.
1661         * sparc64-tdep.c (sparc64_complex_floating_p): New function.
1662         (sparc64_store_floating_fields): Handle complex floats.
1663         (sparc64_store_arguments): Likewise.
1664         (sparc64_store_return_value): Likewise.
1665
1666 2011-09-28  Eli Zaretskii  <eliz@gnu.org>
1667
1668         * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
1669         before the change on 2006-12-09.
1670         (windows_create_inferior) [!__CYGWIN__]: Restore code that
1671         generates the environment block for CreateProcessA, modulo the
1672         Cygwin-specific parts that are not needed here.
1673
1674 2011-09-27  Tristan Gingold  <gingold@adacore.com>
1675
1676         * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
1677         * solib-darwin.c (DYLD_VERSION_MAX): Update number.
1678         (darwin_solib_get_all_image_info_addr_at_init): New function.
1679         (darwin_solib_read_all_image_info_addr): Likewise.
1680         (darwin_solib_create_inferior_hook): Use the above two functions.
1681         * darwin-nat.c (darwin_execvp): Renames retval to res.
1682         (darwin_read_write_inferior): Update comment.
1683         (darwin_read_dyld_info): New function.
1684         (darwin_xfer_partial): Handle DYLD_INFO.
1685
1686 2011-09-27  Stan Shebs  <stan@codesourcery.com>
1687
1688         Add return address collection for tracepoints.
1689         * tracepoint.c (encode_actions_1): Add case for $_ret.
1690         (validate_actionline): Check for $_ret.
1691         (trace_dump_actions): Ditto.
1692         * ax-gdb.h (gen_trace_for_return_address): Declare.
1693         * ax-gdb.c: Include arch-utils.h.
1694         (gen_trace_for_return_address): New function.
1695         (agent_command): Add return address special case.
1696         * amd64-tdep.c: Include ax.h and ax-gdb.h.
1697         (amd64_gen_return_address): New function.
1698         (amd64_init_abi): Call it.
1699         * i386-tdep.c: Include ax.h and ax-gdb.h.
1700         (i386_gen_return_address): New function.
1701         (i386_init_abi): Call it.
1702         * arch-utils.h (default_gen_return_address): Declare.
1703         * arch-utils.c (default_gen_return_address): New function.
1704         * gdbarch.sh (gen_return_address): New method.
1705         * gdbarch.h, gdbarch.c: Regenerate.
1706
1707 2011-09-23  Joseph Myers  <joseph@codesourcery.com>
1708
1709         PR gdb/13079
1710         * i386-tdep.c (i386_frame_align): New.
1711         (i386_gdbarch_init): Use i386_frame_align.
1712
1713 2011-09-23  Yao Qi  <yao@codesourcery.com>
1714
1715         * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
1716         to get address.
1717
1718 2011-09-22  Tristan Gingold  <gingold@adacore.com>
1719
1720         * fork-child.c (fork_inferior): Add exec_fun parameter.
1721         Call exec_fun or execvp.
1722         * inferior.h: Adjust prototype.
1723         * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
1724         * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
1725         * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
1726         * procfs.c (procfs_create_inferior): Ditto.
1727         * darwin-nat.c (darwin_execvp): New function.
1728         (darwin_create_inferior): Use it.
1729
1730 2011-09-22  Yao Qi  <yao@codesourcery.com>
1731
1732         * infrun.c (context_switch): Print debug message when switching to
1733         a different thread.
1734
1735 2011-09-21  Ulrich Weigand  <uweigand@de.ibm.com>
1736
1737         * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
1738         complex and vector types.
1739         (s390_return_value_convention): Likewise.
1740
1741         (s390_value_from_register): Call check_typedef.
1742         (extend_simple_arg): Likewise.
1743         (alignment_of): Likewise.
1744         (s390_push_dummy_call): Likewise.
1745         (s390_return_value): Likewise.
1746
1747 2011-09-21  Joseph Myers  <joseph@codesourcery.com>
1748
1749         * event-top.c (async_disconnect): If an exception is thrown from
1750         quit_cover, call pop_all_targets.  Use TRY_CATCH instead of
1751         catch_errors.
1752         * top.c (quit_cover): Return void and take no arguments.
1753         * top.h (quit_cover): Update prototype.
1754
1755 2011-09-20  Joseph Myers  <joseph@codesourcery.com>
1756
1757         * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
1758         current_uiout, not uiout.
1759
1760 2011-09-19  Doug Evans  <dje@google.com>
1761
1762         * python/py-auto-load.c (source_section_scripts): Fix file
1763         descriptor leak.
1764         * python/python.c (source_python_script_for_objfile): Tweak comments.
1765
1766 2011-09-18  Yao Qi  <yao@codesourcery.com>
1767             Ulrich Weigand  <ulrich.weigand@linaro.org>
1768
1769         Support displaced stepping for Thumb 16-bit insns.
1770         * arm-tdep.c (THUMB_NOP) Define.
1771         (thumb_copy_unmodified_16bit): New.
1772         (thumb_copy_b, thumb_copy_bx_blx_reg): New.
1773         (thumb_copy_alu_reg): New.
1774         (arm_copy_svc): Move some common code to ...
1775         (install_svc): ... here.  New.
1776         (thumb_copy_svc): New.
1777         (install_pc_relative): New.
1778         (thumb_copy_pc_relative_16bit): New.
1779         (thumb_decode_pc_relative_16bit): New.
1780         (thumb_copy_16bit_ldr_literal): New.
1781         (thumb_copy_cbnz_cbz): New.
1782         (cleanup_pop_pc_16bit_all): New.
1783         (thumb_copy_pop_pc_16bit): New.
1784         (thumb_process_displaced_16bit_insn): New.
1785         (thumb_process_displaced_32bit_insn): New.
1786         (thumb_process_displaced_insn): process thumb instruction.
1787
1788         Support displaced stepping for Thumb 32-bit insns.
1789         * arm-tdep.c (thumb_copy_unmodified_32bit): New.
1790         (thumb2_copy_preload): New.
1791         (thumb2_copy_copro_load_store): New.
1792         (thumb2_copy_b_bl_blx): New.
1793         (thumb2_copy_alu_imm): New.
1794         (thumb2_copy_load_reg_imm): New.
1795         (thumb2_copy_load_literal): New
1796         (thumb2_copy_block_xfer): New.
1797         (thumb_32bit_copy_undef): New.
1798         (thumb_32bit_copy_unpred): New.
1799         (thumb2_decode_ext_reg_ld_st): New.
1800         (thumb2_decode_svc_copro): New.
1801         (decode_thumb_32bit_store_single_data_item): New.
1802         (thumb_copy_pc_relative_32bit): New.
1803         (thumb_decode_pc_relative_32bit): New.
1804         (decode_thumb_32bit_ld_mem_hints): New.
1805         (thumb2_copy_table_branch): New
1806         (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
1807         instructions.
1808
1809 2011-09-18  Yao Qi  <yao@codesourcery.com>
1810
1811         * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
1812         (install_b_bl_blx): Likewise.
1813
1814 2011-09-17  Yao Qi  <yao@codesourcery.com>
1815
1816         * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
1817         (install_load_store): ... this.  New.
1818         Change parameter BYTE to SIZE.
1819         (arm_copy_ldr_str_ldrb_strb): Update caller.
1820         (arm_decode_ld_st_word_ubyte): Update caller.
1821
1822 2011-09-17  Yao Qi  <yao@codesourcery.com>
1823
1824         * infrun.c (displaced_step_fixup): Move some code ...
1825         (displaced_step_restore): ... here.  New function.
1826         (handle_inferior_event): Cleanup displaced stepping state for both
1827         child and parent when get forked or vforked event.
1828         * regcache.c (get_thread_arch_aspace_regcache): New function.
1829         get_thread_arch_regcache (): Call it.
1830
1831 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
1832
1833         * ada-tasks.c (print_ada_task_info): New function, merging
1834         short_task_info and info_tasks together.  Reimplement using
1835         ui-out instead of printing to stdout directly.  Move the code
1836         building and checking the task list here, instead of leaving it
1837         in info_tasks_command.
1838         (info_task): Move the code building and checking the task
1839         list here, instead of leaving it in info_tasks_command.
1840         (info_tasks_command): Delete code building and checking
1841         the task list - moved elsewhere.  Update calls to info_tasks
1842         and info_task.
1843
1844 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
1845
1846         * ada-tasks.c (info_task): Delete parameter `from_tty'.
1847
1848 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
1849
1850         * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
1851
1852 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
1853
1854         * ada-lang.h (ada_build_task_list): Remove parameter
1855         `warn_if_null'.
1856         * ada-tasks.c (ada_build_task_list): Remove parameter
1857         `warn_if_null'.  Adjust implementation and documentation.
1858         (valid_task_id, ada_get_environment_task)
1859         iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
1860         (info_tasks_command): Adjust implementation.
1861         (task_command): Likewise.
1862         * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
1863         to ada_build_task_list.
1864
1865 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
1866
1867         * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
1868         (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
1869         (ada_tasks_inferior_data_handle): New static global.
1870         (get_ada_tasks_inferior_data): New function.
1871         (ada_get_task_number, get_task_number_from_id, valid_task_id)
1872         (ada_get_environment_task, iterate_over_live_ada_tasks)
1873         (add_ada_task, read_known_tasks_array, read_known_tasks_list):
1874         Adjust.
1875         (ada_set_current_inferior_known_tasks_addr): New function.
1876         (read_known_tasks, ada_build_task_list, short_task_info)
1877         (info_tasks, info_task, info_tasks_command, task_command_1)
1878         (task_command, ada_task_list_changed): Adjust.
1879         (ada_tasks_invalidate_inferior_data): New function.
1880         (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
1881         (_initialize_tasks): Set ada_tasks_inferior_data_handle.
1882         * ada-lang.h (struct inferior): Add declaration.
1883         (ada_task_list_changed): Update profile.
1884         * remote-wtx-pd.c: #include "inferior.h".
1885         (switch_to_pd_internal): Update call to ada_task_list_changed.
1886
1887 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
1888
1889         * ada-tasks.c: #include "progspace.h" and "objfiles.h".
1890         (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
1891         (atcb_fieldno): Delete these static globals.
1892         (struct ada_tasks_pspace_data): New struct.
1893         (ada_tasks_pspace_data_handle): New static global.
1894         (get_ada_tasks_pspace_data): New function.
1895         (ada_tasks_invalidate_pspace_data): New function.
1896         (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
1897         (read_known_tasks_list, ada_new_objfile_observer): Adjust.
1898         (_initialize_tasks): Create this module's per-progspace
1899         data handle.
1900
1901 2011-09-16  Joel Brobecker  <brobecker@adacore.com>
1902
1903         * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
1904
1905 2011-09-16  Tristan Gingold  <gingold@adacore.com>
1906
1907         * fork-child.c (fork_inferior): Update comment.  Use alloca
1908         instead of xmalloc for argv.  Move len and shell_command
1909         declarations in the block where they are used.
1910         Only call execvp.  Factorize failure code.
1911
1912 2011-09-16  Abhijit Halder  <abhijit.k.halder@gmail.com>
1913
1914         Code cleanup.
1915         * parse.c (write_exp_elt): Change argument to pass a pointer of union
1916         `exp_element' instead of an element of the same and make the function
1917         static.
1918         (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
1919         (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
1920         (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
1921         Change argument of `write_exp_elt' function call.
1922         Remove extra spaces from comments.
1923         * parser-defs.h (write_exp_elt): Remove prototype.
1924
1925 2011-09-15  Paul Koning  <paul_koning@dell.com>
1926
1927         * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
1928         count of item appended to list.
1929         * python/py-type.c (typy_fields): Likewise.
1930
1931 2011-09-15  Paul Koning  <paul_koning@dell.com>
1932
1933         * MAINTAINERS (Write After Approval): Add myself to the list.
1934
1935 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
1936
1937         PR threads/12628
1938         * linux-fork.c (checkpoint_command): Disallow checkpointing of
1939         processes with multiple threads.
1940         (inf_has_multiple_thread_cb): New function.
1941         (inf_has_multiple_threads): New function.
1942
1943 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
1944
1945         PR Python/12692 Add gdb.selected_inferior() to Python interface.
1946         * python/py-inferior.c (GdbMethods): New Python method definition.
1947
1948 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
1949
1950         Handle multiple breakpoint hits in Python interface:
1951         * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
1952         variable to breakpoints.
1953         * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
1954         bps instead of single breakpoint. Fix some space typos.
1955         * python/py-stopevent.c (create_breakpoint_event_object): Rename
1956         variable to breakpoints.
1957
1958 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
1959
1960         * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
1961         note if the breakpoint is internal.
1962
1963 2011-09-15  Kevin Pouget  <kevin.pouget@st.com>
1964
1965         * MAINTAINERS (Write After Approval): Add myself to the list
1966
1967 2011-09-14  Pedro Alves  <pedro@codesourcery.com>
1968
1969         * infrun.c (prepare_for_detach, wait_for_inferior)
1970         (fetch_inferior_event): Don't flush the register cache.
1971         * remote.c (struct stop_reply) <regcache>: Add comment.
1972
1973 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1974
1975         Remove excessive DWARF expressions memory duplication.
1976         * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
1977         for block.data.
1978         (indirect_pieced_value): Remove variable result.  Remove variable
1979         back_to and its use for baton.data.
1980         (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
1981         block.data.
1982         * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
1983         Update the function comment.
1984
1985 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
1986
1987         * inferior.h (ALL_INFERIORS): New.
1988         * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
1989         for a stopped thread.
1990         (thread_db_find_new_threads): Look for threads in all inferiors.
1991
1992 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
1993
1994         * breakpoint.c (update_watchpoint): Handle the case of the
1995         watchpoint to update not being in the breakpoint list yet.
1996         (hw_watchpoint_use_count): New, factored out from
1997         hw_watchpoint_used_count.
1998         (hw_watchpoint_used_count): Rename to ...
1999         (hw_watchpoint_used_count_others): ... this.  Add `except'
2000         parameter.  Don't count resources of `except'.  Use
2001         hw_watchpoint_use_count.
2002
2003 2011-09-13  Pedro Alves  <pedro@codesourcery.com>
2004
2005         * gdbthread.h (enum thread_state): Moved here.
2006         (struct thread_info): Rename `executing_' field to `executing' and
2007         `state_' to `state'.
2008         * thread.c (enum thread_state): Moved to gdbthread.h.
2009         (new_thread, add_thread_silent, delete_thread_1)
2010         (any_live_thread_of_process, thread_alive, set_running)
2011         (set_running, is_thread_state, any_running, is_executing)
2012         (set_executing, finish_thread_state, print_thread_info)
2013         (do_captured_thread_select): Adjust.
2014
2015 2011-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
2016
2017         Fix compatibility with gcc < 4.3 and non-gcc compilers.
2018         * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2019
2020 2011-09-12  Pedro Alves  <pedro@codesourcery.com>
2021             Matt Rice  <ratmice@gmail.com>
2022
2023         PR gdb/13175
2024
2025         * interps.c (struct interp) <interpreter_out>: Delete field.
2026         (interp_new): Remove the data and uiout parameters and adjust.
2027         (interp_set): Only set the current_uiout from the interpreter's
2028         uiout after initializing the interpreter.  Adjust call to
2029         init_proc.
2030         (interp_ui_out): Adjust to call procs->ui_out_proc.
2031         (interp_data, interp_name): New.
2032         * interps.h (interp_init_ftype): Add `self' parameter.
2033         (interp_ui_out_ftype): New typedef.
2034         (struct interp_procs) <ui_out_proc>: New method pointer.
2035         (interp_new): Remove the data and uiout parameters.
2036         (interp_data, interp_name): Declare.
2037         * tui/tui-interp.c (tui_init): Adjust prototype.
2038         (tui_ui_out): New.
2039         (_initialize_tui_interp): Install tui_ui_out.  Don't instanciate
2040         tui_out here.  Adjust call to interp_new.
2041         * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2042         * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2043         (cli_ui_out): New.
2044         (_initialize_cli_interp): Install it.  Adjust call to interp_new.
2045         * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2046         * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2047         Initialize mi->uiout depending on the mi_version as extracted from
2048         the interpreter's name.
2049         (mi_ui_out): New.
2050         (_initialize_mi_interp): Install mi_ui_out.  Adjust calls to
2051         interp_new.  Don't allocate the ui_out's of the interpreters here.
2052
2053 2011-09-12  Aleksandar Ristovski  <aristovski@qnx.com>
2054
2055         * solib.c (solib_used): New function.
2056         (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2057         by another so_list object before freeing it.
2058
2059 2011-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2060
2061         Code cleanup.
2062         * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2063         values.
2064
2065 2011-09-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2066
2067         Code cleanup.
2068         * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2069         (amd64_skip_xmm_prologue): ... this new function.  Describe its
2070         parameters.  No longer use amd64_prologue_line_bug.
2071         * defs.h (producer_is_gcc_ge_4): New declaration.
2072         * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2073         (process_full_comp_unit): Update its caller.  Remove
2074         amd64_prologue_line_bug initialization.
2075         * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2076         * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2077
2078 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
2079
2080         * linux-nat.h (enum resume_kind): New.
2081         (struct lwp_info) <last_resume_kind>: New field.
2082         * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2083         resume_stop on the new lwp.
2084         (add_lwp): Set last_resume_kind as resume_continue by default.
2085         (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2086         (resume_lwp): New, factored out from resume_callback.  Also check
2087         for pending status in lp->waitstatus.
2088         (resume_callback): Reimplement.
2089         (resume_clear_callback): Set last_resume_kind as resume_stop.
2090         (resume_set_callback): Set last_resume_kind as resume_continue.
2091         (linux_nat_resume, linux_handle_extended_wait): Set
2092         last_resume_kind.
2093         (running_callback): Also check lp->waitstatus for pending events.
2094         (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2095         is resume_step.
2096         (stop_and_resume_callback): Don't re-resume if the core wanted the
2097         lwp stopped.  Use resume_lwp instead of resume_callback.  Avoid
2098         using an invalidated pointer.
2099         (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2100         SIGSTOPs if the core wanted the LWP to stop.
2101         (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2102         wanted the lwp to stop.  If the core wanted the lwp to stop, and
2103         the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2104         of TARGET_SIGNAL_STOP.
2105         (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2106         here.  Instead, signal the lwp, and set the last_resume_kind to
2107         resume_stop.
2108
2109 2011-09-09  Pedro Alves  <pedro@codesourcery.com>
2110
2111         * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2112         -1 (error), if the lwp exits right after attaching.
2113
2114 2011-09-08  Doug Evans  <dje@google.com>
2115
2116         * py-cmd.c: Some minor formatting fixes.
2117         (gdbpy_parse_command_name): Rename text arg to name, make const.
2118         All callers updated.
2119         * python-internal.h (gdbpy_parse_command_name): Update.
2120
2121         * cli/cli-decode.c (add_cmd): Add comment.
2122
2123 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2124
2125         PR breakpoints/12435
2126         * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2127         next_sal, buf, offset and xmmreg.  Advance PC if it sees the PR.
2128         * dwarf2read.c (process_full_comp_unit): Initialize
2129         amd64_prologue_line_bug.
2130         * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2131
2132 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2133
2134         Fix TUI screen corruption.
2135         * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2136         batch_flag.
2137
2138 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2139
2140         * findvar.c (read_var_value): Never return NULL, throw an error
2141         instead.  Update the function comment.  State symbol name in the error
2142         messages.
2143         * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2144         read_var_value.
2145         * stack.c (print_frame_args): Likewise.
2146         * valops.c (value_of_variable): Likewise.
2147
2148 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2149
2150         * stack.c (print_frame_args): New variable except.  Wrap
2151         read_var_value and common_val_print into TRY_CATCH.
2152
2153 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2154
2155         * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2156         caller to value_of_this.
2157         * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2158         Twice.
2159         * valops.c (value_of_this): Remove parameter complain and variable ret.
2160         Update function comment.  Never return NULL by this code.
2161         (value_of_this_silent): New function.
2162         * value.h (value_of_this): Remove parameter complain.
2163         (value_of_this_silent): New declaration.
2164
2165 2011-09-07  Yao Qi  <yao@codesourcery.com>
2166
2167         * gdbthread.h (struct thread_info): Remove fields
2168         `stepping_through_solib_after_catch' and
2169         `stepping_through_solib_catchpoints'.
2170         * infrun.c (init_thread_stepping_state): Update.
2171         (process_event_stop_test, currently_stepping): Update.
2172         (currently_stepping_or_nexting_callback): Update.
2173
2174 2011-09-07  Yao Qi  <yao@codesourcery.com>
2175
2176         * gdbthread.h (struct thread_info): Comment on field
2177         `step_after_step_resume_breakpoint'.
2178
2179 2011-09-07  Abhijit Halder  <abhijit.k.halder@gmail.com>
2180
2181         * remote.c (remote_console_output): Reindent.
2182
2183 2011-09-06  Luis Machado  <lgustavo@codesourcery.com>
2184
2185         * frame.c (has_stack_frames): Check for currently selected
2186         traceframe.
2187
2188 2011-09-06  Pedro Alves  <pedro@codesourcery.com>
2189
2190         * event-top.h (MAXPROMPTS, struct prompts): Delete.
2191         (set_async_annotation_level, set_async_prompt, pop_prompt)
2192         (push_prompt, new_async_prompt): Delete declarations.
2193         * top.h (get_prompt, set_prompt): Change prototype.
2194         (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2195         declarations.
2196         * top.c (command_loop):
2197         (top_prompt): New global.
2198         (get_prefix, set_prefix, get_suffix, ): Delete.
2199         (get_prompt, set_prompt): Rewrite.
2200         (show_new_async_prompt): Rename to ...
2201         (show_prompt): ... this.
2202         (init_main): Adjust.  Don't handle --annotate=2 here.
2203         * event-top.c (new_async_prompt): Delete.
2204         (the_prompts): Delete.
2205         (more_to_come): Make static.
2206         (display_gdb_prompt): Use top_level_prompt() to compute the top
2207         level prompt, and don't notify the before_prompt observers
2208         directly here.  Always trick readline into not trying to display
2209         the prompt if sync_execution and displaying the primary prompt.
2210         If displaying a local/secondary prompt, always show it, even if
2211         sync_execution is set.
2212         (change_annotation_level): Delete.
2213         (top_level_prompt): New, based on change_annotation_level.
2214         (push_prompt, pop_prompt): Delete.
2215         (async_disable_stdin): No longer pushes prompt.
2216         (command_line_handler): No longer pushes or pops prompt.  If more
2217         input is expected, call display_gdb_prompt with an explicit empty
2218         prompt.
2219         (async_stop_sig): Adjust.
2220         (set_async_annotation_level, set_async_prompt): Delete.
2221         * python/python.c (before_prompt_hook): Adjust.
2222
2223 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
2224
2225         PR cli/13110
2226
2227         * infrun.c (fetch_inferior_event): Check if there's a selected
2228         thread before checking if the selected thread is executing.
2229
2230 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
2231
2232         * inf-loop.c (execute_command): Don't check if the current thread
2233         if running before synchronously waiting for command completion.
2234         * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2235         here.
2236         (normal_stop): Call async_enable_stdin here.
2237         * inf-loop.c (inferior_event_handler): Don't call
2238         async_enable_stdin, nor handle "set exec-done-display" here.
2239
2240 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
2241
2242         GDB 7.3.1 released.
2243
2244 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
2245
2246         * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2247
2248 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
2249
2250         * NEWS: Add entry for OpenBSD/NetBSD build failure.
2251
2252 2011-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2253
2254         * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
2255
2256 2011-09-02  Matt Rice  <ratmice@gmail.com>
2257
2258         PR gdb/10720
2259         * event-top.c (cli_command_loop): Replace readline setup with
2260         direct call to display_gdb_prompt.
2261         (display_gdb_prompt): Do not call observer mechanism during
2262         synchronous execution.
2263
2264 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
2265
2266         * linux-nat.c (in_pid_list_p): New.
2267         (linux_record_stopped_pid): Delete.
2268         (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
2269         already attached to the LWP.  Return an indication if so.
2270         (linux_nat_filter_event): Adjust.
2271         * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
2272         returning an indication to ignore this thread.
2273
2274 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
2275
2276         * top.c: Include interps.h.
2277         (execute_command): If the target can async, but the interpreter is
2278         in sync mode, synchronously wait for the command to finish before
2279         returning.
2280         (execute_command_to_string): Force the interpreter to sync mode.
2281         * infrun.c: Include interps.h.
2282         (fetch_inferior_event): Don't restore the prompt yet if the
2283         interpreter is in sync mode.
2284         * interps.c (interpreter_async): New global.
2285         * interps.h (interpreter_async): Declare.
2286         * inf-loop.c: Include interps.h.
2287         (inferior_event_handler): Don't print the language change or run
2288         breakpoint commands yet if the interpreter in is sync mode.
2289         * main.c (captured_command_loop): Flip the interpreter to async
2290         mode.
2291         * cli/cli-script.c: Include interps.h.
2292         (execute_user_command, while_command, if_command): Force the
2293         interpreter to sync mode.
2294         * python/python.c: Include interps.h.
2295         (python_command, execute_gdb_command): Force the interpreter to
2296         sync mode.
2297
2298 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
2299
2300         * value.c (show_convenience): Catch errors thrown while printing
2301         each internal variable.
2302         * infrun.c (validate_siginfo_access): New function.
2303         (siginfo_value_read, siginfo_value_write): Call it.
2304
2305 2011-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2306
2307         Revert:
2308         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
2309         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2310         attribute.
2311
2312 2011-08-29  Yao Qi  <yao@codesourcery.com>
2313
2314         * solib-dsbt.c (bfd_lookup_symbol): Removed.
2315         (cmp_name): New.
2316         (enable_break2): Update caller.
2317         * solib-frv.c (bfd_lookup_symbol): Removed.
2318         (cmp_name): New.
2319         (enable_break2): Update caller.
2320         * solib-pa64.c (bfd_lookup_symbol): Removed.
2321         (cmp_name): New.
2322         * solib-svr4.c (bfd_lookup_symbol): Removed.
2323         (cmp_name_and_sec_flags): New.
2324         (enable_break): Update caller.
2325         * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
2326         (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
2327         (gdb_bfd_lookup_symbol): New.
2328         * solib.h: Functions declarations.
2329
2330 2011-08-29  Yao Qi  <yao@codesourcery.com>
2331
2332         * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
2333         and solib-dsbt.o.
2334
2335 2011-08-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2336
2337         Fix TUI stepi on code without symbols.
2338         * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
2339         current PC instead.
2340
2341 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2342
2343         Code cleanup.
2344         * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
2345         and the static keyword.
2346         * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
2347         Make prefix an array.
2348         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2349         * mi/mi-main.c (get_register): Remove stb initialization and the static
2350         keyword.
2351
2352 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2353
2354         Code cleanup - make mi_opt const.
2355         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
2356         opts const.
2357         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2358         * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
2359         (mi_cmd_env_dir): Likewise.
2360         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
2361         (mi_cmd_target_file_put): Likewise.
2362         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
2363         * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
2364         * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
2365         (mi_valid_noargs): Make opts const.
2366         * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
2367         * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
2368         (mi_cmd_data_read_memory): Likewise.
2369         (mi_cmd_data_read_memory_bytes): Likewise.
2370         (mi_cmd_data_write_memory): Likewise.
2371
2372 2011-08-26  Matt Rice  <ratmice@gmail.com>
2373
2374         * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
2375         bcache_xmalloc,  replace bcache_xmalloc with call to
2376         psymbol_bcache_init for psymbol_cache.
2377         * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
2378
2379 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2380
2381         * inf-loop.c (inferior_event_handler): Add exception_print in
2382         INF_EXEC_COMPLETE.
2383
2384 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2385
2386         * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
2387         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2388         * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
2389         * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
2390         * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
2391         call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2392         Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
2393         * infrun.c (fetch_inferior_event): Call
2394         make_bpstat_clear_actions_cleanup.
2395         * top.c (execute_command): New variable cleanup_if_error, call
2396         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
2397         * utils.c (do_bpstat_clear_actions_cleanup)
2398         (make_bpstat_clear_actions_cleanup): New functions.
2399
2400 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
2401
2402         * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
2403         either the parent or the child forks.  Rename a couple locals.
2404
2405 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
2406
2407         * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
2408         library call.  Avoid reading the `status' local if all waitpid
2409         calls failed.
2410
2411 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
2412
2413         * common/linux-osdata.c (get_cores_used_by_process): Don't assume
2414         opening /proc/PID/task always succeeds.
2415
2416 2011-08-26  Aleksandar Ristovski <aristovski@qnx.com>
2417
2418         * linespec.c (symtab_from_filename): Check for the end of string.
2419
2420 2011-08-26  Marc Khouzam  <marc.khouzam@ericsson.com>
2421
2422         PR mi/11912
2423         * varobj.c (cplus_describe_child): Add the keyword
2424         'class' to the output of the method when dealing 
2425         with a cast to a base class.
2426
2427 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2428
2429         No functionality change.
2430         * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
2431         function comment a reference, new variables tp and bs, move here code
2432         from throw_exception.
2433         * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
2434         describe it in the comment.
2435         * exceptions.c (throw_exception): Remove variable tp, move the code for
2436         bpstat_clear_actions to bpstat_clear_actions.
2437
2438 2011-08-24  Luis Machado  <lgustavo@codesourcery.com>
2439
2440         * linux-nat.h (linux_proc_get_tgid): Remove declaration.
2441         * linux-nat.c: Include linux-procfs.h.
2442         (linux_proc_get_tgid): Move to ...
2443         * common/linux-procfs.c: ... here. New file.
2444         * common/linux-procfs.h: New file.
2445         * linux-thread-db.c: Include linux-procfs.h.
2446         * Makefile.in: Update dependencies.
2447         * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
2448         * config/arm/linux.mh: Likewise.
2449         * config/i386/linux.mh: Likewise.
2450         * config/i386/linux64.mh: Likewise.
2451         * config/ia64/linux.mh: Likewise.
2452         * config/m32r/linux.mh: Likewise.
2453         * config/m68k/linux.mh: Likewise.
2454         * config/mips/linux.mh: Likewise.
2455         * config/pa/linux.mh: Likewise.
2456         * config/pa/linux.mh: Likewise.
2457         * config/powerpc/linux.mh: Likewise.
2458         * config/powerpc/ppc64-linux.mh: Likewise.
2459         * config/powerpc/spu-linux.mh: Likewise.
2460         * config/sparc/linux.mh: Likewise.
2461         * config/sparc/linux64.mh: Likewise.
2462         * config/xtensa/linux.mh: Likewise.
2463
2464 2011-08-24  Hui Zhu  <teawater@gmail.com>
2465
2466         * tracepoint.c (cond_string_is_same): New function.
2467         (find_matching_tracepoint): Add condition check
2468         by cond_string_is_same.
2469
2470 2011-08-23  Josh Matthews  <josh@joshmatthews.net>
2471
2472         Fix build error in Darwin port.
2473         * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2474
2475 2011-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2476
2477         Code cleanup.
2478         * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
2479         (command_line_is_silent): New function.
2480         (bpstat_do_actions_1): No longer use commands_left, use
2481         command_line_is_silent for commands.
2482         (bpstat_alloc): Remove clearing of commands_left.
2483         (bpstat_stop_status): Remove initialization of commands_left, use
2484         command_line_is_silent.
2485         * breakpoint.h (struct bpstats): Remove commands_left.
2486
2487 2011-08-18  Keith Seitz  <keiths@redhat.com>
2488
2489         PR c++/12266
2490         * cp-name-parser.y (struct demangle_info): Remove unused
2491         member PREV.
2492         (d_grab): Likewise.
2493         (allocate_info): Change return type to struct demangle_info *.
2494         Always allocate a new demangle_info.
2495         Remove unused PREV pointer.
2496         (cp_new_demangle_parse_info): New function.
2497         (cp_demangled_name_parse_free): New function.
2498         (do_demangled_name_parse_free_cleanup): New function.
2499         (make_cleanup_cp_demangled_name_parse_free): New function.
2500         (cp_demangled_name_to_comp): Change return type to
2501         struct demangle_parse_info *.
2502         Allocate a new storage for each call.
2503         (main): Update usage for cp_demangled_name_to_comp
2504         API change.
2505         * cp-support.h (struct demangle_parse_info): New structure.
2506         (cp_demangled_name_to_comp): Update API change for
2507         return type.
2508         (cp_new_demangle_parse_info): Declare.
2509         (make_cleanup_cp_demangled_name_parse_free): New declaration.
2510         (cp_demangled_name_parse_free): Declare.
2511         * cp-support.c (cp_canonicalize_string): Update API
2512         change for cp_demangled_name_to_comp.
2513         (mangled_name_to_comp): Likewise.
2514         Return struct demangle_parse_info, too.
2515         (cp_class_name_from_physname): Update mangled_name_to_comp
2516         API change.
2517         (method_name_from_physname): Likewise.
2518         (cp_func_name): Update API change for cp_demangled_name_to_comp.
2519         (cp_remove_params): Likewise.
2520         * python/py-type.c (typy_legacy_template_argument): Likewise.
2521
2522         * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
2523         (cp_merge_demangle_parse_infos): Declare.
2524         * cp-support.c (ignore_typedefs): New file global.
2525         (copy_string_to_obstack): New function.
2526         (inspect_type): New function.
2527         (replace_typedefs): New function.
2528         (replace_typedefs_qualified_name): New function.
2529         (cp_canonicalize_string_no_typedefs): New function.
2530         * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
2531         (cp_new_demangle__parse_info): Allocate and initialize the obstack.
2532         * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
2533         instead of cp_canonicalize_string.
2534         (find_method): Likewise.
2535         (decode_compound): Before looking up the name, call
2536         cp_canonicalize_string_no_typedefs.
2537         (decode_variable): Likewise.
2538
2539 2011-08-17  Phil Muldoon  <pmuldoon@redhat.com>
2540             Tom Tromey  <tromey@redhat.com>
2541             Matt Rice <ratmice@gmail.com>
2542
2543         * python/lib/gdb/prompt.py: New file.
2544         * python/lib/gdb/command/prompt.py: New file.
2545         * NEWS: Document set extended-prompt and gdb.prompt library
2546
2547 2011-08-16  Yao Qi  <yao@codesourcery.com>
2548
2549         * tic6x-linux-tdep.c: Move const arrays definition from here...
2550         * tic6x-tdep.c: to here ...
2551
2552 2011-08-14  Yao Qi  <yao@codesourcery.com>
2553
2554         * NEWS: New port to Texas Instruments TMS320C6x.
2555
2556 2011-08-14  Andrew Jenner  <andrew@codesourcery.com>
2557             Bernd Schmidt  <bernds@codesourcery.com>
2558             Yao Qi  <yao@codesourcery.com>
2559
2560         * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
2561         * solib-dsbt.c: New file.  Support DSBT shared object.
2562         * tic6x-linux-tdep.c: New file.
2563         * tic6x-tdep.c: New file.
2564         * tic6x-tdep.h: New file.
2565
2566 2011-08-14  Andrew Stubbs <ams@codesourcery.com>
2567             Yao Qi  <yao@codesourcery.com>
2568
2569         * remote.c (PACKET_qXfer_fdpic): New enum value.
2570         (remote_protocol_features): Add qXfer:fdpic:read packet.
2571         (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
2572         (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
2573         * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
2574
2575 2011-08-14  Yao Qi  <yao@codesourcery.com>
2576
2577         Target description for tic6x.
2578         * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
2579         tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
2580         * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
2581         * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
2582         * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
2583         * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
2584         * features/tic6x-c64xp-linux.xml: New.
2585         * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
2586         * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
2587         * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
2588         * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
2589         * regformats/tic6x-c64xp.dat,
2590         regformats/tic6x-c62x-linux.dat: Generated.
2591         * regformats/tic6x-c64x-linux.dat,
2592         regformats/tic6x-c64xp-linux.dat: Generated.
2593         * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
2594         features/tic6x-*.c files.
2595         Add regformats/tic6x-*.dat files.
2596
2597 2011-08-12  Doug Evans  <dje@google.com>
2598
2599         * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
2600         * python/py-symbol.c (sympy_get_type): New function.
2601         (symbol_object_getset): Add "type".
2602
2603 2011-08-12  Pedro Alves  <pedro@codesourcery.com>
2604
2605         PR tui/13073
2606
2607         * tui/tui-regs.c (tui_show_register_group): Skip registers with an
2608         empty name.
2609         (tui_show_register_group): Don't store a byte buffer in the data
2610         element's value.
2611         (tui_register_format): Skip registers with an empty name.
2612         (tui_get_register): Store a struct value in the data element's
2613         value field instead of a byte buffer holding the raw register
2614         contents.  Account for optimized-out and unavailable registers
2615         when comparing register contents.
2616
2617 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
2618
2619         * printcmd.c (current_display_number): Update comment.
2620         (disable_current_display_cleanup): Delete.
2621         (do_one_display): Use make_cleanup_restore_integer.  Gracefully
2622         catch errors thrown while evaluating and printing the display.
2623
2624 2011-08-09  Tom Tromey  <tromey@redhat.com>
2625
2626         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
2627
2628 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
2629
2630         * elfread.c (elf_symtab_read): Rework comments.
2631         * maint.c (maintenance_command): Ditto.
2632         * somread.c (som_symtab_read): Ditto.
2633         * solib.c (solib_find, solib_map_sections, update_solib_list)
2634         (solib_add, info_sharedlibrary_command, solib_name_from_address)
2635         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2636         (sharedlibrary_command, no_shared_libraries): Ditto.
2637         * solib-irix.c (locate_base, disable_break, enable_break)
2638         (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
2639         (irix_current_sos, irix_open_symbol_file_object)
2640         (irix_special_symbol_handling): Ditto.
2641         * solib-sunos.c (locate_base, first_link_map_member)
2642         (sunos_current_sos, disable_break, enable_break)
2643         (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
2644         Ditto.
2645         * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
2646         (open_symbol_file_object, svr4_current_sos, enable_break)
2647         (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
2648         Ditto.
2649         * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
2650         (frv_current_sos, enable_break, frv_special_symbol_handling)
2651         (frv_solib_create_inferior_hook): Ditto.
2652         * solist.h (struct target_so_ops): Extend the comments of the
2653         special_symbol_handling, current_sos and open_symbol_file_object
2654         methods.
2655
2656 2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>
2657
2658         * python/lib/gdb/__init__.py: Auto-load files in command and
2659         function directories.
2660         * python/python.c (finish_python_initialization): Use
2661         os.path.join.
2662         * python/lib/gdb/command/pretty_printers.py: Self register
2663         command.
2664         * NEWS: Document auto-loading.
2665
2666 2011-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2667
2668         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
2669         (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
2670         objfile_gdbarch.  Fix BFD_ENDIAN_BIG case.
2671
2672 2011-08-08  Tom Tromey  <tromey@redhat.com>
2673
2674         * breakpoint.c (clean_up_filters): Remove.
2675         (catch_syscall_split_args): Use VEC_cleanup.
2676
2677 2011-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2678
2679         * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
2680         (main): Uncomment "Demangling error\n".
2681
2682 2011-08-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
2683
2684         * solib-target.c (segment_attributes): Make them static.
2685         (section_attributes, library_children, library_attributes): Likewise.
2686         (library_list_children, library_list_attributes): Likesise.
2687         (library_list_elements): Likewise.
2688
2689 2011-08-05  Pedro Alves  <pedro@codesourcery.com>
2690
2691         * exceptions.c (throw_exception): Don't disable the current
2692         display.
2693         * printcmd.c (disable_current_display_cleanup): New function.
2694         (do_one_display): Install a cleanup to disable the current display
2695         if doing the display throws.
2696
2697 2011-08-05  Eli Zaretskii  <eliz@gnu.org>
2698
2699         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
2700         initialization of the tp_new member to the corresponding
2701         gdbpy_initialize_* function.
2702         * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
2703         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2704         * python/py-function.c (gdbpy_initialize_functions): Likewise.
2705         * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
2706         * python/py-param.c (gdbpy_initialize_parameters): Likewise.
2707
2708 2011-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
2709
2710         * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2711         (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
2712         (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
2713         references to current_uiout.
2714
2715 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
2716
2717         * event-loop.c (gdb_do_one_event): Remove `data' parameter.
2718         (start_event_loop): Use TRY_CATCH instead of catch_errors.
2719         * event-loop.h (gdb_do_one_event): Remove `data' parameter.
2720         * top.c (gdb_readline_wrapper): Adjust.
2721         * tui/tui-interp.c (tui_command_loop):
2722         (_initialize_tui_interp): Don't install it.
2723
2724 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
2725
2726         * ui-out.h (uiout): Rename to ...
2727         (current_uiout): ... this.
2728         * ui-out.c (uiout): Rename to ...
2729         (current_uiout): ... this.
2730         * ada-lang.c (print_it_exception, print_one_exception)
2731         (print_mention_exception): Adjust.
2732         * breakpoint.c (watchpoint_check): Adjust.
2733         (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
2734         (default_collect_info, watchpoints_info, print_one_catch_fork)
2735         (print_one_catch_vfork, print_one_catch_syscall)
2736         (print_one_catch_exec, mention, print_it_ranged_breakpoint)
2737         (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
2738         (print_it_watchpoint, print_mention_watchpoint)
2739         (print_it_masked_watchpoint, print_mention_masked_watchpoint)
2740         (print_it_exception_catchpoint, print_one_exception_catchpoint)
2741         (print_mention_exception_catchpoint, say_where, bkpt_print_it)
2742         (bkpt_print_mention, momentary_bkpt_print_it)
2743         (tracepoint_print_mention, update_static_tracepoint)
2744         (tracepoints_info, save_breakpoints): Adjust.
2745         * cli-out.c (field_separator): Adjust.
2746         * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
2747         * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
2748         * frame.c (get_current_frame): Adjust.
2749         * infcmd.c (run_command_1, print_return_value): Adjust.
2750         * inferior.c (inferior_command, info_inferiors_command): Adjust.
2751         * infrun.c (print_end_stepping_range_reason): Adjust.
2752         (print_signal_exited_reason, print_exited_reason): Adjust.
2753         (print_signal_received_reason, print_no_history_reason): Adjust.
2754         * interps.c (interp_set): Adjust.
2755         * osdata.c (info_osdata_command): Adjust.
2756         * progspace.c (maintenance_info_program_spaces_command): Adjust.
2757         * remote-fileio.c (remote_fileio_request): Adjust.
2758         * remote.c (show_remote_cmd): Adjust.
2759         * solib.c (info_sharedlibrary_command): Adjust.
2760         * source.c (print_source_lines_base): Adjust.
2761         * stack.c (print_stack_frame): Adjust.
2762         (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
2763         * symfile-mem.c (add_vsyscall_page): Adjust.
2764         * symfile.c (load_progress, generic_load)
2765         (print_transfer_performance): Adjust.
2766         * thread.c (info_threads_command, restore_selected_frame)
2767         (thread_command): Adjust.
2768         * top.c (make_cleanup_restore_ui_file): Adjust.
2769         * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
2770         (print_one_static_tracepoint_marker): Adjust.
2771         * cli/cli-cmds.c (print_disassembly): Adjust.
2772         * cli/cli-decode.c (print_doc_line): Adjust.
2773         * cli/cli-interp.c (safe_execute_command): Adjust.
2774         * cli/cli-logging.c (set_logging_redirect, pop_output_files)
2775         (handle_redirections): Adjust.
2776         * cli/cli-script.c (show_user_1): Adjust.
2777         * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
2778         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2779         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
2780         * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
2781         (mi_cmd_env_dir): Adjust.
2782         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
2783         (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
2784         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2785         (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
2786         (list_args_or_locals): Adjust.
2787         * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
2788         (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
2789         (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
2790         (mi_cmd_var_list_children, mi_cmd_var_info_type)
2791         (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
2792         (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
2793         (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
2794         * mi/mi-interp.c (mi_on_normal_stop): Adjust.
2795         * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
2796         (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
2797         (list_available_thread_groups, mi_cmd_list_thread_groups)
2798         (mi_cmd_data_list_register_names)
2799         (mi_cmd_data_list_changed_registers)
2800         (mi_cmd_data_list_register_values, get_register)
2801         (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
2802         (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
2803         (mi_cmd_list_target_features, mi_cmd_add_inferior)
2804         (mi_execute_command, mi_load_progress): Adjust.
2805         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
2806         * python/py-auto-load.c (print_script, info_auto_load_scripts):
2807         Adjust.
2808         * python/py-breakpoint.c (bppy_get_commands): Adjust.
2809         * tui/tui-interp.c (tui_command_loop): Adjust.
2810         * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
2811
2812 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
2813
2814         * exceptions.c (struct catcher): Remove saved_uiout field.
2815         (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
2816         no longer save/resvore the global ui_out builder.
2817         (catch_exceptions_with_msg): Save/override/restore the global
2818         ui_out builder manually instead of relying on TRY_CATCH to do it.
2819         (catch_errors): Save/restore the global ui_out builder manually
2820         instead of relying on TRY_CATCH to do it.
2821         * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
2822         parameter.
2823         (TRY_CATCH): Adjust.
2824         * cli/cli-interp.c (safe_execute_command): Save/override/restore
2825         the global ui_out builder manually instead of relying on TRY_CATCH
2826         to do it.
2827
2828 2011-08-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2829
2830         * breakpoint.c (update_global_location_list): Ensure
2831         invariant 'first loc marked not duplicated and inserted,
2832         following locs marked duplicated/not inserted' is respected
2833         for multiple locations at the same address.
2834         (unduplicated_should_be_inserted) New function.
2835         (swap_insertion) New function.
2836
2837 2011-08-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2838
2839         * stack.c (print_frame_arguments_choices): Comment typo fix.
2840
2841 2011-08-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2842
2843         Revert:
2844         2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2845         * breakpoint.c (insert_bp_location): Remove disabled_breaks
2846         argument.  Update callers.
2847
2848 2011-08-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
2849
2850         PR gdb/13045
2851         * doublest.c (convert_doublest_to_floatformat): Pass correct
2852         mantissa length to put_field.
2853
2854 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2855
2856         * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
2857         exception_print code path.
2858         (backtrace_command): Remove variable e.  Protect arg by make_cleanup in
2859         advance.  Simplify memset.  Remove TRY_CATCH.  Remove explicit xfree.
2860         (backtrace_full_command):  Remove variable e.  Remove TRY_CATCH.
2861
2862 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2863
2864         Code cleanup.
2865         * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
2866         Remove, merge them into ...
2867         (print_stack_frame): ... here with a TRY_CATCH.  New variable e, remove
2868         variable args and its initialization.
2869         (struct print_args_args, print_args_stub): Remove, merge them into
2870         print_frame.
2871         (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
2872         them into ...
2873         (do_gdb_disassembly): ... here.  Remove variable args and its
2874         initialization.
2875         (print_frame): Remove variable args and its initialization, new
2876         variable gdbarch and numargs (from print_args_stub), inline here
2877         print_args_stub with a TRY_CATCH.
2878         (struct backtrace_command_args, backtrace_command_stub): Remove, merge
2879         them into ...
2880         (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
2881         New variable e, remove variable btargs and its initialization.
2882
2883 2011-08-01  Tristan Gingold  <gingold@adacore.com>
2884
2885         * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
2886
2887 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2888
2889         * breakpoint.c (insert_bp_location): Document return value.
2890         (insert_breakpoint_locations): Fix documentation.
2891         (remove_breakpoints): Add documentation.
2892
2893 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
2894
2895         * breakpoint.c (insert_bp_location): Remove disabled_breaks
2896         argument.  Update callers.
2897
2898 2011-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2899
2900         * stack.c (print_frame_info): Comment typo fix.
2901
2902 2011-07-29  Sterling Augustine  <saugustine@google.com>
2903
2904         * MAINTAINERS (Write After Approval): Add myself to the list.
2905
2906 2011-07-29  Tom Tromey  <tromey@redhat.com>
2907
2908         * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
2909         (library_list_start_segment): Update.
2910         (library_list_start_section): Update.
2911
2912 2011-07-28  Phil Muldoon  <pmuldoon@redhat.com>
2913
2914         * varobj.c (value_get_print_value): Move hint check later into the
2915         function.  Comment function.  Free thevalue before reusing it.
2916
2917 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2918             Pedro Alves  <pedro@codesourcery.com>
2919
2920         * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
2921         value_one.
2922         * valops.c (value_one): Remove parameter lv.  Do not pass it to itself.
2923         Assert the result kind.
2924         * value.h (value_one): Remove parameter lv.
2925
2926 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2927
2928         Fix crash on lval_computed values.
2929         * valops.c (value_zero): Use not_lval for lval_computed.
2930
2931 2011-07-27  Tom Tromey  <tromey@redhat.com>
2932
2933         * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
2934         gdb_assert.h, gdb_locale.h, gdb_dirent.h.
2935
2936 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2937
2938         * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
2939         "ptype" by their typedefs difference.
2940
2941 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2942
2943         * dwarf2expr.c (ctx_no_read_reg): New function.
2944         * dwarf2expr.h (ctx_no_read_reg): New declaration.
2945         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2946         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2947         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2948
2949 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2950
2951         * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
2952         (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
2953         file.
2954         (dwarf2_frame_ctx_funcs): Reference the renamed functions.
2955         * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2956         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2957         (ctx_no_get_base_type): Move the functions here.
2958         * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
2959         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
2960         (ctx_no_get_base_type): New declarations.
2961
2962 2011-07-27  Tom Tromey  <tromey@redhat.com>
2963
2964         * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
2965         entries.
2966         * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
2967         * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
2968
2969 2011-07-26  Sterling Augustine  <saugustine@google.com>
2970
2971         * cli/cli-dump.c (dump_binary_file): Change parameter type to
2972         ULONGEST.
2973         (dump_bfd_file): Likewise.
2974
2975 2011-07-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2976
2977         * remote.c (remote_region_ok_for_hw_watchpoint): New function.
2978         (remote_hw_watchpoint_length_limit): New variable.
2979         (_initialize_remote) add set,show cmds for this new variable.
2980         * gdb.texinfo: document these new commands.
2981         * NEWS: Mention these new commands.
2982
2983 2011-07-26  Pedro Alves  <pedro@codesourcery.com>
2984
2985         * breakpoint.c (works_in_software_mode_watchpoint): Also return
2986         true for software watchpoints.
2987
2988 2011-07-26  Joel Brobecker  <brobecker@adacore.com>
2989
2990         GDB 7.3 released.
2991
2992 2011-07-26  Tom Tromey  <tromey@redhat.com>
2993
2994         * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
2995         * dwarf2read.c (read_indirect_string_at_offset): New function.
2996         (read_indirect_string): Use it.
2997         (dwarf_decode_macro_bytes): New function, taken from
2998         dwarf_decode_macros.  Handle DW_MACRO_GNU_*.
2999         (dwarf_decode_macros): Use it.  handle DW_MACRO_GNU_*.
3000         (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3001         New functions.
3002         (struct dwarf2_per_objfile) <macro>: New field.
3003         (dwarf2_elf_names): Add .debug_macro.
3004         (dwarf2_macros_too_long_complaint): Add 'section' argument.
3005         (dwarf2_locate_sections): Handle new section.
3006         (read_file_scope): Handle DW_AT_GNU_macros.
3007         (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3008
3009 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
3010
3011         * NEWS: Mention dcache configuration.
3012         * dcache.c (dcache_set_list, dcache_show_list): New variables.
3013         (dcache_size, dcache_line_size): New variables.
3014         (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3015         (struct dcache_block): Make it expandable.
3016         (struct dcache_struct): New field.
3017         (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3018         (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3019         (dcache_poke_byte, dcache_print_line): Adjust.
3020         (set_dcache_size, set_dcache_line_size): New functions.
3021         (set_dcache_command, show_dcache_command): New functions.
3022         (_initialize_dcache): Add new commands.
3023
3024 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
3025
3026         * progspace.h (struct program_space): Add solib_add_generation.
3027         * infcmd.c (post_create_inferior): Only call solib_add if not
3028         already done.
3029         * solib.c (solib_add): Increment solib_add_generation.
3030
3031 2011-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3032
3033         Fix implicit pointer offsets.
3034         * dwarf2loc.c (indirect_pieced_value): Comment byte_offset.  Use also
3035         ptr.OFFSET.
3036
3037 2011-07-25  Tom Tromey  <tromey@redhat.com>
3038
3039         * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3040         const.
3041         (ada_exception_sal): Make 'ops' const.
3042         (ada_decode_exception_location): Likewise.
3043         (ada_decode_assert_location): Likewise.
3044         (catch_assert_command): Update.
3045         (catch_ada_exception_command): Update.
3046         (create_ada_exception_catchpoint): Make 'ops' const.
3047         * breakpoint.c (set_raw_breakpoint_without_location)
3048         (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3049         const.
3050         (create_internal_breakpoint): Update.
3051         (init_raw_breakpoint_without_location): Make 'ops' const.
3052         (init_raw_breakpoint, init_catchpoint)
3053         (create_fork_vfork_event_catchpoint)
3054         (create_syscall_event_catchpoint, init_breakpoint_sal)
3055         (create_breakpoint_sal, create_breakpoints_sal)
3056         (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3057         * breakpoint.h (struct breakpoint) <ops>: Now const.
3058         (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3059         const.
3060
3061 2011-07-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
3062
3063         * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3064
3065 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
3066
3067         * breakpoint.h (print_recreate_thread): Declare.
3068         (struct breakpoint): Move step_count, pass_count,
3069         number_on_target, static_trace_marker_id,
3070         static_trace_marker_id_idx ...
3071         (struct tracepoint): ... to this new struct.
3072         (get_tracepoint, get_tracepoint_by_number_on_target)
3073         (get_tracepoint_by_number): Change return type to struct
3074         tracepoint pointer.
3075         * breakpoint.c (is_tracepoint_type): New, factored out from
3076         is_tracepoint.
3077         (is_tracepoint): Adjust.
3078         (print_one_breakpoint_location): Cast to struct tracepoint as
3079         necessary, and adjust.
3080         (print_recreate_catch_fork, print_recreate_catch_vfork)
3081         (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3082         print_recreate_thread.
3083         (init_breakpoint_sal): New, factored out from
3084         create_breakpoint_sal.
3085         (create_breakpoint_sal): Reimplement.
3086         (create_breakpoint): Allocate a struct tracecepoint if the caller
3087         wanted a tracepoint.  Use init_breakpoint_sal and
3088         install_breakpoint.
3089         (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3090         (print_recreate_masked_watchpoint)
3091         (print_recreate_exception_catchpoint): Call print_recreate_thread.
3092         (tracepoint_print_one_detail): Adjust.
3093         (tracepoint_print_recreate): Adjust.  Call print_recreate_thread.
3094         Dump the pass count here.
3095         (update_static_tracepoint): Adjust.
3096         (addr_string_to_sals): Adjust.
3097         (create_tracepoint_from_upload): Adjust.  Change return type to
3098         struct tracepoint pointer.
3099         (trace_pass_set_count): Change parameter type to struct tracepoint
3100         pointer, and adjust.
3101         (trace_pass_command): Adjust.
3102         (get_tracepoint, get_tracepoint_by_number_on_target)
3103         (get_tracepoint_by_number): Change return type to struct
3104         tracepoint pointer, and adjust.
3105         (print_recreate_thread): New, factored out from save_breakpoints.
3106         (save_breakpoints): Don't print thread and task and passcount
3107         recreation here.
3108         * remote.c (remote_download_tracepoint): Adjust.
3109         * tracepoint.c (trace_actions_command, validate_actionline)
3110         (start_tracing, tfind_1, trace_find_tracepoint_command)
3111         (trace_dump_command): Adjust.
3112         (find_matching_tracepoint): Change return type to struct
3113         tracepoint pointer, and adjust.
3114         (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3115         (tfile_trace_find, tfile_fetch_registers): Adjust.
3116         * tracepoint.h (create_tracepoint_from_upload): Change return type
3117         to struct tracepoint pointer.
3118         * ada-lang.c (print_recreate_exception): Call
3119         print_recreate_thread.
3120         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3121
3122 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
3123
3124         * breakpoint.h (struct breakpoint): Move ops as first field.  Move
3125         exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3126         cond_exp_valid_block, val, val_valid, watchpoint_frame,
3127         watchpoint_thread, watchpoint_triggered ...
3128         (struct watchpoint): ... to this new struct.
3129         (is_watchpoint): Declare.
3130         (install_breakpoint): Add new `internal' parameter.
3131         * breakpoint.c (is_watchpoint): Delete declaration.
3132         (set_breakpoint_condition): Handle watchpoints.
3133         (is_watchpoint): Make public.
3134         (watchpoint_in_thread_scope): Change parameter type to struct
3135         watchpoint.
3136         (watchpoint_del_at_next_stop): Change parameter type to struct
3137         watchpoint.  Remove assertion.  Adjust.
3138         (update_watchpoint): Ditto.
3139         (insert_breakpoints, breakpoint_init_inferior)
3140         (watchpoints_triggered, watchpoint_check)
3141         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3142         (bpstat_stop_status, print_one_breakpoint_location)
3143         (print_one_breakpoint_location, watchpoint_locations_match): Cast
3144         to struct watchpoint as necessary, and adjust.
3145         (install_breakpoint): Add `internal' argument.  If true, don't
3146         mention the new breakpoint.  Use set_breakpoint_number.
3147         (create_fork_vfork_event_catchpoint)
3148         (create_syscall_event_catchpoint): Adjust.
3149         (dtor_watchpoint): New.
3150         (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3151         (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3152         (print_it_watchpoint, print_mention_watchpoint)
3153         (print_recreate_watchpoint, insert_masked_watchpoint)
3154         (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3155         (print_one_detail_masked_watchpoint)
3156         (print_mention_masked_watchpoint)
3157         (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3158         necessary, and adjust.
3159         (watch_command_1): Allocate and initialize a struct watchpoint
3160         instead of a struct breakpoint.  Use install_breakpoint.
3161         (catch_exec_command_1): Adjust.
3162         (base_breakpoint_dtor): Delete accesses to watchpoint specific
3163         fields.
3164         (delete_breakpoint, enable_breakpoint_disp)
3165         (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3166         as necessary, and adjust.
3167         (initialize_breakpoint_ops): Install dtor_watchpoint as
3168         watchpoints' dtor method.
3169         * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3170         * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3171         to struct watchpoint as necessary, and adjust.
3172
3173 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
3174
3175         * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3176         the the base class ops table.
3177         (catch_exception_breakpoint_ops)
3178         (catch_exception_unhandled_breakpoint_ops)
3179         (catch_assert_breakpoint_ops): Don't statically initialize.
3180         (initialize_ada_catchpoint_ops): New.
3181         (_initialize_ada_language): Call it.
3182         * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3183         (bkpt_breakpoint_ops): Forward declare.
3184         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3185         (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3186         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3187         (masked_watchpoint_breakpoint_ops)
3188         (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3189         (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3190         base class ops table.
3191         (null_re_set, null_check_status, null_works_in_software_mode)
3192         (null_resources_needed, null_print_one_detail): Delete.
3193         (bkpt_dtor): Rename to ...
3194         (base_breakpoint_dtor): ... this.  Make static.
3195         (bkpt_allocate_location): Rename to ...
3196         (base_breakpoint_allocate_location): ... this.  Make static.
3197         (base_breakpoint_re_set): New.
3198         (internal_error_pure_virtual_called): New.
3199         (base_breakpoint_insert_location, base_breakpoint_remove_location)
3200         (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3201         (base_breakpoint_works_in_software_mode)
3202         (base_breakpoint_resources_needed, base_breakpoint_print_it)
3203         (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3204         (base_breakpoint_print_recreate): New functions.
3205         (base_breakpoint_ops): New global.
3206         (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3207         (bkpt_breakpoint_hit): Make static.
3208         (bkpt_check_status): Delete.
3209         (bkpt_resources_needed): Make static.
3210         (bkpt_works_in_software_mode): Delete.
3211         (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3212         static.
3213         (bkpt_breakpoint_ops, internal_breakpoint_ops)
3214         (momentary_breakpoint_ops): Don't statically initialize.
3215         (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3216         Delete.
3217         (tracepoint_insert_location, tracepoint_remove_location)
3218         (tracepoint_check_status, tracepoint_works_in_software_mode)
3219         (tracepoint_print_it): Delete.
3220         (tracepoint_breakpoint_ops): Don't statically initialize.
3221         (initialize_breakpoint_ops): New.
3222         (_initialize_breakpoint): Call it.
3223         * breakpoint.h (null_re_set, null_works_in_software_mode)
3224         (null_resources_needed, null_check_status, null_print_one_detail):
3225         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3226         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3227         (bkpt_check_status, bkpt_resources_needed)
3228         (bkpt_works_in_software_mode, bkpt_print_it)
3229         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3230         Delete declarations.
3231         (initialize_breakpoint_ops): Declare.
3232
3233 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
3234
3235         * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3236         (momentary_bkpt_print_it): Simplify.
3237
3238 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
3239
3240         Split internal, momentary and user breakpoints breakpoint_ops
3241         tables.
3242
3243         * breakpoint.c (internal_breakpoint_ops)
3244         (momentary_breakpoint_ops): Forward declare.
3245         (create_internal_breakpoint): Add new breakpoint_ops parameter.
3246         Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3247         (create_overlay_event_breakpoint)
3248         (create_std_terminate_master_breakpoint)
3249         (create_exception_master_breakpoint): Create breakpoints with
3250         internal_breakpoint_ops vtable.
3251         (set_longjmp_breakpoint): Create momentary breakpoints with
3252         momentary_breakpoint_ops vtable, using
3253         momentary_breakpoint_from_master.
3254         (create_thread_event_breakpoint, create_jit_event_breakpoint)
3255         (create_solib_event_breakpoint): Create breakpoints with
3256         internal_breakpoint_ops vtable.
3257         (set_momentary_breakpoint): Create breakpoints with
3258         momentary_breakpoint_ops vtable.
3259         (momentary_breakpoint_from_master): New, factored out from
3260         clone_momentary_breakpoint.
3261         (clone_momentary_breakpoint): Adjust.
3262         (watch_command_1): Create scope breakpoints with
3263         momentary_breakpoint_ops vtable.
3264         (bkpt_re_set): Remove handling of internal and momentary
3265         breakpoints.
3266         (bkpt_print_mention, bkpt_print_recreate): New.
3267         (bkpt_breakpoint_ops): Adjust.
3268         (internal_bkpt_re_set, internal_bkpt_check_status)
3269         (internal_bkpt_print_it, internal_bkpt_print_mention)
3270         (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
3271         (momentary_bkpt_re_set, momentary_bkpt_check_status)
3272         (momentary_bkpt_print_it, momentary_bkpt_print_mention)
3273         (momentary_bkpt_print_recreate): New.
3274         (momentary_breakpoint_ops): New.
3275
3276 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
3277
3278         Implement most breakpoint_ops methods for all breakpoint types,
3279         and move the default handlings to the proper callbacks.
3280
3281         * breakpoint.c (update_watchpoint): Always call the breakpoint's
3282         works_in_software_mode method.
3283         (insert_bp_location): Go through breakpoint_ops->insert_location
3284         for software and hardware watchpoints.
3285         (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
3286         breakpoint_ops.
3287         (remove_breakpoint_1): Go through breakpoint_ops->remove_location
3288         for software and hardware watchpoints.
3289         (print_it_typical): Delete.
3290         (print_bp_stop_message): Always call the breakpoint_ops->print_it
3291         method.
3292         (watchpoint_check): Adjust comment.
3293         (bpstat_check_location): Simply always call the breakpoint's
3294         breakpoint_hit method.
3295         (bpstat_stop_status): Always call the breakpoint's check_status
3296         method.  Remove special cases for watchpoints and internal event
3297         breakpoints from here (moved to the check_status implementations).
3298         (print_one_breakpoint_location): Assume b->ops is never NULL.
3299         Remove static tracepoint marker id printing from here (moved to
3300         the print_one_detail callback implementation of tracepoints).
3301         (init_bp_location): Assert OPS is never NULL.
3302         (allocate_bp_location): Always call the breakpoint's
3303         allocate_location method, and remove the default code from here.
3304         (free_bp_location): Always call the location's dtor method, and
3305         remove the default code from here.
3306         (init_raw_breakpoint_without_location): Assert OPS is never NULL.
3307         (set_raw_breakpoint_without_location): Add new breakpoint_ops
3308         parameter.  Pass it down.
3309         (set_raw_breakpoint): Ditto.
3310         (print_it_catch_fork): Adjust to take a bpstat as argument.
3311         (catch_fork_breakpoint_ops): Install methods.
3312         (print_it_catch_vfork): Adjust to take a bpstat as argument.
3313         (catch_vfork_breakpoint_ops): Install methods.
3314         (dtor_catch_syscall): Call the base dtor.
3315         (print_it_catch_syscall): Adjust to take a bpstat as argument.
3316         (catch_syscall_breakpoint_ops): Install methods.
3317         (dtor_catch_exec): Call the base dtor.
3318         (print_it_catch_exec): Adjust to take a bpstat as argument.
3319         (catch_exec_breakpoint_ops): Install methods.
3320         (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
3321         the breakpoint's resources_needed method, and remove the default
3322         code from here.
3323         (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
3324         breakpoint_ops.
3325         (clone_momentary_breakpoint): Clone the original's ops.
3326         (mention): Always call the breakpoint's print_mention method, and
3327         remove the default code from here.
3328         (create_breakpoint_sal): Adjust to pass the ops to
3329         set_raw_breakpoint rather than setting it manually.
3330         (create_breakpoint): Assert ops is never NULL.  Adjust to pass the
3331         ops to set_raw_breakpoint_without_location rather than setting it
3332         manually.
3333         (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
3334         (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
3335         (ranged_breakpoint_ops): Install methods.
3336         (break_range_command): Adjust to pass the ops to
3337         set_raw_breakpoint rather than setting it manually.
3338         (re_set_watchpoint, breakpoint_hit_watchpoint)
3339         (check_status_watchpoint, resources_needed_watchpoint)
3340         (works_in_software_mode_watchpoint, print_it_watchpoint)
3341         (print_mention_watchpoint, print_recreate_watchpoint): New
3342         functions.
3343         (watchpoint_breakpoint_ops): Install new methods.
3344         (print_it_masked_watchpoint): New function.
3345         (masked_watchpoint_breakpoint_ops): Install new methods.
3346         (watch_command_1): Adjust to pass the right breakpoint_ops to
3347         set_raw_breakpoint_without_location rather than setting it
3348         manually later.  Record the current pspace.
3349         (print_it_exception_catchpoint): Adjust to take a bpstat as
3350         argument.
3351         (gnu_v3_exception_catchpoint_ops): Install new methods.
3352         (say_where): New function.
3353         (null_re_set, null_check_status, null_works_in_software_mode)
3354         (null_resources_needed, null_print_one_detail, bp_location_dtor):
3355         New functions.
3356         (bp_location_ops): New global.
3357         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3358         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3359         (bkpt_check_status, bkpt_resources_needed)
3360         (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
3361         (bkpt_print_recreate): New functions.
3362         (bkpt_breakpoint_ops): New global.
3363         (tracepoint_re_set, tracepoint_insert_location)
3364         (tracepoint_remove_location, tracepoint_breakpoint_hit)
3365         (tracepoint_check_status, tracepoint_works_in_software_mode)
3366         (tracepoint_print_it, tracepoint_print_one_detail)
3367         (tracepoint_print_mention, tracepoint_print_recreate): New
3368         functions.
3369         (tracepoint_breakpoint_ops): New global.
3370         (delete_breakpoint): Always call the breakpoint's dtor method, and
3371         remove the default handling from here.
3372         (breakpoint_re_set_default): Make static.
3373         (breakpoint_re_set_one): Always call the breakpoints re_set
3374         method, and remove the default handling from here.
3375         (trace_command, ftrace_command, strace_command)
3376         (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
3377         to create_breakpoint.
3378         (save_breakpoints): Always call the breakpoint's print_recreate
3379         method, and remove the default handling from here.
3380
3381         * ada-lang.c (dtor_exception): Call the base dtor.
3382         (re_set_exception): Call the base method.
3383         (print_it_exception, print_it_catch_exception): Adjust to take a
3384         bpstat as argument.
3385         (catch_exception_breakpoint_ops): Install methods.
3386         (print_it_catch_exception_unhandled): Adjust to take a bpstat as
3387         argument.
3388         (catch_exception_unhandled_breakpoint_ops): Install methods.
3389         (print_it_catch_assert): Adjust to take a bpstat as argument.
3390         (catch_assert_breakpoint_ops): Install methods.
3391
3392         * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
3393         to take a bpstat as argument.
3394         (enum print_stop_action): Add describing comments to each enum
3395         value.
3396         (breakpoint_re_set_default): Delete declaration.
3397         (null_re_set, null_works_in_software_mode, null_resources_needed)
3398         (null_check_status, null_print_one_detail): Declare.
3399         (bkpt_breakpoint_ops): Declare.
3400         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3401         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3402         (bkpt_check_status, bkpt_resources_needed)
3403         (bkpt_works_in_software_mode, bkpt_print_it)
3404         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3405         Declare.
3406
3407         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
3408         bkpt_breakpoint_ops.
3409         * python/py-breakpoint.c (bppy_init): Ditto.
3410
3411 2011-07-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
3412
3413         * MAINTAINERS (Write After Approval): Add myself to the list.
3414
3415 2011-07-23  Paul Pluzhnikov  <ppluzhnikov@google.com>
3416
3417         * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
3418
3419 2011-07-22  Pedro Alves  <pedro@codesourcery.com>
3420
3421         * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
3422         (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3423         (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
3424         adjust.
3425         (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
3426         (struct i386_debug_reg_state): New.
3427         (i386_init_dregs): New.
3428         (dr_mirror): New.
3429         (i386_cleanup_dregs): Use i386_init_dregs.
3430         (i386_show_dr): Add state parameter and adjust.
3431         (i386_insert_aligned_watchpoint): Ditto.  Don't pass the info to
3432         the inferior here.
3433         (i386_remove_aligned_watchpoint): Likewise.
3434         (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
3435         (i386_update_inferior_debug_regs): New.
3436         (i386_insert_watchpoint): Work on a local mirror of the debug
3437         registers, and only update the inferior on success.
3438         (i386_remove_watchpoint): Ditto.
3439         (i386_region_ok_for_watchpoint): Adjust.
3440         (i386_stopped_data_address): Adjust.
3441         (i386_insert_hw_breakpoint): Adjust.
3442         (i386_remove_hw_breakpoint): Adjust.
3443
3444 2011-07-22  Tom Tromey  <tromey@redhat.com>
3445
3446         * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
3447         from amd64_pseudo_register_read.  Change arguments.  Call
3448         mark_value_bytes_unavailable when needed.
3449         (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
3450         set_gdbarch_pseudo_register_read.
3451         * sentinel-frame.c (sentinel_frame_prev_register): Use
3452         regcache_cooked_read_value.
3453         * regcache.h (regcache_cooked_read_value): Declare.
3454         * regcache.c (regcache_cooked_read_value): New function.
3455         (regcache_cooked_read): Call
3456         gdbarch_pseudo_register_read_value if available.
3457         * i386-tdep.h (i386_pseudo_register_read_value): Declare.
3458         (i386_pseudo_register_read): Remove.
3459         * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
3460         i386_pseudo_register_read.  Change arguments.  Call
3461         mark_value_bytes_unavailable when needed.
3462         (i386_pseudo_register_read_value): New function.
3463         (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
3464         not set_gdbarch_pseudo_register_read.
3465         * gdbarch.sh (pseudo_register_read_value): New method.
3466         * gdbarch.c, gdbarch.h: Rebuild.
3467         * findvar.c (value_from_register): Call get_frame_register_value.
3468
3469 2011-07-22  Phil Muldoon  <pmuldoon@redhat.com>
3470
3471         * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
3472         get_prefix.
3473         (display_gdb_prompt): Likewise.
3474         (change_annotation_level): Likewise.
3475         (push_prompt): Likewise.
3476         (pop_prompt): Likewise.
3477         (handle_stop_sig): Use get_prompt with a level.
3478         * top.c (command_loop): Use get_prompt with a level.
3479         (set_async_annotation_level): Use set_prompt with a level.
3480         (get_prefix): New function.
3481         (set_prefix): Ditto.
3482         (set_suffix): Ditto.
3483         (get_suffix): Ditto.
3484         (get_prompt): Accept a level argument.
3485         (set_prompt): Accept a level argument.  Free old prompts.  Set
3486         new_async_prompt if level is 0.
3487         (init_main): Use set_prompt with a level.  Do not set
3488         new_async_prompt.
3489         * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
3490         * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
3491         Modify set_prompt, get_prompt to account for levels.
3492         * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
3493         level.
3494         * python/python.c (before_prompt_hook): Use set_prompt.
3495         
3496 2011-07-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
3497
3498         * defs.h: Add guard against inclusion in gdbserver.
3499         (struct ptid, ptid_t): Move to common/ptid.h.
3500         (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
3501         xsnprintf, internal_error): Move to common/common-utils.h.
3502         (nomem): Delete.
3503         * gdb_assert.h: Move into common/ sub-directory.
3504         * gdb_locale.h: Ditto.
3505         * gdb_dirent.h: Ditto.
3506         * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
3507         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
3508         Move into common/ptid.h.
3509         * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
3510         (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
3511         Change nomem to malloc_failure.
3512         * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
3513         * utils.c (nomem): Rename to malloc_failure.
3514         (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
3515         xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
3516         (gdb_buildargv): Change nomem to malloc_failure.
3517         * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
3518         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
3519         ptid_is_pid): Move into common/ptid.c.
3520         (initialize_infrun): Delete initialization of null_ptid and
3521         minus_one_ptid.
3522         * linux-nat.c (linux_nat_xfer_osdata): Defer to
3523         linux_common_xfer_osdata.
3524         * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
3525         common/ptid.c and common/buffer.c.
3526         (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
3527         common/ptid.h, common/buffer.h and common/linux-osdata.h.
3528         (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
3529         (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
3530         rules.
3531         * common/gdb_assert.h: New.
3532         * common/gdb_dirent.h: New.
3533         * common/gdb_locale.h: New.
3534         * common/buffer.c: New.
3535         * common/buffer.h: New.
3536         * common/ptid.c: New.
3537         * common/ptid.h: New.
3538         * common/xml-utils.c: New.
3539         * common/xml-utils.h: New.
3540         * common/common-utils.c: New.
3541         * common/common-utils.h: New.
3542         * common/linux-osdata.c: New.
3543         * common/linux-osdata.h: New.
3544         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
3545         * config/arm/linux.mh (NATDEPFILES): Ditto.
3546         * config/i386/linux.mh (NATDEPFILES): Ditto.
3547         * config/i386/linux64.mh (NATDEPFILES): Ditto.
3548         * config/ia64/linux.mh (NATDEPFILES): Ditto.
3549         * config/m32r/linux.mh (NATDEPFILES): Ditto.
3550         * config/m68k/linux.mh (NATDEPFILES): Ditto.
3551         * config/mips/linux.mh (NATDEPFILES): Ditto.
3552         * config/pa/linux.mh (NATDEPFILES): Ditto.
3553         * config/powerpc/linux.mh (NATDEPFILES): Ditto.
3554         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
3555         * config/s390/s390.mh (NATDEPFILES): Ditto.
3556         * config/sparc/linux.mh (NATDEPFILES): Ditto.
3557         * config/sparc/linux64.mh (NATDEPFILES): Ditto.
3558         * config/xtensa/linux.mh (NATDEPFILES): Ditto.
3559
3560 2011-07-21  Matt Rice  <ratmice@gmail.com>
3561
3562         * NEWS: Add info macros and info definitions commands.
3563
3564 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
3565
3566         * NEWS: Document Python prompt substitution hook.
3567
3568 2011-07-18  Matt Rice  <ratmice@gmail.com>
3569
3570         PR macros/12999
3571         * macrotab.h (macro_callback_fn): Add new arguments to callback.
3572         * macrotab.c (foreach_macro): Ditto.
3573         (foreach_macro_in_scope): Ditto.
3574         * macrocmd.c (print_macro_callback): New function.
3575         (info_macro_command): Move some code to print_macro_definition.
3576         (print_macro_definition): New function.
3577         (print_one_macro): Add new arguments to callback.
3578         (info_definitions_command): New function.
3579         (info_macros_command): Ditto.
3580         (_initialize_macrocmd): Add info macros and info definitions commands.
3581         * symtab.c (add_macro_name): Add new arguments to callback.
3582
3583 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
3584             Tom Tromey  <tromey@redhat.com>
3585
3586         * top.c (set_prompt): Rewrite to free previous prompt, free
3587         asynch_new_prompt and set both on new prompts.
3588         * event-top.c (display_gdb_prompt): Add prompt substitution
3589         logic.
3590         * python/python.c (before_prompt_hook): New function.
3591
3592 2011-07-20  Matt Rice  <ratmice@gmail.com>
3593
3594         * bfin-tdep.c (bfin_extract_return_value): Fix swapped
3595         arguments to store_unsigned_integer.
3596
3597 2011-07-20  Tom Tromey  <tromey@redhat.com>
3598
3599         * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
3600         in some declaration-only cases.
3601
3602 2011-07-18  Tom Tromey  <tromey@redhat.com>
3603
3604         PR symtab/12984:
3605         * dwarf2read.c (dwarf2_section_info_def): New typedef.
3606         (struct dwarf2_per_objfile) <types>: Change to a VEC.
3607         (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
3608         <debug_type_section>: New field.
3609         (dwarf2_locate_sections): Push .debug_types sections onto VEC.
3610         (load_cu): Use appropriate section.
3611         (create_signatured_type_table_from_index): Add 'section'
3612         argument.
3613         (dwarf2_read_index): Only allow a single .debug_types section.
3614         (dw2_get_file_names): Use appropriate section.
3615         (read_type_comp_unit_head): Add 'section' argument.
3616         (create_debug_types_hash_table): Loop over all .debug_types
3617         sections.
3618         (init_cu_die_reader): Use appropriate section.
3619         (process_psymtab_comp_unit, load_partial_comp_unit)
3620         (load_full_comp_unit, read_die_and_children, find_partial_die)
3621         (lookup_die_type, determine_prefix, follow_die_offset): Update.
3622         (lookup_signatured_type_at_offset): Add 'section' argument.
3623         (read_signatured_type_at_offset): Add 'sect' argument.
3624         (read_signatured_type): Use appropriate section.
3625         (set_die_type, get_die_type_at_offset): Update.
3626         (dwarf2_per_objfile_free): Free all .debug_types sections, and
3627         VEC.
3628         (write_psymtabs_to_index): Don't allow index with more than one
3629         .debug_types section.
3630
3631 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3632
3633         Fix crash if referenced CU is aged out.
3634         * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
3635         xfree of block.data.
3636         (indirect_pieced_value): New variable back_to, use to for xfree of
3637         baton.data.
3638         (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
3639         block.data.
3640         * dwarf2read.c (dwarf2_find_base_address): New prototype.
3641         (load_cu): New function from ...
3642         (dw2_do_instantiate_symtab): ... the code here ...
3643         (process_full_comp_unit): ... and here.
3644         (dwarf2_fetch_die_location_block): Call load_cu first.  Call xmemdup on
3645         retval.data.
3646
3647 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3648
3649         * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
3650         type.
3651
3652 2011-07-19  Gary Benson  <gbenson@redhat.com>
3653
3654         * infrun.c (struct execution_control_state): New member
3655         stop_func_filled_in.
3656         (clear_stop_func, fill_in_stop_func): New functions.
3657         (handle_inferior_event): Call clear_stop_func rather than
3658         manipulating the execution control state directly.
3659         Call fill_in_stop_func lazily as required rather than
3660         directly calling find_pc_partial_function in all cases.
3661
3662 2011-07-18  Tom Tromey  <tromey@redhat.com>
3663
3664         * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
3665         checking for variable-sized array.
3666
3667 2011-07-18  Jean-Charles Delay  <delay@adacore.com>
3668
3669         * varobj.h (varobj_languages): Add vlang_ada definition to the list
3670         of supported languages.
3671         * varobj.c: Add top definitions and basic implementation of the
3672         following callbacks: ada_number_of_children, ada_name_of_variable,
3673         ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
3674         ada_value_of_child, ada_type_of_child, ada_value_of_variable.
3675         (languages): Register Ada-specific callbacks.
3676         (variable_language): Add the Ada case in the language setter switch.
3677
3678 2011-07-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3679
3680         * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
3681
3682 2011-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3683
3684         Code cleanup.
3685         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
3686         (execute_stack_op): Use dwarf2_frame_ctx_funcs
3687         * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
3688         (execute_stack_op): Access read_reg, get_frame_base, read_mem,
3689         get_frame_cfa, get_tls_address and dwarf_call via funcs.
3690         * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
3691         (struct dwarf_expr_context_funcs): New, move here methods from ...
3692         (struct dwarf_expr_context): ... here.  New fields funcs.
3693         * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
3694         (dwarf_expr_ctx_funcs): New.
3695         (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
3696         (needs_frame_dwarf_call): Access get_frame_pc via funcs.
3697         (needs_frame_ctx_funcs): New.
3698         (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
3699
3700 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
3701
3702         * MAINTAINERS (Write After Approval): Add myself to the list.
3703
3704 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
3705
3706         * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
3707         that CIE pointer of an FDE really points to a CIE .
3708
3709 2011-07-15  Hui Zhu  <teawater@gmail.com>
3710
3711         * remote.c (remote_get_trace_status): Add comments.
3712
3713 2011-07-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
3714
3715         Code cleanup - constify struct lval_funcs.
3716         * dwarf2loc.c (pieced_value_funcs): Make it const.
3717         * infrun.c (siginfo_value_funcs): Likewise.
3718         * opencl-lang.c (opencl_value_funcs): Likewise.
3719         * valops.c (value_assign, value_ind): Make the funcs variable const.
3720         * value.c (struct value): Make location.computed.funcs target const.
3721         Rearrange the comments.
3722         (allocate_computed_value): Make the funcs parameter target const.
3723         (value_computed_funcs): Return the funcs target const.
3724         (value_free, value_copy, set_value_component_location): Make the funcs
3725         variable const.
3726         * value.h (allocate_computed_value): Make the funcs parameter target
3727         const.
3728         (value_computed_funcs): Return the funcs target const.
3729         * windows-tdep.c (tlb_value_funcs): Make it const.
3730
3731 2011-07-14  Hui Zhu  <teawater@gmail.com>
3732
3733         * remote.c (remote_get_trace_status): Initialize p.
3734
3735 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3736
3737         Work around kgdb.
3738         * remote.c (remote_get_trace_status): New variable ex.  Put
3739         remote_get_noisy_reply into TRY_CATCH.  Call exception_fprintf for it.
3740
3741 2011-07-13  Tom Tromey  <tromey@redhat.com>
3742
3743         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
3744         value_from_contents for final conversion.
3745
3746 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3747
3748         Code cleanup.
3749         * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
3750         Indent prototypes so they do not get into tags.
3751
3752 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
3753
3754         Code cleanup making also optimized out values lazy.
3755         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
3756         allocate_optimized_out_value.  Twice.
3757         (loclist_read_variable)  Use allocate_optimized_out_value.  Once.
3758         * findvar.c (read_var_value): Likewise.
3759         * value.c (allocate_optimized_out_value): New function.
3760         * value.h (allocate_optimized_out_value): New declaration.
3761
3762 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
3763
3764         Fix occasional crash of CTRL-C during DWARF read in.
3765         * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
3766
3767 2011-07-11  Tom Tromey  <tromey@redhat.com>
3768
3769         * regcache.c (struct regcache_descr): Fix typo.
3770         * i387-tdep.c (i387_supply_xsave): Fix typo.
3771
3772 2011-07-11  Tom Tromey  <tromey@redhat.com>
3773
3774         * dwarf2read.c (handle_DW_AT_stmt_list): New function.
3775         (read_file_scope, read_type_unit_scope): Use it.
3776
3777 2011-07-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3778
3779         * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
3780         `int'.
3781
3782 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
3783
3784         PR python/12438
3785         * python/python.c: Set gdbpy_should_print_stack default to off.
3786         (set_python): Deprecate maint set python print-stack to
3787         class_deprecate.
3788         (_initialize_python): Deprecate maint set/show python print-stack.
3789         Add new prefix command, python.  Add new setting, print-backtrace.
3790         * NEWS: Document set python print-stack.  Document default change.
3791
3792 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
3793
3794         * python/py-inferior.c (infpy_dealloc): New function.
3795         (inferior_to_inferior_object): Return a new object, or a
3796         new reference to the existing object.
3797         (find_thread_object): Cleanup references to inferior.
3798         (delete_thread_object): Ditto.
3799         * python/py-infthread.c (create_thread_object): Do not increment
3800         inferior reference count.
3801
3802 2011-07-08  Tom Tromey  <tromey@redhat.com>
3803
3804         * dwarf2loc.c (locexpr_regname): New function.
3805         (locexpr_describe_location_piece): Use it.
3806         (disassemble_dwarf_expression): Add per_cu argument.  Use
3807         locexpr_regname.
3808         <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
3809         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3810         New cases.
3811         (locexpr_describe_location_1): Add per_cu argument.
3812         (locexpr_describe_location): Update.
3813         (loclist_describe_location): Update.
3814
3815 2011-07-08  Tom Tromey  <tromey@redhat.com>
3816
3817         * dwarf2expr.c (execute_stack_op): Add QUIT.
3818
3819 2011-07-07  Hui Zhu  <teawater@gmail.com>
3820
3821         Revert:
3822         2011-07-06  Hui Zhu  <teawater@gmail.com>
3823         * remote.c (remote_start_remote): Add TRY_CATCH for
3824         remote_get_trace_status.
3825         * tracepoint.c (disconnect_tracing): Ditto.
3826
3827 2011-07-07  Andrew Burgess  <aburgess@broadcom.com>
3828
3829         * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
3830         variables as signed, not unsigned.
3831
3832 2011-07-06  Joel Brobecker  <brobecker@adacore.com>
3833
3834         * jit.c (jit_inferior_init): Reformat forward declaration.
3835
3836 2011-07-06  Matt Rice  <ratmice@gmail.com>
3837
3838         * MAINTAINERS (Write After Approval): Add myself to the list.
3839
3840 2011-07-06  Hui Zhu  <teawater@gmail.com>
3841
3842         * remote.c (remote_start_remote): Add TRY_CATCH for
3843         remote_get_trace_status.
3844         * tracepoint.c (disconnect_tracing): Ditto.
3845
3846 2011-07-05  Tom Tromey  <tromey@redhat.com>
3847
3848         * symtab.c (operator_chars): Now static.
3849         * linespec.c (operator_chars): Don't declare.
3850
3851 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3852
3853         * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
3854
3855 2011-07-05  Tom Tromey  <tromey@redhat.com>
3856
3857         * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
3858         * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
3859         (TYPE_CPLUS_REALLY_JAVA): New macro.
3860         * dwarf2read.c (process_structure_scope): Set
3861         TYPE_CPLUS_REALLY_JAVA.
3862
3863 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3864
3865         * ada-lang.c: Fix typos.
3866         * amd64-tdep.c: Likewise.
3867         * breakpoint.c: Likewise.
3868         * cli/cli-decode.c: Likewise.
3869         * findcmd.c: Likewise.
3870         * inline-frame.c: Likewise.
3871         * mi/mi-main.c: Likewise.
3872         * minsyms.c: Likewise.
3873         * monitor.c: Likewise.
3874         * monitor.h: Likewise.
3875         * prologue-value.c: Likewise.
3876         * reverse.c: Likewise.
3877         * s390-tdep.c: Likewise.
3878
3879 2011-07-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
3880
3881         * jit.c (jit_inferior_init): Forward declare.
3882         (jit_breakpoint_re_set_internal): Call jit_inferior_init.
3883
3884 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
3885
3886         * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
3887
3888 2011-07-04  Tristan Gingold  <gingold@adacore.com>
3889
3890         * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
3891         (tcb_fieldno): Add activation_link field.
3892         (get_known_tasks_addr): Moved and rewritten.
3893         (get_tcb_types_info): Set activation_link field.
3894         (read_known_tasks_array): Add parameter.  Rewritten.
3895         (read_known_tasks_list): New function.
3896         (read_known_tasks): New function.
3897         (ada_build_task_list): Call read_known_tasks instead of
3898         read_known_tasks_array.
3899         * ravenscar-thread.c: Add first_task_name constant.
3900         (has_ravenscar_runtime): Check for task list too.
3901
3902 2011-07-04  Tristan Gingold  <gingold@adacore.com>
3903
3904         * ada-tasks.c: Renames fieldno to actb_fieldno.
3905         (ada_get_task_number): Indentation.
3906         (get_tcb_types_info): Remove all parameters.  Write directly
3907         the globals.
3908         (ptid_from_atcb_common): Adjust.
3909         (read_atcb): Adjust.
3910
3911 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3912
3913         * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
3914
3915 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3916
3917         * ui-out.c (ui_out_field_core_addr): Mention that the function
3918         description is in the header file.
3919         * ui-out.h (ui_out_field_core_addr): Document function.
3920
3921 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3922
3923         * ui-out.c (ui_out_get_field_separator): Remove unused function.
3924         * ui-out.h (ui_out_get_field_separator): Remove prototype.
3925
3926 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3927
3928         * symtab.c (expand_line_sal): Remove empty line.
3929
3930 2011-07-04  Thomas Schwinge  <thomas@schwinge.name>
3931
3932         * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
3933         same way as ELFOSABI_NONE.
3934         <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
3935
3936 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3937
3938         * breakpoint.c: Fix typos in comments.
3939         * linespec.c: Likewise.
3940         * symtab.c: Likewise.
3941
3942 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
3943
3944         * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
3945         section in separate object files.
3946
3947 2011-07-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3948
3949         Fix false GCC warning.
3950         * linespec.c (decode_line_1): Initialize values.
3951
3952 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3953
3954         * linespec.c (find_method): Accept the function type automatically only
3955         if it was specified with parameter types.
3956
3957 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3958
3959         Stop on first linespec terminator instead of eating what we can.
3960         * linespec.c (is_linespec_boundary): New function.
3961         (name_end): Remove function.
3962         (keep_name_info): New parameter on_boundary, replace the body.
3963         (decode_line_1): Provide the parameter to keep_name_info.
3964         (decode_compound): Likewise.  Drop the trailing java return type
3965         handling.  Twice.
3966
3967 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3968
3969         Fall back linespec to minimal symbols.
3970         * linespec.c (decode_line_1): New variable ex, saved_argptr.  Protect
3971         decode_compound by TRY_CATCH, fall back on minsyms if it failed.
3972         (find_method, symbol_found): Change error to cplusplus_error.
3973
3974 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3975
3976         * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3977
3978 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
3979             Tom Tromey  <tromey@redhat.com>
3980
3981         * dwarf2read.c (check_physname): New variable.
3982         (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
3983         (show_check_physname): New function.
3984         (_initialize_dwarf2_read): Add `check-physname' for check_physname.
3985
3986 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
3987
3988         * machoread.c (macho_symfile_read): Delete OBE comment.
3989
3990 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
3991
3992         * machoread.c (struct macho_oso_data): Delete.
3993         (current_oso): Delete.
3994         (macho_relocate_common_syms): New function, mostly extracted
3995         out of
3996         (macho_add_oso_symfile): Call macho_relocate_common_syms.
3997         Remove code that sets and unset current_oso.
3998         (macho_symfile_relocate): Delete handling of common symbols,
3999         now moved to macho_relocate_common_syms.
4000
4001 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4002
4003         * darwin-nat.c (darwin_ptrace): Add documentation.
4004         Set errno to zero before calling ptrace.  If ptrace returns
4005         -1 and errno is zero, then change then return zero.
4006         (darwin_kill_inferior): Issue a warning instead of triggering
4007         a failed assertion when the PT_KILL ptrace operations returned
4008         nonzero.
4009
4010 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4011
4012         * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4013         only when inf->private->no_ptrace.
4014
4015 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4016
4017         * ada-lang.c (print_it_exception): Print temporary catchpoints
4018         as "Temporary catchpoint".
4019         (print_mention_exception): Likewise.
4020
4021 2011-07-01  Tom Tromey  <tromey@redhat.com>
4022
4023         * jv-lang.c (java_language_defn): Use java_printchar,
4024         java_printstr.
4025         (java_get_encoding): New function.
4026         (java_emit_char): Use generic_emit_char.
4027         (java_printchar): New function.
4028         (java_printstr): Likewise.
4029
4030 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4031
4032         * ada-typeprint.c (print_record_type): If unable to decode
4033         the name of the parent type, use the encoded name.
4034
4035 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
4036
4037         * ada-typeprint.c (ada_print_type): Fix both PAD type and
4038         pointer to constrained packed array type output.
4039         * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4040         packed array output.
4041
4042 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
4043
4044         * ada-typeprint.c (print_array_type): removed if condition on show
4045         being negative for bounds printing.
4046
4047 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4048
4049         * ada-lang.c (ada_identical_enum_types_p): New function.
4050         (symbols_are_identical_enums): New function.
4051         (remove_extra_symbols): Do nothing if NSYMS < 2.
4052         Use symbols_are_identical_enums.
4053
4054 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4055
4056         * ada-valprint.c (ada_value_print): Handle typedefs.
4057
4058 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4059
4060         * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4061
4062 2011-07-01  Eric Botcazou  <ebotcazou@adacore.com>
4063
4064         * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4065         (decode_constrained_packed_array): Likewise.
4066         (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4067
4068 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4069
4070         * ada-exp.y (convert_char_literal): Handle typedef types.
4071
4072 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
4073
4074         * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4075
4076 2011-06-30  Tom Tromey  <tromey@redhat.com>
4077
4078         * varobj.c (varobj_create): Call do_cleanups on early exit path.
4079         * valops.c (find_overload_match): Call do_cleanups on early exit
4080         path.
4081         * solib.c (solib_find): Call do_cleanups on early exit path.
4082
4083 2011-06-30  Tom Tromey  <tromey@redhat.com>
4084
4085         * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4086         * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4087         return paths.  Defer final do_cleanups until last return.
4088         * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4089         early return.
4090
4091 2011-06-30  Tom Tromey  <tromey@redhat.com>
4092
4093         * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4094
4095 2011-06-30  Andrew Burgess  <aburgess@broadcom.com>
4096
4097         * MAINTAINERS (Write After Approval): Add myself to the list.
4098
4099 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
4100
4101         Disable epilogue unwinders on recent GCCs.
4102         * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4103         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4104         * dwarf2read.c (process_full_comp_unit): Initialize
4105         EPILOGUE_UNWIND_VALID.
4106         * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4107         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4108         * symtab.h (struct symtab): New field epilogue_unwind_valid.
4109
4110 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
4111
4112         Code cleanup - reformatting.
4113         * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4114         (producer_is_gcc_ge_4): ... here, change the return value.
4115         (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4116         interpretation.
4117
4118 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
4119
4120         Fix non-only rename list for Fortran modules import.
4121         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4122         cp_add_using_directive caller.
4123         (cp_add_using_directive): New parameter excludes, describe it.  New
4124         variables ix and param.  Compare if also excludes match.  Allocate NEW
4125         with variable size, initialize EXCLUDES there.
4126         (cp_lookup_symbol_imports): New variable excludep, test
4127         current->EXCLUDES with it.
4128         * cp-support.h: Include vec.h.
4129         (struct using_direct): New field excludes, describe it.
4130         (DEF_VEC_P (const_char_ptr)): New.
4131         (cp_add_using_directive): New parameter excludes.
4132         * defs.h (const_char_ptr): New typedef.
4133         * dwarf2read.c (read_import_statement): New variables child_die,
4134         excludes and cleanups, read in excludes.
4135         (read_namespace): Adjust the cp_add_using_directive caller.
4136
4137 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
4138
4139         Code cleanup.
4140         * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4141         negative comparisons.
4142
4143 2011-06-29  André Pönitz  <andre.poenitz@nokia.com>
4144
4145         * mi/mi-main.c (mi_cmd_list_features): Emit
4146         breakpoint-notifications.
4147
4148 2011-06-29  Tom Tromey  <tromey@redhat.com>
4149
4150         PR fortran/10036:
4151         * valprint.h (generic_emit_char, generic_printstr): Declare.
4152         * valprint.c (wchar_printable, append_string_as_wide)
4153         (print_wchar): Move from c-lang.c.
4154         (generic_emit_char): New function; mostly taken from c_emit_char.
4155         (generic_printstr): New function; mostly taken from c_printstr.
4156         * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4157         represented as arrays.
4158         <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4159         type.
4160         * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4161         identically to TYPE_CODE_INT.
4162         * f-lang.c (f_get_encoding): New function.
4163         (f_emit_char): Use generic_emit_char.
4164         (f_printchar): Replace comment.
4165         (f_printstr): Use generic_printstr.
4166         * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4167         "character" types specially.
4168         <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4169         for Fortran.
4170         * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4171         Move to valprint.c
4172         (c_emit_char): Call generic_emit_char.
4173         (c_printstr): Call generic_printstr.
4174
4175 2011-06-29  Gary Benson  <gbenson@redhat.com>
4176
4177         * breakpoint.c (bpstat_what): Removed duplicated case.
4178
4179 2011-06-28  Tom Tromey  <tromey@redhat.com>
4180
4181         * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4182
4183 2011-06-27  Tom Tromey  <tromey@redhat.com>
4184
4185         * valops.c (find_overload_match): Call do_cleanups before early
4186         return.
4187         * top.c (execute_command): Call do_cleanups before early return.
4188         (command_loop): Likewise.
4189         * stack.c (backtrace_command): Make a null cleanup early.  Don't
4190         conditionally call do_cleanups.
4191         * python/py-value.c (TRY_CATCH): Move cleanup handling into
4192         TRY_CATCH.
4193         * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4194         so cleanups are always run.
4195         * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4196         * findcmd.c (parse_find_args): Call do_cleanups on early return
4197         path.
4198         * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4199         Don't conditionally call do_cleanups.
4200         * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4201         later.
4202
4203 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4204
4205         * MAINTAINERS (Write After Approval): Use default email address.
4206
4207 2011-06-27  Joel Brobecker  <brobecker@adacore.com>
4208
4209         * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4210
4211 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
4212
4213         * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4214         saved_regs_mask and copied_regs_mask fields.
4215         (sparc_record_save_insn): New prototype.
4216         * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4217         (sparc_record_save_insn): New function.
4218         (sparc_analyze_prologue): Add head comment.  Recognize store insns
4219         of call-saved registers.  Use OFFSET consistently.  Recognize flat
4220         frames and cache their settings.
4221         (sparc32_skip_prologue): Handle flat frames.
4222         (sparc_frame_cache): Add frame_offset to the base address.
4223         (sparc32_frame_cache): Adjust to new frame description.
4224         (sparc32_frame_prev_register): Likewise.
4225         * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4226         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4227         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4228         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4229         frame by calling sparc_record_save_insn.
4230         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4231         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4232         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4233
4234 2011-06-27  Tristan Gingold  <gingold@adacore.com>
4235
4236         * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4237         field by map_addr and map_len.
4238         (dwarf2_read_section): Adjust for the new bfd_mmap api.
4239         (munmap_section_buffer): Likewise.
4240
4241 2011-06-24  Tom Tromey  <tromey@redhat.com>
4242
4243         * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4244         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4245         * python/python.c (gdbpy_parameter): Make 'arg' const.
4246         (execute_gdb_command): Likewise.
4247         (gdbpy_decode_line): Likewise.  Copy it.
4248         (gdbpy_parse_and_eval): Make 'expr_string' const.  Copy it.
4249         (gdbpy_write): Make 'arg' const.
4250         * python/py-type.c (typy_lookup_typename): Make 'type_name'
4251         const.
4252         (gdbpy_lookup_type): Likewise.
4253         * python/py-prettyprint.c (print_children): Make 'name' const.
4254         * python/py-param.c (parmpy_init): Make 'name' const.  Copy it.
4255         * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
4256         Py_ssize_t.
4257         * python/py-function.c (fnpy_init): Make 'name' const.
4258         * python/py-cmd.c (cmdpy_init): Make 'name' const.  Copy it.
4259         (gdbpy_string_to_argv): Make 'input' const.
4260         * python/py-breakpoint.c (bppy_init): Make 'spec' const.  Copy
4261         it.
4262         * gdbtypes.h (lookup_typename): Update.
4263         * gdbtypes.c (lookup_typename): Make 'name' const.
4264         (lookup_struct): Likewise.
4265         (lookup_union): Likewise.
4266         (lookup_enum): Likewise.
4267
4268 2011-06-24  Tom Tromey  <tromey@redhat.com>
4269
4270         * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
4271         gdb_thread_db.h.  Move all common/ entries to be together.
4272         (TAGS): Don't depend on DEPFILES.
4273
4274 2011-06-23  Yao Qi  <yao@codesourcery.com>
4275
4276         * infrun.c (start_remote): Move call init_wait_for_inferior to ...
4277         * remote.c (remote_start_remote): ... here.
4278         * monitor.c (monitor_open): ... here.
4279
4280 2011-06-23  Andrew Burgess  <aburgess@broadcom.com>
4281
4282         * gdbtypes.c (append_composite_type_field_aligned): Fix
4283         calculation of bit position based on alignment.
4284
4285 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
4286
4287         * breakpoint.c (bpstat_stop_status): Call the check_status
4288         breakpoint_ops method.
4289         (print_one_breakpoint_location): Also print the condition for Ada
4290         exception catchpoints.
4291         (allocate_bp_location): New, factored out from
4292         allocate_bp_location.
4293         (allocate_bp_location): Adjust.  Call the owner breakpoint's
4294         allocate_location method, if there is one.
4295         (free_bp_location): Call the locations's dtor method, if there is
4296         one.
4297         (init_raw_breakpoint_without_location): New breakpoint_ops
4298         parameter.  Use it.
4299         (set_raw_breakpoint_without_location): Adjust.
4300         (init_raw_breakpoint): New breakpoint_ops parameter.  Pass it down.
4301         (set_raw_breakpoint): Adjust.
4302         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4303         (catch_syscall_breakpoint_ops): Install NULL allocate_location,
4304         re_set and check_status methods.
4305         (init_catchpoint): Don't memset, initialize thread, addr_string
4306         and enable_state.  Pass the ops down to init_raw_breakpoint.
4307         (install_catchpoint): Rename to ...
4308         (install_breakpoint): ... this, and make extern.
4309         (create_fork_vfork_event_catchpoint): Adjust.
4310         (catch_exec_breakpoint_ops): Install NULL allocate_location,
4311         re_set and check_status methods.
4312         (create_syscall_event_catchpoint): Adjust.
4313         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4314         (masked_watchpoint_breakpoint_ops): Install NULL
4315         allocate_location, re_set and check_status methods.
4316         (catch_exec_command_1): Adjust.
4317         (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
4318         re_set and check_status methods.
4319         (create_ada_exception_breakpoint): Rename to ...
4320         (init_ada_exception_breakpoint): ... this.  Add a struct
4321         breakpoint parameter, and delete the exp_string, cond_string and
4322         cond parameters.  Use init_raw_breakpoint, and don't install or
4323         mention the breakpoint yet.  Don't clear breakpoint fields that
4324         init_raw_breakpoint already clears.
4325         (re_set_breakpoint): Delete, split into ...
4326         (breakpoint_re_set_default, prepare_re_set_context): ... these new
4327         functions.
4328         (breakpoint_re_set_one): Call the breakpoint's
4329         breakpoint_ops->re_set implementation, if there's one.  Adjust.
4330         * breakpoint.h: Forward declare struct bpstats and struct bp_location.
4331         (struct bp_location_ops): New type.
4332         (struct bp_location): New field `ops'.
4333         (struct breakpoint_ops): New `allocate_location', `re_set' and
4334         `check_status' fields.  Make `breakpoint_hit''s description match
4335         reality.
4336         (init_bp_location): Declare.
4337         (breakpoint_re_set_default): Declare.
4338         (create_ada_exception_breakpoint): Rename to ...
4339         (init_ada_exception_breakpoint): ... this.  Add a struct
4340         breakpoint parameter, and delete the exp_string, cond_string and
4341         cond parameters.
4342         (install_breakpoint): Declare.
4343         * ada-lang.c: Include exceptions.h.
4344         <Ada exceptions description>: Update.
4345         (struct ada_catchpoint_location): New type.
4346         (ada_catchpoint_location_dtor): New function.
4347         (ada_catchpoint_location_ops): New global.
4348         (ada_catchpoint): New type.
4349         (create_excep_cond_exprs): New function.
4350         (dtor_exception, allocate_location_exception, re_set_exception)
4351         (should_stop_exception, check_status_exception): New functions.
4352         (print_one_exception, print_mention_exception)
4353         (print_recreate_exception): Adjust.
4354         (dtor_catch_exception, allocate_location_catch_exception)
4355         (re_set_catch_exception, check_status_catch_exception): New
4356         functions.
4357         (catch_exception_breakpoint_ops): Install them.
4358         (dtor_catch_exception_unhandled)
4359         (allocate_location_catch_exception_unhandled)
4360         (re_set_catch_exception_unhandled)
4361         (check_status_catch_exception_unhandled): New functions.
4362         (catch_exception_unhandled_breakpoint_ops): Install them.
4363         (dtor_catch_assert, allocate_location_catch_assert)
4364         (re_set_catch_assert, check_status_catch_assert): New functions.
4365         (catch_assert_breakpoint_ops): Install them.
4366         (ada_exception_catchpoint_p): Delete.
4367         (catch_ada_exception_command_split)
4368         (ada_exception_catchpoint_cond_string): Rename exp_string
4369         parameter to excep_string.  Adjust.
4370         (ada_parse_catchpoint_condition): Delete.
4371         (ada_exception_sal): Rename the exp_string parameter to
4372         excep_string.  Delete the cond_string and cond parameters.
4373         Adjust.
4374         (ada_decode_exception_location): Rename the exp_string parameter
4375         to excep_string.  Delete the cond_string and cond parameters.
4376         Adjust.
4377         (create_ada_exception_catchpoint): New function.
4378         (catch_ada_exception_command, ada_decode_assert_location)
4379         (catch_assert_command): Adjust.
4380         * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
4381
4382 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
4383
4384         * ada-lang.c: Include arch-utils.h.
4385         (ada_decode_exception_location): Make static.
4386         (catch_ada_exception_command): Moved here from breakpoint.c.
4387         (ada_decode_assert_location): Make static.
4388         (catch_assert_command): Moved here from breakpoint.c.
4389         (_initialize_ada_lang): Install the exception and assert
4390         catchpoint commands here.
4391         * ada-lang.h (ada_decode_exception_location)
4392         (ada_decode_assert_location): Delete declarations.
4393         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
4394         breakpoint.h.
4395         (create_ada_exception_breakpoint): Make extern.
4396         (catch_ada_exception_command, catch_assert_command): Moved to
4397         ada-lang.c.
4398         (add_catch_command): Make extern.
4399         (_initilize_breakpoint): Don't install the exception and assert
4400         catchpoint commands here.
4401         * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
4402         breakpoint.c
4403         (add_catch_command, create_ada_exception_breakpoint): Declare.
4404
4405 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
4406
4407         * breakpoint.c (init_raw_breakpoint_without_location): Don't add
4408         the breakpoint to the breakpoint chain here.
4409         (set_raw_breakpoint_without_location): Add the breakpoint to the
4410         breakpoint chain here.
4411         (init_raw_breakpoint): Adjust comments.
4412         (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
4413         here.
4414         (init_catchpoint): Don't set the catchpoint's breakpoint number
4415         here.
4416         (install_catchpoint): New function.
4417         (create_fork_vfork_event_catchpoint)
4418         (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
4419         use install_catchpoint.
4420
4421 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
4422
4423         * breakpoint.c (create_catchpoint_without_mention)
4424         (create_catchpoint): Delete.
4425
4426 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
4427
4428         * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
4429         * breakpoint.c (init_raw_breakpoint_without_location): Remove
4430         reference to exec_pathname.
4431         (struct exec_catchpoint): New type.
4432         (dtor_catch_exec): New function.
4433         (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
4434         (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
4435         (catch_exec_command_1): Adjust to use init_catchpoint.
4436         (delete_breakpoint): Remove reference to exec_pathname.
4437
4438 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
4439
4440         * breakpoint.h (struct breakpoint_ops): New field `dtor'.
4441         (struct breakpoint): Delete field `syscalls_to_be_caught'.
4442         * breakpoint.c (init_raw_breakpoint_without_location): Remove
4443         reference to syscalls_to_be_caught.
4444         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
4445         NULL `dtor'.
4446         (struct syscall_catchpoint): New type.
4447         (dtor_catch_syscall): New function.
4448         (insert_catch_syscall, remove_catch_syscall)
4449         (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4450         (print_recreate_catch_syscall): Adjust.
4451         (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
4452         (catch_exec_breakpoint_ops): Install a NULL `dtor'.
4453         (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
4454         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4455         (masked_watchpoint_breakpoint_ops)
4456         (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
4457         (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
4458         there is one.  Remove references to syscalls_to_be_caught.
4459         (catching_syscall_number): Adjust.
4460         * ada-lang.c (catch_exception_breakpoint_ops)
4461         (catch_exception_unhandled_breakpoint_ops)
4462         (catch_assert_breakpoint_ops): Install a NULL `dtor'.
4463
4464 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
4465
4466         * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
4467         field.
4468         * breakpoint.c (init_raw_breakpoint_without_location): Remove
4469         reference to forked_inferior_pid.
4470         (struct fork_catchpoint): New type.
4471         (breakpoint_hit_catch_fork, print_it_catch_fork)
4472         (print_one_catch_fork, breakpoint_hit_catch_vfork)
4473         (print_it_catch_vfork, print_one_catch_vfork): Adjust.
4474         (create_fork_vfork_event_catchpoint): Adjust to use
4475         init_catchpoint.
4476
4477 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
4478
4479         * breakpoint.c (add_to_breakpoint_chain)
4480         (init_raw_breakpoint_without_location): New functions, factored
4481         out from ...
4482         (set_raw_breakpoint_without_location): ... this one.
4483         (init_raw_breakpoint): New function, factored out from
4484         set_raw_breakpoint and adjusted to use
4485         init_raw_breakpoint_without_location.
4486         (set_raw_breakpoint): Adjust.
4487         (init_catchpoint): New function, factored out from
4488         create_catchpoint_without_mention and adjusted to use
4489         init_raw_breakpoint.
4490         (create_catchpoint_without_mention): Adjust.
4491
4492 2011-06-22  Tom Tromey  <tromey@redhat.com>
4493
4494         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
4495         argument of 0 specially.
4496
4497 2011-06-22  Yao Qi  <yao@codesourcery.com>
4498
4499         * infrun.c (handle_inferior_event): Remove write-only local variable
4500         `sw_single_step_trap_p'.
4501
4502 2011-06-20  Tom Tromey  <tromey@redhat.com>
4503
4504         * symtab.c (lookup_language_this): End loop if block is NULL.
4505
4506 2011-06-17  Tom Tromey  <tromey@redhat.com>
4507
4508         * valops.c (value_of_this): Use lookup_language_this.
4509         * symtab.h (lookup_language_this): Declare.
4510         * symtab.c (lookup_language_this): New function.
4511         (lookup_symbol_aux): Use lookup_language_this.
4512         * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
4513
4514 2011-06-17  Tom Tromey  <tromey@redhat.com>
4515
4516         * value.h (value_of_this): Update.
4517         (value_of_local): Remove.
4518         * valops.c (value_of_this): Rename from value_of_local.  Change
4519         parameters.
4520         * p-exp.y (exp): Update.
4521         (variable): Likewise.
4522         * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
4523
4524 2011-06-17  Tom Tromey  <tromey@redhat.com>
4525
4526         * valops.c (value_of_local): Complain if NAME is NULL.
4527         * std-operator.def (OP_OBJC_SELF): Remove.
4528         * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
4529         * objc-exp.y (name_not_typename): Use OP_THIS.
4530         * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
4531         name for "this".
4532         <OP_OBJC_SELF>: Remove.
4533         * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
4534
4535 2011-06-16  Tristan Gingold  <gingold@adacore.com>
4536
4537         * python/py-events.h (gdb_py_events): Make it extern.
4538         * python/py-evtregistry.c (gdb_py_events): Declare.
4539
4540 2011-06-16  Hui Zhu  <teawater@gmail.com>
4541
4542         * remote.c (remote_trace_set_readonly_regions): Add check for
4543         remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
4544         output warning.
4545
4546 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
4547
4548         * arm-linux-tdep.c: Include "auxv.h".
4549         (AT_HWCAP): Define.
4550         (ARM_LINUX_SIZEOF_VFP): Define.
4551         (arm_linux_supply_vfp): New function.
4552         (arm_linux_collect_vfp): Likewise.
4553         (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
4554         (arm_linux_fpa_regset_sections): New variable.
4555         (arm_linux_vfp_regset_sections): Likewise.
4556         (arm_linux_core_read_description): New function.
4557         (arm_linux_init_abi): Install arm_linux_core_read_description and
4558         arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
4559         appropriate for the architecture.
4560         * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
4561         (tdesc_arm_with_m): Declare.
4562         (tdesc_arm_with_iwmmxt): Likewise.
4563         (tdesc_arm_with_vfpv2): Likewise.
4564         (tdesc_arm_with_vfpv3): Likewise.
4565         (tdesc_arm_with_neon): Likewise.
4566         * arm-linux-nat.c: Move features/*.c includes ...
4567         * arm-tdep.c: ... here.
4568         * arm-linux-nat.c (arm_linux_read_description): Move initializing
4569         target description data structures ...
4570         * arm-tdep.c (_initialize_arm_tdep): ... here.
4571         * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
4572         HWCAP_VFPv3D16): Move definitions ...
4573         * arm-linux-tdep.h: ... here.
4574
4575 2011-06-15  Hui Zhu  <teawater@gmail.com>
4576
4577         * remote.c (remote_trace_set_readonly_regions): Add a check for
4578         target_buf_size.
4579
4580 2011-06-14  Tom Tromey  <tromey@redhat.com>
4581
4582         * coffread.c (coffread_objfile): Rename from current_objfile.
4583         * dbxread.c (dbxread_objfile): Rename from current_objfile.
4584         * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
4585
4586 2011-06-14  Tom Tromey  <tromey@redhat.com>
4587
4588         * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
4589         (class_symtab): Remove.
4590         (jv_dynamics_progspace_key): New global.
4591         (jv_per_objfile_free): Reset program space data.  Update assert.
4592         Don't clear globals.
4593         (get_dynamics_objfile): Use and set program space data.
4594         (get_java_class_symtab): Use get_dynamics_objfile.
4595         (add_class_symbol): Likewise.
4596         (java_link_class_type): Likewise.
4597         (java_object_type, jv_clear_object_type, set_java_object_type):
4598         Remove.
4599         (get_java_object_type): Update.  Don't cache result.
4600         (is_object_type): Don't call set_java_object_type.
4601         (_initialize_java_language): Don't set jv_type_objfile_data_key;
4602         initialize jv_dynamics_progspace_key.
4603
4604 2011-06-14  Tom Tromey  <tromey@redhat.com>
4605
4606         * symtab.h (current_objfile): Don't declare.
4607         * objfiles.h (current_objfile): Don't declare.
4608         * objfiles.c (current_objfile): Remove.
4609         * mdebugread.c (current_objfile): New file-scope global.
4610         * dbxread.c (current_objfile): New file-scope global.
4611         * coffread.c (current_objfile): New file-scope global.
4612
4613 2011-06-13  Pedro Alves  <pedro@codesourcery.com>
4614
4615         * top.h (line): Rename to ...
4616         (saved_command_line): ... this.
4617         (linesize): Rename to ...
4618         (saved_command_line_size): ... this.
4619         * top.c (line): Rename to ...
4620         (saved_command_line): ... this.
4621         (linesize): Rename to ...
4622         (saved_command_line_size): ... this.
4623         (dont_repeat, command_line_input, dont_repeat_command): Adjust.
4624         * event-top.c (command_line_handler): Adjust.
4625         * main.c (captured_main): Adjust.
4626
4627 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
4628
4629         * i386-tdep.c (i386_epilogue_frame_cache): Simplify code.  Call
4630         get_frame_func instead of get_frame_pc to determine the code
4631         address used to construct the frame ID.
4632         (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
4633         (i386_epilogue_frame_this_id): Likewise.
4634         (i386_epilogue_frame_prev_register): New function.
4635         (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
4636         (i386_stack_tramp_frame_sniffer): Fix coding style.
4637         (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
4638         (i386_gdbarch_init): Fix comments.
4639
4640 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
4641
4642         * i386-tdep.c (i386_match_insn_block): Use length of the proper
4643         instruction when walking back through the instruction stream.
4644
4645 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4646
4647         * symtab.c (output_partial_symbol_filename): Exchange the filename and
4648         fullname parameters order.
4649
4650 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4651
4652         Code cleanup.
4653         * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
4654         for fun.
4655         * psymtab.c (map_symbol_filenames_psymtab)
4656         (map_partial_symbol_filenames): Likewise.
4657         * psymtab.h: Include symfile.h.
4658         (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
4659         * symfile.h (symbol_filename_ftype): New.
4660         (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
4661         map_symbol_filenames, clarify more the naming in comment.
4662
4663 2011-06-07  Doug Evans  <dje@google.com>
4664
4665         * cc-with-index.sh: Fix typos in comment.
4666         Look for ../../gdb, for fullname.exp.
4667
4668 2011-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4669             Pedro Alves  <pedro@codesourcery.com>
4670
4671         * cli/cli-cmds.c (shell_escape): Use waitpid.
4672         * rs6000-nat.c (exec_one_dummy_insn): Likewise.
4673
4674 2011-06-07  Tristan Gingold  <gingold@adacore.com>
4675
4676         * xcoffread.c (dwarf2_xcoff_names): New variable.
4677         (aix_process_linenos): Add a guard.
4678         (xcoff_symfile_finish): Free dwarf2.
4679         (xcoff_initial_scan): Add dwarf2 support.
4680
4681 2011-06-06  Pedro Alves  <pedro@codesourcery.com>
4682
4683         * infcall.c (run_inferior_call): Don't mask async.  Instead force
4684         a synchronous wait, if the target can async.
4685
4686         * target.h (struct target_ops): Delete to_async_mask.
4687         (target_async_mask): Delete.
4688         * target.c (update_current_target): Delete references to to_async_mask.
4689         * linux-nat.c (linux_nat_async_mask_value): Delete.
4690         (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
4691         to linux_nat_async_mask_value.
4692         (linux_nat_async_mask): Delete.
4693         (linux_nat_async, linux_nat_close): Remove references to
4694         linux_nat_async_mask_value.
4695         * record.c (record_async_mask_value): Delete.
4696         (record_async): Remove references to record_async_mask_value.
4697         (record_async_mask): Delete.
4698         (record_can_async_p, record_is_async_p): Remove references to
4699         record_async_mask_value.
4700         (init_record_ops, init_record_core_ops): Remove references to
4701         record_async_mask.
4702         * remote.c (remote_async_mask_value): Delete.
4703         (init_remote_ops): Remove reference to remote_async_mask.
4704         (remote_can_async_p, remote_is_async_p): Remove references to
4705         remote_async_mask_value.
4706         (remote_async): Remove references to remote_async_mask_value.
4707         (remote_async_mask): Delete.
4708
4709         * infrun.c (fetch_inferior_event): Don't claim registers changed
4710         if the current thread is already not executing.
4711
4712 2011-06-03  Joel Brobecker  <brobecker@adacore.com>  (obvious fix)
4713
4714         From Stephen Kitt  <steve@sk2.org>
4715         * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
4716         gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
4717
4718 2011-06-03  Joel Brobecker  <brobecker@adacore.com>
4719
4720         * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
4721         the case where ADDR_SIZE is different from TYPE_LENGTH (type).
4722
4723 2011-06-03  Tom Tromey  <tromey@redhat.com>
4724
4725         * python/py-inferior.c (python_inferior_exit): Use inferior's exit
4726         code fields.
4727         * python/py-exitedevent.c (create_exited_event_object): Change
4728         type of 'exit_code'.  Optionally add exit_code attribute.
4729         (emit_exited_event): Change type of 'exit_code'.
4730         * python/py-event.h (emit_exited_event): Update.
4731         * mi/mi-interp.c (mi_inferior_exit): Print exit code.
4732         * infrun.c (handle_inferior_event): Set exit code fields on
4733         inferior.
4734         * inferior.h (struct inferior) <has_exit_code, exit_code>: New
4735         fields.
4736         * inferior.c (exit_inferior_1): Initialize new fields.
4737
4738 2011-06-03  Tom Tromey  <tromey@redhat.com>
4739
4740         * dwarf2expr.c (get_signed_type): New function.
4741         (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
4742
4743 2011-06-02  Keith Seitz  <keiths@redhat.com>
4744
4745         * objc-lang.c (find_methods): Increment objfile_csym earlier.
4746
4747 2011-06-02  Pedro Alves  <pedro@codesourcery.com>
4748
4749         * top.h (simplified_command_loop): Delete declaration.
4750
4751 2011-06-01  Mike Frysinger  <vapier@gentoo.org>
4752
4753         * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
4754         gdb_sysroot to the "len" variable.  Append both to "arg_buf".
4755
4756 2011-06-01  Yao Qi  <yao@codesourcery.com>
4757
4758         * objfiles.h (obj_section_addr): Update reference to objfile from
4759         `abfd' to `obfd'.
4760         (obj_section_endaddr): Likewise.
4761
4762 2011-06-01  Daniel Jacobowitz  <drow@false.org>
4763
4764         * MAINTAINERS: Update my email address and affiliation.  Also
4765         update Ian Lance Taylor's affiliation.  Use UTF-8 for ludo@gnu.org.
4766
4767 2010-05-31  Keith Seitz  <keiths@redhat.com>
4768
4769         PR c++/12750
4770         * linespec.c (get_search_block): New function.
4771         (find_methods): Add FILE_SYMTATB parameter and use it and
4772         get_search_block to pass an appropriate block to
4773         lookup_symbol_in_namespace.
4774         (decode_line_1): Record if *ARGPTR is single-quote enclosed.
4775         Check if *ARGPTR starts with a filename first.
4776         If it does, call locate_first_half again to locate the next
4777         "first half" of the linespec.
4778         Pass FILE_SYMTATB to decode_objc and decode_compound.
4779         Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
4780         (locate_first_half): Stop on the first colon seen.
4781         (decode_compound): Add FILE_SYMTAB parameter.
4782         Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
4783         (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
4784         get_search_block with lookup_symbol.
4785         (find_method): Add FILE_SYMTAB parameter and pass it to
4786         find_methods.
4787         (decode_objc): Use get_search_block.
4788
4789 2010-05-31  Keith Seitz  <keiths@redhat.com>
4790
4791         PR symtab/12704
4792         * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
4793         (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
4794         and CP_ANONYMOUS_NAMESPACE_LEN.
4795         (cp_is_anonymous): Likewise.
4796         * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
4797         (CP_ANONYMOUS_NAMESPACE_LEN): Define.
4798         * dwarf2read.c (namespace_name): Likewise.
4799         (fixup_partial_die): Likewise.
4800         * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
4801         seen in the input, keep it.
4802
4803 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
4804
4805         * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
4806         * inf-loop.h (inferior_event_handler_wrapper): Delete.
4807         * inf-loop.c (inferior_event_handler_wrapper): Delete.
4808         (inferior_event_handler): Don't handle INF_QUIT_REQ.
4809         * remote.c (_initialize_remote): Register
4810         async_remote_interrupt_twice directly as
4811         sigint_remote_twice_token event.
4812
4813 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
4814
4815         * target.h (enum inferior_event_type): Delete INF_ERROR.
4816         * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
4817
4818 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
4819
4820         * interps.c (interp_set): Don't cancel continuations.
4821
4822 2011-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
4823
4824         * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
4825
4826 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
4827
4828         * continuations.h (continuation_ftype): Add `err' parameter.
4829         Document parameters.
4830         (do_all_continuations, do_all_continuations_thread)
4831         (do_all_intermediate_continuations)
4832         (do_all_intermediate_continuations_thread)
4833         (do_all_inferior_continuations): Add `err' parameter.
4834         * continuations.c (do_my_continuations_1, do_my_continuations)
4835         (do_all_inferior_continuations, do_all_continuations_ptid)
4836         (do_all_continuations_thread_callback)
4837         (do_all_continuations_thread, do_all_continuations)
4838         (do_all_intermediate_continuations_thread_callback)
4839         (do_all_intermediate_continuations_thread)
4840         (do_all_intermediate_continuations): Add `err' parameter, and pass
4841         it down all the way to the continuations proper.
4842         * inf-loop.c (inferior_event_handler): If fetching an inferior
4843         event throws an error, don't pop the target, and still call the
4844         continuations, but with `err' set.  Adjust all other continuation
4845         calls.
4846         * breakpoint.c (until_break_command_continuation): Add `err'
4847         parameter.
4848         * infcmd.c (step_1_continuation): Add `err' parameter.  Don't
4849         issue another step if `err' is set.
4850         (struct until_next_continuation_args): New.
4851         (until_next_continuation): Add `err' parameter.  Adjust.
4852         (until_next_command): Adjust.
4853         (struct finish_command_continuation_args): Add `thread' field.
4854         (finish_command_continuation): Add `err' parameter.  Handle it.
4855         (finish_forward): Adjust.
4856         (attach_command_continuation): Add `err' parameter.  Handle it.
4857         * infrun.c (infrun_thread_stop_requested_callback): Adjust to
4858         cancel the continuations.
4859         * interps.c (interp_set): Adjust to cancel the continuations.
4860         * thread.c (clear_thread_inferior_resources): Adjust to cancel the
4861         continuations rather than discarding.
4862         (free_thread): Don't clear thread inferior resources here.
4863         (delete_thread_1): Do it here instead.  And do it before removing
4864         the thread from the threads list.  Tag the thread as exited before
4865         clearing thread inferior resources.
4866
4867 2011-05-30  Joel Brobecker  <brobecker@adacore.com>
4868
4869         * infcall.c (call_function_by_hand): Rephrase error message.
4870
4871 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
4872
4873         * defs.h (struct thread_info, struct inferior): Delete forward
4874         declarations.
4875         * breakpoint.h (struct thread_info): New forward declaration.
4876         * observer.sh (struct inferior): New forward declaration.
4877         * python/python-internal.h (struct inferior): New forward
4878         declaration.
4879
4880 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
4881
4882         * defs.h (struct continuation, continuation_ftype)
4883         (continuation_free_arg_ftype, add_continuation)
4884         (do_all_continuations, do_all_continuations_thread)
4885         (discard_all_continuations, discard_all_continuations_thread)
4886         (add_intermediate_continuation, do_all_intermediate_continuations)
4887         (do_all_intermediate_continuations_thread)
4888         (discard_all_intermediate_continuations)
4889         (discard_all_intermediate_continuations_thread)
4890         (add_inferior_continuation, do_all_inferior_continuations)
4891         (discard_all_inferior_continuations): Move to ...
4892         * continuations.h: ... this new file.
4893         * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
4894         infcmd.c, inferior.c, infrun.c, interps.c: Include
4895         continuations.h.
4896
4897 2011-05-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4898             Doug Evans  <dje@google.com>
4899
4900         Fix PR 10970, PR 12702.
4901         * linux-nat.c (linux_lwp_is_zombie): New function.
4902         (wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
4903         Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
4904
4905 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
4906
4907         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
4908         typedefs.
4909         (add_continuation, add_intermediate_continuation)
4910         (add_inferior_continuation): Use them.
4911         * continuations.c (struct continuation): Use them.
4912         (make_continuation_ftype): Delete.
4913         (make_continuation, add_inferior_continuation, add_continuation)
4914         (add_intermediate_continuation): Use continuation_ftype and
4915         continuation_free_arg_ftype.  Rename parameters to shorter names.
4916
4917 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
4918
4919         * continuations.c (make_continuation): Make it return void.
4920         (do_my_continuations): Rename to ...
4921         (do_my_continuations_1): ... this.  Remove old_chain parameter and
4922         adjust.
4923         (do_my_continuations): New.
4924         (discard_my_continuations): Rename to ...
4925         (discard_my_continuations_1): ... this.  Remove old_chain
4926         parameter and adjust.
4927         (discard_my_continuations): New.
4928         (add_inferior_continuation): Simplify.
4929         (do_all_inferior_continuations): Reimplement on top
4930         do_my_continuations.
4931         (discard_all_inferior_continuations): Simplify.
4932         (add_continuation): Simplify.
4933         (do_all_continuations_ptid): Simplify.
4934         (discard_all_continuations_thread_callback): Simplify.
4935         (add_intermediate_continuation): Simplify.
4936         (discard_all_intermediate_continuations_thread_callback):
4937         Simplify.
4938
4939 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
4940
4941         * utils.c (struct continuation, add_continuation)
4942         (add_inferior_continuation)
4943         (do_all_inferior_continuations, discard_all_inferior_continuations)
4944         (restore_thread_cleanup, do_all_continuations_ptid)
4945         (do_all_continuations_thread_callback)
4946         (do_all_continuations_thread, do_all_continuations)
4947         (discard_all_continuations_thread_callback)
4948         (discard_all_continuations_thread, discard_all_continuations)
4949         (add_intermediate_continuation)
4950         (do_all_intermediate_continuations_thread_callback)
4951         (do_all_intermediate_continuations_thread)
4952         (do_all_intermediate_continuations)
4953         (discard_all_intermediate_continuations_thread_callback)
4954         (discard_all_intermediate_continuations_thread)
4955         (discard_all_intermediate_continuations): Move to ...
4956         * continuations.c: ... this new file, and adjust to no longer
4957         implement continuations on top of cleanups.
4958         * Makefile.in (SFILES): Add continuations.c.
4959         (COMMON_OBS): Add continuations.o.
4960
4961 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
4962
4963         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
4964         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
4965         Internal error on invalid values.
4966         * reverse.c: Don't handle EXEC_ERROR.
4967         * mi/mi-main.c: Don't handle EXEC_ERROR.
4968
4969 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
4970
4971         * record.c: Include event-loop.h, inf-loop.h.
4972         (record_beneath_to_async): New global.
4973         (tmp_to_async): New global.
4974         (record_async_inferior_event_token): New global.
4975         (record_open_1): Don't error out if async is enabled.
4976         (record_open): Handle to_async.  Create an async event source in
4977         the event loop.
4978         (record_close): Delete the async event source.
4979         (record_resumed): New global.
4980         (record_execution_dir): New global.
4981         (record_resume, record_core_resume): Set them.  Register the
4982         target on the event loop.
4983         (record_wait): Rename to ...
4984         (record_wait_1): ... this.  Add more debug output.  Handle
4985         TARGET_WNOHANG, and the target beneath returning
4986         TARGET_WAITKIND_IGNORE.
4987         (record_wait): Reimplement on top of record_wait_1.
4988         (record_async_mask_value): New global.
4989         (record_async, record_async_mask, record_can_async_p)
4990         (record_is_async_p, record_execution_direction): New functions.
4991         (init_record_ops, init_record_core_ops): Install new methods.
4992         * infrun.c (fetch_inferior_event): Temporarily switch the global
4993         execution direction to the direction the target was going.
4994         (execution_direction): Change type to int.
4995         * target.c (default_execution_direction): New function.
4996         (update_current_target): Inherit and de_fault
4997         to_execution_direction.
4998         * target.h (struct target_ops) <to_execution_direction>: New
4999         field.
5000         (target_execution_direction): New macro.
5001         * inferior.h (execution_direction): Change type to int.
5002
5003 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5004
5005         * infcall.c (call_function_by_hand): Don't allow calling functions
5006         in reverse execution mode.
5007
5008 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5009
5010         * infcmd.c (finish_command): Allow async finish in reverse.
5011
5012 2011-05-26  Yao Qi  <yao@codesourcery.com>
5013
5014         * gdb_thread_db.h: Delete.  Move to ...
5015         * common/gdb_thread_db.h: ... here.
5016
5017 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5018
5019         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5020         function's entry point instead of a manually managed momentary
5021         breakpoint, and only ever issue one proceed call.
5022         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5023         doing a reverse-finish, switch to stepi mode, to do another step.
5024         (insert_step_resume_breakpoint_at_sal): Make public.
5025         (normal_stop): No need to save function value return registers if
5026         going reverse.
5027         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5028
5029 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5030
5031         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5032         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5033         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
5034         at the end.
5035         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5036         step-resume breakpoints.
5037         (print_it_typical): Handle bp_hp_step_resume.
5038         (bpstat_what): Ditto.
5039         (bptype_string): Ditto.
5040         (print_one_breakpoint_location): Ditto.
5041         (allocate_bp_location): Ditto.
5042         (mention): Ditto.
5043         (breakpoint_re_set_one): Ditto.
5044         * infrun.c (handle_inferior_event): Adjust.  Split
5045         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5046         BPSTAT_WHAT_HP_STEP_RESUME.
5047         (insert_step_resume_breakpoint_at_sal): Rename to ...
5048         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
5049         parameter.  Handle it.
5050         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5051         insert_step_resume_breakpoint_at_sal_1.
5052         (insert_step_resume_breakpoint_at_frame): Rename to ...
5053         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
5054         set a high-priority step-resume breakpoint.
5055         (insert_step_resume_breakpoint_at_frame): Adjust comment.
5056         (insert_step_resume_breakpoint_at_caller): Ditto.
5057
5058 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5059
5060         * breakpoint.c (iterate_over_related_breakpoints): New.
5061         (do_map_delete_breakpoint): New.
5062         (delete_command): Pass do_map_delete_breakpoint to
5063         map_breakpoint_numbers.
5064         (do_disable_breakpoint): New.
5065         (do_map_disable_breakpoint): Iterate over the breakpoint's related
5066         breakpoints.
5067         (do_enable_breakpoint): Rename to ...
5068         (enable_breakpoint_disp): ... this.
5069         (enable_breakpoint): Adjust.
5070         (do_enable_breakpoint): New.
5071         (enable_once_breakpoint): Delete.
5072         (do_map_enable_breakpoint): New.
5073         (do_map_enable_once_breakpoint): New.
5074         (enable_once_command, enable_delete_command)
5075         (delete_trace_command): Iterate over the breakpoint's related
5076         breakpoints.
5077
5078 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
5079
5080         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5081         for ALPHA_ZERO_REGNUM.
5082         (alpha_supply_int_regs): Explicitly supply zero as the value for
5083         ALPHA_ZERO_REGNUM in the register cache.
5084         * alpha-nat.c (fetch_osf_core_registers): Ditto.
5085
5086 2011-05-26  Yao Qi  <yao@codesourcery.com>
5087
5088         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5089
5090 2011-05-26  Tristan Gingold  <gingold@adacore.com>
5091
5092         * symfile.h (struct dwarf2_section_names): New type.
5093         (struct dwarf2_debug_sections): New type.
5094         (dwarf2_has_info): Add parameter.
5095         * dwarf2read.c (dwarf2_elf_names): New variable.
5096         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5097         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5098         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5099         (dwarf2_has_info): Add names parameter.  Pass names
5100         to dwarf2_locate_sections.
5101         (section_is_p): Rewrite using the names parameter.
5102         (dwarf2_locate_sections): Use section names from the names parameter.
5103         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5104         * elfread.c (read_psyms): Ditto.
5105         * machoread.c (macho_symfile_read): Ditto.
5106
5107 2011-05-25  Andreas Schwab  <schwab@redhat.com>
5108
5109         PR gdb/8677
5110         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5111
5112 2011-05-24  Keith Seitz  <keiths@redhat.com>
5113
5114         PR breakpoint/12803
5115         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5116         (decode_compound): Unconditionally call keep_name_info.
5117
5118 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
5119
5120         * breakpoint.c (watchpoint_check): If the watchpoint went out of
5121         scope, clear its command list.
5122         (map_breakpoint_numbers): Don't walk the related breakpoints list
5123         of each breakpoint.
5124
5125 2011-05-24  Tom Tromey  <tromey@redhat.com>
5126
5127         * MAINTAINERS: Move Jim Blandy to past maintainers.
5128
5129 2011-05-24  Tristan Gingold  <gingold@adacore.com>
5130
5131         * symfile.h (enum dwarf2_section_enum): New type.
5132         (dwarf2_get_section_info): New prototype.
5133         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5134         section_name by sect.  Use a switch to select the info.
5135         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5136         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5137
5138 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
5139
5140         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5141         shared library event breakpoint if there's no execution.
5142
5143 2011-05-24  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5144
5145         * breakpont.c (remove_hw_watchpoints): Remove unused function.
5146         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5147
5148 2011-05-23  Tom Tromey  <tromey@redhat.com>
5149
5150         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5151         NULL.
5152
5153 2011-05-23  Doug Evans  <dje@google.com>
5154
5155         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5156         entry for RuntimeError to doc string.
5157
5158 2011-05-23  Jerome Guitton  <guitton@adacore.com>
5159
5160         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5161         sequence for probing loops.
5162
5163 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
5164
5165         * infrun.c (user_visible_resume_ptid): Fix typos in describing
5166         comment.
5167
5168 2011-05-21  Mark Kettenis  <kettenis@gnu.org>
5169
5170         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5171         zero as the value for %g0 in the register cache.
5172         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5173         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5174
5175 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
5176
5177         * infrun.c (proceed): Set previous_inferior_ptid here.
5178         (init_wait_for_inferior): Initialize previous_inferior_ptid from
5179         inferior_ptid, not null_ptid.
5180         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5181         (fetch_inferior_event): Nor here.
5182
5183 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
5184
5185         * inf-loop.c (inferior_event_handler): Only output a message if
5186         verbose.
5187
5188 2011-05-20  Luis Machado  <lgustavo@codesourcery.com>
5189
5190         * MAINTAINERS: Update my e-mail address.
5191
5192 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
5193
5194         * infrun.c (proceed): Switch the inferior event loop to
5195         INF_EXEC_COMPLETE if the target refused to resume from a
5196         vfork/fork.
5197
5198 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
5199
5200         * infcmd.c: Include "inf-loop.h".
5201         (step_once): When stepping into an inline subroutine, pretend the
5202         target has run.  If the target can async, switch the inferior
5203         event loop to INF_EXEC_COMPLETE.
5204         * inferior.h (user_visible_resume_ptid): Declare.
5205         * infrun.c (user_visible_resume_ptid): New function, factored out
5206         from `resume'.
5207         (resume): Use it.
5208         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5209         that the current thread is running.  Merge async and sync
5210         branches.
5211
5212 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
5213
5214         * infcmd.c (step_1): Simplify synchronous case.
5215
5216 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
5217
5218         * tracepoint.c: Include exceptions.h.
5219         (TFILE_PID): Move higher in file.
5220         (tfile_open): Delay pushing the tfile target until we're assured
5221         the tfile header is present in the file.  Wrap reading the initial
5222         newline-terminated lines in TRY_CATCH.  Pop the target if the
5223         initial setup failed.  Add the tfile's thread immediately
5224         aftwards, before any non-essential setup.  Don't skip
5225         post_create_inferior if there are no traceframes present in the
5226         file.
5227         (tfile_close): Remove redundant check for null before xfree call.
5228         (tfile_thread_alive): New function.
5229         (init_tfile_ops): Register it as to_thread_alive callback.
5230
5231 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
5232
5233         * tracepoint.c (tfile_open): Delete #if 0'd code.
5234
5235 2011-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5236
5237         Fix -readnow for -gdwarf-4 unused type units.
5238         * dwarf2read.c (struct signatured_type): Remove the field offset.
5239         (create_signatured_type_table_from_index): Remove its initialization.
5240         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
5241         instead.  Add a complaint call.
5242         (process_psymtab_comp_unit): Change assignment to gdb_assert.
5243         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5244         (lookup_signatured_type_at_offset, read_signatured_type)
5245         (write_one_signatured_type): Update the field for per_cu.
5246
5247 2011-05-19  Tom Tromey  <tromey@redhat.com>
5248
5249         * python/py-inferior.c (python_inferior_exit): Use
5250         target_gdbarch.
5251         (python_on_resume): Likewise.
5252
5253 2011-05-19  Matt Rice  <ratmice@gmail.com>
5254
5255         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
5256
5257 2011-05-19  Hui Zhu  <teawater@gmail.com>
5258
5259         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
5260
5261 2011-05-19  Hui Zhu  <teawater@gmail.com>
5262
5263         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
5264
5265 2011-05-18  Tom Tromey  <tromey@redhat.com>
5266
5267         * dwarf2read.c (dwarf2_add_field): Constify.
5268         * value.c (value_static_field): Constify.
5269         * gdbtypes.h (struct main_type) <field.field_location.physname>:
5270         Now const.
5271         * ax-gdb.c (gen_static_field): Constify
5272
5273 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5274
5275         * linux-nat.c (kill_callback): Use SIGKILL first.
5276
5277 2011-05-18  Joel Brobecker  <brobecker@adacore.com>
5278
5279         * ada-lang.c (print_it_exception): Avoid use of sprintf.
5280
5281 2011-05-18  Tom Tromey  <tromey@redhat.com>
5282
5283         * value.c (value_fn_field): Constify.
5284         * symtab.c (gdb_mangle_name): Constify.
5285         * stabsread.c (update_method_name_from_physname): Make 'physname'
5286         argument const.
5287         * p-typeprint.c (pascal_type_print_method_args): Make arguments
5288         const.  Use explicit fputc_filtered loop.
5289         (pascal_type_print_base): Constify.
5290         * p-lang.h (pascal_type_print_method_args): Update.
5291         * linespec.c (add_matching_methods): Constify.
5292         (add_constructors): Likewise.
5293         * jv-typeprint.c (java_type_print_base): Constify.
5294         * gdbtypes.h (struct cplus_struct_type)
5295         <fn_fieldlist.fn_field.physname>: Now const.
5296         * dwarf2read.c (compute_delayed_physnames): Constify.
5297         (dwarf2_add_member_fn): Likewise.
5298         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
5299
5300 2011-05-18  Pedro Alves  <pedro@codesourcery.com>
5301
5302         * infrun.c (resume): Mention which is the current thread, and its
5303         current PC in debug output.
5304         (prepare_to_proceed): Mention the thread switching in debug
5305         output.
5306
5307 2011-05-18  Tom Tromey  <tromey@redhat.com>
5308
5309         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
5310         path check.  Use xmalloc and cleanups.
5311         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
5312
5313 2011-05-17  Tom Tromey  <tromey@redhat.com>
5314
5315         * cp-valprint.c (cp_print_value_fields): Catch errors from
5316         value_static_field.
5317
5318 2011-05-17  Tom Tromey  <tromey@redhat.com>
5319
5320         * dwarf2read.c (dwarf2_get_die_type): Call
5321         get_die_type_at_offset.
5322         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
5323         get_base_type function.
5324
5325 2011-05-17  Tomas Martinec  <fyzmat@gmail.com>
5326
5327         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
5328         trap_expected.
5329
5330 2011-05-16  Doug Evans  <dje@google.com>
5331
5332         * python/py-auto-load.c (source_section_scripts): Mention objfile
5333         name in warning.
5334
5335 2011-05-15  Doug Evans  <dje@google.com>
5336
5337         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
5338         (try_thread_db_load_from_pdir): Call it.  If unable to find
5339         libthread_db in directory of libpthread, see if we're looking at
5340         the separate-debug-info copy.
5341
5342         * python/py-autoload.c (print_script): Print "Missing" instead of
5343         "No" for missing scripts.
5344         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
5345
5346 2011-05-13  Doug Evans  <dje@google.com>
5347
5348         * ui-file.c (stdio_file_write_async_safe): Add comment.
5349
5350 2011-05-14  Hui Zhu  <teawater@gmail.com>
5351
5352         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
5353
5354 2011-05-13  Doug Evans  <dje@google.com>
5355
5356         Support $pdir and $sdir in libthread-db-search-path.
5357         * NEWS: Mention $sdir,$pdir.
5358         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
5359         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
5360         (try_thread_db_load_from_sdir): New function.
5361         (try_thread_db_load_from_dir): New function.
5362         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
5363         system directories if search of libthread-db-search-path fails,
5364         that is now done via $sdir.
5365         (has_libpthread): New function.
5366         (thread_db_load): Remove search for libthread_db in directory of
5367         libpthread, that is now done via $pdir.
5368
5369         * NEWS: Mention "info auto-load-scripts".
5370         * python/py-auto-load.c (struct auto_load_pspace_info): New member
5371         script_not_found_warning_printed.
5372         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
5373         all callers updated.  Initialize script_not_found_warning_printed.
5374         (get_auto_load_pspace_data_for_loading): New function.
5375         (maybe_add_script): New function.
5376         (source_section_scripts): Simplify.  Only print one warning regardless
5377         of the number of auto-load scripts not found.
5378         (clear_section_scripts): Clear script_not_found_warning_printed.
5379         (auto_load_objfile_script): Record script in hash table.
5380         (count_matching_scripts): New function.
5381         (maybe_print_script): Renamed from maybe_print_section_script, all
5382         callers updated.  Rewrite to use ui_out_*.
5383         (info_auto_load_scripts): Renamed from
5384         maintenance_print_section_scripts, all callers updated.
5385         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
5386         renamed as "info auto-load-scripts".
5387
5388 2011-05-13  Tom Tromey  <tromey@redhat.com>
5389
5390         * dwarf2expr.c (read_uleb128): Cast intermediate result.
5391         (read_sleb128): Likewise.
5392
5393 2011-05-13  Tom Tromey  <tromey@redhat.com>
5394
5395         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
5396         offset display.
5397
5398 2011-05-13  Doug Evans  <dje@google.com>
5399
5400         * linux-nat.c (debug_linux_nat_async): Delete.
5401         Replace all references to use debug_linux_nat instead.
5402         (show_debug_linux_nat_async): Delete.
5403         (sigchld_handler): Call ui_file_write_async_safe instead of
5404         fprintf_unfiltered.
5405         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
5406         * ui-file.c (struct ui_file): New member to_write_async_safe.
5407         (null_file_write_async_safe): New function.
5408         (ui_file_write_async_safe): New function.
5409         (set_ui_file_write_async_safe): New function.
5410         (ui_file_new): Initialize to_write_async_safe.
5411         (stdio_file_write_async_safe): New function.
5412         (struct stdio_file): New member fd.
5413         (stdio_file_new): Initialize to_write_async_safe, fd.
5414         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
5415         fileno.
5416         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
5417         (set_ui_file_write_async_safe): Declare.
5418         (ui_file_write_async_safe): Declare.
5419
5420 2011-05-13  Tom Tromey  <tromey@redhat.com>
5421
5422         * utils.c (do_value_free): New function.
5423         (make_cleanup_value_free): Likewise.
5424         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
5425         freeing correctly.
5426         (dwarf2_loc_desc_needs_frame): Call
5427         make_cleanup_value_free_to_mark.
5428         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
5429         * dwarf2expr.c (free_dwarf_expr_context): Don't call
5430         value_free_to_mark.
5431         (new_dwarf_expr_context): Don't call value_mark.
5432         * dwarf2-frame.c (execute_stack_op): Call
5433         make_cleanup_value_free_to_mark.
5434         * defs.h (make_cleanup_value_free): Declare.
5435
5436 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5437
5438         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
5439         prepare_execute_command.
5440         * top.c (prepare_execute_command): Return cleanup.
5441         (execute_command): Use cleanup from prepare_execute_command.
5442         * top.h (prepare_execute_command): Change prototype to return
5443         cleanup.
5444         * defs.h (struct value): Add opaque declaration.
5445         (make_cleanup_value_free_to_mark): Add prototype.
5446         * utils.c (do_value_free_to_mark): New function.
5447         (make_cleanup_value_free_to_mark): Likewise.
5448
5449 2011-05-12  Tom Tromey  <tromey@redhat.com>
5450
5451         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
5452         cast left-hand-side to unsigned.
5453
5454 2011-05-12  Tom Tromey  <tromey@redhat.com>
5455
5456         PR gdb/12617:
5457         * value.h (value_from_contents): Declare.
5458         * value.c (value_from_contents): New function.
5459         * dwarf2read.c (dwarf_stack_op_name): Add new values.
5460         (dwarf2_get_die_type): New function.
5461         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
5462         (allocate_piece_closure): Acquire reference to values.
5463         (read_pieced_value): Update for value-based expressions.
5464         (write_pieced_value): Likewise.
5465         (free_pieced_value_closure): Call value_free as needed.
5466         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
5467         Update for value-based expressions.
5468         * dwarf2loc.h (dwarf2_get_die_type): Declare.
5469         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
5470         <get_base_type>: New field.
5471         (struct dwarf_expr_piece) <v.value>: Change type.
5472         <v.regno>: New field.
5473         (struct dwarf_expr_context) <mark>: New field.
5474         (dwarf_expr_piece, dwarf_expr_fetch): Update.
5475         (dwarf_expr_pop, dwarf_expr_push): Remove.
5476         (dwarf_expr_push_address): Declare.
5477         * dwarf2expr.c (dwarf_arch_cookie): New global.
5478         (struct dwarf_gdbarch_types): New.
5479         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
5480         functions.
5481         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
5482         static.
5483         (dwarf_expr_push_address): New function.
5484         (dwarf_expr_pop): Now static.
5485         (dwarf_expr_fetch): Change return type.
5486         (dwarf_require_integral): New function.
5487         (dwarf_expr_fetch): Simplify.
5488         (add_piece): Update.
5489         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
5490         functions.
5491         (execute_stack_op) <sign_ext>: Remove.
5492         Use values for DWARF stack.
5493         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
5494         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5495         New cases.
5496         (_initialize_dwarf2expr): New function.
5497         (add_piece): Update.
5498         (new_dwarf_expr_context): Set new field.
5499         (free_dwarf_expr_context): Call value_free_to_mark.
5500         * dwarf2-frame.c (no_base_type): New function.
5501         (execute_stack_op): Set get_base_type field.  Update.
5502
5503 2011-05-12  Tom Tromey  <tromey@redhat.com>
5504
5505         * dwarf2read.c (read_common_block): Fix formatting.
5506
5507 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
5508
5509         * breakpoint.c (disable_breakpoint): Disable all locations
5510         associated with a tracepoint on target if a trace experiment is
5511         running.
5512         (disable_command): Disable a specific tracepoint location on target if
5513         a trace experiment is running.
5514         (do_enable_breakpoint): Enable all locations associated with a
5515         tracepoint on target if a trace experiment is running.
5516         (enable_command) Enable a specific tracepoint location on target if a
5517         trace experiment is running.
5518         * target.c (update_current_target): Add INHERIT and de_fault clauses for
5519         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5520         to_disable_tracepoint.
5521         * target.h: Add declaration of struct bp_location.
5522         (struct target_ops): Add new functions
5523         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
5524         to_disable_tracepoint to target operations.
5525         (target_supports_enable_disable_tracepoint): New macro.
5526         (target_enable_tracepoint): New macro.
5527         (target_disable_tracepoint): New macro.
5528         * remote.c (struct remote_state): Add new field.
5529         (remote_enable_disable_tracepoint_feature): New.
5530         (remote_protocol_features): Add new entry.
5531         (remote_supports_enable_disable_tracepoint): New.
5532         (remote_enable_tracepoint): New.
5533         (remote_disable_tracepoint): New.
5534         (init_remote_ops): Add remote_enable_tracepoint,
5535         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
5536         to remote operations.
5537         * tracepoint.c (start_tracing): Allow tracing to start without any
5538         tracepoints enabled with just a warning if they can be re-enabled
5539         later.
5540         * NEWS: Add news item for the new behaviour of the enable and disable
5541         GDB commands when applied to tracepoints.
5542         Add news items for the new remote packets QTEnable and QTDisable.
5543
5544 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5545
5546         * config.in: Regenerate.
5547         * configure: Regenerate.
5548         * configure.ac <--with-system-readline> (for readline_echoing_p):
5549         Remove the test.
5550         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
5551         (tui_old_rl_echoing_p): ... here.
5552         (tui_setup_io): Rename extern declaration readline_echoing_p to
5553         _rl_echoing_p.  Adjust assignments for the both renames.
5554
5555 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5556
5557         * symtab.c (lookup_symtab): Run cleanup before returning.
5558
5559 2011-05-11  Tom Tromey  <tromey@redhat.com>
5560
5561         * dwarf2read.c (handle_data_member_location): New function.
5562         (dwarf2_add_field): Use it.
5563         (read_common_block): Likewise.
5564
5565 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5566
5567         Make addrs->SECTINDEX always defined.
5568         * symfile.c (relative_addr_info_to_section_offsets): Check for
5569         SECTINDEX -1, not for zero ADDR.
5570         (addrs_section_compar): Remove checking for invalid SECTINDEX.
5571         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
5572         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
5573         on its validity.
5574
5575 2011-05-10  Doug Evans  <dje@google.com>
5576
5577         * linux-thread-db.c: Whitespace cleanup.
5578         (try_thread_db_load_1): Fix comment.
5579
5580         * linux-thread-db.c (set_libthread_db_search_path): New function.
5581         (_initialize_thread_db): Add setter for libthread-db-search-path.
5582
5583 2011-05-09  Doug Evans  <dje@google.com>
5584
5585         * NEWS: Mention --with-iconv-bin.
5586         * configure.ac: New option --with-iconv-bin.
5587         * configure: Regenerate.
5588         * config.in: Regenerate.
5589         * defs.h (relocate_gdb_directory): Declare.
5590         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
5591         removed progname parameter, and exported.  All callers updated.
5592         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
5593
5594         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
5595         adding missing call to restore_child_signals_mask.
5596
5597 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
5598
5599         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
5600         parameter.
5601         * infrun.c (proceed, start_remote): Adjust.
5602         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
5603         and adjust to not handle it.
5604         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
5605         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
5606         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
5607         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
5608         * windows-nat.c (do_initial_windows_stuff): Adjust.
5609         * infcmd.c (attach_command): Adjust.
5610         (notice_new_inferior): Adjust.
5611
5612 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
5613
5614         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
5615         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
5616         * spu-tdep.c (op_selb): Use correct value.
5617
5618 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
5619
5620         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
5621         "parent" parameter to symbol_file_add_from_bfd call.
5622
5623 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
5624             Thiago Jung Bauermann  <bauerman@br.ibm.com>
5625
5626         Implement support for PowerPC BookE masked watchpoints.
5627         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
5628         section.
5629         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
5630         method.  Initialize to NULL in all existing breakpoint_ops instances.
5631         (struct breakpoint) <hw_wp_mask>: New field.
5632         * breakpoint.c (is_masked_watchpoint): Add prototype.
5633         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
5634         breakpoint's breakpoint_ops.works_in_software_mode if available.
5635         (watchpoints_triggered): Handle the case of a hardware masked
5636         watchpoint trigger.
5637         (watchpoint_check): Likewise.
5638         (works_in_software_mode_watchpoint): New function.
5639         (insert_masked_watchpoint, remove_masked_watchpoint)
5640         (resources_needed_masked_watchpoint)
5641         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
5642         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
5643         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
5644         functions.
5645         (masked_watchpoint_breakpoint_ops): New structure.
5646         (watch_command_1): Check for the existence of the `mask' parameter.
5647         Set b->ops according to the type of hardware watchpoint being created.
5648         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
5649         (ppc_linux_remove_mask_watchpoint)
5650         (ppc_linux_masked_watch_num_registers): New functions.
5651         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
5652         to_remove_mask_watchpoint and to_masked_watch_num_registers.
5653         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
5654         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
5655         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5656         (target_masked_watch_num_registers): New functions.
5657         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
5658         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
5659         methods.
5660         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
5661         (target_masked_watch_num_registers): Add prototypes.
5662
5663 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5664
5665         PR 12573
5666         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
5667         (producer_is_gcc_ge_4_0): New function.
5668         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
5669         symtab->language code.
5670         (var_decode_location): Set cu->has_loclist.
5671         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
5672         skip.  Intialize force_skip from locations_valid.  Move the prologue
5673         skipping code into two passes.
5674         * symtab.h (struct symtab): Make the primary field a bitfield.  New
5675         field locations_valid.
5676
5677 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5678
5679         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
5680         (classify_inner_name): Call cp_lookup_nested_type with
5681         yylval.tsym.type.
5682         * cp-namespace.c (cp_lookup_nested_type): New variable
5683         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
5684         type_name_no_tag_or_error with saved_parent_type.
5685         * dwarf2read.c (load_partial_dies): Read in any children of
5686         DW_TAG_typedef with complaint in such case.
5687         * gdbtypes.c (type_name_no_tag_or_error): New function.
5688         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
5689         * valops.c (destructor_name_p): New comment for parameter type.  Remove
5690         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
5691         * value.h (destructor_name_p): Remove type const.
5692
5693 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5694
5695         * symtab.c (compare_symbol_name): New function.
5696         (completion_list_add_name, expand_partial_symbol_name): Call it,
5697         remove the variable ncmp.
5698         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
5699         gdb_assert it.
5700
5701 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5702
5703         Demote to sw watchpoint only in update_watchpoint.
5704         * breakpoint.c (update_watchpoint): Change between software and
5705         hardware watchpoint for all kinds of watchpoints, not just
5706         read/write ones.  Determine b->exact value here instead of
5707         in watch_command_1.  Error out if there are not enough resources
5708         for a read or access hardware watchpoint.
5709         (watch_command_1): Remove logic of checking whether there are
5710         enough resources available, since update_watchpoint will do that
5711         work now.  Don't set b->exact here.  Catch exceptions thrown by
5712         update_watchpoint and delete the watchpoint.
5713         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
5714         Use target_exact_watchpoints instead.
5715         (delete_breakpoint): Notify observers only if deleted watchpoint
5716         has a breakpoint number assigned to it.
5717
5718 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
5719
5720         * MAINTAINERS: Add myself as a write-after-approval maintainer.
5721
5722 2011-05-05  Jerome Guitton  <guitton@adacore.com>
5723
5724         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
5725         New functions.
5726         (i386_stack_tramp_frame_unwind): New static global.
5727         (i386_match_pattern): New function, extracted from i386_match_insn.
5728         (i386_match_insn): Use i386_match_pattern.
5729         (i386_match_insn_block): New function.
5730         (i386_tramp_chain_in_reg_insns)
5731         (i386_tramp_chain_on_stack_insns): New static variables.
5732         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
5733         of unwinders.
5734
5735 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
5736
5737         * configure.host (xscale*): Don't handle target.
5738         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
5739         handle targets.
5740
5741 2011-05-04  Yao Qi  <yao@codesourcery.com>
5742
5743         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
5744
5745 2011-05-03  Joel Brobecker <brobecker@adacore.com>
5746
5747         Revert:
5748         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
5749         | * elfread.c (elf_symtab_read): Stop memory leak.
5750
5751 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
5752
5753         * nto-tdep.c (nto_target): Replace deprecated call to
5754         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
5755
5756 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
5757
5758         Fix false GCC warning.
5759         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
5760
5761 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5762
5763         * breakpoint.c (update_watchpoint): Move code to change
5764         the enable state of breakpoint from here ...
5765         (do_enable_breakpoint): ... to here.
5766
5767 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
5768
5769         * valprint.c (val_print_array_elements): Fixed poor performance
5770         of printing very large arrays with repeat_count_threshold set
5771         to unlimited.  New comment.
5772
5773 2011-04-29  Tom Tromey  <tromey@redhat.com>
5774
5775         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
5776         (mi_parse): Likewise.
5777         * breakpoint.c (break_range_command): Use sizeof char*, not
5778         char**.
5779         (create_breakpoint): Likewise.
5780         (parse_breakpoint_sals): Likewise.
5781
5782 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
5783
5784         * linux-nat.c (linux_child_remove_fork_catchpoint)
5785         (linux_child_remove_vfork_catchpoint)
5786         (linux_child_remove_exec_catchpoint): New functions.
5787         (linux_target_install_ops): Install them.
5788
5789 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
5790
5791         PR mi/12531
5792
5793         * varobj.c (install_default_visualizer): Do not install a
5794         visualizer if the varobj is CPLUS_FAKE_CHILD.
5795         (construct_visualizer): Likewise.
5796
5797 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5798
5799         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
5800         case insensitive comparison.
5801
5802 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
5803
5804         * infrun.c (proceed): Revert previous change.
5805         (resume): Instead, handle the case of signal delivery while stepping
5806         off a breakpoint location here, and only if software single-stepping
5807         is used.  Handle nested signals.
5808
5809 2011-04-28  Yao Qi  <yao@codesourcery.com>
5810
5811         * arm-tdep.c (copy_unmodified): Rename to ...
5812         (arm_copy_unmodified): .. this.  New.
5813         (copy_preload): Move common part to ...
5814         (install_preload): .. this.  New.
5815         (arm_copy_preload): New.
5816         (copy_preload_reg): Move common part to ...
5817         (install_preload_reg): ... this.  New.
5818         (arm_copy_preload_reg): New.
5819         (copy_b_bl_blx): Move common part to ...
5820         (install_b_bl_blx): .. this.  New.
5821         (arm_copy_b_bl_blx): New.
5822         (copy_bx_blx_reg): Move common part to ...
5823         (install_bx_blx_reg): ... this. New.
5824         (arm_copy_bx_blx_reg): New.
5825         (copy_alu_reg): Move common part to ...
5826         (install_alu_reg): ... this.  New.
5827         (arm_copy_alu_reg): New.
5828         (copy_alu_shifted_reg): Move common part to ...
5829         (install_alu_shifted_reg): ... this.  New.
5830         (copy_ldr_str_ldrb_strb): Move common part to ...
5831         (install_ldr_str_ldrb_strb): ... this.  New.
5832         (arm_copy_ldr_str_ldrb_strb): New.
5833         (copy_copro_load_store): Move some common part to ...
5834         (install_copy_copro_load_store): ... this.  New.
5835         (arm_copy_copro_load_store): New.
5836         (copy_svc): Delete.
5837         (arm_copy_svc): Renamed from copy_svc.
5838         (copy_undef): Delete.
5839         (arm_copy_undef): Renamed from copy_undef.
5840         (decode_ext_reg_ld_st): Delete.
5841         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5842         (decode_svc_copro): Delete.
5843         (arm_decode_svc_copro): Renamed from decode_svc_copro.
5844         (copy_copro_load_store, copy_alu_imm): update callers.
5845         (copy_extra_ld_st, copy_block_xfer): Likewise.
5846         (decode_misc_memhint_neon, decode_unconditional): Likewise.
5847         (decode_miscellaneous, decode_dp_misc): Likewise.
5848         (decode_ld_st_word_ubyte, decode_media): Likewise.
5849         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
5850         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
5851         (decode_unconditional, decode_miscellaneous): Likewise.
5852         (decode_media, decode_b_bl_ldmstm): Likewise.
5853         (arm_process_displaced_insn): Likewise..
5854         (decode_misc_memhint_neon): Delete.
5855         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
5856         (decode_miscellaneous): Delete.
5857         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
5858         (decode_dp_misc): Delete.
5859         (arm_decode_dp_misc): Renamed from decode_dp_misc.
5860         (decode_ld_st_word_ubyte): Delete.
5861         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
5862         (decode_media): Delete.
5863         (arm_decode_media): Renamed from decode_media.
5864         (decode_b_bl_ldmstm): Delete.
5865         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
5866         (decode_ext_reg_ld_st): Delete.
5867         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
5868         (decode_unconditional): Delete.
5869         (arm_decode_unconditional): Renamed from decode_unconditional.
5870
5871 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
5872
5873         Case insensitive lookups implementation.
5874         * dwarf2read.c: Include ctype.h.
5875         (struct mapped_index): New field version.
5876         (mapped_index_string_hash): New parameter index_version.  New comment
5877         for it.  Call tolower appropriately.
5878         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
5879         Choose the right index version for mapped_index_string_hash.
5880         (dwarf2_read_index): Support also the index version 5.  Initialize the
5881         new struct mapped_index field version.
5882         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
5883         (find_slot): Explain the version needs.  Pass INT_MAX for the new
5884         parameter.
5885         (write_psymtabs_to_index): Produce version 5.
5886         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
5887         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
5888         * psymtab.c (lookup_partial_symbol): Find the
5889         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
5890         entries.
5891         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
5892         NAME lowercasing.
5893         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
5894         (completion_list_add_name): New variable ncmp, initialize it, use it.
5895         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
5896         * utils.c (strcmp_iw): Support case_sensitive_off.
5897         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
5898         New function comment part.  New variables saved_string1,
5899         saved_string2 and case_pass.  Add a proper second pass.
5900
5901 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
5902
5903         Replace re_comp/re_exec by regcomp/regexec.
5904         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
5905         (search_symbols_name_matches): Use them, use regexec.
5906         (search_symbols): New variable retval_chain, adjust the use of
5907         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
5908         search_symbols_data fields, use regexec instead of re_exec.
5909
5910 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
5911
5912         Format the code for the next patch.
5913         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
5914         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
5915         New variables c1 and c2.
5916
5917 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
5918
5919         * infrun.c (proceed): Do not single-step into signal delivery
5920         when stepping off a breakpoint location.
5921         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
5922         (insert_step_resume_breakpoint_at_caller): Likewise.
5923         (insert_step_resume_breakpoint_at_sal): Likewise.
5924         (insert_longjmp_resume_breakpoint): Likewise.
5925
5926 2011-04-27  Yao Qi  <yao@codesourcery.com>
5927
5928         * common/linux-ptrace.h: Remove include <sys/wait.h>.
5929
5930 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
5931
5932         * procfs.c (procfs_pass_signals): Fix advance declaration.
5933
5934 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
5935
5936         * target.h (struct target_ops): Remove to_notice_signals;
5937         add to_pass_signals.
5938         (target_notice_signals): Remove.
5939         (target_pass_signals): Add prototype.
5940         * target.c (update_current_target): Remove to_notice_signals;
5941         mention to_pass_signals.
5942         (target_pass_signals): New function.
5943         (debug_to_notice_signals): Remove.
5944         (setup_target_debug): Do not install debug_to_notice_signals.
5945
5946         * infrun.c (signal_pass): New global.
5947         (resume): Call target_pass_signals.
5948         (handle_inferior_event): Report all signals while stepping over
5949         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
5950         are re-inserted when stepping over a signal handler.
5951         (signal_cache_update): New function.
5952         (signal_stop_update): Call it.
5953         (signal_print_update): Likewise.
5954         (signal_pass_update): Likewise.
5955         (handle_command): Call signal_cache_update and target_pass_signals
5956         instead of target_notice_signals.
5957         (_initialize_infrun): Initialize signal_pass.
5958
5959         * linux-nat.c (pass_mask): New global.
5960         (linux_nat_pass_signals): New function.
5961         (linux_nat_create_inferior): Report all signals initially.
5962         (linux_nat_attach): Likewise.
5963         (linux_nat_resume): Use pass_mask to decide whether to directly
5964         handle an inferior signal.
5965         (linux_nat_wait_1): Likewise.
5966         (linux_nat_add_target): Install to_pass_signals callback.
5967
5968         * nto-procfs.c (notice_signals): Remove.
5969         (procfs_resume): Do not call notice_signals.
5970         (procfs_notice_signals): Remove.
5971         (procfs_pass_signals): New function.
5972         (init_procfs_ops): Install to_pass_signals callback instead of
5973         to_notice_signals callback.
5974         (_initialize_procfs): Report all signals initially.
5975
5976         * procfs.c (procfs_notice_signals): Remove.
5977         (procfs_pass_signals): New function.
5978         (procfs_target): Install to_pass_signals callback instead of
5979         to_notice_signals callback.
5980         (register_gdb_signals): Remove.
5981         (procfs_debug_inferior): Report all signals initially.
5982         (procfs_init_inferior): Remove redundant register_gdb_signals call.
5983
5984         * remote.c (remote_pass_signals): Add numsigs and pass_signals
5985         parameters; use them instead of calling signal_..._state routines.
5986         (remote_notice_signals): Remove.
5987         (remote_start_remote): Report all signals initially.
5988         (remote_resume): Do not call remote_pass_signals.
5989         (_initialize_remote): Install to_pass_signals callback instead of
5990         to_notice_signals callback.
5991
5992 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
5993
5994         * breakpoint.c (user_settable_breakpoint): Delete.
5995         (user_breakpoint_p): Remove check on user_settable_breakpoint.
5996         (delete_command): Check user_breakpoint_p instead of looking at
5997         the breakpoint's type.
5998         (disable_command): Ditto.
5999         (enable_command): Ditto.
6000         (delete_trace_command): Use user_breakpoint_p instead of looking
6001         at the breakpoint number directly.  When checking if there are
6002         user visible tracepoints, in order to know whether to ask the user
6003         for confirmation, check whether the breakpoint is actually a
6004         tracepoint.
6005
6006 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
6007
6008         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6009         compilation.
6010
6011 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
6012
6013         MI breakpoint notifications.
6014
6015         * annotate.c (breakpoint_changed): Adjust parameter type.
6016         * breakpoint.c (set_breakpoint_condition): Adjust to change
6017         in breakpoint_modified type.
6018         (breakpoint_set_commands): Likewise.
6019         (do_map_commands_command): Likewise.
6020         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6021         changed after bumping hit count.
6022         (bpstat_stop_status): Likewise.
6023         (print_one_breakpoint_location): Don't wrap in tuple here.
6024         (print_one_breakpoint): Always print individual locations.
6025         For locations, use unnamed tuple.
6026         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6027         has changed.
6028         (create_catchpoint, create_syscall_event_catchpoint): Call
6029         breakpoint_created obsever.
6030         (mention): Don't call breakpoint_created observer.
6031         (create_breakpoint_sal): Call breakpoint_created observer.
6032         (create_breakpoint, watch_command_1): Likewise.
6033         (create_ada_exception_breakpoint): Likewise.
6034         (delete_breakpoint): Call breakpoint_deleted breakpoint.
6035         (locations_are_equal): New.
6036         (update_breakpoint_locations): If locations were changed, notify.
6037         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6038         Call breakpoint_modified observer.
6039
6040         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6041         (mi_cmd_break_insert): Don't set observers for modify and delete.
6042         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6043         (mi_breakpoint_created, mi_breakpoint_deleted)
6044         (mi_breakpoint_modified): New.
6045         (mi_interpreter_init): Hook the above.
6046         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6047         while -break-* commands are executing.
6048         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6049         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6050         (mi_redirect): New.
6051         (mi_ui_out_impl): Hook in mi_redirect.
6052         (mi_field_skip): True to the name, skip the field, don't output
6053         a field with an empty value.
6054
6055         * python/py-breakpoint.c (gdbpy_breakpoint_created)
6056         (gdbpy_breakpoint_deleted): Adjust.
6057         * tui/tui-hooks.c (tui_event_create_breakpoint)
6058         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6059
6060 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
6061
6062         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6063         (procfs_remove_hw_watchpoint): Likewise.
6064
6065 2011-04-26  Michael Walle  <michael@walle.cc>
6066
6067         * remote.c (remote_start_remote): Ack packet after sending the
6068         interrupt sequence.
6069
6070 2011-04-26  Yao Qi  <yao@codesourcery.com>
6071
6072         * linux-nat.c: Move common macros to ...
6073         Include linux-ptrace.h.
6074         * common/linux-ptrace.h: ... here.  New.
6075
6076 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
6077
6078         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6079         !objfile_has_partial_symbols.  New comment.
6080         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6081         SYM_READ_PSYMBOLS is not present. Extend the comment.
6082         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6083
6084 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
6085
6086         * defs.h (ENUM_BITFIELD): Remove.
6087
6088 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
6089             Eli Zaretskii  <eliz@gnu.org>
6090
6091         * NEWS: Document the new gdbserver --once option.
6092
6093 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
6094
6095         * MAINTAINERS: Update my email address.
6096
6097 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6098
6099         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6100         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6101         function call if __STDC_ISO_10646__ macro is defined.
6102         (intermediate_encoding): New prototype.
6103         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6104         to generate compile time error for unsupported gdb_wchar_t size.
6105         (ENDIAN_SUFFIX): New macro.
6106         (intermediate_encoding): New function.
6107
6108 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6109
6110         * ada-lang.c (struct add_partial_datum): Update the comment for
6111         expand_partial_symbol_name.
6112         (ada_add_partial_symbol_completions): Rename to ...
6113         (ada_expand_partial_symbol_name): ... here, change return type, update
6114         function comment, call symbol_completion_match instead of
6115         symbol_completion_add.
6116         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6117         and ada_expand_partial_symbol_name.
6118         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6119         FILE_MATCHER.
6120         (dw2_map_symbol_names): Remove.
6121         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6122         * psymtab.c (map_symbol_names_psymtab): Remove.
6123         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6124         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
6125         order.
6126         (psym_functions): Unlist map_symbol_names_psymtab.
6127         (map_partial_symbol_names): Rename to ...
6128         (expand_partial_symbol_names): ... here, change the FUN type, call
6129         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6130         * psymtab.h (map_partial_symbol_names): Rename to ...
6131         (expand_partial_symbol_names): ... here, change the FUN type.
6132         * symfile.h (struct quick_symbol_functions): Update the description of
6133         expand_symtabs_matching.  Remove map_symbol_names.
6134         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6135         (struct add_name_data): Update the comment for
6136         expand_partial_symbol_name.
6137         (add_partial_symbol_name): Rename to ...
6138         (expand_partial_symbol_name): ... here.  Replace
6139         completion_list_add_name call by strncmp.
6140         (default_make_symbol_completion_list_break_on): Use now
6141         expand_partial_symbol_names and expand_partial_symbol_name.
6142         * symtab.h (enum search_domain): New element ALL_DOMAIN.
6143
6144 2011-04-20  Tom Tromey  <tromey@redhat.com>
6145
6146         * dwarf2read.c (save_gdb_index_command): Replace format
6147         documentation with a pointer to the manual.
6148
6149 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
6150
6151         * regcache.c: Include remote.h.
6152         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6153         (regcache_dump): Handle regcache_dump_remote.
6154         (maintenance_print_remote_registers): New function.
6155         (_initialize_regcache): Install "maint print remote-registers"
6156         command.
6157         * remote.c (map_regcache_remote_table): New function, factored out
6158         from ...
6159         (init_remote_state): ... here.
6160         (remote_register_number_and_offset): New.
6161         * remote.h (remote_register_number_and_offset): Declare.
6162
6163 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
6164
6165         * regcache.c (get_thread_arch_regcache): If creating a regcache for
6166         null_ptid, assume and allow a NULL address space, instead of
6167         asking the target for the ptid's address space.
6168         * infrun.c (ptid_is_pid): Remove assertion.
6169
6170 2011-04-19  Tom Tromey  <tromey@redhat.com>
6171
6172         * windows-tdep.c (windows_xfer_shared_library):
6173         * windows-nat.c (get_module_name, windows_make_so):
6174         * v850-tdep.c (v850_handle_pushm):
6175         * utils.c (null_cleanup, gdb_realpath):
6176         * ui-out.c (get_next_header):
6177         * tracepoint.c (clear_traceframe_info):
6178         * symtab.c (lookup_symtab):
6179         * serial.h (struct serial_ops):
6180         * mipsread.c (read_alphacoff_dynamic_symtab):
6181         * infcmd.c (print_return_value):
6182         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6183         * f-exp.y (parse_number):
6184         * exceptions.c (catch_exceptions):
6185         * dummy-frame.c (dummy_frame_this_id):
6186         * defs.h (struct cleanup):
6187         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6188         * arm-tdep.c (arm_push_dummy_call):
6189         * amd64-tdep.h (amd64_collect_xsave):
6190         * amd64-tdep.c (amd64_collect_xsave):
6191         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6192         * README (typing): Remove duplicate words.
6193         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6194         * infrun.c (siginfo_value_read): Fix typo.
6195         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6196         * top.c (source_line_number): Add comma.
6197
6198 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
6199
6200         * thread.c (any_live_thread_of_process): Prioritize threads
6201         that are not executing.
6202         * gdbthread.h (any_live_thread_of_process): Update comment
6203         as per above change.
6204
6205 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
6206
6207         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6208         (scan_xcoff_symtab): Likewise.
6209
6210 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6211
6212         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6213         inside if clause.
6214
6215 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6216             Pedro Alves  <pedro@codesourcery.com>
6217
6218         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6219         variables to simplify code and avoid == operator at end of
6220         line as this is against GNU coding standards.
6221
6222 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6223
6224         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6225         lm_name to name_lm to avoid conflict with lm_name function.
6226
6227 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6228
6229         ARI fixes: Use only lowercase function name for static functions.
6230         * nto-tdep.c (LM_ADDR): Rename to...
6231         (lm_addr): New function name.
6232         (nto_relocate_section_addresses): Adapt to change above.
6233         * solib-sunos.c (LM_ADDR): Rename to...
6234         (lm_addr): New function name.
6235         (LM_NEXT): Rename to...
6236         (lm_next): New function name.
6237         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6238         function name changes above.
6239         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6240         (lm_addr_from_link_map): New function name.
6241         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6242         (has_lm_dynamic_from_link_map): New function name.
6243         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6244         (lm_dynamic_from_link_map): New function name.
6245         (LM_ADDR_CHECK): Rename to...
6246         (lm_addr_check): New function name.
6247         (LM_NEXT): Rename to...
6248         (lm_next): New function name.
6249         (LM_PREV): Rename to...
6250         (lm_prev): New function name.
6251         (LM_NAME): Rename to...
6252         (lm_name): New function name.
6253         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
6254         (ignore_first_link_map_entry): New function name.
6255         (svr4_keep_data_in_core): Adapt to function name changes above.
6256         (svr4_current_sos): Likewise.
6257         (enable_break): Likewise.
6258         (svr4_relocate_section_addresses): Likewise.
6259
6260 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
6261
6262         ARI cleanup.
6263         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
6264         sprintf. Simplify code and avoid loosing memory.
6265         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
6266         (call0_frame_cache): Remove && operator from end of line.
6267
6268 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6269
6270         Fix libraries displacement if they change whether they were prelinked.
6271         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
6272         does not match.  Comment why.
6273
6274 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6275
6276         * corelow.c: Include wrapper.h.
6277         (core_open): Call now gdb_target_find_new_threads.
6278         * wrapper.c: Include target.h.
6279         (gdb_target_find_new_threads): New.
6280         * wrapper.h (gdb_target_find_new_threads): New declaration.
6281
6282 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6283
6284         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
6285         even if !TARGET_HAS_EXECUTION.
6286
6287 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6288
6289         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
6290         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
6291         bfd_get_synthetic_symtab.
6292         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
6293         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
6294         parameter parent, remove the call to add_separate_debug_objfile.
6295         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
6296         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
6297         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
6298         parent, new comment for it, call add_separate_debug_objfile for it.
6299         (symbol_file_add_separate): Pass objfile as the parameter parent,
6300         remove the call to add_separate_debug_objfile.
6301         (symbol_file_add_from_bfd): New parameter parent, pass it.
6302         (symbol_file_add): Pass NULL to the new parameter parent.
6303         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
6304
6305 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6306
6307         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
6308         BSF_SYNTHETIC.
6309
6310 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
6311
6312         Fix Python access to inlined frames.
6313         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
6314         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
6315
6316 2011-04-15  Tom Tromey  <tromey@redhat.com>
6317
6318         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
6319
6320 2011-04-15  Gary Benson  <gbenson@redhat.com>
6321
6322         * MAINTAINERS: Add myself to write-after-approval section.
6323
6324 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
6325
6326         * remote-sim.c (sim_command_completer): New function.
6327         (_initialize_remote_sim): Set completer to sim_command_completer.
6328
6329 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6330
6331         * breakpoint.c (print_exception_catchpoint): Rename to ...
6332         (print_it_exception_catchpoint): ... this.
6333         (gnu_v3_exception_catchpoint_ops): Update with new name
6334         for print_it_exception_catchpoint.
6335
6336 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
6337
6338         * MAINTAINERS: Add myself for write after approval privileges.
6339
6340 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
6341
6342         * MAINTAINERS: Add myself as a write-after-approval maintainer.
6343
6344 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6345
6346         * breakpoint.c (watch_command_1): Remove colon from exp_string.
6347
6348 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6349
6350         * breakpoint.c (save_breakpoints): Verify whether
6351         breakpoint_ops.print_recreate is defined before calling it.
6352
6353 2011-04-11  Gary Benson  <gbenson@redhat.com>
6354
6355         Fix failure with --enable-maintainer-mode.
6356         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
6357
6358 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
6359
6360         Code cleanup.
6361         * symtab.c (search_symbols): Reorder the KIND description in the
6362         function comment.  Remove the unused 4th element of types, types2,
6363         types3 and types4.  New gdb_assert on KIND.
6364         (symtab_symbol_info): Remove the unused 4th element of classnames.
6365         New gdb_assert on KIND.
6366         * symtab.h (enum search_domain): New warning in the enum comment.
6367         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
6368         TYPES_DOMAIN.
6369
6370 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
6371
6372         Fix crash of gdb save-index on a STABS file.
6373         * dwarf2read.c (write_psymtabs_to_index): Return also on no
6374         PSYMTABS_ADDRMAP.
6375
6376 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
6377
6378         Fix DW_AT_accessibility compatibility with gcc-4.6+.
6379         * dwarf2read.c: Include ctype.h.
6380         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
6381         functions.
6382         (dwarf2_add_field): Fix new_field->accessibility by calling
6383         dwarf2_default_access_attribute.  Restructure setting accessibility
6384         vs. virtuality.
6385         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
6386         is_private and is_protected by calling
6387         dwarf2_default_access_attribute.
6388
6389 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
6390
6391         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
6392         to the initialization.
6393
6394 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
6395
6396         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
6397         initalization.
6398
6399 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
6400
6401         Remove support for old Cygwin 1.5 versions.
6402         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
6403         function on old Cygwin version.
6404         * windows-nat.c: Remove cygwin version check and always define
6405         __USEWIDE for Cygwin compilation.
6406
6407 2011-04-07  Yao Qi  <yao@codesourcery.com>
6408
6409         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
6410         and TO.
6411         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
6412         (arm_copy_svc): Remove parameters INSN and TO.
6413         (decode_svc_copro): Update caller.
6414         * arm-tdep.h (struct displaced_step_closure): Remove parameters
6415         from function pointer `copy_svc_os'.
6416
6417 2011-04-07  Yao Qi  <yao@codesourcery.com>
6418
6419         * arm-tdep.c (cleanup_branch): Set a correct return address in
6420         LR for ARM and Thumb.
6421
6422 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6423
6424         Code cleanup.
6425         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
6426         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
6427         in the function comment, a new note on values compatibility.
6428         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
6429         * symtab.h (SYMBOL_HASH_NEXT): New.
6430
6431 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6432
6433         * ppc-linux-nat.c (check_condition): Add len output parameter.
6434         Set it based on the memory region referenced in the condition
6435         expression.  Update all callers.
6436
6437 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6438
6439         Fix crash regression on systems featuring .gdb_index.
6440         * objfiles.c (free_objfile): Move the
6441         forget_cached_source_info_for_objfile call earlier.  Comment it.
6442         Extend the comment for objfile_free_data.
6443
6444 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6445
6446         Fix regression of displaying the debug format.
6447         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
6448         subfile.
6449
6450 2011-04-04  Tom Tromey  <tromey@redhat.com>
6451
6452         * cli/cli-interp.c (struct captured_execute_command_args):
6453         Remove.
6454         (do_captured_execute_command): Remove.
6455         (safe_execute_command): Use TRY_CATCH.
6456         * cli/cli-script.c (struct wrapped_read_command_file_args):
6457         Remove.
6458         (wrapped_read_command_file): Remove.
6459         (script_from_file): Use TRY_CATCH.
6460         * exceptions.c (catch_exception): Remove.
6461         * exceptions.h (catch_exception): Remove.
6462         (deprecated_throw_reason): Update comment.
6463         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
6464         argument to 'context'.
6465         (mi_execute_command): Use TRY_CATCH.
6466         * remote.c (struct start_remote_args): Remove.
6467         (remote_start_remote): Update; change arguments.
6468         (remote_open_1): Use TRY_CATCH.
6469
6470 2011-04-04  Tom Tromey  <tromey@redhat.com>
6471
6472         * tracepoint.c (scope_info): Update.
6473         * symtab.c (decode_line_spec): Update.
6474         * python/python.c (gdbpy_decode_line): Update.
6475         * linespec.h (decode_line_1): Update.
6476         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
6477         (decode_compound, find_method, symtab_from_filename)
6478         (decode_variable): Likewise.
6479         * cli/cli-cmds.c (edit_command): Update.
6480         (list_command): Update.
6481         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
6482         argument.
6483         (create_breakpoint): Update.
6484         (until_break_command): Update.
6485         (addr_string_to_sals): Update.
6486         (decode_line_spec_1): Update.
6487
6488 2011-04-04  Tom Tromey  <tromey@redhat.com>
6489
6490         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
6491         (do_captured_parse_breakpoint): Remove.
6492         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
6493         Use TRY_CATCH directly.
6494
6495 2011-04-04  Tom Tromey  <tromey@redhat.com>
6496
6497         * symtab.h (free_symtab): Remove.
6498         (forget_cached_source_info_for_objfile): Declare.
6499         * symmisc.c (free_symtab): Remove.
6500         * source.c (forget_cached_source_info_for_objfile): New function.
6501         (forget_cached_source_info): Use it.
6502         * objfiles.c (free_objfile): Simplify check before calling
6503         clear_current_source_symtab_and_line.  Call
6504         forget_cached_source_info_for_objfile.
6505
6506 2011-04-04  Tom Tromey  <tromey@redhat.com>
6507
6508         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
6509         (new_symtab): Don't set `free_code' on symtab.
6510         (new_linetable): Properly handle size==0.
6511         * symtab.h (struct symtab) <free_code, free_func>: Remove.
6512         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
6513         free_func.
6514         * jv-lang.c (struct jv_per_objfile_data): New.
6515         (jv_per_objfile_free): Free the data.
6516         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
6517         (get_java_class_symtab): Set the `dict' field on the
6518         jv_per_objfile_data.
6519         (free_class_block): Remove.
6520         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
6521         the symtab.
6522
6523 2011-04-04  Tom Tromey  <tromey@redhat.com>
6524
6525         * symfile.c (reread_symbols): Update.
6526         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
6527         field.
6528         * objfiles.c (allocate_objfile): Update.
6529         * cp-support.h (cp_check_possible_namespace_symbols): Don't
6530         declare.
6531         * cp-namespace.c (lookup_symbol_file): Don't call
6532         lookup_possible_namespace_symbol.
6533         (initialize_namespace_symtab, get_possible_namespace_block)
6534         (free_namespace_block, cp_check_possible_namespace_symbols)
6535         (check_possible_namespace_symbols_loop)
6536         (check_one_possible_namespace_symbol)
6537         (lookup_possible_namespace_symbol): Remove.
6538         (maintenance_cplus_namespace): Replace with notice.
6539         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
6540
6541 2011-04-04  Tom Tromey  <tromey@redhat.com>
6542
6543         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
6544         * symtab.h (struct symtab) <producer, debugformat>: Now const.
6545         * symmisc.c (free_symtab): Don't free debugformat.
6546         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
6547         (record_debugformat, record_producer): Document.
6548         * buildsym.c (end_symtab): Don't save debugformat and producer
6549         names on obstack.
6550         (end_symtab): Don't free debugformat and producer fields.
6551         (record_debugformat): Don't call xstrdup.
6552         (record_producer): Likewise.
6553
6554 2011-04-04  Tom Tromey  <tromey@redhat.com>
6555
6556         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
6557         (source_line_charpos, source_charpos_line): Remove.
6558
6559 2011-04-04  Tom Tromey  <tromey@redhat.com>
6560
6561         * symtab.h (domain_enum): Split in two...
6562         (enum search_domain): New.
6563         (search_symbols): Update.
6564         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
6565         redundant declarations.
6566         (search_symbols): Change 'kind' argument to search_domain.
6567         Update.
6568         (print_symbol_info): Likewise.
6569         (symtab_symbol_info): Likewise.
6570         * symfile.h (struct quick_symbol_functions)
6571         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
6572         <expand_symtabs_matching>: Likewise.
6573         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
6574         (expand_symtabs_matching_via_partial): Update.
6575         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
6576         (dw2_expand_symtabs_for_function): Update.
6577         * block.h: Moved anonymous enum...
6578         * defs.h (enum block_enum): ... here.  Now named.
6579
6580 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
6581
6582         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
6583         * version.in: Bump version to 7.3.50.20110403-cvs.
6584
6585 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
6586
6587         * NEWS: Create a new section for the next release branch.
6588         Rename the section of the current branch, now that it has
6589         been cut.
6590
6591 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
6592
6593         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
6594         for "fpscr" in target description.
6595
6596 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
6597
6598         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
6599         initialize it.  Delay HASH initialization.  Strip the part after open
6600         parenthesis for languages with qualifiers.  Call do_cleanups.
6601
6602 2011-04-01  Tom Tromey  <tromey@redhat.com>
6603
6604         * utils.c (report_command_stats): Don't print `-' for negative
6605         number.
6606
6607 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
6608
6609         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
6610         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
6611         typedefs.
6612
6613 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
6614
6615         * breakpoint.h (bpdisp_text): Add declaration.
6616         * breakpoint.c (bpdisp_text): Make non-static.
6617         * ada-lang.c: #include "mi/mi-common.h".
6618         (print_it_exception): Rewrite to improve GDB/MI output.
6619
6620 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
6621
6622         * arm-tdep.h (struct address_space): Add forward declaration.
6623
6624 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
6625
6626         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
6627         * arm-tdep.c (arm_override_mode): New global.
6628         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
6629         execution mode heuristics.
6630         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
6631         second single-step breakpoint if needed, using
6632         arm_insert_single_step_breakpoint.
6633         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
6634         ARM execution mode, do not call thumb_get_next_pc_raw.
6635         (arm_get_next_pc): Encode execution mode in return value.  Call
6636         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
6637         (arm_insert_single_step_breakpoint): New function.
6638         (arm_software_single_step): Call it.
6639         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
6640         argument to return execution mode of sigreturn target.
6641         (arm_linux_syscall_next_pc): Use it.
6642         (arm_linux_copy_svc): Update call.
6643         (arm_linux_software_single_step): Call
6644         arm_insert_single_step_breakpoint.
6645
6646 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
6647
6648         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
6649         the comment.
6650
6651 2011-03-31  Tom Tromey  <tromey@redhat.com>
6652
6653         * varobj.c (update_dynamic_varobj_children): Properly handle
6654         errors from iterator.
6655
6656 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
6657
6658         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
6659         struct linkage name twice.
6660
6661 2011-03-31  Tom Tromey  <tromey@redhat.com>
6662
6663         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
6664         missing ">" to message.
6665
6666 2011-03-31  Tom Tromey  <tromey@redhat.com>
6667
6668         * varobj.c (instantiate_pretty_printer): Remove duplicate
6669         'return'.
6670
6671 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
6672
6673         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
6674         if neither saved value nor register available (e.g. signal frame).
6675
6676 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6677
6678         * macroexp.c (expand): Avoid uninitialized variable
6679         compiler warning.
6680
6681 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6682
6683         * breakpoint.c (break_range_command): Fix typo in comment.
6684
6685 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6686             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
6687
6688         Implement support for PowerPC BookE ranged breakpoints.
6689         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
6690         * breakpoint.h (struct bp_target_info) <length>: New member
6691         variable.
6692         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
6693         instead of struct breakpoint as argument, and also add ASPACE
6694         and BP_ADDR arguments.  Update all callers.
6695         (struct breakpoint_ops) <print_one_detail>: New method.
6696         (struct breakpoint) <addr_string_range_end>: New member variable.
6697         * breakpoint.c (breakpoint_location_address_match): Add function
6698         prototype.
6699         (insert_bp_location): Set bl->target_info.length.
6700         (breakpoint_here_p): Call breakpoint_location_address_match.
6701         (moribund_breakpoint_here_p): Likewise.
6702         (regular_breakpoint_inserted_here_p): Likewise.
6703         (breakpoint_thread_match): Likewise.
6704         (bpstat_stop_status): Likewise.
6705         (bpstat_check_location): Move call to
6706         breakpoint_ops.breakpoint_hit to the top.
6707         (print_one_breakpoint_location): Call
6708         breakpoint_ops.print_one_detail if available.
6709         (breakpoint_address_match_range): New function.
6710         (breakpoint_location_address_match): Likewise.
6711         (breakpoint_locations_match): Compare the length field of the
6712         locations too.
6713         (hw_breakpoint_used_count): Count resources used by all locations
6714         in a breakpoint, and use breakpoint_ops.resources_needed if
6715         available.
6716         (breakpoint_hit_ranged_breakpoint): New function.
6717         (resources_needed_ranged_breakpoint): Likewise.
6718         (print_it_ranged_breakpoint): Likewise.
6719         (print_one_ranged_breakpoint): Likewise.
6720         (print_one_detail_ranged_breakpoint): Likewise.
6721         (print_mention_ranged_breakpoint): Likewise.
6722         (print_recreate_ranged_breakpoint): Likewise.
6723         (ranged_breakpoint_ops): New structure.
6724         (find_breakpoint_range_end): New function.
6725         (break_range_command): Likewise.
6726         (delete_breakpoint): Free addr_string_range_end.
6727         (update_breakpoint_locations): Add SALS_END argument.  Update
6728         all callers.  Calculate breakpoint length if a non-zero SALS_END
6729         is given.  Call breakpoint_locations_match instead of
6730         breakpoint_address_match.
6731         (reset_breakpoint): Find SaL of the end of the range if B is a
6732         ranged breakpoint.
6733         (_initialize_breakpoint): Register break-range command.
6734         * defs.h (print_core_address): Add function prototype.
6735         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
6736         function.
6737         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
6738         (ppc_linux_remove_hw_breakpoint): Likewise.
6739         (_initialize_ppc_linux_nat): Initialize
6740         to_ranged_break_num_registers.
6741         * target.c (update_current_target): Add comment about
6742         to_ranged_break_num_registers.
6743         (target_ranged_break_num_registers): New function.
6744         * target.h (struct target_ops) <to_ranged_break_num_registers>:
6745         New method.
6746         (target_ranged_break_num_registers): Add function prototype.
6747         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
6748         * utils.c (print_core_address): ... here.
6749
6750 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
6751
6752         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
6753         variable compiler warning.
6754
6755 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6756
6757         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
6758         code from here ...
6759         (re_set_breakpoint): ... to here ...
6760         (addr_string_to_sals): ... and here.
6761
6762 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
6763
6764         * Makefile.in (SFILES): Add missing C sources.
6765         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
6766         Add missing headers.
6767
6768 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
6769
6770         * .gitignore: New file.
6771
6772 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
6773
6774         * NEWS: Mention new cfi device simulation.
6775
6776 2011-03-29  Tom Tromey  <tromey@redhat.com>
6777
6778         * dwarf2read.c (fixup_partial_die): Handle linkage name on
6779         otherwise anonymous types.
6780         (dwarf2_name): Likewise.
6781         * valops.c (value_struct_elt_for_reference): Refine artificial
6782         type logic.  Call error if j==-1.
6783
6784 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
6785
6786         Fix false GCC warning.
6787         * infcall.c (find_function_addr): Initialize funaddr.
6788
6789 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
6790
6791         Fix mingw compilation with --enable-targets=all.
6792         * remote-mips.c (gdb_usleep.h): Include header.
6793         (mips_enter_debug): Use gdb_usleep instead of sleep.
6794
6795 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6796
6797         Support resolution of STT_GNU_IFUNC via breakpoints.
6798         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
6799         bp_gnu_ifunc_resolver_return.
6800         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
6801         the loop.  Support bp_gnu_ifunc_resolver and
6802         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
6803         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
6804         breakpoints.
6805         (bptype_string, print_one_breakpoint_location): Support
6806         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
6807         (user_settable_breakpoint): Return true also for
6808         bp_gnu_ifunc_resolver.
6809         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
6810         bp_gnu_ifunc_resolver_return.
6811         (set_breakpoint_location_function): New parameter explicit_loc,
6812         describe it.  Call find_pc_partial_function_gnu_ifunc with new
6813         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
6814         EXPLICIT_LOC is not set.
6815         (set_raw_breakpoint): Set EXPLICIT_LOC for
6816         set_breakpoint_location_function.
6817         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
6818         set_breakpoint_location_function.
6819         (mention): Support bp_gnu_ifunc_resolver and
6820         bp_gnu_ifunc_resolver_return.
6821         (add_location_to_breakpoint): Set EXPLICIT_LOC for
6822         set_breakpoint_location_function.
6823         (update_breakpoint_locations): Remove static.
6824         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
6825         bp_gnu_ifunc_resolver_return.
6826         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
6827         bp_gnu_ifunc_resolver_return.
6828         (update_breakpoint_locations): New declaration.
6829         * elfread.c: Include gdbthread.h and regcache.h.
6830         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
6831         functions.
6832         (elf_gnu_ifunc_fns): Install them.
6833         * minsyms.c (stub_gnu_ifunc_resolver_stop)
6834         (stub_gnu_ifunc_resolver_return_stop): New functions.
6835         (stub_gnu_ifunc_fns): Install them.
6836         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
6837         and gnu_ifunc_resolver_return_stop.
6838         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
6839
6840 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6841
6842         STT_GNU_IFUNC reader implementation.
6843         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
6844         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
6845         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
6846         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
6847         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
6848         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
6849         (elf_gnu_ifunc_resolve_addr): New.
6850         (elf_symfile_read): Call elf_rel_plt_read.
6851         (elf_gnu_ifunc_fns): New.
6852         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
6853         Install elf_gnu_ifunc_fns.
6854         * infcall.c (find_function_return_type): New function.
6855         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
6856         * minsyms.c (stub_gnu_ifunc_resolve_addr)
6857         (stub_gnu_ifunc_resolve_name): New functions.
6858         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
6859         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
6860         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
6861
6862 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6863
6864         Code cleanup for later STT_GNU_IFUNC support.
6865         * infcall.c (find_function_addr): Remove variable code, use explicit
6866         dereferences for it.  Move VALUE_TYPE initialization later.
6867
6868 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6869
6870         GDB find_pc_partial_function support for STT_GNU_IFUNC.
6871         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
6872         (clear_pc_function_cache): Clear it.
6873         (find_pc_partial_function): Rename to ...
6874         (find_pc_partial_function_gnu_ifunc): ... this function.  New
6875         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
6876         (find_pc_partial_function): New wrapper for this function.
6877         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
6878
6879 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6880
6881         GDB internal type support for STT_GNU_IFUNC.
6882         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
6883         (elf_symtab_read): Set mst_text_gnu_ifunc for
6884         BSF_GNU_INDIRECT_FUNCTION.
6885         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
6886         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
6887         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
6888         nodebug_got_plt_symbol.
6889         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
6890         (TYPE_GNU_IFUNC): New.
6891         (struct main_type): New field flag_gnu_ifunc.
6892         (struct builtin_type): New field builtin_func_func.
6893         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
6894         nodebug_got_plt_symbol.
6895         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
6896         (in_gnu_ifunc_stub): New.
6897         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
6898         mst_text_gnu_ifunc.
6899         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
6900         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
6901         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
6902         in_gnu_ifunc_stub.
6903         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
6904         * symtab.c (search_symbols): Likewise.
6905         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
6906         and mst_slot_got_plt.
6907         (in_gnu_ifunc_stub): New declaration.
6908
6909 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6910
6911         Support a ring of related breakpoints.
6912         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
6913         other functions, add gdb_assert.
6914         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
6915         watchpoint_del_at_next_stop.
6916         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
6917         (bpstat_stop_status): Handle ring in related_breakpoint.
6918         (set_raw_breakpoint_without_location): Initialize ring in
6919         related_breakpoint.
6920         (delete_breakpoint): Handle ring in related_breakpoint, use
6921         watchpoint_del_at_next_stop.
6922         (map_breakpoint_numbers): Handle ring in related_breakpoint.
6923
6924 2011-03-28  Tom Tromey  <tromey@redhat.com>
6925
6926         PR symtab/12441:
6927         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
6928         with `language_minimal'.
6929
6930 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
6931
6932         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
6933         instead of checking for STT_ARM_TFUNC symbol type.
6934
6935 2011-03-25  Tom Tromey  <tromey@redhat.com>
6936
6937         * linespec.c (symbol_found): Restore line-based result for
6938         non-LOC_LABEL symbols.
6939
6940 2011-03-25  Kai Tietz  <ktietz@redhat.com>
6941
6942         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
6943         instead of strcmp for comparison.
6944         (tui_source_is_displayed): Likewise.
6945         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
6946
6947 2011-03-24  Mark Wielaard  <mjw@redhat.com>
6948
6949         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
6950         complaint.
6951         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
6952         (find_partial_die_in_comp_unit): Likewise in comment.
6953         (read_attribute_value): Likewise.
6954         (lookup_die_type): Likewise.
6955         (dwarf_form_name): Likewise.
6956         (dump_die_shallow): Likewise.
6957         (follow_die_ref_or_sig): Likewise.
6958
6959 2011-03-24  Tom Tromey  <tromey@redhat.com>
6960
6961         PR breakpoints/11816:
6962         * linespec.c (decode_line_1): Parse `function:label' linespecs.
6963         (decode_compound): Update.
6964         (find_function_symbol): New function.
6965         (decode_dollar): Update.
6966         (decode_label): Add 'function_symbol' parameter.  Handle
6967         function-relative labels.
6968         (decode_variable): Update.
6969         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
6970         not its line.  Set `special_display' and canonical name for
6971         labels.
6972
6973 2011-03-24  Tom Tromey  <tromey@redhat.com>
6974
6975         * linespec.h (struct linespec_result) <special_display>: New
6976         field.
6977         * breakpoint.h (struct breakpoint) <display_canonical>: New
6978         field.
6979         * breakpoint.c (print_breakpoint_location): Respect
6980         display_canonical.
6981         (create_breakpoint_sal): Add 'display_canonical' parameter.
6982         (create_breakpoints_sal): Update.
6983         (create_breakpoint): Update.
6984
6985 2011-03-24  Tom Tromey  <tromey@redhat.com>
6986
6987         * symtab.c (decode_line_spec): Update.
6988         * linespec.c (build_canonical_line_spec): Change type of
6989         'canonical'.
6990         (decode_line_2, decode_line_1, decode_objc, decode_compound)
6991         (find_method, decode_all_digits, decode_dollar, decode_label)
6992         (symbol_found): Likewise.
6993         (init_linespec_result): New function.
6994         * breakpoint.c (struct captured_parse_breakpoint_args)
6995         <canonical_p>: New field, replaces addr_string_p.
6996         (create_breakpoints_sal): Add 'canonical' parameter, replacing
6997         'addr_string'.
6998         (parse_breakpoint_sals): Likewise.
6999         (do_captured_parse_breakpoint): Update.
7000         (create_breakpoint): Use struct linespec_result.
7001         (until_break_command): Update.
7002         (breakpoint_re_set_one): Update.
7003         (decode_line_spec_1): Update.
7004         * linespec.h (struct linespec_result): New.
7005         (init_linespec_result): Declare.
7006
7007 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
7008
7009         * regcache.c (regcache_raw_read): If the target didn't supply a
7010         given raw register, mark it as unavailable.
7011
7012 2011-03-23  Kai Tietz  <ktietz@redhat.com>
7013
7014         * breakpoint.c (clear_command): Use filename_cmp
7015         instead of strcmp for comparison.
7016         * buildsym.c (watch_main_source_file_lossage): Likewise.
7017         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7018         checking just for slash.
7019         * dbxread.c (read_dbx_symtab): Use lbasename instead of
7020         strrchr and filename_cmp instead of strcmp for filenames.
7021         (add_old_header_file): Use filename_cmp
7022         instead of strcmp for comparison.
7023         * exec.c (exec_set_section_address): Likewise.
7024         * macrotab.c (macro_lookup_inclusion): Likewise.
7025         (macro_lookup_inclusion): Likewise.
7026         * elfread.c (_initialize_elfread): Likewise.
7027         (elfstab_offset_sections): Likewise.
7028         (elfstab_offset_sections): Use lbasename instead of
7029         strrchr.
7030         * mdebugread.c (parse_partial_symbols): Likewise.
7031         (arse_partial_symbols): Use filename_(n)cmp instead of
7032         str(n)cmp for comparison.
7033         * minsyms.c (lookup_minimal_symbol): Likewise.
7034         * psymtab.c (read_psymtabs_with_filename): Likewise.
7035         * solib.c (solib_read_symbols): Likewise.
7036         (reload_shared_libraries_1): Likewise.
7037         * symmisc.c (maintenance_print_symbols): Likewise.
7038         * symfile.c (separate_debug_file_exists): Likewise.
7039         (reread_symbols): Likewise.
7040         (find_separate_debug_file_by_debuglink): Likewise.
7041         * remote-fileio.c (remote_fileio_func_rename): Likewise.
7042         * source.c (add_path): Likewise.
7043         * symtab.c (filename_seen): Likewise.
7044         (file_matches): Likewise.
7045         (print_symbol_info): Likewise.
7046         (maybe_add_partial_symtab_filename): Likewise.
7047         (make_source_files_completion_list): Likewise.
7048         * xml-syscall.c (init_sysinfo): Likewise.
7049         * windows-nat.c (_initialize_check_for_gdb_ini): Use
7050         IS_DIR_SEPARATOR for checking for trailing path separator.
7051
7052 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7053
7054         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
7055         label abort_expression.
7056         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7057         DWARF_VALUE_OPTIMIZED_OUT.
7058
7059 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7060
7061         Code cleanup.
7062         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7063         to linkage_name.  Invert its value.  Update the function comment.
7064         (c_type_print_varspec_suffix): Invert it at the caller.
7065         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7066
7067 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
7068
7069         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7070         errors when reading the `stop_pc'.
7071         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7072         get_frame_pc.
7073
7074 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
7075
7076         * NEWS: Document gdb.Write stream keyword.
7077
7078 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7079
7080         Revert:
7081         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7082         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7083         (dwarf2_add_field): Fix new_field->accessibility for
7084         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7085
7086 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
7087
7088         PR python/12183
7089
7090         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7091         other error classes.  Do not print stack trace.
7092
7093 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7094
7095         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7096         (dwarf2_add_field): Fix new_field->accessibility for
7097         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7098
7099 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
7100
7101         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7102         encountering a load via a non-SP register.
7103
7104 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
7105
7106         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7107         field in returned unwinder.
7108
7109 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7110
7111         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7112
7113 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7114
7115         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7116         of xmalloc.
7117
7118 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
7119
7120         * frame.c (frame_unwind_register): Throw an error if unwinding the
7121         register failed.
7122         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7123         an unwind stop reason.
7124         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7125         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7126         UNWIND_UNAVAILABLE>: New.
7127         * inline-frame.c (inline_frame_unwind): Install
7128         default_frame_unwind_stop_reason.
7129         * frame-unwind.c: Include "exceptions.h".
7130         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7131         (default_frame_unwind_stop_reason): New.
7132         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7133         (default_frame_unwind_stop_reason): Declare.
7134         (struct frame_unwind) <stop_reason>: New function pointer.
7135
7136         * dummy-frame.c: Install default_frame_unwind_stop_reason.
7137         * dwarf2-frame.c: Include exceptions.h.
7138         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7139         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7140         computing the CFA.  If such an error was thrown, set
7141         unavailable_retaddr.
7142         (dwarf2_frame_unwind_stop_reason): New.
7143         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7144         unavailable.
7145         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7146         (dwarf2_signal_frame_unwind): Ditto.
7147
7148         * amd64-tdep.c: Include "exceptions.h".
7149         (struct amd64_frame_cache): New field "base_p".
7150         (amd64_init_frame_cache): Clear it.
7151         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7152         Avoid reading registers with functions that throw if the register
7153         is not necessary to compute the frame base.
7154         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7155         swallowing NOT_AVAILABLE_ERROR.
7156         (amd64_frame_unwind_stop_reason): New.
7157         (amd64_frame_this_id): Don't build a frame id if the frame base
7158         was unavailable.
7159         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7160         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7161         base_p if the frame base was computable.
7162         (amd64_sigtramp_frame_unwind_stop_reason): New.
7163         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7164         frame base was unavailable.
7165         (amd64_sigtramp_frame_unwind): Install
7166         amd64_sigtramp_frame_unwind_stop_reason.
7167         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7168         base_p if the frame base was computable.
7169         (amd64_epilogue_frame_unwind_stop_reason): New.
7170         (amd64_epilogue_frame_this_id): Don't build a frame id if the
7171         frame base was unavailable.
7172         (amd64_epilogue_frame_unwind): Install
7173         amd64_epilogue_frame_unwind_stop_reason.
7174         * i386-tdep.c: Include "exceptions.h".
7175         (struct i386_frame_cache): New field "base_p".
7176         (i386_init_frame_cache): Clear it.
7177         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7178         Avoid reading registers with functions that throw if the register
7179         is not necessary to compute the frame base.
7180         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7181         swallowing NOT_AVAILABLE_ERROR.
7182         (i386_frame_unwind_stop_reason): New.
7183         (i386_frame_this_id): Don't build a frame id if the frame base was
7184         unavailable.
7185         (i386_frame_prev_register): Handle unavailable SP.
7186         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7187         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7188         base_p if the frame base was computable.
7189         (i386_epilogue_frame_unwind_stop_reason): New.
7190         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7191         base was unavailable.
7192         (i386_epilogue_frame_unwind): Install
7193         i386_epilogue_frame_unwind_stop_reason.
7194         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7195         base_p if the frame base was computable.
7196         (i386_sigtramp_frame_unwind_stop_reason): New.
7197         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7198         base was unavailable.
7199         (i386_sigtramp_frame_unwind): Install
7200         i386_sigtramp_frame_unwind_stop_reason.
7201         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7202         type's size, not the register's.
7203         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7204
7205         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7206         default_frame_unwind_stop_reason.
7207         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7208         (alpha_heuristic_frame_unwind): Ditto.
7209         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7210         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7211         * avr-tdep.c (avr_frame_unwind): Ditto.
7212         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7213         Ditto.
7214         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7215         * frv-tdep.c (frv_frame_unwind): Ditto.
7216         * h8300-tdep.c (h8300_frame_unwind): Ditto.
7217         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7218         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7219         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7220         (hppa_stub_frame_unwind): Ditto.
7221         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7222         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7223         (ia64_libunwind_frame_unwind)
7224         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7225         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7226         * lm32-tdep.c (lm32_frame_unwind): Ditto.
7227         * m32c-tdep.c (m32c_unwind): Ditto.
7228         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7229         * m32r-tdep.c (m32r_frame_unwind): Ditto.
7230         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7231         * m68k-tdep.c (m68k_frame_unwind): Ditto.
7232         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7233         * m88k-tdep.c (m88k_frame_unwind): Ditto.
7234         * mep-tdep.c (mep_frame_unwind): Ditto.
7235         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7236         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7237         (mips_stub_frame_unwind): Ditto.
7238         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7239         * moxie-tdep.c (moxie_frame_unwind): Ditto.
7240         * mt-tdep.c (mt_frame_unwind): Ditto.
7241         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7242         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7243         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7244         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7245         (s390_sigtramp_frame_unwind): Ditto.
7246         * score-tdep.c (score_prologue_unwind): Ditto.
7247         * sh-tdep.c (sh_frame_unwind): Ditto.
7248         * sh64-tdep.c (sh64_frame_unwind): Ditto.
7249         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7250         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
7251         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
7252         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
7253         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
7254         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
7255         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
7256         (sparc64obsd_trapframe_unwind): Ditto.
7257         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
7258         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
7259         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
7260         * v850-tdep.c (v850_frame_unwind): Ditto.
7261         * vax-tdep.c (vax_frame_unwind): Ditto.
7262         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
7263         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
7264         * xtensa-tdep.c (xtensa_unwind): Ditto.
7265
7266 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7267
7268         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
7269         there's always a frame.  Use get_frame_pc_if_available instead of
7270         get_frame_pc, and if there's no PC available, don't look up a
7271         symtab.
7272
7273 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7274
7275         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
7276         unavailable PC.
7277
7278 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7279
7280         * tracepoint.c (set_traceframe_context): Handle unavailable PC
7281         gracefully.
7282
7283 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7284
7285         * frame.h (frame_unwind_caller_pc_if_available): Declare.
7286         * frame.c (frame_unwind_caller_pc_if_available): New.
7287         * stack.c (frame_info): Handle unavailable PC.
7288
7289 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7290
7291         * frame.c (frame_unwind_pc): Rename to ...
7292         (frame_unwind_pc_if_available): ... this.  New `pc' output
7293         parameter.  Change return type to int.  Gracefully handle
7294         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
7295         happened, or 1 otherwise.
7296         (frame_unwind_pc): Reimplement on top of
7297         frame_unwind_pc_if_available.
7298         (get_frame_func): Rename to ...
7299         (get_frame_func_if_available): New `pc' output parameter.  Change
7300         return type to int.  Gracefully handle the PC not being available.
7301         (get_frame_func): Reimplement on top of
7302         get_frame_func_if_available.
7303         (select_frame): Handle the PC being unavailable.
7304         (get_prev_frame): Handle the PC being unavailable.
7305         (get_frame_pc_if_available): New.
7306         (get_frame_address_in_block_if_available): New.
7307         (find_frame_sal): Handle the frame PC not being available.
7308         * frame.h (get_frame_pc_if_available): Declare.
7309         (get_frame_address_in_block_if_available): Declare.
7310         (get_frame_func_if_available): Declare.
7311         * stack.c (print_frame_info): Handle the PC being unavailable.
7312         (find_frame_funname): Ditto.
7313         (print_frame): Handle the PC being unavailable.
7314         (get_frame_language): Ditto.
7315         * blockframe.c (get_frame_block): Ditto.
7316         * macroscope.c (default_macro_scope): Ditto.
7317         * tui/tui-stack.c (tui_show_frame_info): Ditto.
7318
7319 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7320
7321         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
7322         NOT_AVAILABLE_ERROR when evaluating the location expression.
7323
7324 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7325
7326         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
7327         returning that the register piece is unavailable/optimized out.
7328         (write_pieced_value): Handle get_frame_register_bytes returning
7329         that the register piece is unavailable/optimized out when doing a
7330         read-modify write of a bitfield.
7331         * findvar.c (value_from_register): Handle get_frame_register_bytes
7332         returning that the register piece is unavailable/optimized out.
7333         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
7334         and `unavailablep'.  Throw error on bad debug info.  Use
7335         frame_register instead of frame_register_read, to fill in the new
7336         arguments.
7337         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
7338         and `unavailablep'.
7339         * valops.c: (value_assign): Adjust, and handle
7340         get_frame_register_bytes failing.
7341         * spu-tdep.c: Include exceptions.h.
7342         (spu_software_single_step): Adjust, and handle
7343         get_frame_register_bytes failing.
7344         (spu_get_longjmp_target): Ditto.
7345         * gdbarch.sh (register_to_value): Change to return int.  New
7346         parameters `optimizedp' and `unavailablep'.
7347         * gdbarch.h, gdbarch.c: Regenerate.
7348         * i386-tdep.c (i386_register_to_value): Adjust to new
7349         gdbarch_register_to_value interface.
7350         * i387-tdep.c (i387_register_to_value): Ditto.
7351         * i387-tdep.h (i387_register_to_value): Ditto.
7352         * alpha-tdep.c (alpha_register_to_value): Ditto.
7353         * ia64-tdep.c (ia64_register_to_value): Ditto.
7354         * m68k-tdep.c (m68k_register_to_value): Ditto.
7355         * mips-tdep.c (mips_register_to_value): Ditto.
7356         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
7357
7358 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7359
7360         * findvar.c (value_of_register): Mark the value as unavailable, if
7361         the register is unavailable.
7362         * frame.h (frame_register_unwind): New `unavailablep' parameter.
7363         (frame_register): New `unavailablep' parameter.
7364         (frame_register_read): Update comment.
7365         * frame.c (frame_register_unwind): New `unavailablep' parameter.
7366         Set it if the register is unavailable.  If the register is
7367         unavailable, clear the output buffer.
7368         (frame_register): New `unavailablep' parameter.  Pass it down.
7369         (frame_unwind_register): Adjust.
7370         (put_frame_register): Adjust.
7371         (frame_register_read): Adjust.  Also return false if the register
7372         is not available.
7373         (frame_register_unwind_location): Adjust.
7374         * sentinel-frame.c (sentinel_frame_prev_register): If the register
7375         is unavailable, mark the value accordingly.
7376         * stack.c (frame_info): Handle unavailable registers.
7377
7378 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7379
7380         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
7381         simplify, using regcache_cooked_read.
7382
7383 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
7384
7385         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
7386         (regcache_raw_read_unsigned, regcache_raw_read_signed)
7387         (regcache_raw_read_unsigned, regcache_raw_read_part)
7388         (regcache_cooked_read, regcache_cooked_read_signed)
7389         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
7390         (regcache_cooked_read_ftype): Change return to enum
7391         register_status.
7392         * regcache.c: Include exceptions.h
7393         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
7394         (do_cooked_read): Change return to enum register_status.  Always
7395         forward to regcache_cooked_read.
7396         (regcache_raw_read): Change return to enum register_status.  If
7397         the register is not REG_VALID, memset the buffer.  Return the
7398         register's status.
7399         (regcache_raw_read_signed): Handle non-REG_VALID registers and
7400         return the register's status.
7401         (regcache_raw_read_unsigned): Ditto.
7402         (regcache_cooked_read): Change return to enum register_status.
7403         Assert that with read-only regcaches, the register's status must
7404         be known.  If the regcache is read-only, and the register is not
7405         REG_VALID, memset the buffer.  Return the register's status.
7406         (regcache_cooked_read_signed): Change return to enum
7407         register_status.  Handle non-REG_VALID registers and return the
7408         register's status.
7409         (regcache_cooked_read_unsigned): Change return to enum
7410         register_status.  Handle non-REG_VALID registers and return the
7411         register's status.
7412         (regcache_xfer_part, regcache_raw_read_part)
7413         (regcache_cooked_read_part): Change return to enum
7414         register_status.  Return the register's status.
7415         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
7416         unavailable.
7417         (regcache_dump): Handle unavailable cooked registers.
7418         * frame.c (do_frame_register_read): Adjust interface to match
7419         regcache_cooked_read_ftype.
7420         * gdbarch.sh (pseudo_register_read): Change return to enum
7421         register_status.
7422         * gdbarch.h, gdbarch.c: Regenerate.
7423
7424         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
7425         register_status.
7426         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
7427         register_status.  If reading a raw register indicates the raw
7428         register is not valid, return the raw register's status,
7429         otherwise, return REG_VALID.
7430         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
7431         register_status.  Handle non-REG_VALID raw registers and return
7432         the register's status.
7433         * arm-tdep.c (arm_neon_quad_read)
7434         (arm_pseudo_read): Change return to enum register_status.  Handle
7435         non-REG_VALID raw registers and return the register's status.
7436         * avr-tdep.c (avr_pseudo_register_read): Ditto.
7437         * frv-tdep.c (frv_pseudo_register_read): Ditto.
7438         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
7439         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
7440         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
7441         register_status.
7442         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
7443         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
7444         (m32c_part_write, m32c_cat_read, m32c_cat_write)
7445         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
7446         (m32c_pseudo_register_read): Change return to enum
7447         register_status.  Adjust.
7448         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
7449         enum register_status.  Return the register's status.
7450         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
7451         register_status.  Return the register's status.
7452         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
7453         * mips-tdep.c (mips_pseudo_register_read): Ditto.
7454         * mt-tdep.c (mt_pseudo_register_read): Ditto.
7455         * rs6000-tdep.c (move_ev_register_func): New typedef.
7456         (e500_move_ev_register): Use it.  Change return to enum
7457         register_status.  Return the register's status.
7458         (do_regcache_raw_read): New function.
7459         (do_regcache_raw_write): New function.
7460         (e500_pseudo_register_read): Change return to enum
7461         register_status.  Return the register's status.  Use
7462         do_regcache_raw_read.
7463         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
7464         (dfp_pseudo_register_read): Change return to enum register_status.
7465         Return the register's status.
7466         (vsx_pseudo_register_read): Ditto.
7467         (efpr_pseudo_register_read): Ditto.
7468         (rs6000_pseudo_register_read): Ditto.
7469         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
7470         register_status.  Return the register's status.
7471         * sh64-tdep.c (pseudo_register_read_portions): New function.
7472         (sh64_pseudo_register_read): Change return to enum
7473         register_status.  Use pseudo_register_read_portions.  Return the
7474         register's status.
7475         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
7476         register_status.  Return the register's status.
7477         * sh-tdep.c (pseudo_register_read_portions): New function.
7478         (sh_pseudo_register_read): Change return to enum register_status.
7479         Use pseudo_register_read_portions.  Return the register's status.
7480         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
7481         enum register_status.  Return the register's status.
7482         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
7483         * spu-tdep.c (spu_pseudo_register_read_spu)
7484         (spu_pseudo_register_read): Ditto.
7485         * xtensa-tdep.c (xtensa_register_read_masked)
7486         (xtensa_pseudo_register_read): Ditto.
7487         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
7488
7489 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
7490
7491         * python/py-value.c (valpy_getitem): Fix formatting of error function
7492         call.
7493
7494 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
7495
7496         ARI fixes: Add missing internationalization markups throughout
7497         C source files.
7498         * darwin-nat-info.c: Ditto.
7499         * record.c: Ditto.
7500         * remote.c: Ditto.
7501         * mi/mi-main.c: Ditto.
7502
7503 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
7504
7505         ARI fixes: Add missing internationalization markups throughout
7506         yacc files.
7507         * c-exp.y: Ditto.
7508         * cp-name-parser.y: Ditto.
7509         * f-exp.y: Ditto.
7510         * m2-exp.y: Ditto.
7511         * objc-exp.y: Ditto.
7512         * p-exp.y: Ditto.
7513
7514 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
7515
7516         ARI fixes: Messages should have no trailing new lines.
7517         * darwin-nat.c (mach_check_error): Remove trailing new line from
7518         warning function call message.
7519         * record.c (bfdcore_read): Idem for error call.
7520
7521 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
7522
7523         * common/signals.c (target_signal_from_host): Add _ markup to error
7524         function call message.
7525         (target_signal_to_host): Add _ markup and remove trailing new line
7526         from warning call message.
7527         (target_signal_from_command): Add _ markup to error function call
7528         message.
7529
7530 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
7531
7532         PR python/12149
7533
7534         * python/python.c (gdbpy_write): Accept a stream argument and
7535         operate to the appropriate stream.
7536         (gdbpy_flush): Likewise.
7537         (_initialize_python): Add stream constants.
7538         (finish_python_initialization): Add GdbOutputErrorFile class.
7539
7540 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
7541
7542         * MAINTAINERS: Add myself as a write-after-approval maintainer.
7543
7544 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
7545
7546         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
7547         to store_signed_integer.  Add debug message when relocating CALL
7548         instructions.  Fix formatting of debug message.
7549         * i386-tdep.c (i386_relocate_instruction): Ditto.
7550
7551 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
7552
7553         * target.h (struct target_ops): Remove to_lookup_symbol field.
7554         (target_lookup_symbol): Delete macro.
7555         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
7556         (update_current_target, setup_target_debug): Remove handling
7557         of to_lookup_symbol target_ops field.
7558         * ada-tasks.c (get_known_tasks_addr): Remove use of
7559         target_lookup_symbol.
7560         * coffread.c (coff_symtab_read): Likewise.
7561         * dbxread.c (read_dbx_symtab): Ditto.
7562
7563 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
7564
7565         PR gdb/12116:
7566         * configure.ac: Add getthrds declaration check.
7567         * configure, config.in: Regenerate.
7568         * aix-thread.c (getthrds): Declare only if not already declared
7569         in procinfo.h.  More declaration out of get_signaled_thread to
7570         global scope.
7571
7572 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
7573
7574         * python/py-symtab.c: Populate symtab_object_methods,
7575         sal_object_methods.
7576         (stpy_is_valid): New function.
7577         (salpy_is_valid): Ditto.
7578         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
7579         (sympy_is_valid): New function.
7580         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
7581         (objfpy_is_valid): New function.
7582         * python/py-inferior.c: Populate inferior_object_methods.
7583         (infpy_is_valid): New function.
7584         * python/py-infthread.c: Populate thread_object_methods.
7585         (thpy_is_valid): New function.
7586         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
7587         block_iterator_object_methods.  Populate.
7588         (blpy_is_valid): New function.
7589         (blpy_iter_is_valid): Ditto.
7590
7591 2011-03-16  Keith Seitz  <keiths@redhat.com>
7592
7593         * linespec.c (find_methods): Canonicalize NAME before looking
7594         up the symbol.
7595         (name_end): New function.
7596         (keep_name_info): New function.
7597         (decode_line_1): Use keep_name_info.
7598         (decode_compound): Likewise.
7599         * cli/cli-utils.h (remove_trailing_whitespace): New function.
7600         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
7601
7602         PR c++/12273
7603         * linespec.c (locate_first_half): Keep overload information, too.
7604         (decode_compound): Use a string to represent break characters
7605         to escape the loop.
7606         If P points to a break character, do not increment it.
7607         For C++ and Java, keep overload information and relevant keywords.
7608         If we cannot find a symbol, search the minimal symbols.
7609
7610         PR c++/11734
7611         * linespec.c (decode_compound): Rename SAVED_ARG to
7612         THE_REAL_SAVED_ARG.
7613         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
7614         single-quotes.
7615         Pass a valid block to lookup_symbol.
7616         (lookup_prefix_sym): Likewise.
7617         (find_method): Construct search name based on SYM_CLASS instead
7618         of SAVED_ARG.
7619         * psymtab.c (lookup_partial_symbol): Add language parameter.
7620         (lookup_symbol_aux_psymtabs): Likewise.
7621         Don't assume that the psymtab we found was the right one. Search
7622         for the desired symbol in the symtab to be certain.
7623         (psymtab_search_name): New function.
7624         (lookup_partial_symbol): Use psymtab_search_name.
7625         Add language parameter.
7626         (read_symtabs_for_function): Add language parameter and pass to
7627         lookup_partial_symbol.
7628         (find_symbol_file_from_partial): Likewise.
7629
7630 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7631
7632         PR gdb/12528
7633         * dwarf2read.c (noop_record_line): New function.
7634         (dwarf_decode_lines): Ignore line tables for GCd functions.
7635
7636 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
7637
7638         Fix ARI warnings about new lines at the end of messages, which
7639         are unneeded as there is a new line added at the end of the message
7640         automatically.
7641         * darwin-nat.c (darwin_stop_inferior): Ditto.
7642         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
7643         * dfp.c (decimal_to_number): Ditto.
7644         * exec.c (print_section_info): Ditto.
7645         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
7646         * osdata.c (get_osdata): Ditto.
7647         * record.c (bfdcore_write): Ditto.
7648         * remote-mips.c (mips_readchar): Ditto.
7649         * remote.c (read_ptid): Ditto.
7650         * ser-mingw.c (ser_windows_raw): Ditto.
7651         * tracepoint.c (add_local_symbols): Ditto.
7652         * windows-nat.c (fake_create_process): Ditto.
7653
7654 2011-03-16  Tom Tromey  <tromey@redhat.com>
7655
7656         * tracepoint.c (stop_tracing): Don't declare.
7657         * event-top.c (after_char_processing_hook): Add `(void)'.
7658
7659 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
7660
7661         * NEWS: Add Parameter sub-classing description.
7662
7663 2011-03-16  Kai Tietz  <ktietz@redhat.com>
7664
7665         * MAINTAINERS: Update my e-mail address.
7666
7667 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
7668
7669         * MAINTAINERS: Add myself for write after approval privileges.
7670
7671 2011-03-15  Michael Snyder  <msnyder@vmware.com>
7672
7673         * frame.c (find_frame_sal): Assert sym is not null.
7674
7675         * dbxread.c (process_one_symbol): Assert 'name' is not null.
7676
7677         * objc-lang.c (selectors_info): Check strchr for null result.
7678
7679         * stabsread.c (define_symbol): Guard against bad stabstring input.
7680
7681 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
7682
7683         Remove trailing spaces and tabulations from pascal language
7684         support sources.
7685         p-exp.y: Ditto.
7686         p-lang.c: Ditto.
7687         p-lang.h: Ditto.
7688         p-valprint.c: Ditto.
7689
7690 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7691
7692         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
7693         than LOW.  Comment it.
7694         (read_partial_die): Call complaint for inappropriate zero LOWPC or
7695         HIGHPC not strictly higher than LOWPC.
7696
7697 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
7698
7699         Fix formatting of function declarations returning a pointer in
7700         previous commit.
7701         * varobj.c (varobj_add_child): Ditto.
7702         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
7703         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
7704
7705 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
7706
7707         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
7708         for the "generic" vector ABI used with GCC 4.3 and later.
7709         (ppc64_sysv_abi_return_value): Likewise.
7710
7711 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
7712
7713         * infcall.c (call_function_by_hand): Function return value is
7714         always a non_lval, even when using struct_return.
7715
7716 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
7717
7718         * printcmd.c (ALL_DISPLAYS_SAFE): New.
7719         (map_display_numbers): New.
7720         (do_delete_display): New.
7721         (undisplay_command): Use map_display_numbers.
7722         (do_enable_disable_display): New.
7723         (enable_disable_display_command): New function.
7724         (enable_display): Delete.
7725         (enable_display_command): New.
7726         (disable_display_command): Reimplement.
7727         (_initialize_printcmd): Adjust "enable display" command to use
7728         `enable_display_command' as callback.
7729
7730 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
7731
7732         * NEWS: Add Python breakpoint 'stop' operation.
7733
7734 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
7735
7736         * NEWS: Delete duplicate entry. Fix typo.
7737
7738 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
7739
7740         Fix ARI warning about function names in first column.
7741         Put prototype declaration on same line as return type.
7742         * objc-exp.y: Ditto.
7743         * p-exp.y: Ditto.
7744         * python/py-stopevent.h: Ditto.
7745         For long function names, split parameters to
7746         allow function name on same line as return type.
7747         * solib-pa64.c: Ditto.
7748         * varobj.c: Ditto.
7749         * varobj.h: Ditto.
7750         For long function declaration, use single line.
7751         * hppa-tdep.h: Ditto.
7752         * inferior.h: Ditto.
7753
7754 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
7755
7756         * python/python.h: Declare gdbpy_should_stop and
7757         gdbpy_breakpoint_has_py_cond.
7758         * python/python.c: Add python.h to includes.  Remove python.h from
7759         HAVE_PYTHON definition
7760         (gdbpy_should_stop): New dummy function.
7761         (gdbpy_breakpoint_has_py_cond): New dummy function.
7762         * python/py-breakpoint.c (bppy_init): Rewrite to allow
7763         sub-classing capabilities.
7764         (gdbpy_should_stop): New function.
7765         (gdbpy_breakpoint_has_py_cond): New function.
7766         (local_setattro): New function.
7767         * breakpoint.c (condition_command): Add check for Python 'stop'
7768         operation.
7769         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
7770         operation function as part of stop/continue tests.
7771
7772 2011-03-14  Tom Tromey  <tromey@redhat.com>
7773
7774         PR gdb/12576:
7775         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
7776         (needs_frame_dwarf_call): Likewise.
7777
7778 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
7779
7780         Fix ARI warning about functions without parameters that do not
7781         use (void).
7782         * breakpoint.c (all_tracepoints): Replace () by (void).
7783         * f-exp.y (match_string_literal): Ditto.
7784         (yylex): Ditto.
7785         * m2-exp.y (yylex): Ditto.
7786         * mep-tdep.c (current_me_module): Ditto.
7787         (current_options): Ditto.
7788         (current_cop_data_bus_width): Ditto.
7789         (current_cr_names): Ditto.
7790         (current_cr_is_float): Ditto.
7791         (current_ccr_names): Ditto.
7792         * objc-exp.y (yylex): Ditto.
7793         * p-exp.y (yylex): Ditto.
7794         * remote.c (send_interrupt_sequence): Ditto.
7795         * tracepoint.c (current_trace_status): Ditto.
7796         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
7797         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
7798
7799 2011-03-11  Michael Snyder  <msnyder@vmware.com>
7800
7801         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
7802         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
7803         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
7804         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
7805         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
7806
7807         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
7808         (delete_async_event_handler): Ditto.
7809
7810         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
7811
7812         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
7813
7814         * top.c (set_verbose): Assert showcmd was found.
7815
7816 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
7817
7818         * xtensa-tdep.c (warning_once): Correct style issues.
7819
7820 2011-03-11  Yao Qi  <yao@codesourcery.com>
7821
7822         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
7823
7824 2011-03-11  Andreas Schwab  <schwab@redhat.com>
7825
7826         * common/aclocal.m4: Remove.
7827
7828 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
7829
7830         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
7831         (xtensa_write_register, xtensa_read_register): Likewise.
7832         (xtensa_hextochar): Removed.
7833         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
7834
7835 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
7836
7837         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
7838         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
7839         (xtensa_alloc_frame_cache): Add initialization for new fields.
7840         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
7841         (warning_once): New function.
7842         (xtensa_insn_kind): New item c0opc_and.
7843         (call0_classify_opcode): Add the case for AND instruction.
7844         (call0_track_op): Change arguments.  New local variable litbase.
7845         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
7846         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
7847         in the prologue.
7848         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
7849         (call0_analyze_prologue): Update the comments.  Change arguments.
7850         Add the variety of updates to handle extended prologues, which now can
7851         conduct dynamic stack adjustments.
7852         (call0_frame_cache): Likewise.
7853         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
7854         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
7855
7856 2011-03-10  Michael Snyder  <msnyder@vmware.com>
7857
7858         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
7859         (cmd_qtframe): Ditto.
7860         (cmd_qtbuffer): Ditto.
7861         (cmd_bigqtbuffer): Ditto.
7862
7863 2011-03-10  Tom Tromey  <tromey@redhat.com>
7864
7865         * tracepoint.c (trace_actions_command): Update.
7866         * thread.c (thread_apply_command): Update.
7867         * reverse.c (delete_bookmark_command): Update.
7868         (bookmarks_info): Update.
7869         * printcmd.c (undisplay_command): Update.
7870         * memattr.c (mem_enable_command): Update.
7871         (mem_disable_command): Update.
7872         (mem_delete_command): Update.
7873         * inferior.c (detach_inferior_command): Update.
7874         (kill_inferior_command): Update.
7875         (remove_inferior_command): Update.
7876         * cli/cli-utils.h (struct get_number_or_range_state): New.
7877         (init_number_or_range): Declare.
7878         (get_number_or_range): Update.
7879         * cli/cli-utils.c (init_number_or_range): New function.
7880         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
7881         static variables.
7882         (number_is_in_list): Update.
7883         * breakpoint.h (get_tracepoint_by_number): Update.
7884         * breakpoint.c (map_breakpoint_numbers): Update for change to
7885         get_number_or_range.
7886         (find_location_by_number): Use get_number, not
7887         get_number_or_range.
7888         (trace_pass_set_count): New function.
7889         (trace_pass_command): Update for change to get_number_or_range.
7890         Rework loop logic.
7891         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
7892         'state' parameter.
7893
7894 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
7895
7896         * python/py-param.c (add_setshow_generic): Add set/show callback
7897         parameters.  Register Python object context.
7898         (get_show_value): New function.
7899         (get_set_value): New function.
7900         (call_doc_function): New function.
7901         (get_doc_string): Move behind get_show_value/get_set_value.
7902
7903 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
7904
7905         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
7906
7907 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
7908
7909         * xtensa-tdep.c (xtensa_read_register): Add comment.
7910         (xtensa_write_register): Likewise.
7911         (xtensa_hextochar): Add comment and update to match coding conventions.
7912         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
7913         (execute_l32e, execute_s32e, execute_code): Update comments.
7914         (xtensa_exception_handler_t): Update to match coding conventions.
7915         (xtensa_insn_kind): Likewise.
7916
7917 2011-03-09  Michael Snyder  <msnyder@vmware.com>
7918
7919         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
7920
7921 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
7922
7923         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
7924
7925 2011-03-09  Tom Tromey  <tromey@redhat.com>
7926
7927         * thread.c (restore_selected_frame): Handle frame_level == -1.
7928         (make_cleanup_restore_current_thread): Use
7929         get_selected_frame_if_set.
7930         * frame.h (get_selected_frame_if_set): Declare.
7931         * frame.c (get_selected_frame_if_set): New function.
7932
7933 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
7934
7935         * cli/cli-cmds.c (shell_escape): Use lbasename.
7936         * coffread.c (coff_start_symtab): Constify parameter.
7937         (complete_symtab): Constify `name' parameter.
7938         (coff_symtab_read): Constify `filestring' local.
7939         (coff_getfilename): Constify return and `result' local.
7940         Use lbasename.
7941         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
7942         * linux-fork.c (info_checkpoints_command): Use lbasename.
7943         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
7944         * minsyms.c (lookup_minimal_symbol): Use lbasename.
7945         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
7946         * procfs.c (procfs_make_note_section): Use lbasename.
7947         * tui/tui-io.c (printable_part): Constity return and parameter.
7948         Use lbasename.
7949         (print_filename): Constify parameters, and local `s'.
7950         (tui_rl_display_match_list): Constify local `temp'.
7951
7952 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7953
7954         Revert:
7955         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7956         Fix DWARF-3+ DW_AT_accessibility default assumption.
7957         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
7958         cu->header.version >= 3.
7959
7960 2011-03-09  Yao Qi  <yao@codesourcery.com>
7961
7962         * common/Makefile.in: Remove.
7963         * common/configure: Remove.
7964         * common/configure.ac: Remove.
7965
7966 2011-03-09  Yao Qi  <yao@codesourcery.com>
7967
7968         Revert:
7969         2011-02-11  Yao Qi  <yao@codesourcery.com>
7970
7971         * common/Makefile.in: Add copyright header.
7972
7973         2011-02-11  Yao Qi  <yao@codesourcery.com>
7974
7975         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
7976         libcommon.a.
7977         * configure.ac: Add common to sub dir.
7978         * configure: Regenerate.
7979
7980 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
7981
7982         * xtensa-tdep.c (call0_ret): New function.
7983         (xtensa_skip_prologue): Speed up analysis.
7984
7985 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
7986
7987         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
7988         while executing MI command -data-list-changed-registers.
7989
7990 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
7991
7992         * xtensa-tdep.c (xtensa_read_register): New function.
7993         (xtensa_write_register): New function.
7994         (xtensa_find_register_by_name): New function.
7995         (xtensa_windowed_frame_cache): Update comments in type description.
7996         (xtensa_frame_cache): Likewise.
7997         (xtensa_window_interrupt_insn): New function.
7998         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
7999         (xtensa_insn_kind): Add new instructions.
8000         (rwx_special_register): New function.
8001         (call0_classify_opcode): Add new instructions to the analysis.
8002         (a0_saved, a7_saved, a11_saved): New variables.
8003         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8004         (execute_l32e): New function.
8005         (execute_s32e): New function.
8006         (xtensa_exception_handler_t): New type.
8007         (execute_code): New function.
8008         (xtensa_window_interrupt_frame_cache): New function to conduct frame
8009         analysis for Xtensa Window Exception handlers.
8010
8011 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
8012
8013         * xtensa-tdep.c (TX_PS): New.
8014         (windowing_enabled): Update to count for Call0 ABI.
8015         (xtensa_hextochar): New.
8016         (xtensa_init_reggroups): Make algorithm generic.
8017         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8018
8019 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
8020
8021         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8022
8023 2011-03-08  Michael Snyder  <msnyder@vmware.com>
8024
8025         * i386-tdep.c (i386_follow_jump): Check return value of
8026         target_read_memory.
8027         (i386_analyze_struct_return): Ditto.
8028         (i386_skip_probe): Ditto.
8029         (i386_match_insn): Ditto.
8030         (i386_skip_noop): Ditto.
8031         (i386_analyze_frame_setup): Ditto.
8032         (i386_analyze_register_saves): Ditto.
8033         (i386_skip_prologue): Ditto.
8034         (i386_skip_main_prologue): Ditto.
8035
8036         * target.c (read_whatever_is_readable): Fix memory leak.
8037
8038         * i386-tdep.c (i386_process_record): Document fall through.
8039
8040 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8041
8042         Fix DWARF-3+ DW_AT_accessibility default assumption.
8043         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8044         cu->header.version >= 3.
8045
8046 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
8047
8048         * remote.c (remote_check_symbols): Skip if the target has no
8049         execution.
8050
8051 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
8052
8053         * target.c (read_whatever_is_readable): Reformat comment,
8054         with a minor typo fix. Minor reformatting of the code.
8055
8056 2011-03-08  Yao Qi  <yao@codesourcery.com>
8057
8058         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8059         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8060         Use cached result instead of calling displaced_in_arm_mode again.
8061         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8062         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8063         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8064         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8065         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8066         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8067         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8068         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8069         (cleanup_block_load_pc, copy_block_xfer): Likewise.
8070         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8071         (arm_catch_kernel_helper_return): Likewise.
8072         * gdb/arm-tdep.h : Update function declarations.
8073
8074 2011-03-07  Michael Snyder  <msnyder@vmware.com>
8075
8076         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8077
8078         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8079
8080         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8081
8082         * elfread.c (elf_symtab_read): Stop memory leak.
8083
8084         * main.c (captured_main): Fix memory leak.
8085
8086 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8087
8088         * ada-lang.c (compare_names): Call is_name_suffix with string1
8089         instead of string2.
8090
8091 2011-03-07  Tom Tromey  <tromey@redhat.com>
8092
8093         * xcoffread.c (xcoff_sym_fns): Update.
8094         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8095         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8096         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8097         (symbol_file_add_with_addrs_or_offsets): Likewise.
8098         (reread_symbols): Handle OBJF_PSYMTABS_READ.
8099         * somread.c (som_sym_fns): Update.
8100         * psymtab.h (require_partial_symbols): Declare.
8101         * psymtab.c (require_partial_symbols): New function.
8102         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8103         (ALL_OBJFILE_PSYMTABS): Undef.
8104         (ALL_PSYMTABS): Move from psympriv.h.
8105         (lookup_partial_symtab, find_pc_sect_psymtab)
8106         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8107         (find_last_source_symtab_from_partial)
8108         (forget_cached_source_info_partial)
8109         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8110         (expand_partial_symbol_tables, read_psymtabs_with_filename)
8111         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8112         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8113         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8114         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8115         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8116         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8117         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8118         psymtabs.
8119         * mipsread.c (ecoff_sym_fns): Update.
8120         * machoread.c (macho_sym_fns): Update.
8121         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8122         (read_psyms): New function.
8123         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8124         (elf_sym_fns_lazy_psyms): New global.
8125         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8126         dwarf2_build_psymtabs.
8127         * dbxread.c (aout_sym_fns): Update.
8128         * coffread.c (coff_sym_fns): Update.
8129
8130 2011-03-07  Tom Tromey  <tromey@redhat.com>
8131
8132         * infrun.c (print_exited_reason): Include inferior id and pid in
8133         message.
8134
8135 2011-03-07  Tom Tromey  <tromey@redhat.com>
8136
8137         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8138         parameter.
8139         (target_has_execution_1): Update.
8140         (target_has_execution_current): Declare.
8141         (target_has_execution): Call target_has_execution_current.
8142         (default_child_has_execution): Update.
8143         * target.c (default_child_has_execution): Add 'the_ptid'
8144         parameter.
8145         (target_has_execution_1): Likewise.
8146         (target_has_execution_current): New function.
8147         (add_target): Update.
8148         (init_dummy_target): Update.
8149         * remote-m32r-sdi.c (m32r_has_execution): New function.
8150         (init_m32r_ops): Use it.
8151         * record.c (record_core_has_execution): Now static.  Add
8152         'the_ptid' parameter.
8153         * inferior.c (have_live_inferiors): Don't save current thread.
8154         Use target_has_execution_1.
8155
8156 2011-03-07  Yao Qi  <yao@codesourcery.com>
8157
8158         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8159
8160 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
8161
8162         * elfread.c (elf_symtab_read): Minor reformatting.
8163
8164 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
8165
8166         * objc-lang.c (selectors_info): Minor reformatting.
8167
8168 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
8169
8170         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8171
8172 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
8173             Michael Snyder  <msnyder@vmware.com>
8174
8175         * ada-valprint.c (ada_val_print_array): Move the declaration of
8176         "byte_order" and "elttype" inside the block where these variables
8177         are actually used.  Remove some special handling for the case
8178         where "elttype" and "eltlen" are null.  Replace by a comment
8179         and a couple of assertion checks.
8180
8181 2011-03-05  Michael Snyder  <msnyder@vmware.com>
8182
8183         * source.c (add_path): Replace semicolon at end of block.
8184         * dwarf2expr.c (execute_stack_op): Ditto.
8185
8186 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
8187
8188         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8189         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8190         (bfin-*-*): Likewise.
8191
8192 2011-03-05  Michael Snyder  <msnyder@vmware.com>
8193
8194         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8195         * mdebugread.c (parse_symbol): Ditto.
8196         * parse.c (parse_exp_in_context): Ditto.
8197         * source.c (add_path): Ditto.
8198         * utils.c (gnu_debuglink_crc32): Ditto.
8199         * varobj.c (variable_language): Ditto.
8200
8201         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8202
8203 2011-03-04  Michael Snyder  <msnyder@vmware.com>
8204
8205         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8206
8207         * symfile.c (simple_overlay_update): Check for null return value
8208         from lookup_minimal_symbol.
8209
8210         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8211
8212 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8213
8214         * eval.c (parse_and_eval_address_1): Remove function.
8215         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8216         instead of parse_and_eval_address_1.
8217         * value.h (parse_and_eval_address_1): Remove prototype.
8218
8219 2011-03-04  Michael Snyder  <msnyder@vmware.com>
8220
8221         * remote.c (putpkt_binary): Document that case stmt falls through.
8222
8223 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8224
8225         * breakpointc (print_it_typical): Move NULL check from here...
8226         (print_bp_stop_message): ... to here.
8227
8228 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
8229
8230         * breakpoint.c (enable_command): Use break instead of continue,
8231         and fill in a missing break.
8232         (disable_command): Ditto.
8233
8234 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
8235
8236         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8237         (terminal_save_ours): Remove misleading comment.
8238         (inflow_inferior_data_cleanup): Free ttystate.
8239         (inflow_inferior_exit): Likewise.
8240         (copy_terminal_info): Copy ttystate.
8241
8242         * serial.c (serial_copy_tty_state): New function.
8243         * serial.h (serial_copy_tty_state): Add prototype.
8244         (struct serial_ops): Add copy_tty_state callback.
8245         * ser-base.c (ser_base_copy_tty_state): New function.
8246         * ser-base.h (ser_base_copy_tty_state): Add prototype.
8247         * ser-go32.c (dos_copy_tty_state): New function.
8248         (dos_ops): Install copy_tty_state callback.
8249         * ser-mingw.c (_initialize_ser_windows): Likewise.
8250         * ser-pipe.c (_initialize_ser_pipe): Likewise.
8251         * ser-unix.c (hardwire_copy_tty_state): New function.
8252         (_initialize_ser_hardwire): Install it.
8253
8254 2011-03-04  Michael Snyder  <msnyder@vmware.com>
8255
8256         * breakpoint.c (create_breakpoint): Add missing break statement.
8257
8258         Reverting this patch:
8259         * infcall.c (call_function_by_hand): Add break statements for lint.
8260
8261         Reverting this patch:
8262         * cli/cli-script.c (script_from_file): Add break for lint.
8263
8264 2011-03-04  Michael Snyder  <msnyder@vmware.com>
8265
8266         * solib.c (reload_shared_libraries_1): Close memory leak.
8267
8268 2011-03-03  Tom Tromey  <tromey@redhat.com>
8269
8270         PR gdb/12538:
8271         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
8272         DW_STRING is NULL.
8273
8274 2011-03-03  Michael Snyder  <msnyder@vmware.com>
8275
8276         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
8277         fields of struct 'st' to zero.
8278
8279         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
8280         sal.pspace before calling set_current_source_symtab_and_line.
8281
8282 2011-03-03  Yao Qi  <yao@codesourcery.com>
8283
8284         * Makefile.in (configure-common): Remove.  Let Makefile
8285         in dir common to rebuild itself.
8286         (common/Makefile): Likewise.
8287
8288 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
8289
8290         * utils.c (parse_escape): Add i18n markup in error message.
8291
8292 2011-03-03  Yao Qi  <yao@codesourcery.com>
8293
8294         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
8295         ARM_PC_REGNUM.
8296         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
8297         (displaced_write_reg, displaced_read_reg): Likewise.
8298         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
8299         (cleanup_block_load_pc, copy_block_xfer): Likewise.
8300         (cleanup_branch): Replace magic number 14 and 15 with
8301         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
8302
8303 2011-03-02  Michael Snyder  <msnyder@vmware.com>
8304
8305         * maint.c (maintenance_do_deprecate): No need to check for NULL.
8306
8307         * cli/cli-script.c (script_from_file): Add break for lint.
8308
8309         * mdebugread.c (parse_partial_symbols): Fix indent.
8310
8311         * target-descriptions.c (tdesc_gdb_type): No need to call
8312         xstrdup, callee saves a copy.
8313
8314         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
8315
8316         * infcall.c (call_function_by_hand): Add break statements for lint.
8317
8318         * utils.c (parse_escape): Escape the escape char.
8319
8320         * python/py-inferior.c (build_inferior_list): Error out if
8321         PyList_Append fails.
8322         (gdbpy_inferiors): Error out if build_inferior_list fails.
8323
8324         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
8325         a function call.
8326
8327         * record.c (record_restore): Move printf to before error return.
8328
8329 2011-03-02  Yao Qi  <yao@codesourcery.com>
8330
8331         * arm-tdep.h (struct displaced_step_closure): Add two new fields
8332         is_thumb and insn_size.
8333         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
8334         on both ARM and Thumb mode.
8335         (arm_process_displaced_insn): Set is_thumb and insn_size.
8336         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
8337         (arm_displaced_step_fixup): Likewise.
8338
8339 2011-03-01  Michael Snyder  <msnyder@vmware.com>
8340
8341         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
8342
8343         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
8344
8345         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
8346
8347         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
8348
8349         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
8350         with xmalloc.
8351
8352         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
8353         which shadows function parameter.
8354
8355         * tracepoint.c (create_tsv_from_upload): Superfluous call
8356         to xstrdup.  Callee already calls xstrdup.
8357
8358         * linespec.c (decode_line_1): Remove unnecessary null check.
8359
8360         * tracepoint.c (scope_info): Fix mem leak, remove underused
8361         variable.
8362
8363         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
8364         superfluous null check.
8365
8366         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
8367         (value_of_builtin_frame_fp_reg): Ditto.
8368
8369         * event-top.c (display_gdb_prompt): Remove superfluous null check.
8370
8371         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
8372         be null.
8373
8374         * linespec.c (decode_line_1): Check for null before dereference.
8375
8376         * reverse.c (record_restore): Move null-check to before pointer
8377         dereference.
8378
8379         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
8380
8381         * objc-lang.c (selectors_info): Add explanitory comment.
8382         (classes_info): Ditto.
8383
8384 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
8385
8386         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
8387         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
8388         versions of the trampoline.  Handle Thumb vs. ARM addresses.
8389         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
8390         (arm_linux_init_abi): Install it.
8391         * arm-tdep.c (arm_psr_thumb_bit): Make global.
8392         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
8393
8394 2011-02-28  Michael Snyder  <msnyder@vmware.com>
8395
8396         * ui-out.c (ui_out_field_core_addr): Make local char buffer
8397         a little bigger, to avoid possibility of an overflow.
8398
8399         * breakpoint.c (breakpoint_adjustment_warning): Make local char
8400         buffers a little bigger, to avoid possibility of an overflow.
8401
8402         * coffread.c (coff_getfilename): Add check to avoid overflow.
8403
8404         * objc-lang.c (selectors_info): Add a small safety margin to
8405         avoid overflow.
8406         (classes_info): Error out on too long REGEXP.
8407
8408         * infrun.c (handle_inferior_event): Remove unused function call.
8409
8410         * fork-child.c (fork_inferior): Remove ifdef'd code and
8411         unused variable.
8412
8413         * linux-thread-db.c (attach_thread): Discard unused value.
8414
8415         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
8416
8417         * remote.c (remote_get_noisy_reply): Discard unused value.
8418         (remote_vcont_resume): Ditto.
8419         (remote_stop_ns): Ditto.
8420
8421         * linespec.c (decode_objc): Delete unused variable.
8422
8423         * tui/tui-regs.c (tui_register_format): Delete unused variable.
8424
8425         * dwarf2read.c (add_partial_symbol): Discard unused values.
8426         (read_base_type): Delete unused variable.
8427
8428         * dbxread.c (read_dbx_symtab): Discard unused value.
8429
8430         * eval.c (evaluate_subexp_standard): Delete unused variable,
8431         and discard unused values.
8432
8433         * infcmd.c (_initialize_infcmd): Discard unused values.
8434
8435         * stabsread.c (rs6000_builtin_type): Missing break statement.
8436
8437         * dbxread.c (process_one_symbol): Discard unused value.
8438
8439         * coffread.c (coff_end_symtab): Delete unused variable.
8440
8441         * dwarf2read.c (dw2_get_file_names): Discard unused value.
8442         (dwarf2_add_typedef): Delete unused variable.
8443         (read_namespace): Ditto.
8444         (dwarf_decode_macros): Ditto.
8445
8446         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
8447
8448         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
8449
8450         * p-valprint.c (pascal_val_print): Discard unused value.
8451
8452         * utils.c (nquery): Call va_end before return;
8453         (yquery): Ditto.
8454         (query): Ditto.
8455
8456         * proc-service.c (ps_plog): Call va_end before return.
8457
8458 2011-02-28  Tom Tromey  <tromey@redhat.com>
8459
8460         * python/python.c (gdbpy_value_cst): New global.
8461         (_initialize_python): Initialize it.
8462         * python/python-internal.h (gdbpy_value_cst): Declare.
8463         * python/py-value.c (convert_value_from_python): Use
8464         gdbpy_value_cst.
8465
8466 2011-02-28  Michael Snyder  <msnyder@vmware.com>
8467
8468         * python/py-cmd.c (cmdpy_init): Fix memory leak.
8469
8470         * breakpoint.c (catch_syscall_completer): Free malloced list.
8471
8472         * jv-lang.c (java_primitive_type_from_name): Add missing break.
8473
8474         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
8475         (lval_func_check_synthetic_pointer): Ditto.
8476         (lval_func_free_closure): Fix use-after-free.
8477
8478 2011-02-28  Tom Tromey  <tromey@redhat.com>
8479
8480         * psymtab.c (expand_partial_symbol_tables): Use
8481         ALL_OBJFILE_PSYMTABS.
8482
8483 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
8484
8485         * objc-lang.c (selectors_info): Error on too long REGEXP.
8486
8487 2011-02-28  Michael Snyder  <msnyder@vmware.com>
8488
8489         * python/py-param.c (set_parameter_value): Add missing
8490         break statement.
8491
8492         * linux-record.c (record_linux_system_call): Add missing
8493         break statement.
8494
8495 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
8496
8497         * breakpoint.c (print_one_breakpoint_location): Remove unused
8498         argument PRINT_ADDRESS_BITS.  Update callers.
8499         (print_one_breakpoint): Likewise.
8500
8501 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
8502
8503         * breakpoint.c (wrap_indent_at_field): New function.
8504         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
8505         Allocate ui_stream locally instead of using STB argument.
8506         (print_one_breakpoint_location): Update call.
8507         * ui-out.c (ui_out_query_field): New function.
8508         * ui-out.h (ui_out_query_field): Add prototype.
8509
8510 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
8511
8512         From Michael Snyder  <msnyder@vmware.com>
8513         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
8514
8515 2011-02-27  Michael Snyder  <msnyder@vmware.com>
8516
8517         * objc-lang.c (selectors_info): Prevent string overrun.
8518
8519         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
8520         error in strncpy.
8521
8522         * symtab.c (rbreak_command): Move variable 'file_name' to
8523         outer scope.
8524
8525         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
8526         param with a local variable of the same name.
8527
8528 2011-02-27  Michael Snyder  <msnyder@vmware.com>
8529
8530         * value.c (value_from_history_ref): New function.
8531         * value.h (value_from_history_ref): Export.
8532         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
8533         to parse value history references.
8534         * cli/cli-utils.h (get_number_trailer): Update comment.
8535
8536 2011-02-27  Michael Snyder  <msnyder@vmware.com>
8537
8538         * inferior.c (detach_inferior_command): Use get_number_or_range.
8539         (kill_inferior_command): Ditto.
8540         (remove_inferior_command): Ditto.
8541         (initialize_inferiors): Make command names plural.
8542         Update help strings.
8543
8544 2011-02-27  Michael Snyder  <msnyder@vmware.com>
8545
8546         * darwin-nat-info.c: Fix comment typo.
8547         * dwarf2expr.h: Ditto.
8548         * fbsd-nat.c: Ditto.
8549         * fbsd-nat.h: Ditto.
8550         * frame-unwind.h: Ditto.
8551         * frame.h: Ditto.
8552         * hppa-hpux-tdep.c: Ditto.
8553         * i386-linux-nat.c: Ditto.
8554         * linux-nat.c: Ditto.
8555         * nbsd-nat.c: Ditto.
8556         * nbsd-nat.h: Ditto.
8557         * ppc-linux-tdep.c: Ditto.
8558         * serial.c: Ditto.
8559         * ui-file.h: Ditto.
8560         * tui/tui-winsource.c: Ditto.
8561
8562 2011-02-26  Michael Snyder  <msnyder@vmware.com>
8563
8564         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
8565
8566         * maint.c (maintenance_do_deprecate): Plug a memory leak.
8567
8568         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
8569         with a local variable of the same name.
8570
8571         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
8572         param with a local variable of the same name.
8573         (i387_supply_xsave): Ditto.
8574
8575         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
8576         that it does not shadow a function parameter.
8577
8578         * i386-nat.c (i386_length_and_rw_bits): Document that case
8579         statement is meant to fall through.
8580
8581         * expprint.c (dump_subexp_body_standard): Document that case
8582         statement is meant to fall through.
8583
8584         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
8585         dead if statement.  Condition can't be false.
8586
8587 2011-02-25  Michael Snyder  <msnyder@vmware.com>
8588
8589         * arm-tdep.c: Fix typos in comments.
8590         * bsd-uthread.c: Ditto.
8591         * completer.c: Ditto.
8592         * corelow.c: Ditto.
8593         * cp-namespace.c: Ditto.
8594         * cp-support.c: Ditto.
8595         * cris-tdep.c: Ditto.
8596         * dbxread.c: Ditto.
8597         * dwarf2read.c: Ditto.
8598         * frame.h: Ditto.
8599         * gdbtypes.h: Ditto.
8600         * inferior.h: Ditto.
8601         * mdebugread.c: Ditto.
8602         * mips-tdep.c: Ditto.
8603         * ppc-linux-nat.c: Ditto.
8604         * ppc-linux-tdep.c: Ditto.
8605         * printcmd.c: Ditto.
8606         * sol-thread.c: Ditto.
8607         * solib-frv.c: Ditto.
8608         * solist.h: Ditto.
8609         * sparc64-tdep.c: Ditto.
8610         * spu-tdep.c: Ditto.
8611         * stabsread.c: Ditto.
8612         * symfile.c: Ditto.
8613         * valops.c: Ditto.
8614         * varobj.c: Ditto.
8615         * vax-nat.c: Ditto.
8616         * python/py-block.c: Ditto.
8617         * python/py-symbol.c: Ditto.
8618         * python/py-symtab.c: Ditto.
8619         * python/py-value.c: Ditto.
8620         * tui/tui-win.c: Ditto.
8621
8622 2011-02-25  Michael Snyder  <msnyder@vmware.com>
8623
8624         * inferior.c (print_inferior): Accept a string instead of an int
8625         for requested_inferiors, and use get_number_or_range to parse it.
8626         (info_inferiors_command): Pass args string to print_inferior.
8627         (initialize_inferiors): Change help string for info inferiors.
8628         * inferior.h (print_inferior): Export prototype change.
8629
8630 2011-02-25  Tom Tromey  <tromey@redhat.com>
8631
8632         * common/ax.def (invalid2): Set to 0x31.
8633
8634 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8635
8636         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
8637         L and plongest.
8638         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
8639         use L and plongest.
8640         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
8641
8642 2011-02-24  Michael Snyder  <msnyder@vmware.com>
8643
8644         * Makefile.in (clean): Make clean should remove generated files
8645         observer.h and observer.inc.
8646
8647 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
8648
8649         Revert the following patch (not approved yet):
8650         2011-02-21  Hui Zhu  <teawater@gmail.com>
8651         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8652         * ax-gdb.c (gen_printf_expr_callback): New function.
8653         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8654         * ax-general.c (ax_memcpy): New function.
8655         (ax_print): Handle "printf".
8656         (ax_reqs): Ditto.
8657         * ax.h (ax_memcpy): Forward declare.
8658         * common/ax.def (invalid2): Removed.
8659         (printf): New entry.
8660         * printcmd.c (printcmd.h): New include.
8661         (string_printf): New function.
8662         (ui_printf): Removed.
8663         (printf_command): Remove static.  Call string_printf.
8664         (eval_command): Call string_printf.
8665         * printcmd.h: New file.
8666         * tracepoint.c (validate_actionline,
8667         encode_actions_1): handle printf_command.
8668
8669 2011-02-23  Tom Tromey  <tromey@redhat.com>
8670
8671         * ax-general.c (ax_pick): Add missing newline.
8672
8673 2011-02-23  Michael Snyder  <msnyder@vmware.com>
8674
8675         * breakpoint.c (breakpoint_1): Change first argument from an int
8676         to a char pointer, so that the function now accepts a list of
8677         breakpoints rather than just one.  Use new function
8678         'number_is_in_list' to implement.
8679         (breakpoints_info): Pass char * instead of int to breakpoint_1.
8680         (watchpoints_info): Ditto.
8681         (tracepoints_info): Ditto.
8682         (maintenance_info_breakpoints): Ditto.
8683         (_initialize_breakpoint): Update help strings to reflect the fact
8684         that these functions can now take more than one argument.
8685         * cli/cli-utils.c (number_is_in_list): New function.
8686         * cli/cli-utils.h (number_is_in_list): Export.
8687
8688 2011-02-23  Michael Snyder  <msnyder@vmware.com>
8689
8690         * memattr.c (mem_enable_command): Use get_number_or_range.
8691         (mem_disable_command): Ditto.
8692         (mem_delete_command): Ditto.
8693         (_initialize_mem): Tweak usage message to reflect multiple
8694         arguments.
8695
8696 2011-02-22  Doug Evans  <dje@google.com>
8697
8698         Add gdb.lookup_global_symbol python function.
8699         * NEWS: Add entry.
8700         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
8701         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
8702         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
8703
8704 2011-02-22  Tom Tromey  <tromey@redhat.com>
8705
8706         * language.c (language_class_name_from_physname): Rename
8707         'curr_language' argument to 'lang'; use in body.
8708
8709 2011-02-22  Michael Snyder  <msnyder@vmware.com>
8710
8711         * cli/cli-utils.c (number_is_in_list): Check for zero return.
8712
8713 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
8714
8715         * frame-unwind.h: Fix comment to mention the this frame, not the
8716         next.
8717
8718 2011-02-22  Tom Tromey  <tromey@redhat.com>
8719
8720         * symfile.c (auto_solib_limit): Remove.
8721         * symfile.h (auto_solib_limit): Remove.
8722
8723 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
8724
8725         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
8726
8727 2011-02-21  Michael Snyder  <msnyder@vmware.com>
8728
8729         * gdbthread.h (print_thread_info): Change prototype.
8730         * thread.c (print_thread_info): Accept char* instead of int for
8731         requested_threads argument.  Use new function number_is_in_list
8732         to determine which threads to list.
8733         (info_threads_command): Pass char* to print_thread_info.
8734         * cli/cli-utils.c (number_is_in_list): New function.
8735         * cli/cli-utils.h (number_is_in_list): Export.
8736         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
8737         print_thread_info.
8738         (print_one_inferior): Ditto.
8739         (mi_cmd_list_thread_groups): Ditto.
8740
8741 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8742
8743         * common/Makefile.in (CFLAGS): New.
8744         (COMPILE): Add $(CFLAGS).
8745
8746 2011-02-21  Tom Tromey  <tromey@redhat.com>
8747
8748         * breakpoint.c (catch_syscall_command_1): Fix typo.
8749
8750 2011-02-21  Tom Tromey  <tromey@redhat.com>
8751
8752         * reverse.c: Include cli-utils.h.
8753         * printcmd.c: Include cli-utils.h.
8754         (string_printf): Use skip_spaces.
8755         * cli/cli-utils.h: New file.
8756         * cli/cli-utils.c: New file.
8757         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
8758         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
8759         * breakpoint.h (get_number, get_number_or_range): Move to
8760         cli-utils.h.
8761         * breakpoint.c: Include cli-utils.h.
8762         (get_number_trailer, get_number, get_number_or_range)
8763         (ep_skip_leading_whitespace): Move to cli-utils.c.
8764         (create_breakpoint_sal, find_condition_and_thread)
8765         (decode_static_tracepoint_spec, watch_command_1)
8766         (watch_maybe_just_location, ep_parse_optional_if_clause)
8767         (catch_fork_command_1, catch_exec_command_1)
8768         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
8769         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
8770         (SUBDIR_CLI_SRCS): Add cli-utils.c.
8771         (HFILES_NO_SRCDIR): Add cli-utils.h.
8772         (cli-utils.o): New target.
8773
8774 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8775
8776         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
8777         before calling discard_all_inferiors.
8778
8779 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
8780
8781         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
8782         (struct builtin_opencl_type): Remove.
8783         (builtin_opencl_type): Change return type to "struct type **".
8784         (lookup_opencl_vector_type): Update caller.
8785         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
8786         (build_opencl_types): Install plain array of "struct type *"
8787         instead of "struct builtin_opencl_type".
8788
8789 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8790             Ulrich Weigand  <uweigand@de.ibm.com>
8791
8792         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
8793         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
8794         (struct arm_linux_hwbp_cap): New type.
8795         (arm_linux_get_hwbp_cap): New function.
8796         (arm_linux_get_hw_breakpoint_count): Likewise.
8797         (arm_linux_get_hw_watchpoint_count): Likewise.
8798         (arm_linux_can_use_hw_breakpoint): Likewise.
8799         (arm_hwbp_type): New type.
8800         (arm_hwbp_control_t): Likewise.
8801         (struct arm_linux_hw_breakpoint): Likewise.
8802         (struct arm_linux_thread_points): Likewise.
8803         (arm_threads): New global variable.
8804         (arm_linux_find_breakpoints_by_tid): New function.
8805         (arm_hwbp_control_initialize): Likewise.
8806         (arm_hwbp_control_is_enabled): Likewise.
8807         (arm_hwbp_control_disable): Likewise.
8808         (arm_linux_hw_breakpoint_initialize): Likewise.
8809         (arm_linux_get_hwbp_type): Likewise.
8810         (arm_linux_hw_watchpoint_initialize): Likewise.
8811         (arm_linux_hw_breakpoint_equal): Likewise.
8812         (arm_linux_insert_hw_breakpoint1): Likewise.
8813         (arm_linux_remove_hw_breakpoint1): Likewise.
8814         (arm_linux_insert_hw_breakpoint): Likewise.
8815         (arm_linux_remove_hw_breakpoint): Likewise.
8816         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
8817         (arm_linux_insert_watchpoint): Likewise.
8818         (arm_linux_remove_watchpoint): Likewise.
8819         (arm_linux_stopped_data_address): Likewise.
8820         (arm_linux_stopped_by_watchpoint): Likewise.
8821         (arm_linux_watchpoint_addr_within_range): Likewise.
8822         (arm_linux_new_thread): Likewise.
8823         (arm_linux_thread_exit): Likewise.
8824         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
8825         related target callbacks.  Register arm_linux_new_thread and
8826         arm_linux_thread_exit.
8827         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
8828         * arm-tdep.c (arm_pc_is_thumb): Make global.
8829         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
8830
8831 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
8832
8833         * breakpoint.c (update_watchpoint): Do not attempt to recreate
8834         per-frame locations while within a function epilogue.
8835
8836 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
8837
8838         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
8839         to GNU coding standards.
8840
8841 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
8842
8843         Allow use of mingw native on Windows 95 OS.
8844         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
8845         (ser_windows_close): Only call CancelIo if function exists.
8846         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
8847         to check for existence of CancelIo function in kernel32 DLL.
8848
8849 2011-02-21  Hui Zhu  <teawater@gmail.com>
8850
8851         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
8852         * ax-gdb.c (gen_printf_expr_callback): New function.
8853         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
8854         * ax-general.c (ax_memcpy): New function.
8855         (ax_print): Handle "printf".
8856         (ax_reqs): Ditto.
8857         * ax.h (ax_memcpy): Forward declare.
8858         * common/ax.def (invalid2): Removed.
8859         (printf): New entry.
8860         * printcmd.c (printcmd.h): New include.
8861         (string_printf): New function.
8862         (ui_printf): Removed.
8863         (printf_command): Remove static.  Call string_printf.
8864         (eval_command): Call string_printf.
8865         * printcmd.h: New file.
8866         * tracepoint.c (validate_actionline,
8867         encode_actions_1): handle printf_command.
8868
8869 2011-02-19  Michael Snyder  <msnyder@vmware.com>
8870
8871         * reverse.c (delete_one_bookmark): Argument is now bookmark
8872         id rather than pointer to bookmark struct.
8873         (delete_bookmark_command): Use get_number_or_range.
8874         (goto_bookmark_command): Parse with get_number instead of strtoul.
8875         (bookmark_1): New function.  Print info for one bookmark.
8876         (bookmarks_info): Use get_number_or_range and bookmark_1.
8877
8878 2011-02-18  Michael Snyder  <msnyder@vmware.com>
8879
8880         * thread.c (info_threads_command): Re-implement using
8881         get_number_or_range.
8882         (thread_apply_command): Ditto.
8883
8884 2011-02-18  Tom Tromey  <tromey@redhat.com>
8885
8886         * common/ax.def: New file.
8887         * ax.h (enum agent_op): Use ax.def.
8888         * ax-general.c (aop_map): Use ax.def.
8889
8890 2011-02-18  Tom Tromey  <tromey@redhat.com>
8891
8892         * ax-general.c (aop_map): Add pick and rot.
8893         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
8894         <DW_OP_rot>: Implement.
8895         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
8896         (ax_pick): Declare.
8897         * ax-general.c (ax_pick): New function.
8898
8899 2011-02-18  Tom Tromey  <tromey@redhat.com>
8900
8901         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
8902
8903 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
8904             Tom Tromey  <tromey@redhat.com>
8905
8906         * cp-support.c (make_symbol_overload_list_namespace): Do not call
8907         make_symbol_overload_list_block with NULL BLOCK.
8908         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
8909
8910 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
8911
8912         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
8913         * breakpoint.h (get_number_or_range): Declare.
8914         * printcmd.c (ALL_DISPLAYS): Declare.
8915         (delete_display): Reimplement taking a display pointer.
8916         (undisplay_command): Accept a range of displays to delete, using
8917         get_number_or_range.
8918
8919 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
8920
8921         * c-valprint.c (c_val_print): Add embedded_offset to address
8922         for arrays of unspecified length.
8923         * p-valprint.c (pascal_val_print): Likewise.
8924
8925 2011-02-18  Yao Qi  <yao@codesourcery.com>
8926
8927         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
8928         (arm_process_displaced_insn): .. here. Remove parameter INSN.
8929         (thumb_process_displaced_insn): New.
8930         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
8931         call to arm_process_displaced_insn.
8932         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
8933
8934 2011-02-17  Tom Tromey  <tromey@redhat.com>
8935
8936         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
8937         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
8938         compile_dwarf_to_ax.  No longer static.  Call
8939         dwarf2_compile_cfa_to_ax.
8940         (locexpr_tracepoint_var_ref): Update.
8941         (loclist_tracepoint_var_ref): Update.
8942         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
8943         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
8944         argument; add 'gdbarch' and 'pc'.
8945         (dwarf2_compile_cfa_to_ax): New function.
8946         (dwarf2_frame_cache): Update.
8947
8948 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
8949
8950         * ada-lang.c (ada_type_of_array): Fix the size of the array
8951         in the case of an unconstrained packed array.
8952
8953 2011-02-17  Yao Qi  <yao@codesourcery.com>
8954
8955         * common/Makefile.in: Add more targets for make.
8956
8957 2011-02-16  Tom Tromey  <tromey@redhat.com>
8958
8959         * dwarf2loc.c (unimplemented): Fix typo.
8960
8961 2011-02-16  Tom Tromey  <tromey@redhat.com>
8962
8963         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
8964         (compile_dwarf_to_ax) <default>: Use unimplemented.
8965         <DW_OP_deref>: Update.
8966         (disassemble_dwarf_expression): Update.
8967         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
8968         (decode_locdesc): Update.
8969         * dwarf2expr.h (dwarf_stack_op_name): Update.
8970
8971 2011-02-16  Tom Tromey  <tromey@redhat.com>
8972
8973         * ax.h (struct aop_map) <name>: Now const.
8974
8975 2011-02-16  Tom Tromey  <tromey@redhat.com>
8976
8977         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
8978         than axs_rvalue.
8979
8980 2011-02-16  Yao Qi  <yao@codesourcery.com>
8981
8982         * infrun.c (get_displaced_step_closure_by_addr): New.
8983         * inferior.h: Declare it.
8984         * arm-tdep.c: (arm_pc_is_thumb): Call
8985         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
8986         returns non-NULL.
8987
8988 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
8989             Jan Kratochvil  <jan.kratochvil@redhat.com>
8990
8991         gdb/
8992         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
8993
8994 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
8995             Jan Kratochvil  <jan.kratochvil@redhat.com>
8996
8997         * value.c (value_contents_copy_raw): Extend describing comment.
8998         Assert that the destination contents we're overwriting are wholly
8999         available.
9000         (value_contents_copy): Extend describing comment.
9001
9002 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
9003             Jan Kratochvil  <jan.kratochvil@redhat.com>
9004
9005         * value.c (value_available_contents_eq): Remove redundant local
9006         variables.  Fix available contents comparision.
9007         * value.h (value_available_contents_eq): Extend describing
9008         comment.
9009
9010 2011-02-16  Yao Qi  <yao@codesourcery.com>
9011
9012         * thread.c (info_threads_command): Add missing i18n markup and remove
9013         trailing newline.
9014
9015 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
9016
9017         * breakpoint.c (longjmp_names): New variable.
9018         (struct breakpoint_objfile_data): New type.
9019         (breakpoint_objfile_key): New variable.
9020         (msym_not_found): New variable.
9021         (msym_not_found_p): New predicate.
9022         (get_breakpoint_objfile_data): New function.
9023         (create_overlay_event_breakpoint): Check per-objfile cache for
9024         symbols first.
9025         (create_longjmp_master_breakpoint): Likewise.
9026         (create_std_terminate_master_breakpoint): Likewise.
9027         (create_exception_master_breakpoint): Likewise.
9028         (_initialize_breakpoint): Register per-objfile data key.
9029
9030 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
9031
9032         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9033         parameter value.
9034         (create_longjmp_master_breakpoint): Loop over longjmp names.
9035         (create_std_terminate_master_breakpoint): Const-propagate parameter
9036         value.
9037         (update_breakpoints_after_exec): Adjust.
9038         (breakpoint_re_set): Adjust.
9039
9040 2011-02-15  Michael Snyder  <msnyder@vmware.com>
9041
9042         * thread.c (info_threads_command): Process arg as thread id,
9043         or list of thread ids.
9044         (thread_find_command): New command.
9045         (_initialize_thread): Document argument for info threads.
9046         Document 'thread find' command.
9047         * NEWS: Document new command "thread find".
9048
9049 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
9050
9051         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9052         * aclocal.m4: Regenerated with aclocal-1.11.1.
9053         * common/configure: Regenerate with autoconf-2.64.
9054
9055 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
9056
9057         * opencl-lang.c (build_opencl_types): Set the size of the built-in
9058         bool data type to a size of one byte.
9059
9060 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
9061             Jan Kratochvil  <jan.kratochvil@redhat.com>
9062
9063         * target.c (memory_xfer_live_readonly_partial): Document where to
9064         look for interface description.
9065
9066 2011-02-15  Yao Qi  <yao@codesourcery.com>
9067
9068         PR tdep/12352
9069         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9070         order to store PC value on stack instead of text section.
9071
9072 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9073
9074         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9075         the EFP register set size.
9076         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9077         data from the VMX register.
9078         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9079         and write data from/to the VMX register.
9080
9081 2011-02-14  Michael Snyder  <msnyder@vmware.com>
9082
9083         * command.h (enum command_class): New class 'no_set_class', for
9084         "show" commands without a corresponding "set" command.
9085         * value.c (_initialize_values): Use 'no_set_class' for "show values".
9086         * copying.c (_initialize_copying): Ditto for "show copying" and
9087         "show warranty".
9088         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9089         "show version".
9090         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9091         which there is no corresponding "set" command (eg. "show copying").
9092
9093 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9094             Jan Kratochvil  <jan.kratochvil@redhat.com>
9095
9096         * exec.c (section_table_available_memory): Change `len' parameter
9097         type to ULONGEST.
9098         * exec.h (section_table_available_memory): Ditto.
9099         * value.h (read_value_memory): Rename the `offset' parameter to
9100         `embedded_offset'.
9101
9102 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9103             Jan Kratochvil  <jan.kratochvil@redhat.com>
9104
9105         * memrange.c (compare_mem_ranges): Mention sort order in
9106         describing comment.
9107         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
9108         * tracepoint.c (traceframe_available_memory): Extend comment to
9109         mention what happens to RESULT when the target does not support
9110         the query.
9111
9112 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9113             Jan Kratochvil  <jan.kratochvil@redhat.com>
9114
9115         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9116         range.
9117
9118 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9119
9120         * value.c (value_bits_valid, value_bits_synthetic_pointer):
9121         No longer handle NULL values.
9122
9123 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9124
9125         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9126         * value.c: Include "exceptions.h".
9127         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9128         generic error.
9129         * cp-abi.c: Include gdb_assert.h.
9130         (baseclass_offset): Add `embedded_offset' and `val' parameters.
9131         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
9132         errors.
9133         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9134         parameters.  No longer returns -1 on error.
9135         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9136         `val' parameters.
9137         * cp-valprint.c: Include exceptions.h.
9138         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9139         the baseclass_offset.  Handle unavailable base classes.  Use
9140         val_print_invalid_address.
9141         * p-valprint.c: Include exceptions.h.
9142         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9143         when fetching the baseclass_offset.  No longer expect
9144         baseclass_offset returning -1.  Handle unavailable base classes.
9145         Use val_print_invalid_address.
9146         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9147         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
9148         `embedded_offset' and `val' parameters.  Adjust.
9149         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9150         parameter, and change its type to gdb_byte pointer.  Add
9151         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
9152         baseclass_offset returning -1.
9153         (value_dynamic_cast): Use value_contents_for_printing rather than
9154         value_contents.  Adjust.
9155         (search_struct_field): No longer expect baseclass_offset returning
9156         -1.
9157         (search_struct_method): If reading memory from the target is
9158         necessary, wrap it in a new value to pass to baseclass_offset.  No
9159         longer expect baseclass_offset returning -1.
9160         (find_method_list): No longer expect baseclass_offset returning
9161         -1.  Use value_contents_for_printing rather than value_contents.
9162         * valprint.c (val_print_invalid_address): New function.
9163         * valprint.h (val_print_invalid_address): Declare.
9164         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9165         and `val' parameters.  No longer expect baseclass_offset returning
9166         -1.  Adjust.
9167         * gnu-v2-abi.c: Include "exceptions.h".
9168         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9169         parameters.  Handle unavailable memory.  Recurse through
9170         gnuv2_baseclass_offset directly, rather than through
9171         baseclass_offset.  No longer returns -1 on not found, instead
9172         throw an error.
9173         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9174         `val' parameters.  Adjust.
9175
9176 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9177
9178         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9179         almost but not quite adjacent.
9180
9181 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9182
9183         * value.h (value_entirely_available): Declare.
9184         * value.c (value_entirely_available): New function.
9185         * c-valprint.c (c_value_print): Don't try fetching the pointer's
9186         real type if the pointer is unavailable.
9187
9188 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9189
9190         * valops.c (value_repeat): Use read_value_memory instead of
9191         read_memory.
9192
9193 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9194
9195         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9196         * value.c (value_contents_copy_raw, value_contents_copy): New
9197         functions.
9198         (value_primitive_field): Use value_contents_copy_raw instead of
9199         memcpy.
9200         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9201         memcpy.
9202         (value_array, value_slice): Ditto.
9203         * valarith.c (value_subscripted_rvalue): Use
9204         value_contents_copy_raw instead of memcpy.
9205
9206 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9207
9208         <unavailable> references.
9209
9210         * valops.c (get_value_at): Use value_from_contents_and_address,
9211         avoiding read_memory.
9212
9213 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9214
9215         * c-valprint.c (c_val_print): Print a string with unavailable
9216         contents as an array.
9217
9218 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9219
9220         * value.h (unpack_bits_as_long): Delete declaration.
9221         (unpack_value_bits_as_long): Declare.
9222         (unpack_value_field_as_long): Declare.
9223         (value_field_bitfield): Declare.
9224         * value.c (unpack_bits_as_long): Rename to...
9225         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
9226         value parameters.  Return the extracted result in a new output
9227         parameter.  If the value contents are unavailable, return false,
9228         otherwise return true.
9229         (unpack_value_bits_as_long): New.
9230         (unpack_field_as_long): Rename to...
9231         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
9232         Add embedded_offset and value parameters.  Return the extracted
9233         result in a new output parameter. If the value contents are
9234         unavailable, return false, otherwise return true.
9235         (unpack_value_field_as_long): New.
9236         (unpack_field_as_long_1): New.
9237         (unpack_field_as_long): Reimplement as wrapper around
9238         unpack_value_field_as_long_1.
9239         (value_field_bitfield): New function.
9240         * valops.c (value_fetch_lazy): When fetching a bitfield, use
9241         unpack_value_bits_as_long.  Mark the value as unavailable, if it
9242         is unavailable.
9243         * jv-valprint.c (java_print_value_fields): Use
9244         value_field_bitfield.
9245         * p-valprint.c (pascal_object_print_value_fields): Use
9246         value_field_bitfield.
9247         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9248
9249 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9250
9251         * value.c (get_internalvar_integer): Also return the int value of
9252         TYPE_CODE_INT INTERNALVAR_VALUE values.
9253         (set_internalvar): Don't special case TYPE_CODE_INT.
9254
9255 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9256
9257         * value.c (struct internalvar) <enum internalvar_kind>: Remove
9258         INTERNALVAR_POINTER.
9259         <pointer>: Delete.
9260         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
9261         (set_internalvar): Remove special TYPE_CODE_PTR handling.
9262         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
9263
9264 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9265
9266         * value.h (value_available_contents_eq): Declare.
9267         * value.c (find_first_range_overlap): New function.
9268         (value_available_contents_eq): New function.
9269         * valprint.c (val_print_array_elements): Use
9270         value_available_contents_eq.
9271         * ada-valprint.c (val_print_packed_array_elements): Use
9272         value_available_contents_eq.
9273         * jv-valprint.c (java_value_print): Use
9274         value_available_contents_eq.
9275
9276 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9277
9278         * target.c (target_read_live_memory): New function.
9279         (memory_xfer_live_readonly_partial): New.
9280         (memory_xfer_partial): If reading from a traceframe, fallback to
9281         reading unavailable read-only memory from read-only regions of
9282         live target memory.
9283         * tracepoint.c (disconnect_tracing): Adjust.
9284         (set_current_traceframe): New, factored out from
9285         set_traceframe_number.
9286         (set_traceframe_number): Reimplement to only change the traceframe
9287         number on the GDB side.
9288         (do_restore_current_traceframe_cleanup): Adjust.
9289         (make_cleanup_restore_traceframe_number): New.
9290         (cur_traceframe_number): New global.
9291         (tfile_open): Set cur_traceframe_number to no traceframe.
9292         (set_tfile_traceframe): New function.
9293         (tfile_trace_find): If looking up a traceframe using any method
9294         other than by number, make sure the current tfile traceframe
9295         matches gdb's current traceframe.  Update the current tfile
9296         traceframe if the lookup succeeded.
9297         (tfile_fetch_registers, tfile_xfer_partial)
9298         (tfile_get_trace_state_variable_value): Make sure the remote
9299         traceframe matches gdb's current traceframe.
9300         * remote.c (remote_traceframe_number): New global.
9301         (remote_open_1): Set it to -1.
9302         (set_remote_traceframe): New function.
9303         (remote_fetch_registers, remote_store_registers)
9304         (remote_xfer_memory, remote_xfer_partial)
9305         (remote_get_trace_state_variable_value): Make sure the remote
9306         traceframe matches gdb's current traceframe.
9307         (remote_trace_find): If looking up a traceframe using any method
9308         other than by number, make sure the current remote traceframe
9309         matches gdb's current traceframe.  Update the current remote
9310         traceframe if the lookup succeeded.
9311         * infrun.c (fetch_inferior_event): Adjust.
9312         * tracepoint.h (set_current_traceframe): Declare.
9313         (get_traceframe_number, set_traceframe_number): Add describing
9314         comments.
9315
9316 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9317
9318         Mark pieces of values as unavailable if the corresponding memory
9319         is unavailable.
9320
9321         * valops.c: Include tracepoint.h.
9322         (value_fetch_lazy): Use read_value_memory.
9323         (read_value_memory): New.
9324         * value.h (read_value_memory): Declare.
9325         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
9326         * exec.c (section_table_available_memory): New function.
9327         * exec.h (section_table_available_memory): Declare.
9328
9329 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9330
9331         * Makefile.in (SFILES): Add memrange.c.
9332         (HFILES_NO_SRCDIR): Add memrange.h.
9333         (COMMON_OBS): Add memrange.o.
9334         * memrange.c: New file.
9335         * memrange.h: New file.
9336         * tracepoint.c: Include memrange.h.
9337         (struct mem_range): Delete.
9338         (mem_range_s): Delete.
9339         (traceframe_available_memory): New function.
9340         * tracepoint.h (traceframe_available_memory): Declare.
9341
9342 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9343
9344         * target.h (struct traceframe_info): Forward declare.
9345         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
9346         (struct target_ops) <to_traceframe_info>: New field.
9347         (target_traceframe_info): New.
9348         * target.c (update_current_target): Inherit and default
9349         to_traceframe_info.
9350         * remote.c (PACKET_qXfer_traceframe_info): New.
9351         (remote_protocol_features): Register qXfer:traceframe-info:read.
9352         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
9353         (remote_traceframe_info): New.
9354         (init_remote_ops): Install it.
9355         (_initialize_remote): Install "set/show remote traceframe-info"
9356         commands.
9357         * tracepoint.h (parse_traceframe_info): Declare.
9358         * tracepoint.c (struct mem_range): New.
9359         (mem_range_s): New typedef.
9360         (struct traceframe_info): New.
9361         (traceframe_info): New global.
9362         (free_traceframe_info): New function.
9363         (clear_traceframe_info): New function.
9364         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
9365         info.
9366         (build_traceframe_info): New function.
9367         (tfile_traceframe_info): New function.
9368         (init_tfile_ops): Install tfile_traceframe_info.
9369         (traceframe_info_start_memory, free_result): New functions.
9370         (memory_attributes, traceframe_info_elements): New globals.
9371         (parse_traceframe_info, get_traceframe_info): New functions.
9372         * features/traceframe-info.dtd: New file.
9373         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
9374
9375 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
9376
9377         Base support for <unavailable> value contents.
9378
9379         * value.h (value_bytes_available): Declare.
9380         (mark_value_bytes_unavailable): Declare.
9381         * value.c (struct range): New struct.
9382         (range_s): New typedef.
9383         (ranges_overlap): New function.
9384         (range_lessthan): New function.
9385         (ranges_contain_p): New function.
9386         (struct value) <unavailable>: New field.
9387         (value_bytes_available): New function.
9388         (mark_value_bytes_unavailable): New function.
9389         (require_not_optimized_out): Constify parameter.
9390         (require_available): New function.
9391         (value_contents_all, value_contents): Require all bytes be
9392         available.
9393         (value_free): Free `unavailable'.
9394         (value_copy): Copy `unavailable'.
9395         * valprint.h (val_print_unavailable): Declare.
9396         * valprint.c (valprint_check_validity): Rename `offset' parameter
9397         to `embedded_offset'.  If printing a scalar, check whether the
9398         value chunk is available.
9399         (val_print_unavailable): New.
9400         (val_print_scalar_formatted): Check whether the value is
9401         available.
9402         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
9403         pretty-printing unavailable values.
9404
9405 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9406
9407         Fix const/volatile qualifiers of C++ types, PR c++/12328.
9408         * c-typeprint.c (c_type_print_args): Update the function comment.  New
9409         variable param_type, initialize it.  Remove const/volatile qualifiers
9410         for language_cplus and !show_artificial.  Use param_type.
9411
9412 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
9413
9414         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
9415         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
9416         * symtab.h (struct symtab) <next>: Comment extension.
9417
9418 2011-02-12  Yao Qi  <yao@codesourcery.com>
9419
9420         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
9421
9422 2011-02-11  Yao Qi  <yao@codesourcery.com>
9423
9424         * common/Makefile.in: Add copyright header.
9425
9426 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
9427
9428         * infrun.c (proceed): Move switching out and in of tfind mode from
9429         here ...
9430         (fetch_inferior_event): ... to here.
9431
9432 2011-02-11  Yao Qi  <yao@codesourcery.com>
9433
9434         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
9435         libcommon.a.
9436         * configure.ac: Add common to sub dir.
9437         * configure: Regenerate.
9438
9439 2011-02-11  Yao Qi  <yao@codesourcery.com>
9440
9441         Build libcommon.a.
9442
9443         * common/Makefile.in: New.
9444         * common/configure.ac: New.
9445         * common/aclocal.m4: New.
9446         * common/configure: Generate.
9447
9448 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
9449
9450         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
9451         side of the parenthesis.
9452
9453         Merge from GCC:
9454         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
9455         * vec.h (VEC_block_remove): Fix comment.
9456
9457 2011-02-08  Michael Snyder  <msnyder@vmware.com>
9458
9459         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
9460
9461 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9462
9463         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
9464         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
9465         psubd and paddd.
9466
9467 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9468
9469         PR 12361.
9470         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
9471         phsubsw.
9472         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
9473         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
9474
9475 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
9476
9477         * dwarf2read.c (read_subroutine_type): Set special calling
9478         convention flag for functions compiled by IBM XL C for OpenCL.
9479         * ppc-sysv-tdep.c: Include "dwarf2.h"
9480         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
9481         calling convention.
9482         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
9483         IBM OpenCL vector types calling convention.
9484         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
9485         (ppc_sysv_abi_broken_return_value): Likewise.
9486         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
9487         types calling convention.
9488         (ppc64_sysv_abi_return_value): Likewise.
9489         * spu-tdep.c: Include "dwarf2.h"
9490         (spu_return_value): Implement IBM OpenCL vector types calling
9491         convention.
9492
9493 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
9494
9495         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
9496         correct ABI for AltiVec vector arguments.
9497
9498 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
9499
9500         * valprint.c (val_print): Extend comment.
9501         * ada-valprint.c (ada_valprint): Rewrite comment deferring
9502         interface explanation to val_print.
9503         (ada_val_print_array): Adjust comment to current interface.
9504         (print_field_values): Adjust comment to current interface.
9505         * c-valprint.c (c_val_print): Rewrite comment deferring interface
9506         explanation to val_print.
9507         * f-valprint.c (f_val_print): Ditto.
9508         * jv-valprint.c (java_val_print): Ditto.
9509         * m2-valprint.c (m2_val_print): Ditto.
9510         * p-valprint.c (pascal_val_print): Ditto.
9511
9512 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9513
9514         * breakpoint.c (parse_breakpoint_sals): Fix description.
9515
9516 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
9517             Oguz Kayral <oguzkayral@gmail.com>
9518
9519         * python/py-inferior.c (python_on_normal_stop): New function.
9520         (python_on_resume): New function.
9521         (python_inferior_exit): New function.
9522         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
9523         inferior_exit observers.
9524         * python/py-evtregistry.c: New file.
9525         * python/py-threadevent.c : New file.
9526         * python/py-event.c: New file.
9527         * python/py-evts.c: New file.
9528         * python/py-continueevent.c: New file.
9529         * python/py-bpevent.c: New file.
9530         * python/py-signalevent.c: New file.
9531         * python/py-exetiedevent.c: New file.
9532         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
9533         Move struct breakpoint_object from here...
9534         * python/python-internal.h: ... to here.
9535         * python/py-event.h: New file.
9536         * python/py-events.h: New file.
9537         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
9538         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
9539         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
9540         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
9541         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
9542         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
9543         Add build rules for all the above.
9544
9545 2011-02-04  Tom Tromey  <tromey@redhat.com>
9546
9547         * dwarf2read.c (dwarf2_section_empty_p): New function.
9548         (dwarf2_read_section): Use dwarf2_section_empty_p.
9549         (dwarf2_section_size): New function.
9550         (dwarf2_get_section_info): Unconditionally read section.
9551         (dwarf2_read_index): Use dwarf2_section_empty_p.
9552         (partial_read_comp_unit_head): Use dwarf2_section_size.
9553         (dwarf2_symbol_mark_computed): Likewise.
9554
9555 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9556
9557         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
9558
9559 2011-02-04 David Daney <ddaney@caviumnetworks.com>
9560
9561         * mips-linux-tdep.c: Include xml-syscall.h.
9562         (mips_linux_get_syscall_number): New function.
9563         (mips_linux_init_abi): Add calls to
9564         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
9565         * data-directory/Makefile.in (SYSCALLS_FILES): Add
9566         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
9567         * syscalls/mips-n32-linux.xml: New file.
9568         * syscalls/mips-n64-linux.xml: New file.
9569         * syscalls/mips-o32-linux.xml: New file.
9570
9571 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
9572
9573         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
9574         Complain about inverted range entries.
9575         (dwarf2_record_block_ranges): Likewise.
9576
9577 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9578
9579         Fix some typos.
9580         * breakpoint.c (update_watchpoint): Fix name of the
9581         update_global_location_list function.
9582         (print_one_breakpoint): Fix typo.
9583         (_initialize_breakpoint): Remove extra space in hbreak help
9584         string.
9585         * breakpoint.h (struct bp_location) <length>: Fix field
9586         description.
9587
9588 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
9589
9590         * regcache.c (registers_changed_ptid): Don't explictly always
9591         clear `current_regcache'.  Only clear current_thread_ptid and
9592         current_thread_arch when PTID matches.  Only reinit the frame
9593         cache if PTID matches the current inferior_ptid.  Move alloca(0)
9594         call to ...
9595         (registers_changed): ... here.
9596
9597 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
9598
9599         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
9600         starts with __stack_chk_guard as stack guard symbol.
9601
9602 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
9603
9604         * disasm.c (compare_lines): Handle the end of sequence markers
9605         within the line table to better support disassembling over
9606         compilation unit boundaries.
9607
9608 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
9609
9610         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
9611         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
9612         implementation even if no symbols are available.
9613         (thumb_analyze_prologue): Update call to skip_prologue_function.
9614         (arm_analyze_prologue): Likewise.
9615
9616 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
9617
9618         * arm-tdep.c: Include "observer.h".
9619         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
9620         (arm_exidx_data_key): New static variable.
9621         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
9622         (struct arm_exidx_data): Likewise.
9623         (arm_exidx_data_free): New function.
9624         (arm_compare_exidx_entries): Likewise.
9625         (arm_obj_section_from_vma): Likewise.
9626         (arm_exidx_new_objfile): Likewise.
9627         (arm_find_exidx_entry): Likewise.
9628         (arm_exidx_fill_cache): Likewise.
9629         (arm_exidx_unwind_sniffer): Likewise.
9630         (arm_exidx_unwind): New global variable.
9631         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
9632         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
9633         observer.  Register arm_exidx_data_key as objfile data.
9634
9635 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
9636
9637         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
9638         due to accessing uninitialized variable.  Fix indentation.
9639
9640 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
9641
9642         * c-valprint.c (c_value_print): When doing virtual base pointer
9643         adjustment, create a new value with adjusted contents rather than
9644         changing the contents of the value being printed (and getting it
9645         wrong).
9646
9647 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
9648
9649         * xml-support.c (xml_find_attribute): New.
9650         (xinclude_start_include): Use it.
9651         * xml-support.h (xml_find_attribute): Declare.
9652         * memory-map.c (memory_map_start_memory)
9653         (memory_map_start_property): Use xml_find_attribute.
9654         * osdata.c (osdata_start_osdata, osdata_start_column): Use
9655         xml_find_attribute.
9656         * remote.c (start_thread): Use xml_find_attribute.
9657         * solib-target.c (library_list_start_segment)
9658         (library_list_start_section, library_list_start_library)
9659         (library_list_start_list): Use xml_find_attribute.
9660         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
9661         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
9662         (tdesc_start_field): Use xml_find_attribute.
9663
9664 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
9665
9666         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
9667         (BUILD_OCL_VTYPES): Update.
9668
9669 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
9670
9671         * configure.ac: Work around non-GNU sed limitation when computing
9672         python version number.
9673         * configure: Regenerate.
9674
9675 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9676
9677         Fix debug printing of TYPE_INSTANCE.
9678         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
9679         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
9680
9681 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9682
9683         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
9684         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
9685         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
9686         * ada-operator.inc: Rename the file to ...
9687         * ada-operator.def: ... here, wrap all the entries by macro OP.
9688         * expprint.c (op_name_standard): Remove all the entries.  Include
9689         "std-operator.def" instead.
9690         * expression.h (enum exp_opcode): Include "std-operator.def" and
9691         "ada-operator.def".  Move all the entries ...
9692         * std-operator.def: ... here, wrap all the entries by macro OP.
9693
9694 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
9695
9696         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
9697         * breakpoint.c (remove_jit_event_breakpoints): New function.
9698         * jit.c (jit_descriptor_addr): Delete.
9699         (registering_code): Delete.
9700         (clear_int): Delete.
9701         (jit_inferior_data): New variable.
9702         (struct jit_inferior_data): New type.
9703         (get_jit_inferior_data): New function.
9704         (jit_inferior_data_cleanup): New function.
9705         (jit_read_descriptor): Adjust.
9706         (jit_register_code): Adjust.
9707         (jit_breakpoint_re_set_internal): New function; move code here ...
9708         (jit_inferior_init): ... from here.
9709         (jit_breakpoint_re_set): Adjust.
9710         (jit_reset_inferior_data_and_breakpoints): New function.
9711         (jit_inferior_created_observer): Adjust.
9712         (jit_inferior_exit_hook): Adjust.
9713         (jit_executable_changed_observer): New function.
9714         (jit_event_handler): Adjust.
9715         (_initialize_jit): Adjust.
9716
9717 2011-01-31  Michael Snyder  <msnyder@vmware.com>
9718
9719         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
9720         line.
9721
9722 2011-01-31  Tom Tromey  <tromey@redhat.com>
9723
9724         PR python/12216:
9725         * python/python.c (execute_gdb_command): Call
9726         prevent_dont_repeat.
9727         * top.c (suppress_dont_repeat): New global.
9728         (dont_repeat): Use it.
9729         (prevent_dont_repeat): New function.
9730         * command.h (prevent_dont_repeat): Declare.
9731
9732 2011-01-31  Tom Tromey  <tromey@redhat.com>
9733
9734         * infcmd.c (finish_backward): Use breakpoint_set_silent.
9735         * python/py-breakpoint.c (bppy_set_silent): Use
9736         breakpoint_set_silent.
9737         (bppy_set_thread): Use breakpoint_set_thread.
9738         (bppy_set_task): Use breakpoint_set_task.
9739         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
9740         (breakpoint_set_task): Declare.
9741         (make_breakpoint_silent): Remove.
9742         * breakpoint.c (breakpoint_set_silent): New function.
9743         (breakpoint_set_thread): Likewise.
9744         (breakpoint_set_task): Likewise.
9745         (make_breakpoint_silent): Remove.
9746
9747 2011-01-31  Tom Tromey  <tromey@redhat.com>
9748
9749         * breakpoint.h (user_breakpoint_p): Declare.
9750         * breakpoint.c (user_breakpoint_p): New function.
9751         (breakpoint_1): Use it.
9752         (save_breakpoints): Likewise.
9753
9754 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
9755
9756         * configure.ac: Add handling of Python distribution on Windows.
9757         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
9758         sysconfig variables are not defined, then do not use them.
9759         On Windows, if LIBPL is not defined, then use prefix + '/libs'
9760         instead.  On Windows, return all paths using forward-slashes
9761         rather than backslashes.
9762
9763 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
9764
9765         * configure.ac: Remove fallback behavior for building
9766         against Python.  Remove tweaking of Python include path.
9767         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
9768         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
9769         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
9770         Always restore CPPFLAGS and LIBS after linking test.
9771         * configure: Regenerated.
9772         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
9773         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
9774         * python/python-internal.h: Adjust includes of Python .h files.
9775
9776 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
9777
9778         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
9779         in error message.
9780
9781 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
9782
9783         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
9784         value test.
9785
9786 2011-01-31  Yao Qi  <yao@codesourcery.com>
9787
9788         * arm-linux-nat.c: Update calls to regcache_register_status
9789         instead of regcache_valid_p.
9790         * aix-thread.c: Likewise.
9791         * i386gnu-nat.c: Likewise.
9792
9793 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9794
9795         Fix crash.
9796         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
9797         touching TYPE_FIELD_ARTIFICIAL.
9798
9799 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
9800
9801         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
9802         Committers.
9803
9804 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
9805
9806         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
9807         selected, don't try iterating over the traceframe's blocks.
9808         (tfile_has_stack): If there's no traceframe selected, then there's
9809         no stack.
9810         (tfile_has_registers): If there's no traceframe selected, then
9811         there's no registers.
9812
9813 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
9814
9815         * target.c (memory_xfer_partial): No need to restore shadows if we
9816         haven't read anything.
9817
9818 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
9819
9820         * mips-tdep.c (mips_print_register): Use get_frame_register_value
9821         and val_print_scalar_formatted.
9822
9823 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
9824
9825         * tracepoint.c (tfile_read): New.
9826         (tfile_open): Use it.
9827         (tfile_get_traceframe_address): Use it.
9828         (tfile_trace_find): Use it.
9829         (walk_blocks_callback_func): New typedef.
9830         (match_blocktype): New function.
9831         (traceframe_walk_blocks): New function.
9832         (traceframe_find_block_type): New function.
9833         (tfile_fetch_registers, tfile_xfer_partial)
9834         (tfile_get_trace_state_variable_value): Use
9835         traceframe_find_block_type and tfile_read.
9836
9837 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
9838
9839         * remote-mips.c: Add internationalization mark ups.  Remove
9840         trailing \n from already marked up strings.
9841
9842 2011-01-26  Tom Tromey  <tromey@redhat.com>
9843
9844         * python/py-prettyprint.c (print_string_repr): Clear
9845         'addressprint' option when calling val_print_string.
9846         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
9847         option when calling val_print_string.
9848
9849 2011-01-26  Tom Tromey  <tromey@redhat.com>
9850
9851         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
9852         GDB_PY_LL_ARG.
9853         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
9854         macros.
9855         (gdb_py_longest, gdb_py_ulongest): New typedefs.
9856         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
9857         (gdb_py_long_as_ulongest): New defines.
9858         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
9859         (gdb_py_int_as_long): Declare.
9860         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
9861         GDB_PY_LL_ARG, gdb_py_object_from_longest.
9862         (valpy_long): Add comment.
9863         * python/py-utils.c (get_addr_from_python): Use
9864         gdb_py_long_as_ulongest.  Handle overflow properly.
9865         (gdb_py_object_from_longest): New function.
9866         (gdb_py_object_from_ulongest): Likewise.
9867         (gdb_py_int_as_long): Likewise.
9868         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
9869         * python/py-symtab.c (salpy_get_pc): Use
9870         gdb_py_long_from_ulongest.
9871         (salpy_get_line): Use PyInt_FromLong.
9872         * python/py-param.c (set_parameter_value): Use
9873         gdb_py_int_as_long.
9874         * python/py-lazy-string.c (stpy_get_address): Use
9875         gdb_py_long_from_ulongest.
9876         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
9877         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
9878         * python/py-breakpoint.c (bppy_set_thread): Use
9879         gdb_py_int_as_long.
9880         (bppy_set_task): Likewise.
9881         (bppy_set_ignore_count): Likewise.
9882         (bppy_set_hit_count): Likewise.
9883         * python/py-block.c (blpy_get_start): Use
9884         gdb_py_object_from_ulongest.
9885         (blpy_get_end): Likewise.
9886         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
9887
9888 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
9889
9890         PR/symtab 11766:
9891         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
9892         * gdb/solib.c (solib_read_symbols): Check for addr_low in
9893         equality test for objfile, initialize addr_low if needed.
9894
9895 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
9896
9897         * tui/tui-regs.c (tui_register_format): Remove dead code.
9898
9899 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
9900
9901         * printcmd.c (print_formatted): Use val_print_scalar_formatted
9902         instead of print_scalar_formatted.
9903         (print_scalar_formatted): Don't handle 's' format strings here,
9904         and add an assertion that we never see such format here.
9905         * valprint.h (val_print_scalar_formatted): Declare.
9906         * valprint.c (val_print_scalar_formatted): New.
9907         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
9908         instead of print_scalar_formatted.
9909         * jv-valprint.c (java_val_print): Ditto.
9910         * p-valprint.c (pascal_val_print): Ditto.
9911         * ada-valprint.c (ada_val_print_1): Ditto.
9912         * f-valprint.c (f_val_print): Ditto.
9913         * infcmd.c (registers_info): Ditto.
9914         * m2-valprint.c (m2_val_print): Ditto.
9915
9916 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
9917
9918         * m2-valprint.c (print_unbounded_array): Pass
9919         value_contents_for_printing rather than value_contents, to
9920         m2_print_array_contents.  Also pass in the value.
9921
9922 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9923
9924         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
9925         (save_gdb_index_command): Switch to .gdb_index version 4.
9926
9927 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
9928
9929         * mi/mi-main.c (get_register): Use get_frame_register_value rather
9930         than frame_register, and always pass a valid value to val_print.
9931
9932 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
9933
9934         Centralize printing "<optimized out>".
9935
9936         * valprint.h (val_print_optimized_out): Declare.
9937         * cp-valprint.c (cp_print_value_fields): Use
9938         val_print_optimized_out.
9939         * jv-valprint.c (java_print_value_fields): Ditto.
9940         * p-valprint.c (pascal_object_print_value_fields): Ditto.
9941         * printcmd.c (print_formatted): Ditto.
9942         * valprint.c (valprint_check_validity): Ditto.
9943         (value_check_printable): Ditto.
9944         (val_print_optimized_out): New.
9945
9946 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
9947
9948         * infcmd.c (default_print_registers_info): Allocate values so to
9949         never pass a NULL value to val_print.
9950
9951 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
9952
9953         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
9954         boolean.  Make sure to always pass a value that matches the
9955         contents buffer to callees.  Preserve `address' for following
9956         iterations.
9957         * value.c (value_contents_for_printing_const): New.
9958         (value_address): Constify value argument.
9959         * value.h (value_contents_for_printing_const): Declare.
9960         (value_address): Constify value argument.
9961
9962 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
9963
9964         * regcache.c (struct regcache_descr): Rename
9965         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
9966         and sizeof_cooked_register_valid_p to
9967         sizeof_cooked_register_status.
9968         (init_regcache_descr): Adjust.
9969         (struct regcache): Rename register_valid_p field to
9970         register_status.
9971         (regcache_xmalloc_1, regcache_xfree, regcache_save)
9972         (do_cooked_read): Adjust.
9973         (regcache_valid_p): Rename to ...
9974         (regcache_register_status): ... this.  Adjust.
9975         (regcache_invalidate): Adjust.
9976         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
9977         Adjust.
9978         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
9979         as unavailable, not valid.
9980         (regcache_dump): Adjust.
9981         * regcache.h (enum register_status): New.
9982         (regcache_register_status): Declare.
9983         (regcache_invalidate): Delete declaration.
9984         * corelow.c (get_core_registers): Adjust.
9985         * tracepoint.c (tfile_fetch_registers): Adjust.
9986         * trad-frame.c (REG_VALUE): Rename to ...
9987         (TF_REG_VALUE): ... this.
9988         (REG_UNKNOWN): Rename to ...
9989         (TF_REG_UNKNOWN): ... this.
9990         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
9991         * mi/mi-main.c (register_changed_p): Adjust.
9992
9993 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
9994
9995         * regcache.c (struct regcache_descr): Remove outdated comment.
9996         (init_regcache_descr): Remove sizeof_raw_register_valid_p
9997         overallocate hack.
9998         (regcache_xmalloc): Rename to ...
9999         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
10000         Allocate the regcache type accordingly.
10001         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10002         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
10003         cooked registers, not raw.
10004         (regcache_dup_no_passthrough): Delete.
10005         (get_thread_arch_regcache): Use regcache_xmalloc_1.
10006         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10007         mention obsolete write_register_bytes.
10008         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10009
10010 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10011
10012         Stop remote_read_bytes from handling partial reads itself.
10013
10014         * remote-fileio.c: Include target.h.
10015         (remote_fileio_write_bytes): Delete.
10016         (remote_fileio_func_open, remote_fileio_func_write)
10017         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10018         target_read_memory.
10019         (remote_fileio_func_stat): Use target_read_memory and
10020         target_write_memory.
10021         (remote_fileio_func_gettimeofday): Use target_write_memory.
10022         (remote_fileio_func_system): Use target_read_memory.
10023         * remote.c (remote_write_bytes): Make it static.
10024         (remote_read_bytes): Don't handle partial reads here.
10025         * remote.h (remote_read_bytes): Delete declaration.
10026
10027 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
10028
10029         Simplify XML parsing a bit.
10030
10031         * xml-support.h (gdb_xml_parse_quick): Declare.
10032         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10033         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10034         parameter.
10035         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10036         gdb_xml_create_parser_and_cleanup_1.
10037         (gdb_xml_parse_quick): New.
10038         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10039         * osdata.c (osdata_parse): Ditto.
10040         * remote.c (remote_threads_info): Ditto.
10041         * solib-target.c (solib_target_parse_libraries): Ditto.
10042         * xml-syscall.c (syscall_parse_xml): Ditto.
10043         * xml-tdesc.c (tdesc_parse_xml): Ditto.
10044
10045 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
10046
10047         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10048         with remote-mips.o added to gdb_target_obs.
10049         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10050
10051 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
10052
10053         * ada-valprint.c (val_print_packed_array_elements): Pass the
10054         correct struct value to val_print.
10055         (ada_val_print_1): Ditto.
10056
10057 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
10058
10059         Don't lose embedded_offset in printing routines throughout.
10060
10061         * valprint.h (val_print_array_elements): Change prototype.
10062         * valprint.c (val_print_array_elements): Add `embedded_offset'
10063         parameter, and adjust to pass it down to val_print, while passing
10064         `valaddr' or `address' unmodified.  Take embedded_offset into
10065         account when checking repetitions.
10066         * c-valprint.c (c_val_print): Pass embedded_offset to
10067         val_print_array_elements instead of adjusting `valaddr' and
10068         `address'.
10069         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10070         embedded_offset to val_print_array_elements instead of adjusting
10071         `valaddr'.
10072         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10073         * p-valprint.c (pascal_val_print): Pass embedded_offset to
10074         val_print_array_elements and pascal_object_print_value_fields
10075         instead of adjusting `valaddr'.
10076         (pascal_object_print_value_fields): Add `offset' parameter, and
10077         adjust to use it.
10078         (pascal_object_print_value): Add `offset' parameter, and adjust to
10079         use it.
10080         (pascal_object_print_static_field): Use
10081         value_contents_for_printing/value_embedded_offset, rather than
10082         value_contents.
10083         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10084         parameter, and adjust to use it.  Use
10085         value_contents_for_printing/value_embedded_offset, rather than
10086         value_contents.
10087         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10088         (ada_val_print_array): Add `offset' parameter, and adjust to use
10089         it.
10090         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10091         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
10092         Instead work with offsets.  Use
10093         value_contents_for_printing/value_embedded_offset, rather than
10094         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
10095         and use value_from_pointer to extract a target pointer, rather
10096         than value_from_longest.
10097         (print_variant_part): Add `offset' parameter.  Replace
10098         `outer_valaddr' parameter by a new `outer_offset' parameter.
10099         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
10100         (ada_value_print): Use
10101         value_contents_for_printing/value_embedded_offset, rather than
10102         value_contents.
10103         (print_record): Add `offset' parameter, and adjust to pass it
10104         down.
10105         (print_field_values): Add `offset' parameter.  Replace
10106         `outer_valaddr' parameter by a new `outer_offset' parameter.
10107         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
10108         Use value_contents_for_printing/value_embedded_offset, rather than
10109         value_contents.
10110         * d-valprint.c (dynamic_array_type): Use
10111         value_contents_for_printing/value_embedded_offset, rather than
10112         value_contents.
10113         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10114         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
10115         (java_print_value_fields): Take `offset' into account.  Don't
10116         re-adjust `valaddr'.  Instead pass down adjusted offsets.
10117         (java_val_print): Take `embedded_offset' into account.  Pass it to
10118         java_print_value_fields.
10119         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10120         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
10121         down adjusted offsets.
10122         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
10123         (f_val_print): Take `embedded_offset' into account.
10124
10125 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
10126
10127         * inflow.c: Include "gdbcmd.h".
10128         (interactive_mode): New static global, moved here from top.c.
10129         (show_interactive_mode): New function, moved here from top.c.
10130         use gdb_has_a_terminal instead of input_from_terminal_p to
10131         determine the current mode.
10132         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10133         setting.
10134         (_initialize_inflow): Add the "set/show interactive-mode"
10135         commands.  Moved here from top.c, after having adjusted slightly
10136         the help text.
10137         * top.c (interactive_mode, show_interactive_mode): Delete, moved
10138         to inflow.c.
10139         (input_from_terminal_p): Remove handling of "interactive-mode"
10140         setting, moved to infow.c.
10141         (init_main): Remove creation of the "set/show interactive-mode"
10142         commands, moved to inflow.c.
10143
10144 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
10145
10146         * NEWS: Add entry for native ia64-hpux support.
10147
10148 2011-01-19  Tom Tromey  <tromey@redhat.com>
10149
10150         PR mi/8618:
10151         * thread.c (free_thread): Free 'name'.
10152         (print_thread_info): Emit thread name.  Change CLI output.
10153         (thread_name_command): New function.
10154         (do_captured_thread_select): Emit newline.
10155         (_initialize_thread): Register 'thread name' command.
10156         * target.h (struct target_ops) <to_thread_name>: New field.
10157         (target_thread_name): New macro.
10158         * target.c (update_current_target): Handle to_thread_name.
10159         * python/py-infthread.c (thpy_get_name): New function.
10160         (thpy_set_name): Likewise.
10161         (thread_object_getset): Add "name".
10162         * linux-nat.c (linux_nat_thread_name): New function.
10163         (linux_nat_add_target): Set to_thread_name.
10164         * gdbthread.h (struct thread_info) <name>: New field.
10165
10166 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
10167
10168         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10169         (ada_val_print_1): Likewise.
10170
10171 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
10172
10173         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10174         upper limit address is not greater than the function end address
10175         when the upper limit could not be computed using the debugging
10176         info.
10177
10178 2011-01-17  Tom Tromey  <tromey@redhat.com>
10179
10180         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
10181         get_regcomp_error.
10182         * utils.c: Include gdb_regex.h.
10183         (do_regfree_cleanup): New function.
10184         (make_regfree_cleanup): Likewise.
10185         (get_regcomp_error): Likewise.
10186         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10187
10188 2011-01-17  Tom Tromey  <tromey@redhat.com>
10189
10190         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
10191         re_compile_fastmap.
10192
10193 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
10194
10195         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10196         for internal variables.
10197         (last_was_structop): New static variable.
10198         (COMPLETE): New token.
10199         (field_exp): New rule to group all '.' suffix handling.
10200         Add mark_struct_expression calls when approriate to be able
10201         to correctly find fields for completion.
10202         (yylex): Adapt to handle field completion and set INTVAR when
10203         required.
10204
10205 2011-01-14  Yao Qi  <yao@codesourcery.com>
10206
10207         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10208         save_reggroup, restore_reggroup and all_reggroup.
10209
10210 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
10211
10212         * ada-valprint. (ada_printchar): Use the correct type length
10213         in call to ada_emit_char.
10214         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10215
10216 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
10217
10218         * solib-som.h (hpux_major_release): Declare variable here.
10219         * solib-som.c:  Remove <sys/utsname.h> header.
10220         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10221         (hpux_major_release): Make global, change default value to
10222         DEFAULT_HPUX_MAJOR_RELEASE.
10223         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10224         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10225         Add "solib-som.h" header.
10226         (set_hpux_major_release): New function.
10227         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10228
10229 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
10230
10231         * configure.tgt (*-*-uclinux*): Match more Linux os targets
10232
10233 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
10234
10235         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10236         new-line at end of warning message.
10237         (ia64_hpux_store_register): Remove trailing new-line at end of
10238         error message.
10239         * ia64-hpux-tdep.c: Rephrase comment.
10240         * solib-ia64-hpux.c (struct dld_info): Change type of field
10241         dld_flags from "long long" to ULONGEST.
10242
10243 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
10244
10245         * target.h (deprecated_child_ops): Delete declaration.
10246         * target.c (deprecated_child_ops): Delete definition.
10247
10248 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
10249
10250         * Makefile.in (hpux-thread.o): Delete rule.
10251         * configure.ac: Don't check for HPUX DCE threads support.
10252         * configure, config.in: Regenerate.
10253         * hppa-hpux-nat.c (child_suppress_run): Delete.
10254         (hppa_hpux_child_can_run): Delete.
10255         (_initialize_hppa_hpux_nat): Don't override to_can_run.
10256         * hpux-thread.c: Delete.
10257
10258 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10259
10260         * hpux-thread.c (hpux_pid_to_str): Delete.
10261
10262 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10263
10264         * ada-valprint.c (ada_emit_char): Remove strange code.
10265         Check that c is <= UCHAR_MAX before passing it to isascii.
10266         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
10267
10268 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10269
10270         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
10271         to the case where instream is stdin.
10272
10273 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10274
10275         * ia64-tdep.h (struct regcache): Forward declare.
10276         (struct ia64_infcall_ops): New struct type.
10277         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
10278         and "infcall_ops".
10279         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
10280         Renames ia64_find_global_pointer.
10281         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
10282         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
10283         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
10284         methods.
10285         (ia64_infcall_ops): New static global constant.
10286         (ia64_gdbarch_init): Set tdep->infcall_ops.
10287         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
10288         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
10289         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
10290         (ia64_hpux_dummy_code): New static global constant.
10291         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
10292         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
10293         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
10294         New function.
10295         (ia64_hpux_infcall_ops): New static global constant.
10296         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
10297         for inferior function calls to work properly on ia64-hpux.
10298
10299 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10300
10301         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
10302         * ia64-tdep.h (struct frame_info): forward declaration.
10303         (struct gdbarch_tdep): Add field size_of_register_frame.
10304         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
10305         to determine the size of the register frame.
10306         (ia64_size_of_register_frame): New function.
10307         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
10308         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
10309         (IA64_HPUX_UREG_REASON): New macro.
10310         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
10311         New functions.
10312         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
10313         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
10314         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
10315         objects.
10316
10317 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10318
10319         Add support for ia64-hpux.
10320         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
10321         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
10322
10323         * configure.host: Add handling for ia64-hpux hosts.  Add associated
10324         floatformats.
10325         * configure.tgt: Add handling for ia64-hpux targets.
10326         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
10327         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
10328         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
10329
10330 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10331
10332         [ttrace] Compute thread list immediately after attach.
10333         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
10334         New subprogram.
10335         (inf_ttrace_attach): Use it.
10336
10337 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10338
10339         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
10340         if we could not determine the frame's function address.  Instead,
10341         use the frame's PC, and then continue.
10342
10343 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10344
10345         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
10346         not already defined.
10347
10348 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10349
10350         * ia64-tdep.c (ia64_struct_type_p): New function.
10351         (ia64_extract_return_value): Handle integral values that are
10352         less than 8 bytes long.
10353         (ia64_push_dummy_call): Likewise.
10354
10355 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
10356
10357         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
10358         floatformat_ia64_ext.
10359         (floatformat_ia64_ext_big): New static const.
10360         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
10361
10362 2011-01-12  Tom Tromey  <tromey@redhat.com>
10363
10364         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
10365         messages.
10366         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
10367         (mi_cmd_thread_list_ids): Likewise.
10368         (mi_cmd_data_list_changed_registers): Likewise.
10369         (mi_cmd_data_list_register_values): Likewise.
10370         (mi_cmd_data_write_register_values): Likewise.
10371         (mi_cmd_data_evaluate_expression): Likewise.
10372         (mi_cmd_data_read_memory): Likewise.
10373         (mi_cmd_data_read_memory_bytes): Likewise.
10374         (mi_cmd_data_write_memory): Likewise.
10375         (mi_cmd_enable_timings): Likewise.
10376         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
10377         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
10378         (mi_cmd_var_delete): Likewise.
10379         (mi_cmd_var_set_format): Likewise.
10380         (mi_cmd_var_show_format): Likewise.
10381         (mi_cmd_var_info_num_children): Likewise.
10382         (mi_cmd_var_list_children): Likewise.
10383         (mi_cmd_var_info_type): Likewise.
10384         (mi_cmd_var_info_expression): Likewise.
10385         (mi_cmd_var_show_attributes): Likewise.
10386         (mi_cmd_var_assign): Likewise.
10387         (mi_cmd_var_update): Likewise.
10388         (mi_cmd_enable_pretty_printing): Likewise.
10389         (mi_cmd_var_set_update_range): Likewise.
10390         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
10391         messages.
10392         (mi_cmd_target_file_put): Likewise.
10393         (mi_cmd_target_file_delete): Likewise.
10394         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
10395         messages.
10396         (mi_cmd_stack_info_depth): Likewise.
10397         (mi_cmd_stack_list_locals): Likewise.
10398         (mi_cmd_stack_list_args): Likewise.
10399         (mi_cmd_stack_select_frame): Likewise.
10400         (mi_cmd_stack_select_frame): Likewise.
10401         (mi_cmd_stack_info_frame): Likewise.
10402         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
10403         messages.
10404         (mi_cmd_file_list_exec_source_files): Likewise.
10405         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
10406         (mi_cmd_env_cd): Likewise.
10407         (mi_cmd_env_path): Likewise.
10408         (mi_cmd_env_dir): Likewise.
10409         (mi_cmd_inferior_tty_show): Likewise.
10410         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
10411         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
10412         (mi_cmd_break_watch): Likewise.
10413
10414 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10415
10416         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
10417         (ppc_linux_insert_hw_breakpoint): Likewise.
10418         (ppc_linux_remove_hw_breakpoint): Likewise.
10419         (ppc_linux_insert_watchpoint): Likewise.
10420
10421 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
10422             Jan Kratochvil  <jan.kratochvil@redhat.com>
10423
10424         PR fortran/11104 and DWARF unbound arrays detection.
10425         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
10426         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
10427         unspecified upper bound.
10428         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
10429         variables array_size_array, tmp_type and offset_item.  New variable
10430         array.  Remove call to f77_get_upperbound.  New variables array_type
10431         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
10432         the final call to deprecated_set_value_type.
10433
10434 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10435
10436         Make value allocations more lazy.
10437         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
10438         instead of allocate_value and set_value_lazy when possible.
10439         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
10440         instead of allocate_value and set_value_lazy.
10441         * findvar.c (value_of_register_lazy): Likewise.
10442         (read_var_value): Remove V preallocation, call just check_typedef in
10443         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
10444         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
10445         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
10446         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
10447         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
10448         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
10449         the end, remove set_value_lazy there.
10450         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
10451         instead of allocate_value and set_value_lazy when possible.
10452         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
10453         * value.c (allocate_computed_value): Use allocate_value_lazy instead
10454         of allocate_value and set_value_lazy.
10455         (value_from_contents_and_address): Use allocate_value_lazy instead of
10456         allocate_value and set_value_lazy when possible.
10457
10458 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
10459
10460         * disasm.c (dump_insns): Support dumping opcodes for MI.
10461         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
10462         dumping of instruction opcodes.
10463
10464 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
10465
10466         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
10467         appropiately.
10468
10469 2011-01-11  Tom Tromey  <tromey@redhat.com>
10470
10471         * thread.c (do_captured_thread_select): Emit newline before
10472         printing frame.
10473
10474 2011-01-11  Michael Snyder  <msnyder@vmware.com>
10475
10476         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
10477         * score-tdep.c: Ditto.
10478         * score-tdep.h: Ditto.
10479         * ser-base.c: Ditto.
10480         * ser-go32.c: Ditto.
10481         * serial.c: Ditto.
10482         * serial.h: Ditto.
10483         * ser-mingw.c: Ditto.
10484         * ser-pipe.c: Ditto.
10485         * ser-tcp.c: Ditto.
10486         * ser-unix.c: Ditto.
10487         * sh64-tdep.c: Ditto.
10488         * shnbsd-nat.c: Ditto.
10489         * sh-tdep.c: Ditto.
10490         * sh-tdep.h: Ditto.
10491         * solib.c: Ditto.
10492         * solib-darwin.c: Ditto.
10493         * solib-frv.c: Ditto.
10494         * solib.h: Ditto.
10495         * solib-irix.c: Ditto.
10496         * solib-osf.c: Ditto.
10497         * solib-pa64.c: Ditto.
10498         * solib-som.c: Ditto.
10499         * solib-spu.c: Ditto.
10500         * solib-sunos.c: Ditto.
10501         * solib-svr4.c: Ditto.
10502         * solist.h: Ditto.
10503         * sol-thread.c: Ditto.
10504         * somread.c: Ditto.
10505         * source.c: Ditto.
10506         * source.h: Ditto.
10507         * sparc64-linux-tdep.c: Ditto.
10508         * sparc64-tdep.c: Ditto.
10509         * sparc-linux-nat.c: Ditto.
10510         * sparc-linux-tdep.c: Ditto.
10511         * sparc-sol2-nat.c: Ditto.
10512         * sparc-sol2-tdep.c: Ditto.
10513         * sparc-tdep.c: Ditto.
10514         * sparc-tdep.h: Ditto.
10515         * spu-tdep.c: Ditto.
10516         * stabsread.c: Ditto.
10517         * stabsread.h: Ditto.
10518         * stack.c: Ditto.
10519         * symfile.c: Ditto.
10520         * symfile.h: Ditto.
10521         * symmisc.c: Ditto.
10522         * symtab.c: Ditto.
10523         * symtab.h: Ditto.
10524         * target.c: Ditto.
10525         * target-descriptions.c: Ditto.
10526         * target-descriptions.h: Ditto.
10527         * target.h: Ditto.
10528         * target-memory.c: Ditto.
10529         * terminal.h: Ditto.
10530         * thread.c: Ditto.
10531         * top.c: Ditto.
10532         * tracepoint.c: Ditto.
10533         * tracepoint.h: Ditto.
10534         * trad-frame.h: Ditto.
10535         * typeprint.c: Ditto.
10536
10537 2011-01-11  Michael Snyder  <msnyder@vmware.com>
10538
10539         * ui-file.c: Comment cleanup, mostly periods and spaces.
10540         * ui-file.h: Ditto.
10541         * ui-out.c: Ditto.
10542         * ui-out.h: Ditto.
10543         * utils.c: Ditto.
10544         * v850-tdep.c: Ditto.
10545         * valarith.c: Ditto.
10546         * valops.c: Ditto.
10547         * valprint.c: Ditto.
10548         * valprint.h: Ditto.
10549         * value.c: Ditto.
10550         * value.h: Ditto.
10551         * varobj.c: Ditto.
10552         * varobj.h: Ditto.
10553         * vax-tdep.c: Ditto.
10554         * vec.c: Ditto.
10555         * vec.h: Ditto.
10556         * version.h: Ditto.
10557         * windows-nat.c: Ditto.
10558         * windows-tdep.c: Ditto.
10559         * xcoffread.c: Ditto.
10560         * xcoffsolib.c: Ditto.
10561         * xml-support.c: Ditto.
10562         * xstormy16-tdep.c: Ditto.
10563         * xtensa-tdep.c: Ditto.
10564         * xtensa-tdep.h: Ditto.
10565
10566 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10567
10568         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
10569         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
10570
10571 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
10572             Thiago Jung Bauermann  <bauerman@br.ibm.com>
10573
10574         Implement support for PowerPC BookE ranged watchpoints.
10575         * breakpoint.h
10576         (struct breakpoint_ops) <resources_needed>: New method.
10577         Initialize to NULL in all existing breakpoint_ops instances.
10578         (struct breakpoint) <exact>: New field.
10579         (target_exact_watchpoints): Declare external global.
10580         * breakpoint.c (target_exact_watchpoints): New global flag.
10581         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
10582         b->enable_state to bp_enabled before calling
10583         hw_watchpoint_used_count.
10584         (hw_watchpoint_used_count): Iterate over all bp_locations in a
10585         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
10586         if available.
10587         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
10588         if the watchpoint is exact.
10589         (resources_needed_watchpoint): New function.
10590         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
10591         (watch_command_1): Set b->exact if the user asked for an exact
10592         watchpoint and one can be set.
10593         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
10594         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
10595         the user asks for an exact watchpoint and one can be set.  Return
10596         number of needed debug registers to watch the expression.
10597         * gdbtypes.c (is_scalar_type): New function, based on
10598         valprint.c:scalar_type_p.
10599         (is_scalar_type_recursive): New function.
10600         * gdbtypes.h (is_scalar_type_recursive): Declare.
10601         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
10602         handle regions when ranged watchpoints are available.
10603         (create_watchpoint_request): New function.
10604         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
10605         create_watchpoint_request.
10606         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
10607         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
10608         `set powerpc' and `show powerpc' commands.
10609         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10610         Mention documentation comment in the target macro.
10611         (target_region_ok_for_hw_watchpoint): Document return value.
10612
10613 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10614
10615         * breakpoint.c (update_watchpoint): Decide on using a software or
10616         hardware watchpoint after the bp_locations are created.
10617
10618 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
10619
10620         Convert hardware watchpoints to use breakpoint_ops.
10621         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
10622         <insert_location>: ... this.  Return int instead of void.
10623         Accept pointer to struct bp_location instead of pointer to
10624         struct breakpoint.  Adapt all implementations.
10625         (breakpoint_ops) <remove>: Rename to...
10626         <remove_location>: ... this.  Accept pointer to struct bp_location
10627         instead of pointer to struct breakpoint.  Adapt all implementations.
10628         * breakpoint.c (insert_catchpoint): Delete function.
10629         (insert_bp_location): Call the watchpoint or catchpoint's
10630         breakpoint_ops.insert method.
10631         (remove_breakpoint_1): Call the watchpoint or catchpoint's
10632         breakpoint_ops.remove method.
10633         (insert_watchpoint, remove_watchpoint): New functions.
10634         (watchpoint_breakpoint_ops): New structure.
10635         (watch_command_1): Initialize the OPS field.
10636         * inf-child.c (inf_child_insert_fork_catchpoint)
10637         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
10638         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
10639         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
10640         Delete functions.
10641         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
10642         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
10643         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
10644         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
10645         * target.c (update_current_target): Change default implementation of
10646         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
10647         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
10648         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
10649         to_set_syscall_catchpoint to return_one.
10650         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
10651         (debug_to_insert_exec_catchpoint): Report return value.
10652         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
10653         (to_insert_exec_catchpoint): Change declaration to return int instead
10654         of void.
10655
10656 2011-01-11  Michael Snyder  <msnyder@vmware.com>
10657
10658         * arm-tdep.c: Internationalization.
10659         * c-lang.c: Ditto.
10660         * charset.c: Ditto.
10661         * fork-child.c: Ditto.
10662         * nto-procfs.c: Ditto.
10663         * ppc-sysv-tdep.c: Ditto.
10664         * procfs.c: Ditto.
10665         * remote-mips.c: Ditto.
10666         * remote.c: Ditto.
10667         * rs6000-nat.c: Ditto.
10668         * rs6000-tdep.c: Ditto.
10669         * target.c: Ditto.
10670         * valops.c: Ditto.
10671         * value.c: Ditto.
10672         * xml-support.c: Ditto.
10673         * mi/mi-cmd-break.c: Ditto.
10674         * mi/mi-cmd-var.c: Ditto.
10675         * mi/mi-interp.c: Ditto.
10676         * mi/mi-main.c: Ditto.
10677
10678 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
10679
10680         * remote-sim.c (gdbsim_store_register): Update API to
10681         sim_store_register to check more error conditions.
10682
10683 2011-01-10  Michael Snyder  <msnyder@vmware.com>
10684
10685         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
10686         * nto-tdep.c: Ditto.
10687         * nto-tdep.h: Ditto.
10688         * objc-exp.y: Ditto.
10689         * objc-lang.c: Ditto.
10690         * objfiles.c: Ditto.
10691         * objfiles.h: Ditto.
10692         * observer.c: Ditto.
10693         * opencl-lang.c: Ditto.
10694         * osabi.c: Ditto.
10695         * parse.c: Ditto.
10696         * parser-defs.h: Ditto.
10697         * p-exp.y: Ditto.
10698         * p-lang.c: Ditto.
10699         * posix-hdep.c: Ditto.
10700         * ppcbug-rom.c: Ditto.
10701         * ppc-linux-nat.c: Ditto.
10702         * ppc-linux-tdep.c: Ditto.
10703         * ppc-linux-tdep.h: Ditto.
10704         * ppcnbsd-tdep.c: Ditto.
10705         * ppcobsd-tdep.c: Ditto.
10706         * ppcobsd-tdep.h: Ditto.
10707         * ppc-sysv-tdep.c: Ditto.
10708         * ppc-tdep.h: Ditto.
10709         * printcmd.c: Ditto.
10710         * proc-abi.c: Ditto.
10711         * proc-flags.c: Ditto.
10712         * procfs.c: Ditto.
10713         * proc-utils.h: Ditto.
10714         * progspace.h: Ditto.
10715         * prologue-value.c: Ditto.
10716         * prologue-value.h: Ditto.
10717         * psympriv.h: Ditto.
10718         * psymtab.c: Ditto.
10719         * p-typeprint.c: Ditto.
10720         * p-valprint.c: Ditto.
10721         * ravenscar-sparc-thread.c: Ditto.
10722         * ravenscar-thread.c: Ditto.
10723         * ravenscar-thread.h: Ditto.
10724         * record.c: Ditto.
10725         * regcache.c: Ditto.
10726         * regcache.h: Ditto.
10727         * remote.c: Ditto.
10728         * remote-fileio.c: Ditto.
10729         * remote-fileio.h: Ditto.
10730         * remote.h: Ditto.
10731         * remote-m32r-sdi.c: Ditto.
10732         * remote-mips.c: Ditto.
10733         * remote-sim.c: Ditto.
10734         * rs6000-aix-tdep.c: Ditto.
10735         * rs6000-nat.c: Ditto.
10736         * rs6000-tdep.c: Ditto.
10737
10738 2011-01-10  Michael Snyder  <msnyder@vmware.com>
10739
10740         * charset.c (validate): Internationalization.
10741         * coffread.c (read_one_sym): Ditto.
10742         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
10743         * h8300-tdep.c (H8300_extract_return_value): Ditto.
10744         * inflow.c (new_tty): Ditto.
10745         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
10746         * m32c-tdep.c (m32c_return_value): Ditto.
10747         * mep-tdep.c (mep_store_return_value): Ditto.
10748         * score-tdep.c (score7_fetch_insn): Ditto.
10749         * ser-mingw.c (pipe_windows_open): Ditto.
10750         * sh64-tdep.c (sh64_extract_return_value): Ditto.
10751         * spu-tdep.c (spu_register_type): Ditto.
10752         * tracepoint.c (trace_find_command): Ditto.
10753         * valarith.c (value_pos): Ditto.
10754
10755 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
10756
10757         * ada-valprint.c (printstr): Minor comment reformatting.
10758
10759 2011-01-08  Michael Snyder  <msnyder@vmware.com>
10760
10761         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
10762         markup.
10763
10764 2011-01-08  Michael Snyder  <msnyder@vmware.com>
10765
10766         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
10767         * hppa-hpux-tdep.c: Ditto.
10768         * hppa-linux-nat.c: Ditto.
10769         * hppa-linux-tdep.c: Ditto.
10770         * hppanbsd-tdep.c: Ditto.
10771         * hppa-tdep.c: Ditto.
10772         * hppa-tdep.h: Ditto.
10773         * hpux-thread.c: Ditto.
10774         * i386-cygwin-tdep.c: Ditto.
10775         * i386-darwin-nat.c: Ditto.
10776         * i386gnu-nat.c: Ditto.
10777         * i386-linux-nat.c: Ditto.
10778         * i386-linux-tdep.c: Ditto.
10779         * i386-nat.c: Ditto.
10780         * i386-nat.h: Ditto.
10781         * i386nbsd-tdep.c: Ditto.
10782         * i386-sol2-nat.c: Ditto.
10783         * i386-stub.c: Ditto.
10784         * i386-tdep.c: Ditto.
10785         * i386-tdep.h: Ditto.
10786         * i387-tdep.c: Ditto.
10787         * ia64-linux-nat.c: Ditto.
10788         * ia64-linux-tdep.c: Ditto.
10789         * ia64-tdep.c: Ditto.
10790         * infcall.c: Ditto.
10791         * infcall.h: Ditto.
10792         * infcmd.c: Ditto.
10793         * inferior.c: Ditto.
10794         * inferior.h: Ditto.
10795         * infloop.c: Ditto.
10796         * inflow.c: Ditto.
10797         * infrun.c: Ditto.
10798         * interps.c: Ditto.
10799         * interps.h: Ditto.
10800         * iq2000-tdep.c: Ditto.
10801         * irix5-nat.c: Ditto.
10802         * jit.c: Ditto.
10803         * jit.h: Ditto.
10804         * jv-exp.y: Ditto.
10805         * jv-lang.c: Ditto.
10806         * jv-lang.h: Ditto.
10807         * jv-typeprint.c: Ditto.
10808         * jv-valprint.c: Ditto.
10809         * language.c: Ditto.
10810         * language.h: Ditto.
10811         * linespec.c: Ditto.
10812         * linux-fork.c: Ditto.
10813         * linux-nat.c: Ditto.
10814         * linux-thread-db.c: Ditto.
10815         * lm32-tdep.c: Ditto.
10816
10817 2011-01-08  Michael Snyder  <msnyder@vmware.com>
10818
10819         * m2-exp.y: Comment cleanup, mostly periods and spaces.
10820         * m2-lang.c: Ditto.
10821         * m2-typeprint.c: Ditto.
10822         * m2-valprint.c: Ditto.
10823         * m32c-tdep.c: Ditto.
10824         * m32r-linux-nat.c: Ditto.
10825         * m32r-rom.c: Ditto.
10826         * m32r-tdep.c: Ditto.
10827         * m32r-tdep.h: Ditto.
10828         * m68hc11-tdep.c: Ditto.
10829         * m58klinux-nat.c: Ditto.
10830         * m68k-tdep.c: Ditto.
10831         * m88k-tdep.c: Ditto.
10832         * m88k-tdep.h: Ditto.
10833         * machoread.c: Ditto.
10834         * macrocmd.c: Ditto.
10835         * macroexp.c: Ditto.
10836         * macrotab.c: Ditto.
10837         * main.c: Ditto.
10838         * maint.c: Ditto.
10839         * mdebugread.c: Ditto.
10840         * mdebugread.h: Ditto.
10841         * memattr.c: Ditto.
10842         * memattr.h: Ditto.
10843         * memory-map.h: Ditto.
10844         * mep-tdep.c: Ditto.
10845         * microblaze-rom.c: Ditto.
10846         * microblaze-tdep.c: Ditto.
10847         * minsyms.c: Ditto.
10848         * mips-irix-tdep.c: Ditto.
10849         * mips-linux-nat.c: Ditto.
10850         * mips-linux-tdep.c: Ditto.
10851         * mips-linux-tdep.h: Ditto.
10852         * mipsnbsd-nat.c: Ditto.
10853         * mipsnbsd-tdep.c: Ditto.
10854         * mipsread.c: Ditto.
10855         * mips-tdep.c: Ditto.
10856         * mips-tdep.h: Ditto.
10857         * mn10300-linux-tdep.c: Ditto.
10858         * mn10300-tdep.c: Ditto.
10859         * mn10300-tdep.h: Ditto.
10860         * monitor.c: Ditto.
10861         * monitor.h: Ditto.
10862         * moxie-tdep.c: Ditto.
10863         * moxie-tdep.h: Ditto.
10864         * mt-tdep.c: Ditto.
10865
10866 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
10867
10868         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
10869
10870 2011-01-08  Robert Millan  <rmh@gnu.org>
10871
10872         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
10873
10874 2011-01-07  Michael Snyder  <msnyder@vmware.com>
10875
10876         * charset.c (_initialize_charset): Fix typo in string.
10877
10878 2011-01-07  Michael Snyder  <msnyder@vmware.com>
10879
10880         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
10881         for i18n.
10882         * tui/tui-layout.c (tui_set_layout_for_display_command):
10883         Split line so that operator goes to beginning of line.
10884         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
10885         assignment out of if statement.
10886
10887 2011-01-07  Michael Snyder  <msnyder@vmware.com>
10888
10889         * ada-lang.c: Comment cleanup, mostly periods and spaces.
10890         * ada-lang.h: Ditto.
10891         * ada-tasks.c: Ditto.
10892         * ada-valprint.c: Ditto.
10893         * aix-threads.c: Ditto.
10894         * alpha-linux-nat.c: Ditto.
10895         * alpha-linux-tdep.c: Ditto.
10896         * alpha-mdebug-tdep.c: Ditto.
10897         * alpha-nat.c: Ditto.
10898         * alpha-osf1-tdep.c: Ditto.
10899         * alpha-tdep.c: Ditto.
10900         * alphabsd-nat.c: Ditto.
10901         * alphabsd-tdep.c: Ditto.
10902         * amd64-darwin-tdep.c: Ditto.
10903         * amd64-linux-nat.c: Ditto.
10904         * amd64-linux-tdep.c: Ditto.
10905         * amd64-sol2-tdep.c: Ditto.
10906         * amd64-tdep.c: Ditto.
10907         * amd64-fbsd-tdep.c: Ditto.
10908         * amd64-nbsd-tdep.c: Ditto.
10909         * amd64-obsd-tdep.c: Ditto.
10910         * amd64-linux-nat.c: Ditto.
10911         * amd64-linux-tdep.c: Ditto.
10912         * arm-tdep.c: Ditto.
10913         * arm-tdep.h: Ditto.
10914         * armnbsd-nat.c: Ditto.
10915         * avr-tdep.c: Ditto.
10916         * bfin-tdep.c: Ditto.
10917         * bsd-kvm.c: Ditto.
10918         * c-typeprintc: Ditto.
10919         * c-valprint.c: Ditto.
10920         * coff-pe-read.h: Ditto.
10921         * coffreead.c: Ditto.
10922         * cris-tdep.c: Ditto.
10923         * d-lang.c: Ditto.
10924         * darwin-nat-info.c: Ditto.
10925         * darwin-nat.c: Ditto.
10926         * dbug-rom.c: Ditto.
10927         * dbxread.c: Ditto.
10928         * dcache.c: Ditto.
10929         * dcache.h: Ditto.
10930         * dec-thread.c: Ditto.
10931         * defs.h: Ditto.
10932         * demangle.c: Ditto.
10933         * dicos-tdep.c: Ditto.
10934         * dictionary.c: Ditto.
10935         * dictionary.h: Ditto.
10936         * dink32-rom.c: Ditto.
10937         * disasm.c: Ditto.
10938         * doublest.c: Ditto.
10939         * dsrec.c: Ditto.
10940         * dummy-frame.c: Ditto.
10941         * dwarf2-frame.c: Ditto.
10942         * dwarf2expr.c: Ditto.
10943         * dwarf2loc.c: Ditto.
10944         * dwarf2read.c: Ditto.
10945         * elfread.c: Ditto.
10946         * environ.c: Ditto.
10947         * eval.c: Ditto.
10948         * event-top.h: Ditto.
10949         * exceptions.c: Ditto.
10950         * exceptions.h: Ditto.
10951         * exec.c: Ditto.
10952         * expprint.c: Ditto.
10953         * expression.h: Ditto.
10954         * f-exp.y: Ditto.
10955         * f-lang.c: Ditto.
10956         * f-lang.h: Ditto.
10957         * f-typeprint.c: Ditto.
10958         * f-valprint.c: Ditto.
10959         * fbsd-nat.c: Ditto.
10960         * findvar.c: Ditto.
10961         * fork-child.c: Ditto.
10962         * frame.c: Ditto.
10963         * frame.h: Ditto.
10964         * frv-linux-tdep.c: Ditto.
10965         * frv-tdep.c: Ditto.
10966         * gcore.c: Ditto.
10967         * gdb-stabs.h: Ditto.
10968         * gdb_assert.h: Ditto.
10969         * gdb_string.h: Ditto.
10970         * gdb_thread_db.h: Ditto.
10971         * gdb_wait.h: Ditto.
10972         * gdbarch.sh: Ditto.
10973         * gdbcore.h: Ditto.
10974         * gdbthread.h: Ditto.
10975         * gdbtypes.c: Ditto.
10976         * gdbtypes.h: Ditto.
10977         * gnu-nat.c: Ditto.
10978         * gnu-nat.h: Ditto.
10979         * gnu-v2-abi.c: Ditto.
10980         * gnu-v3-abi.c: Ditto.
10981         * go32-nat.c: Ditto.
10982         * gdbarch.c: Regenerate.
10983         * gdbarch.h: Regenerate.
10984
10985 2011-01-07  Michael Snyder  <msnyder@vmware.com>
10986
10987         * ax-gdb.c: Adjust some long output strings.
10988         * breakpoint.c: Ditto.
10989         * charset.c: Ditto.
10990         * cp-abi.c: Ditto.
10991         * infcall.c: Ditto.
10992         * infrun.c: Ditto.
10993         * linux-nat.c: Ditto.
10994         * solib-pa64.c: Ditto.
10995         * solib-som.c: Ditto.
10996
10997 2011-01-06  Tom Tromey  <tromey@redhat.com>
10998
10999         PR python/12367:
11000         * NEWS: Add item.
11001         * python/python.c (GdbMethods): Add "newest_frame" method.
11002         * python/python-internal.h (gdbpy_newest_frame): Declare.
11003         * python/py-frame.c (gdbpy_newest_frame): New function.
11004
11005 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11006
11007         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11008         * jit.c (jit_debug): New variable.
11009         (show_jit_debug): New function.
11010         (struct target_buffer): Use ULONGEST.
11011         (bfd_open_from_target_memory): Likewise.
11012         (jit_register_code, jit_inferior_init): Add debug output.
11013         (_initialize_jit): Register "debug jit" command.
11014
11015 2011-01-06  Tom Tromey  <tromey@redhat.com>
11016
11017         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11018         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11019         and ARCH_FRAME.
11020
11021 2011-01-06  Tom Tromey  <tromey@redhat.com>
11022
11023         * python/py-frame.c (frapy_block): Use get_frame_block.
11024
11025 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
11026
11027         Do not stop on SIGPRIO signals by default
11028         * infrun.c (_initialize_infrun): Unset signal_stop and
11029         signal_print for TARGET_SIGNAL_PRIO.
11030
11031 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
11032
11033         * ada-tasks.c: Fix style violation in comment.
11034
11035 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
11036
11037         * linespec.c (decode_compound, find_method): Remove trailing \n
11038         at end of error string.
11039         * solib-irix.c (irix_current_sos): Likewise.
11040         * varobj.c (uninstall_variable): Likewise.
11041
11042 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
11043
11044         * copyright.py: New script.
11045         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11046         Launch emacs without exec'ing. Call copyright.py afterwards.
11047
11048 2011-01-05  Michael Snyder  <msnyder@vmware.com>
11049
11050         * addrmap.c: Shorten lines of >= 80 columns.
11051         * arch-utils.c: Ditto.
11052         * arch-utils.h: Ditto.
11053         * ax-gdb.c: Ditto.
11054         * ax-general.c: Ditto.
11055         * bcache.c: Ditto.
11056         * blockframe.c: Ditto.
11057         * breakpoint.c: Ditto.
11058         * buildsym.c: Ditto.
11059         * c-lang.c: Ditto.
11060         * c-typeprint.c: Ditto.
11061         * charset.c: Ditto.
11062         * coffread.c: Ditto.
11063         * command.h: Ditto.
11064         * corelow.c: Ditto.
11065         * cp-abi.c: Ditto.
11066         * cp-namespace.c: Ditto.
11067         * cp-support.c: Ditto.
11068         * dbug-rom.c: Ditto.
11069         * dbxread.c: Ditto.
11070         * defs.h: Ditto.
11071         * dfp.c: Ditto.
11072         * dfp.h: Ditto.
11073         * dictionary.c: Ditto.
11074         * disasm.c: Ditto.
11075         * doublest.c: Ditto.
11076         * dwarf2-frame.c: Ditto.
11077         * dwarf2expr.c: Ditto.
11078         * dwarf2loc.c: Ditto.
11079         * dwarf2read.c: Ditto.
11080         * elfread.c: Ditto.
11081         * eval.c: Ditto.
11082         * event-loop.c: Ditto.
11083         * event-loop.h: Ditto.
11084         * exceptions.h: Ditto.
11085         * exec.c: Ditto.
11086         * expprint.c: Ditto.
11087         * expression.h: Ditto.
11088         * f-lang.c: Ditto.
11089         * f-valprint.c: Ditto.
11090         * findcmd.c: Ditto.
11091         * frame-base.c: Ditto.
11092         * frame-unwind.c: Ditto.
11093         * frame-unwind.h: Ditto.
11094         * frame.c: Ditto.
11095         * frame.h: Ditto.
11096         * gcore.c: Ditto.
11097         * gdb-stabs.h: Ditto.
11098         * gdb_assert.h: Ditto.
11099         * gdb_dirent.h: Ditto.
11100         * gdb_obstack.h: Ditto.
11101         * gdbcore.h: Ditto.
11102         * gdbtypes.c: Ditto.
11103         * gdbtypes.h: Ditto.
11104         * inf-ttrace.c: Ditto.
11105         * infcall.c: Ditto.
11106         * infcmd.c: Ditto.
11107         * inflow.c: Ditto.
11108         * infrun.c: Ditto.
11109         * inline-frame.h: Ditto.
11110         * language.c: Ditto.
11111         * language.h: Ditto.
11112         * libunwind-frame.c: Ditto.
11113         * libunwind-frame.h: Ditto.
11114         * linespec.c: Ditto.
11115         * linux-nat.c: Ditto.
11116         * linux-nat.h: Ditto.
11117         * linux-thread-db.c: Ditto.
11118         * machoread.c: Ditto.
11119         * macroexp.c: Ditto.
11120         * macrotab.c: Ditto.
11121         * main.c: Ditto.
11122         * maint.c: Ditto.
11123         * mdebugread.c: Ditto.
11124         * memattr.c: Ditto.
11125         * minsyms.c: Ditto.
11126         * monitor.c: Ditto.
11127         * monitor.h: Ditto.
11128         * objfiles.c: Ditto.
11129         * objfiles.h: Ditto.
11130         * osabi.c: Ditto.
11131         * p-typeprint.c: Ditto.
11132         * p-valprint.c: Ditto.
11133         * parse.c: Ditto.
11134         * printcmd.c: Ditto.
11135         * proc-events.c: Ditto.
11136         * procfs.c: Ditto.
11137         * progspace.c: Ditto.
11138         * progspace.h: Ditto.
11139         * psympriv.h: Ditto.
11140         * psymtab.c: Ditto.
11141         * record.c: Ditto.
11142         * regcache.c: Ditto.
11143         * regcache.h: Ditto.
11144         * remote-fileio.c: Ditto.
11145         * remote.c: Ditto.
11146         * ser-mingw.c: Ditto.
11147         * ser-tcp.c: Ditto.
11148         * ser-unix.c: Ditto.
11149         * serial.c: Ditto.
11150         * serial.h: Ditto.
11151         * solib-frv.c: Ditto.
11152         * solib-irix.c: Ditto.
11153         * solib-osf.c: Ditto.
11154         * solib-pa64.c: Ditto.
11155         * solib-som.c: Ditto.
11156         * solib-sunos.c: Ditto.
11157         * solib-svr4.c: Ditto.
11158         * solib-target.c: Ditto.
11159         * solib.c: Ditto.
11160         * somread.c: Ditto.
11161         * source.c: Ditto.
11162         * stabsread.c: Ditto.
11163         * stabsread.c: Ditto.
11164         * stack.c: Ditto.
11165         * stack.h: Ditto.
11166         * symfile-mem.c: Ditto.
11167         * symfile.c: Ditto.
11168         * symfile.h: Ditto.
11169         * symmisc.c: Ditto.
11170         * symtab.c: Ditto.
11171         * symtab.h: Ditto.
11172         * target-descriptions.c: Ditto.
11173         * target-memory.c: Ditto.
11174         * target.c: Ditto.
11175         * target.h: Ditto.
11176         * terminal.h: Ditto.
11177         * thread.c: Ditto.
11178         * top.c: Ditto.
11179         * tracepoint.c: Ditto.
11180         * tracepoint.h: Ditto.
11181         * ui-file.c: Ditto.
11182         * ui-file.h: Ditto.
11183         * ui-out.h: Ditto.
11184         * user-regs.c: Ditto.
11185         * user-regs.h: Ditto.
11186         * utils.c: Ditto.
11187         * valarith.c: Ditto.
11188         * valops.c: Ditto.
11189         * valprint.c: Ditto.
11190         * valprint.h: Ditto.
11191         * value.c: Ditto.
11192         * varobj.c: Ditto.
11193         * varobj.h: Ditto.
11194         * vec.h: Ditto.
11195         * xcoffread.c: Ditto.
11196         * xcoffsolib.c: Ditto.
11197         * xcoffsolib.h: Ditto.
11198         * xml-syscall.c: Ditto.
11199         * xml-tdesc.c: Ditto.
11200
11201 2011-01-05  Michael Snyder  <msnyder@vmware.com>
11202
11203         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11204         * cli/cli-decode.c: Ditto.
11205         * cli/cli-dump.c: Ditto.
11206         * cli/cli-logging.c: Ditto.
11207         * cli/cli-script.c: Ditto.
11208         * cli/cli-setshow.c: Ditto.
11209         * common/signals.c: Ditto.
11210         * mi/mi-cmd-break.c: Ditto.
11211         * mi/mi-cmd-disas.c: Ditto.
11212         * mi/mi-cmd-stack.c: Ditto.
11213         * mi/mi-cmd-var.c: Ditto.
11214         * mi/mi-cmds.c: Ditto.
11215         * mi/mi-common.h: Ditto.
11216         * mi/mi-console.c: Ditto.
11217         * mi/mi-interp.c: Ditto.
11218         * mi/mi-main.c: Ditto.
11219         * osf-share/cma_attr.c: Ditto.
11220         * osf-share/cma_deb_core.h: Ditto.
11221         * osf-share/cma_debug_client.h: Ditto.
11222         * osf-share/cma_handle.h: Ditto.
11223         * osf-share/cma_mutex.h: Ditto.
11224         * osf-share/cma_stack_int.h: Ditto.
11225         * osf-share/cma_tcb_defs.h: Ditto.
11226         * python/py-auto-load.c: Ditto.
11227         * python/py-breakpoint.c: Ditto.
11228         * python/py-cmd.c: Ditto.
11229         * python/py-frame.c: Ditto.
11230         * python/py-objfile.c: Ditto.
11231         * python/py-param.c: Ditto.
11232         * python/py-progspace.c: Ditto.
11233         * python/py-symbol.c: Ditto.
11234         * python/py-value.c: Ditto.
11235         * python/python-internal.h: Ditto.
11236         * python/python.c: Ditto.
11237         * tui/tui-data.c: Ditto.
11238         * tui/tui-disasm.c: Ditto.
11239         * tui/tui-hooks.c: Ditto.
11240         * tui/tui-io.c: Ditto.
11241         * tui/tui-layout.c: Ditto.
11242         * tui/tui-regs.c: Ditto.
11243         * tui/tui-source.c: Ditto.
11244         * tui/tui-stack.c: Ditto.
11245         * tui/tui-win.c: Ditto.
11246         * tui/tui-windata.c: Ditto.
11247         * tui/tui-winsource.c: Ditto.
11248
11249 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
11250
11251         * configure.ac, gdb.1: Copyright year update.
11252
11253 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11254
11255         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
11256         this_pc_in_block, morestack_msym and morestack_name.  Check for
11257         "__morestack" minimal symbol there.
11258
11259 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
11260
11261         * symfile.c (find_sym_fns): Add call to dont_repeat.
11262
11263 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
11264
11265         Copyright year update in most files (performed by copyright.sh).
11266
11267 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
11268
11269         * top.c (print_gdb_version): Update copyright year in version output.
11270
11271 For older changes see ChangeLog-2010.
11272 \f
11273 Local Variables:
11274 mode: change-log
11275 left-margin: 8
11276 fill-column: 74
11277 version-control: never
11278 coding: utf-8
11279 End: