gdb/
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2
3         PR breakpoints/12435
4         * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
5         next_sal, buf, offset and xmmreg.  Advance PC if it sees the PR.
6         * dwarf2read.c (process_full_comp_unit): Initialize
7         amd64_prologue_line_bug.
8         * symtab.h (struct symtab): New field amd64_prologue_line_bug.
9
10 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
11
12         Fix TUI screen corruption.
13         * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
14         batch_flag.
15
16 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
17
18         * findvar.c (read_var_value): Never return NULL, throw an error
19         instead.  Update the function comment.  State symbol name in the error
20         messages.
21         * python/py-frame.c (frapy_read_var): Remove handling of NULL from
22         read_var_value.
23         * stack.c (print_frame_args): Likewise.
24         * valops.c (value_of_variable): Likewise.
25
26 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
27
28         * stack.c (print_frame_args): New variable except.  Wrap
29         read_var_value and common_val_print into TRY_CATCH.
30
31 2011-09-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
32
33         * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
34         caller to value_of_this.
35         * p-exp.y: Update the value_of_this caller to value_of_this_silent.
36         Twice.
37         * valops.c (value_of_this): Remove parameter complain and variable ret.
38         Update function comment.  Never return NULL by this code.
39         (value_of_this_silent): New function.
40         * value.h (value_of_this): Remove parameter complain.
41         (value_of_this_silent): New declaration.
42
43 2011-09-07  Yao Qi  <yao@codesourcery.com>
44
45         * gdbthread.h (struct thread_info): Remove fields
46         `stepping_through_solib_after_catch' and
47         `stepping_through_solib_catchpoints'.
48         * infrun.c (init_thread_stepping_state): Update.
49         (process_event_stop_test, currently_stepping): Update.
50         (currently_stepping_or_nexting_callback): Update.
51
52 2011-09-07  Yao Qi  <yao@codesourcery.com>
53
54         * gdbthread.h (struct thread_info): Comment on field
55         `step_after_step_resume_breakpoint'.
56
57 2011-09-07  Abhijit Halder  <abhijit.k.halder@gmail.com>
58
59         * remote.c (remote_console_output): Reindent.
60
61 2011-09-06  Luis Machado  <lgustavo@codesourcery.com>
62
63         * frame.c (has_stack_frames): Check for currently selected
64         traceframe.
65
66 2011-09-06  Pedro Alves  <pedro@codesourcery.com>
67
68         * event-top.h (MAXPROMPTS, struct prompts): Delete.
69         (set_async_annotation_level, set_async_prompt, pop_prompt)
70         (push_prompt, new_async_prompt): Delete declarations.
71         * top.h (get_prompt, set_prompt): Change prototype.
72         (get_prefix, set_prefix, get_suffix, set_suffix): Delete
73         declarations.
74         * top.c (command_loop):
75         (top_prompt): New global.
76         (get_prefix, set_prefix, get_suffix, ): Delete.
77         (get_prompt, set_prompt): Rewrite.
78         (show_new_async_prompt): Rename to ...
79         (show_prompt): ... this.
80         (init_main): Adjust.  Don't handle --annotate=2 here.
81         * event-top.c (new_async_prompt): Delete.
82         (the_prompts): Delete.
83         (more_to_come): Make static.
84         (display_gdb_prompt): Use top_level_prompt() to compute the top
85         level prompt, and don't notify the before_prompt observers
86         directly here.  Always trick readline into not trying to display
87         the prompt if sync_execution and displaying the primary prompt.
88         If displaying a local/secondary prompt, always show it, even if
89         sync_execution is set.
90         (change_annotation_level): Delete.
91         (top_level_prompt): New, based on change_annotation_level.
92         (push_prompt, pop_prompt): Delete.
93         (async_disable_stdin): No longer pushes prompt.
94         (command_line_handler): No longer pushes or pops prompt.  If more
95         input is expected, call display_gdb_prompt with an explicit empty
96         prompt.
97         (async_stop_sig): Adjust.
98         (set_async_annotation_level, set_async_prompt): Delete.
99         * python/python.c (before_prompt_hook): Adjust.
100
101 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
102
103         PR cli/13110
104
105         * infrun.c (fetch_inferior_event): Check if there's a selected
106         thread before checking if the selected thread is executing.
107
108 2011-09-05  Pedro Alves  <pedro@codesourcery.com>
109
110         * inf-loop.c (execute_command): Don't check if the current thread
111         if running before synchronously waiting for command completion.
112         * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
113         here.
114         (normal_stop): Call async_enable_stdin here.
115         * inf-loop.c (inferior_event_handler): Don't call
116         async_enable_stdin, nor handle "set exec-done-display" here.
117
118 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
119
120         GDB 7.3.1 released.
121
122 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
123
124         * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
125
126 2011-09-04  Joel Brobecker  <brobecker@adacore.com>
127
128         * NEWS: Add entry for OpenBSD/NetBSD build failure.
129
130 2011-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
131
132         * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
133
134 2011-09-02  Matt Rice  <ratmice@gmail.com>
135
136         PR gdb/10720
137         * event-top.c (cli_command_loop): Replace readline setup with
138         direct call to display_gdb_prompt.
139         (display_gdb_prompt): Do not call observer mechanism during
140         synchronous execution.
141
142 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
143
144         * linux-nat.c (in_pid_list_p): New.
145         (linux_record_stopped_pid): Delete.
146         (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
147         already attached to the LWP.  Return an indication if so.
148         (linux_nat_filter_event): Adjust.
149         * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
150         returning an indication to ignore this thread.
151
152 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
153
154         * top.c: Include interps.h.
155         (execute_command): If the target can async, but the interpreter is
156         in sync mode, synchronously wait for the command to finish before
157         returning.
158         (execute_command_to_string): Force the interpreter to sync mode.
159         * infrun.c: Include interps.h.
160         (fetch_inferior_event): Don't restore the prompt yet if the
161         interpreter is in sync mode.
162         * interps.c (interpreter_async): New global.
163         * interps.h (interpreter_async): Declare.
164         * inf-loop.c: Include interps.h.
165         (inferior_event_handler): Don't print the language change or run
166         breakpoint commands yet if the interpreter in is sync mode.
167         * main.c (captured_command_loop): Flip the interpreter to async
168         mode.
169         * cli/cli-script.c: Include interps.h.
170         (execute_user_command, while_command, if_command): Force the
171         interpreter to sync mode.
172         * python/python.c: Include interps.h.
173         (python_command, execute_gdb_command): Force the interpreter to
174         sync mode.
175
176 2011-09-02  Pedro Alves  <pedro@codesourcery.com>
177
178         * value.c (show_convenience): Catch errors thrown while printing
179         each internal variable.
180         * infrun.c (validate_siginfo_access): New function.
181         (siginfo_value_read, siginfo_value_write): Call it.
182
183 2011-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
184
185         Revert:
186         2010-05-21  Pierre Muller  <muller@ics.u-strasbg.fr>
187         * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
188         attribute.
189
190 2011-08-29  Yao Qi  <yao@codesourcery.com>
191
192         * solib-dsbt.c (bfd_lookup_symbol): Removed.
193         (cmp_name): New.
194         (enable_break2): Update caller.
195         * solib-frv.c (bfd_lookup_symbol): Removed.
196         (cmp_name): New.
197         (enable_break2): Update caller.
198         * solib-pa64.c (bfd_lookup_symbol): Removed.
199         (cmp_name): New.
200         * solib-svr4.c (bfd_lookup_symbol): Removed.
201         (cmp_name_and_sec_flags): New.
202         (enable_break): Update caller.
203         * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
204         (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
205         (gdb_bfd_lookup_symbol): New.
206         * solib.h: Functions declarations.
207
208 2011-08-29  Yao Qi  <yao@codesourcery.com>
209
210         * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
211         and solib-dsbt.o.
212
213 2011-08-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
214
215         Fix TUI stepi on code without symbols.
216         * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
217         current PC instead.
218
219 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
220
221         Code cleanup.
222         * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
223         and the static keyword.
224         * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
225         Make prefix an array.
226         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
227         * mi/mi-main.c (get_register): Remove stb initialization and the static
228         keyword.
229
230 2011-08-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
231
232         Code cleanup - make mi_opt const.
233         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
234         opts const.
235         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
236         * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
237         (mi_cmd_env_dir): Likewise.
238         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
239         (mi_cmd_target_file_put): Likewise.
240         * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
241         * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
242         * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
243         (mi_valid_noargs): Make opts const.
244         * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
245         * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
246         (mi_cmd_data_read_memory): Likewise.
247         (mi_cmd_data_read_memory_bytes): Likewise.
248         (mi_cmd_data_write_memory): Likewise.
249
250 2011-08-26  Matt Rice  <ratmice@gmail.com>
251
252         * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
253         bcache_xmalloc,  replace bcache_xmalloc with call to
254         psymbol_bcache_init for psymbol_cache.
255         * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
256
257 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
258
259         * inf-loop.c (inferior_event_handler): Add exception_print in
260         INF_EXEC_COMPLETE.
261
262 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
263
264         * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
265         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
266         * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
267         * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
268         * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
269         call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
270         Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
271         * infrun.c (fetch_inferior_event): Call
272         make_bpstat_clear_actions_cleanup.
273         * top.c (execute_command): New variable cleanup_if_error, call
274         make_bpstat_clear_actions_cleanup and discard_cleanups for it.
275         * utils.c (do_bpstat_clear_actions_cleanup)
276         (make_bpstat_clear_actions_cleanup): New functions.
277
278 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
279
280         * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
281         either the parent or the child forks.  Rename a couple locals.
282
283 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
284
285         * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
286         library call.  Avoid reading the `status' local if all waitpid
287         calls failed.
288
289 2011-08-26  Pedro Alves  <pedro@codesourcery.com>
290
291         * common/linux-osdata.c (get_cores_used_by_process): Don't assume
292         opening /proc/PID/task always succeeds.
293
294 2011-08-26  Aleksandar Ristovski <aristovski@qnx.com>
295
296         * linespec.c (symtab_from_filename): Check for the end of string.
297
298 2011-08-26  Marc Khouzam  <marc.khouzam@ericsson.com>
299
300         PR mi/11912
301         * varobj.c (cplus_describe_child): Add the keyword
302         'class' to the output of the method when dealing 
303         with a cast to a base class.
304
305 2011-08-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
306
307         No functionality change.
308         * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
309         function comment a reference, new variables tp and bs, move here code
310         from throw_exception.
311         * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
312         describe it in the comment.
313         * exceptions.c (throw_exception): Remove variable tp, move the code for
314         bpstat_clear_actions to bpstat_clear_actions.
315
316 2011-08-24  Luis Machado  <lgustavo@codesourcery.com>
317
318         * linux-nat.h (linux_proc_get_tgid): Remove declaration.
319         * linux-nat.c: Include linux-procfs.h.
320         (linux_proc_get_tgid): Move to ...
321         * common/linux-procfs.c: ... here. New file.
322         * common/linux-procfs.h: New file.
323         * linux-thread-db.c: Include linux-procfs.h.
324         * Makefile.in: Update dependencies.
325         * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
326         * config/arm/linux.mh: Likewise.
327         * config/i386/linux.mh: Likewise.
328         * config/i386/linux64.mh: Likewise.
329         * config/ia64/linux.mh: Likewise.
330         * config/m32r/linux.mh: Likewise.
331         * config/m68k/linux.mh: Likewise.
332         * config/mips/linux.mh: Likewise.
333         * config/pa/linux.mh: Likewise.
334         * config/pa/linux.mh: Likewise.
335         * config/powerpc/linux.mh: Likewise.
336         * config/powerpc/ppc64-linux.mh: Likewise.
337         * config/powerpc/spu-linux.mh: Likewise.
338         * config/sparc/linux.mh: Likewise.
339         * config/sparc/linux64.mh: Likewise.
340         * config/xtensa/linux.mh: Likewise.
341
342 2011-08-24  Hui Zhu  <teawater@gmail.com>
343
344         * tracepoint.c (cond_string_is_same): New function.
345         (find_matching_tracepoint): Add condition check
346         by cond_string_is_same.
347
348 2011-08-23  Josh Matthews  <josh@joshmatthews.net>
349
350         Fix build error in Darwin port.
351         * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
352
353 2011-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
354
355         Code cleanup.
356         * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
357         (command_line_is_silent): New function.
358         (bpstat_do_actions_1): No longer use commands_left, use
359         command_line_is_silent for commands.
360         (bpstat_alloc): Remove clearing of commands_left.
361         (bpstat_stop_status): Remove initialization of commands_left, use
362         command_line_is_silent.
363         * breakpoint.h (struct bpstats): Remove commands_left.
364
365 2011-08-18  Keith Seitz  <keiths@redhat.com>
366
367         PR c++/12266
368         * cp-name-parser.y (struct demangle_info): Remove unused
369         member PREV.
370         (d_grab): Likewise.
371         (allocate_info): Change return type to struct demangle_info *.
372         Always allocate a new demangle_info.
373         Remove unused PREV pointer.
374         (cp_new_demangle_parse_info): New function.
375         (cp_demangled_name_parse_free): New function.
376         (do_demangled_name_parse_free_cleanup): New function.
377         (make_cleanup_cp_demangled_name_parse_free): New function.
378         (cp_demangled_name_to_comp): Change return type to
379         struct demangle_parse_info *.
380         Allocate a new storage for each call.
381         (main): Update usage for cp_demangled_name_to_comp
382         API change.
383         * cp-support.h (struct demangle_parse_info): New structure.
384         (cp_demangled_name_to_comp): Update API change for
385         return type.
386         (cp_new_demangle_parse_info): Declare.
387         (make_cleanup_cp_demangled_name_parse_free): New declaration.
388         (cp_demangled_name_parse_free): Declare.
389         * cp-support.c (cp_canonicalize_string): Update API
390         change for cp_demangled_name_to_comp.
391         (mangled_name_to_comp): Likewise.
392         Return struct demangle_parse_info, too.
393         (cp_class_name_from_physname): Update mangled_name_to_comp
394         API change.
395         (method_name_from_physname): Likewise.
396         (cp_func_name): Update API change for cp_demangled_name_to_comp.
397         (cp_remove_params): Likewise.
398         * python/py-type.c (typy_legacy_template_argument): Likewise.
399
400         * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
401         (cp_merge_demangle_parse_infos): Declare.
402         * cp-support.c (ignore_typedefs): New file global.
403         (copy_string_to_obstack): New function.
404         (inspect_type): New function.
405         (replace_typedefs): New function.
406         (replace_typedefs_qualified_name): New function.
407         (cp_canonicalize_string_no_typedefs): New function.
408         * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
409         (cp_new_demangle__parse_info): Allocate and initialize the obstack.
410         * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
411         instead of cp_canonicalize_string.
412         (find_method): Likewise.
413         (decode_compound): Before looking up the name, call
414         cp_canonicalize_string_no_typedefs.
415         (decode_variable): Likewise.
416
417 2011-08-17  Phil Muldoon  <pmuldoon@redhat.com>
418             Tom Tromey  <tromey@redhat.com>
419             Matt Rice <ratmice@gmail.com>
420
421         * python/lib/gdb/prompt.py: New file.
422         * python/lib/gdb/command/prompt.py: New file.
423         * NEWS: Document set extended-prompt and gdb.prompt library
424
425 2011-08-16  Yao Qi  <yao@codesourcery.com>
426
427         * tic6x-linux-tdep.c: Move const arrays definition from here...
428         * tic6x-tdep.c: to here ...
429
430 2011-08-14  Yao Qi  <yao@codesourcery.com>
431
432         * NEWS: New port to Texas Instruments TMS320C6x.
433
434 2011-08-14  Andrew Jenner  <andrew@codesourcery.com>
435             Bernd Schmidt  <bernds@codesourcery.com>
436             Yao Qi  <yao@codesourcery.com>
437
438         * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
439         * solib-dsbt.c: New file.  Support DSBT shared object.
440         * tic6x-linux-tdep.c: New file.
441         * tic6x-tdep.c: New file.
442         * tic6x-tdep.h: New file.
443
444 2011-08-14  Andrew Stubbs <ams@codesourcery.com>
445             Yao Qi  <yao@codesourcery.com>
446
447         * remote.c (PACKET_qXfer_fdpic): New enum value.
448         (remote_protocol_features): Add qXfer:fdpic:read packet.
449         (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
450         (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
451         * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
452
453 2011-08-14  Yao Qi  <yao@codesourcery.com>
454
455         Target description for tic6x.
456         * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
457         tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
458         * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
459         * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
460         * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
461         * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
462         * features/tic6x-c64xp-linux.xml: New.
463         * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
464         * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
465         * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
466         * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
467         * regformats/tic6x-c64xp.dat,
468         regformats/tic6x-c62x-linux.dat: Generated.
469         * regformats/tic6x-c64x-linux.dat,
470         regformats/tic6x-c64xp-linux.dat: Generated.
471         * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
472         features/tic6x-*.c files.
473         Add regformats/tic6x-*.dat files.
474
475 2011-08-12  Doug Evans  <dje@google.com>
476
477         * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
478         * python/py-symbol.c (sympy_get_type): New function.
479         (symbol_object_getset): Add "type".
480
481 2011-08-12  Pedro Alves  <pedro@codesourcery.com>
482
483         PR tui/13073
484
485         * tui/tui-regs.c (tui_show_register_group): Skip registers with an
486         empty name.
487         (tui_show_register_group): Don't store a byte buffer in the data
488         element's value.
489         (tui_register_format): Skip registers with an empty name.
490         (tui_get_register): Store a struct value in the data element's
491         value field instead of a byte buffer holding the raw register
492         contents.  Account for optimized-out and unavailable registers
493         when comparing register contents.
494
495 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
496
497         * printcmd.c (current_display_number): Update comment.
498         (disable_current_display_cleanup): Delete.
499         (do_one_display): Use make_cleanup_restore_integer.  Gracefully
500         catch errors thrown while evaluating and printing the display.
501
502 2011-08-09  Tom Tromey  <tromey@redhat.com>
503
504         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
505
506 2011-08-09  Pedro Alves  <pedro@codesourcery.com>
507
508         * elfread.c (elf_symtab_read): Rework comments.
509         * maint.c (maintenance_command): Ditto.
510         * somread.c (som_symtab_read): Ditto.
511         * solib.c (solib_find, solib_map_sections, update_solib_list)
512         (solib_add, info_sharedlibrary_command, solib_name_from_address)
513         (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
514         (sharedlibrary_command, no_shared_libraries): Ditto.
515         * solib-irix.c (locate_base, disable_break, enable_break)
516         (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
517         (irix_current_sos, irix_open_symbol_file_object)
518         (irix_special_symbol_handling): Ditto.
519         * solib-sunos.c (locate_base, first_link_map_member)
520         (sunos_current_sos, disable_break, enable_break)
521         (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
522         Ditto.
523         * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
524         (open_symbol_file_object, svr4_current_sos, enable_break)
525         (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
526         Ditto.
527         * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
528         (frv_current_sos, enable_break, frv_special_symbol_handling)
529         (frv_solib_create_inferior_hook): Ditto.
530         * solist.h (struct target_so_ops): Extend the comments of the
531         special_symbol_handling, current_sos and open_symbol_file_object
532         methods.
533
534 2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>
535
536         * python/lib/gdb/__init__.py: Auto-load files in command and
537         function directories.
538         * python/python.c (finish_python_initialization): Use
539         os.path.join.
540         * python/lib/gdb/command/pretty_printers.py: Self register
541         command.
542         * NEWS: Document auto-loading.
543
544 2011-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
545
546         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
547         (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
548         objfile_gdbarch.  Fix BFD_ENDIAN_BIG case.
549
550 2011-08-08  Tom Tromey  <tromey@redhat.com>
551
552         * breakpoint.c (clean_up_filters): Remove.
553         (catch_syscall_split_args): Use VEC_cleanup.
554
555 2011-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
556
557         * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
558         (main): Uncomment "Demangling error\n".
559
560 2011-08-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
561
562         * solib-target.c (segment_attributes): Make them static.
563         (section_attributes, library_children, library_attributes): Likewise.
564         (library_list_children, library_list_attributes): Likesise.
565         (library_list_elements): Likewise.
566
567 2011-08-05  Pedro Alves  <pedro@codesourcery.com>
568
569         * exceptions.c (throw_exception): Don't disable the current
570         display.
571         * printcmd.c (disable_current_display_cleanup): New function.
572         (do_one_display): Install a cleanup to disable the current display
573         if doing the display throws.
574
575 2011-08-05  Eli Zaretskii  <eliz@gnu.org>
576
577         * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
578         initialization of the tp_new member to the corresponding
579         gdbpy_initialize_* function.
580         * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
581         * python/py-frame.c (gdbpy_initialize_frames): Likewise.
582         * python/py-function.c (gdbpy_initialize_functions): Likewise.
583         * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
584         * python/py-param.c (gdbpy_initialize_parameters): Likewise.
585
586 2011-08-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
587
588         * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
589         (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
590         (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
591         references to current_uiout.
592
593 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
594
595         * event-loop.c (gdb_do_one_event): Remove `data' parameter.
596         (start_event_loop): Use TRY_CATCH instead of catch_errors.
597         * event-loop.h (gdb_do_one_event): Remove `data' parameter.
598         * top.c (gdb_readline_wrapper): Adjust.
599         * tui/tui-interp.c (tui_command_loop):
600         (_initialize_tui_interp): Don't install it.
601
602 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
603
604         * ui-out.h (uiout): Rename to ...
605         (current_uiout): ... this.
606         * ui-out.c (uiout): Rename to ...
607         (current_uiout): ... this.
608         * ada-lang.c (print_it_exception, print_one_exception)
609         (print_mention_exception): Adjust.
610         * breakpoint.c (watchpoint_check): Adjust.
611         (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
612         (default_collect_info, watchpoints_info, print_one_catch_fork)
613         (print_one_catch_vfork, print_one_catch_syscall)
614         (print_one_catch_exec, mention, print_it_ranged_breakpoint)
615         (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
616         (print_it_watchpoint, print_mention_watchpoint)
617         (print_it_masked_watchpoint, print_mention_masked_watchpoint)
618         (print_it_exception_catchpoint, print_one_exception_catchpoint)
619         (print_mention_exception_catchpoint, say_where, bkpt_print_it)
620         (bkpt_print_mention, momentary_bkpt_print_it)
621         (tracepoint_print_mention, update_static_tracepoint)
622         (tracepoints_info, save_breakpoints): Adjust.
623         * cli-out.c (field_separator): Adjust.
624         * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
625         * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
626         * frame.c (get_current_frame): Adjust.
627         * infcmd.c (run_command_1, print_return_value): Adjust.
628         * inferior.c (inferior_command, info_inferiors_command): Adjust.
629         * infrun.c (print_end_stepping_range_reason): Adjust.
630         (print_signal_exited_reason, print_exited_reason): Adjust.
631         (print_signal_received_reason, print_no_history_reason): Adjust.
632         * interps.c (interp_set): Adjust.
633         * osdata.c (info_osdata_command): Adjust.
634         * progspace.c (maintenance_info_program_spaces_command): Adjust.
635         * remote-fileio.c (remote_fileio_request): Adjust.
636         * remote.c (show_remote_cmd): Adjust.
637         * solib.c (info_sharedlibrary_command): Adjust.
638         * source.c (print_source_lines_base): Adjust.
639         * stack.c (print_stack_frame): Adjust.
640         (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
641         * symfile-mem.c (add_vsyscall_page): Adjust.
642         * symfile.c (load_progress, generic_load)
643         (print_transfer_performance): Adjust.
644         * thread.c (info_threads_command, restore_selected_frame)
645         (thread_command): Adjust.
646         * top.c (make_cleanup_restore_ui_file): Adjust.
647         * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
648         (print_one_static_tracepoint_marker): Adjust.
649         * cli/cli-cmds.c (print_disassembly): Adjust.
650         * cli/cli-decode.c (print_doc_line): Adjust.
651         * cli/cli-interp.c (safe_execute_command): Adjust.
652         * cli/cli-logging.c (set_logging_redirect, pop_output_files)
653         (handle_redirections): Adjust.
654         * cli/cli-script.c (show_user_1): Adjust.
655         * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
656         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
657         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
658         * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
659         (mi_cmd_env_dir): Adjust.
660         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
661         (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
662         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
663         (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
664         (list_args_or_locals): Adjust.
665         * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
666         (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
667         (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
668         (mi_cmd_var_list_children, mi_cmd_var_info_type)
669         (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
670         (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
671         (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
672         * mi/mi-interp.c (mi_on_normal_stop): Adjust.
673         * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
674         (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
675         (list_available_thread_groups, mi_cmd_list_thread_groups)
676         (mi_cmd_data_list_register_names)
677         (mi_cmd_data_list_changed_registers)
678         (mi_cmd_data_list_register_values, get_register)
679         (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
680         (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
681         (mi_cmd_list_target_features, mi_cmd_add_inferior)
682         (mi_execute_command, mi_load_progress): Adjust.
683         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
684         * python/py-auto-load.c (print_script, info_auto_load_scripts):
685         Adjust.
686         * python/py-breakpoint.c (bppy_get_commands): Adjust.
687         * tui/tui-interp.c (tui_command_loop): Adjust.
688         * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
689
690 2011-08-04  Pedro Alves  <pedro@codesourcery.com>
691
692         * exceptions.c (struct catcher): Remove saved_uiout field.
693         (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
694         no longer save/resvore the global ui_out builder.
695         (catch_exceptions_with_msg): Save/override/restore the global
696         ui_out builder manually instead of relying on TRY_CATCH to do it.
697         (catch_errors): Save/restore the global ui_out builder manually
698         instead of relying on TRY_CATCH to do it.
699         * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
700         parameter.
701         (TRY_CATCH): Adjust.
702         * cli/cli-interp.c (safe_execute_command): Save/override/restore
703         the global ui_out builder manually instead of relying on TRY_CATCH
704         to do it.
705
706 2011-08-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
707
708         * breakpoint.c (update_global_location_list): Ensure
709         invariant 'first loc marked not duplicated and inserted,
710         following locs marked duplicated/not inserted' is respected
711         for multiple locations at the same address.
712         (unduplicated_should_be_inserted) New function.
713         (swap_insertion) New function.
714
715 2011-08-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
716
717         * stack.c (print_frame_arguments_choices): Comment typo fix.
718
719 2011-08-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
720
721         Revert:
722         2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
723         * breakpoint.c (insert_bp_location): Remove disabled_breaks
724         argument.  Update callers.
725
726 2011-08-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
727
728         PR gdb/13045
729         * doublest.c (convert_doublest_to_floatformat): Pass correct
730         mantissa length to put_field.
731
732 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
733
734         * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
735         exception_print code path.
736         (backtrace_command): Remove variable e.  Protect arg by make_cleanup in
737         advance.  Simplify memset.  Remove TRY_CATCH.  Remove explicit xfree.
738         (backtrace_full_command):  Remove variable e.  Remove TRY_CATCH.
739
740 2011-08-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
741
742         Code cleanup.
743         * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
744         Remove, merge them into ...
745         (print_stack_frame): ... here with a TRY_CATCH.  New variable e, remove
746         variable args and its initialization.
747         (struct print_args_args, print_args_stub): Remove, merge them into
748         print_frame.
749         (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
750         them into ...
751         (do_gdb_disassembly): ... here.  Remove variable args and its
752         initialization.
753         (print_frame): Remove variable args and its initialization, new
754         variable gdbarch and numargs (from print_args_stub), inline here
755         print_args_stub with a TRY_CATCH.
756         (struct backtrace_command_args, backtrace_command_stub): Remove, merge
757         them into ...
758         (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
759         New variable e, remove variable btargs and its initialization.
760
761 2011-08-01  Tristan Gingold  <gingold@adacore.com>
762
763         * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
764
765 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
766
767         * breakpoint.c (insert_bp_location): Document return value.
768         (insert_breakpoint_locations): Fix documentation.
769         (remove_breakpoints): Add documentation.
770
771 2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
772
773         * breakpoint.c (insert_bp_location): Remove disabled_breaks
774         argument.  Update callers.
775
776 2011-07-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
777
778         * stack.c (print_frame_info): Comment typo fix.
779
780 2011-07-29  Sterling Augustine  <saugustine@google.com>
781
782         * MAINTAINERS (Write After Approval): Add myself to the list.
783
784 2011-07-29  Tom Tromey  <tromey@redhat.com>
785
786         * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
787         (library_list_start_segment): Update.
788         (library_list_start_section): Update.
789
790 2011-07-28  Phil Muldoon  <pmuldoon@redhat.com>
791
792         * varobj.c (value_get_print_value): Move hint check later into the
793         function.  Comment function.  Free thevalue before reusing it.
794
795 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
796             Pedro Alves  <pedro@codesourcery.com>
797
798         * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
799         value_one.
800         * valops.c (value_one): Remove parameter lv.  Do not pass it to itself.
801         Assert the result kind.
802         * value.h (value_one): Remove parameter lv.
803
804 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
805
806         Fix crash on lval_computed values.
807         * valops.c (value_zero): Use not_lval for lval_computed.
808
809 2011-07-27  Tom Tromey  <tromey@redhat.com>
810
811         * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
812         gdb_assert.h, gdb_locale.h, gdb_dirent.h.
813
814 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
815
816         * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
817         "ptype" by their typedefs difference.
818
819 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
820
821         * dwarf2expr.c (ctx_no_read_reg): New function.
822         * dwarf2expr.h (ctx_no_read_reg): New declaration.
823         * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
824         (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
825         (decode_locdesc): Replace by a caller of dwarf_expr_eval.
826
827 2011-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
828
829         * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
830         (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
831         file.
832         (dwarf2_frame_ctx_funcs): Reference the renamed functions.
833         * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
834         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
835         (ctx_no_get_base_type): Move the functions here.
836         * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
837         (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
838         (ctx_no_get_base_type): New declarations.
839
840 2011-07-27  Tom Tromey  <tromey@redhat.com>
841
842         * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
843         entries.
844         * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
845         * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
846
847 2011-07-26  Sterling Augustine  <saugustine@google.com>
848
849         * cli/cli-dump.c (dump_binary_file): Change parameter type to
850         ULONGEST.
851         (dump_bfd_file): Likewise.
852
853 2011-07-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
854
855         * remote.c (remote_region_ok_for_hw_watchpoint): New function.
856         (remote_hw_watchpoint_length_limit): New variable.
857         (_initialize_remote) add set,show cmds for this new variable.
858         * gdb.texinfo: document these new commands.
859         * NEWS: Mention these new commands.
860
861 2011-07-26  Pedro Alves  <pedro@codesourcery.com>
862
863         * breakpoint.c (works_in_software_mode_watchpoint): Also return
864         true for software watchpoints.
865
866 2011-07-26  Joel Brobecker  <brobecker@adacore.com>
867
868         GDB 7.3 released.
869
870 2011-07-26  Tom Tromey  <tromey@redhat.com>
871
872         * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
873         * dwarf2read.c (read_indirect_string_at_offset): New function.
874         (read_indirect_string): Use it.
875         (dwarf_decode_macro_bytes): New function, taken from
876         dwarf_decode_macros.  Handle DW_MACRO_GNU_*.
877         (dwarf_decode_macros): Use it.  handle DW_MACRO_GNU_*.
878         (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
879         New functions.
880         (struct dwarf2_per_objfile) <macro>: New field.
881         (dwarf2_elf_names): Add .debug_macro.
882         (dwarf2_macros_too_long_complaint): Add 'section' argument.
883         (dwarf2_locate_sections): Handle new section.
884         (read_file_scope): Handle DW_AT_GNU_macros.
885         (dwarf2_per_objfile_free): Unmap the .debug_macro section.
886
887 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
888
889         * NEWS: Mention dcache configuration.
890         * dcache.c (dcache_set_list, dcache_show_list): New variables.
891         (dcache_size, dcache_line_size): New variables.
892         (LINE_SIZE_MASK, XFORM, MASK): Adjust.
893         (struct dcache_block): Make it expandable.
894         (struct dcache_struct): New field.
895         (dcache_invalidate): Discard freelist upon dcache_line_size changes.
896         (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
897         (dcache_poke_byte, dcache_print_line): Adjust.
898         (set_dcache_size, set_dcache_line_size): New functions.
899         (set_dcache_command, show_dcache_command): New functions.
900         (_initialize_dcache): Add new commands.
901
902 2011-07-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
903
904         * progspace.h (struct program_space): Add solib_add_generation.
905         * infcmd.c (post_create_inferior): Only call solib_add if not
906         already done.
907         * solib.c (solib_add): Increment solib_add_generation.
908
909 2011-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
910
911         Fix implicit pointer offsets.
912         * dwarf2loc.c (indirect_pieced_value): Comment byte_offset.  Use also
913         ptr.OFFSET.
914
915 2011-07-25  Tom Tromey  <tromey@redhat.com>
916
917         * ada-lang.c (ada_exception_breakpoint_ops): Make return type
918         const.
919         (ada_exception_sal): Make 'ops' const.
920         (ada_decode_exception_location): Likewise.
921         (ada_decode_assert_location): Likewise.
922         (catch_assert_command): Update.
923         (catch_ada_exception_command): Update.
924         (create_ada_exception_catchpoint): Make 'ops' const.
925         * breakpoint.c (set_raw_breakpoint_without_location)
926         (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
927         const.
928         (create_internal_breakpoint): Update.
929         (init_raw_breakpoint_without_location): Make 'ops' const.
930         (init_raw_breakpoint, init_catchpoint)
931         (create_fork_vfork_event_catchpoint)
932         (create_syscall_event_catchpoint, init_breakpoint_sal)
933         (create_breakpoint_sal, create_breakpoints_sal)
934         (create_breakpoint, init_ada_exception_breakpoint): Likewise.
935         * breakpoint.h (struct breakpoint) <ops>: Now const.
936         (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
937         const.
938
939 2011-07-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
940
941         * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
942
943 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
944
945         * breakpoint.h (print_recreate_thread): Declare.
946         (struct breakpoint): Move step_count, pass_count,
947         number_on_target, static_trace_marker_id,
948         static_trace_marker_id_idx ...
949         (struct tracepoint): ... to this new struct.
950         (get_tracepoint, get_tracepoint_by_number_on_target)
951         (get_tracepoint_by_number): Change return type to struct
952         tracepoint pointer.
953         * breakpoint.c (is_tracepoint_type): New, factored out from
954         is_tracepoint.
955         (is_tracepoint): Adjust.
956         (print_one_breakpoint_location): Cast to struct tracepoint as
957         necessary, and adjust.
958         (print_recreate_catch_fork, print_recreate_catch_vfork)
959         (print_recreate_catch_syscall, print_recreate_catch_exec): Call
960         print_recreate_thread.
961         (init_breakpoint_sal): New, factored out from
962         create_breakpoint_sal.
963         (create_breakpoint_sal): Reimplement.
964         (create_breakpoint): Allocate a struct tracecepoint if the caller
965         wanted a tracepoint.  Use init_breakpoint_sal and
966         install_breakpoint.
967         (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
968         (print_recreate_masked_watchpoint)
969         (print_recreate_exception_catchpoint): Call print_recreate_thread.
970         (tracepoint_print_one_detail): Adjust.
971         (tracepoint_print_recreate): Adjust.  Call print_recreate_thread.
972         Dump the pass count here.
973         (update_static_tracepoint): Adjust.
974         (addr_string_to_sals): Adjust.
975         (create_tracepoint_from_upload): Adjust.  Change return type to
976         struct tracepoint pointer.
977         (trace_pass_set_count): Change parameter type to struct tracepoint
978         pointer, and adjust.
979         (trace_pass_command): Adjust.
980         (get_tracepoint, get_tracepoint_by_number_on_target)
981         (get_tracepoint_by_number): Change return type to struct
982         tracepoint pointer, and adjust.
983         (print_recreate_thread): New, factored out from save_breakpoints.
984         (save_breakpoints): Don't print thread and task and passcount
985         recreation here.
986         * remote.c (remote_download_tracepoint): Adjust.
987         * tracepoint.c (trace_actions_command, validate_actionline)
988         (start_tracing, tfind_1, trace_find_tracepoint_command)
989         (trace_dump_command): Adjust.
990         (find_matching_tracepoint): Change return type to struct
991         tracepoint pointer, and adjust.
992         (merge_uploaded_tracepoints, tfile_get_traceframe_address)
993         (tfile_trace_find, tfile_fetch_registers): Adjust.
994         * tracepoint.h (create_tracepoint_from_upload): Change return type
995         to struct tracepoint pointer.
996         * ada-lang.c (print_recreate_exception): Call
997         print_recreate_thread.
998         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
999
1000 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
1001
1002         * breakpoint.h (struct breakpoint): Move ops as first field.  Move
1003         exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
1004         cond_exp_valid_block, val, val_valid, watchpoint_frame,
1005         watchpoint_thread, watchpoint_triggered ...
1006         (struct watchpoint): ... to this new struct.
1007         (is_watchpoint): Declare.
1008         (install_breakpoint): Add new `internal' parameter.
1009         * breakpoint.c (is_watchpoint): Delete declaration.
1010         (set_breakpoint_condition): Handle watchpoints.
1011         (is_watchpoint): Make public.
1012         (watchpoint_in_thread_scope): Change parameter type to struct
1013         watchpoint.
1014         (watchpoint_del_at_next_stop): Change parameter type to struct
1015         watchpoint.  Remove assertion.  Adjust.
1016         (update_watchpoint): Ditto.
1017         (insert_breakpoints, breakpoint_init_inferior)
1018         (watchpoints_triggered, watchpoint_check)
1019         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
1020         (bpstat_stop_status, print_one_breakpoint_location)
1021         (print_one_breakpoint_location, watchpoint_locations_match): Cast
1022         to struct watchpoint as necessary, and adjust.
1023         (install_breakpoint): Add `internal' argument.  If true, don't
1024         mention the new breakpoint.  Use set_breakpoint_number.
1025         (create_fork_vfork_event_catchpoint)
1026         (create_syscall_event_catchpoint): Adjust.
1027         (dtor_watchpoint): New.
1028         (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
1029         (breakpoint_hit_watchpoint, resources_needed_watchpoint)
1030         (print_it_watchpoint, print_mention_watchpoint)
1031         (print_recreate_watchpoint, insert_masked_watchpoint)
1032         (remove_masked_watchpoint, resources_needed_masked_watchpoint)
1033         (print_one_detail_masked_watchpoint)
1034         (print_mention_masked_watchpoint)
1035         (print_recreate_masked_watchpoint): Cast to struct watchpoint as
1036         necessary, and adjust.
1037         (watch_command_1): Allocate and initialize a struct watchpoint
1038         instead of a struct breakpoint.  Use install_breakpoint.
1039         (catch_exec_command_1): Adjust.
1040         (base_breakpoint_dtor): Delete accesses to watchpoint specific
1041         fields.
1042         (delete_breakpoint, enable_breakpoint_disp)
1043         (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
1044         as necessary, and adjust.
1045         (initialize_breakpoint_ops): Install dtor_watchpoint as
1046         watchpoints' dtor method.
1047         * ada-lang.c (create_ada_exception_catchpoint): Adjust.
1048         * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
1049         to struct watchpoint as necessary, and adjust.
1050
1051 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
1052
1053         * ada-lang.c (dtor_exception, re_set_exception): Indirect through
1054         the the base class ops table.
1055         (catch_exception_breakpoint_ops)
1056         (catch_exception_unhandled_breakpoint_ops)
1057         (catch_assert_breakpoint_ops): Don't statically initialize.
1058         (initialize_ada_catchpoint_ops): New.
1059         (_initialize_ada_language): Call it.
1060         * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
1061         (bkpt_breakpoint_ops): Forward declare.
1062         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
1063         (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
1064         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
1065         (masked_watchpoint_breakpoint_ops)
1066         (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
1067         (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
1068         base class ops table.
1069         (null_re_set, null_check_status, null_works_in_software_mode)
1070         (null_resources_needed, null_print_one_detail): Delete.
1071         (bkpt_dtor): Rename to ...
1072         (base_breakpoint_dtor): ... this.  Make static.
1073         (bkpt_allocate_location): Rename to ...
1074         (base_breakpoint_allocate_location): ... this.  Make static.
1075         (base_breakpoint_re_set): New.
1076         (internal_error_pure_virtual_called): New.
1077         (base_breakpoint_insert_location, base_breakpoint_remove_location)
1078         (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
1079         (base_breakpoint_works_in_software_mode)
1080         (base_breakpoint_resources_needed, base_breakpoint_print_it)
1081         (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
1082         (base_breakpoint_print_recreate): New functions.
1083         (base_breakpoint_ops): New global.
1084         (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
1085         (bkpt_breakpoint_hit): Make static.
1086         (bkpt_check_status): Delete.
1087         (bkpt_resources_needed): Make static.
1088         (bkpt_works_in_software_mode): Delete.
1089         (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
1090         static.
1091         (bkpt_breakpoint_ops, internal_breakpoint_ops)
1092         (momentary_breakpoint_ops): Don't statically initialize.
1093         (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
1094         Delete.
1095         (tracepoint_insert_location, tracepoint_remove_location)
1096         (tracepoint_check_status, tracepoint_works_in_software_mode)
1097         (tracepoint_print_it): Delete.
1098         (tracepoint_breakpoint_ops): Don't statically initialize.
1099         (initialize_breakpoint_ops): New.
1100         (_initialize_breakpoint): Call it.
1101         * breakpoint.h (null_re_set, null_works_in_software_mode)
1102         (null_resources_needed, null_check_status, null_print_one_detail):
1103         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1104         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1105         (bkpt_check_status, bkpt_resources_needed)
1106         (bkpt_works_in_software_mode, bkpt_print_it)
1107         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1108         Delete declarations.
1109         (initialize_breakpoint_ops): Declare.
1110
1111 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
1112
1113         * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
1114         (momentary_bkpt_print_it): Simplify.
1115
1116 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
1117
1118         Split internal, momentary and user breakpoints breakpoint_ops
1119         tables.
1120
1121         * breakpoint.c (internal_breakpoint_ops)
1122         (momentary_breakpoint_ops): Forward declare.
1123         (create_internal_breakpoint): Add new breakpoint_ops parameter.
1124         Pass it down, rather than hardcoding bkpt_breakpoint_ops.
1125         (create_overlay_event_breakpoint)
1126         (create_std_terminate_master_breakpoint)
1127         (create_exception_master_breakpoint): Create breakpoints with
1128         internal_breakpoint_ops vtable.
1129         (set_longjmp_breakpoint): Create momentary breakpoints with
1130         momentary_breakpoint_ops vtable, using
1131         momentary_breakpoint_from_master.
1132         (create_thread_event_breakpoint, create_jit_event_breakpoint)
1133         (create_solib_event_breakpoint): Create breakpoints with
1134         internal_breakpoint_ops vtable.
1135         (set_momentary_breakpoint): Create breakpoints with
1136         momentary_breakpoint_ops vtable.
1137         (momentary_breakpoint_from_master): New, factored out from
1138         clone_momentary_breakpoint.
1139         (clone_momentary_breakpoint): Adjust.
1140         (watch_command_1): Create scope breakpoints with
1141         momentary_breakpoint_ops vtable.
1142         (bkpt_re_set): Remove handling of internal and momentary
1143         breakpoints.
1144         (bkpt_print_mention, bkpt_print_recreate): New.
1145         (bkpt_breakpoint_ops): Adjust.
1146         (internal_bkpt_re_set, internal_bkpt_check_status)
1147         (internal_bkpt_print_it, internal_bkpt_print_mention)
1148         (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
1149         (momentary_bkpt_re_set, momentary_bkpt_check_status)
1150         (momentary_bkpt_print_it, momentary_bkpt_print_mention)
1151         (momentary_bkpt_print_recreate): New.
1152         (momentary_breakpoint_ops): New.
1153
1154 2011-07-25  Pedro Alves  <pedro@codesourcery.com>
1155
1156         Implement most breakpoint_ops methods for all breakpoint types,
1157         and move the default handlings to the proper callbacks.
1158
1159         * breakpoint.c (update_watchpoint): Always call the breakpoint's
1160         works_in_software_mode method.
1161         (insert_bp_location): Go through breakpoint_ops->insert_location
1162         for software and hardware watchpoints.
1163         (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
1164         breakpoint_ops.
1165         (remove_breakpoint_1): Go through breakpoint_ops->remove_location
1166         for software and hardware watchpoints.
1167         (print_it_typical): Delete.
1168         (print_bp_stop_message): Always call the breakpoint_ops->print_it
1169         method.
1170         (watchpoint_check): Adjust comment.
1171         (bpstat_check_location): Simply always call the breakpoint's
1172         breakpoint_hit method.
1173         (bpstat_stop_status): Always call the breakpoint's check_status
1174         method.  Remove special cases for watchpoints and internal event
1175         breakpoints from here (moved to the check_status implementations).
1176         (print_one_breakpoint_location): Assume b->ops is never NULL.
1177         Remove static tracepoint marker id printing from here (moved to
1178         the print_one_detail callback implementation of tracepoints).
1179         (init_bp_location): Assert OPS is never NULL.
1180         (allocate_bp_location): Always call the breakpoint's
1181         allocate_location method, and remove the default code from here.
1182         (free_bp_location): Always call the location's dtor method, and
1183         remove the default code from here.
1184         (init_raw_breakpoint_without_location): Assert OPS is never NULL.
1185         (set_raw_breakpoint_without_location): Add new breakpoint_ops
1186         parameter.  Pass it down.
1187         (set_raw_breakpoint): Ditto.
1188         (print_it_catch_fork): Adjust to take a bpstat as argument.
1189         (catch_fork_breakpoint_ops): Install methods.
1190         (print_it_catch_vfork): Adjust to take a bpstat as argument.
1191         (catch_vfork_breakpoint_ops): Install methods.
1192         (dtor_catch_syscall): Call the base dtor.
1193         (print_it_catch_syscall): Adjust to take a bpstat as argument.
1194         (catch_syscall_breakpoint_ops): Install methods.
1195         (dtor_catch_exec): Call the base dtor.
1196         (print_it_catch_exec): Adjust to take a bpstat as argument.
1197         (catch_exec_breakpoint_ops): Install methods.
1198         (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
1199         the breakpoint's resources_needed method, and remove the default
1200         code from here.
1201         (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
1202         breakpoint_ops.
1203         (clone_momentary_breakpoint): Clone the original's ops.
1204         (mention): Always call the breakpoint's print_mention method, and
1205         remove the default code from here.
1206         (create_breakpoint_sal): Adjust to pass the ops to
1207         set_raw_breakpoint rather than setting it manually.
1208         (create_breakpoint): Assert ops is never NULL.  Adjust to pass the
1209         ops to set_raw_breakpoint_without_location rather than setting it
1210         manually.
1211         (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
1212         (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
1213         (ranged_breakpoint_ops): Install methods.
1214         (break_range_command): Adjust to pass the ops to
1215         set_raw_breakpoint rather than setting it manually.
1216         (re_set_watchpoint, breakpoint_hit_watchpoint)
1217         (check_status_watchpoint, resources_needed_watchpoint)
1218         (works_in_software_mode_watchpoint, print_it_watchpoint)
1219         (print_mention_watchpoint, print_recreate_watchpoint): New
1220         functions.
1221         (watchpoint_breakpoint_ops): Install new methods.
1222         (print_it_masked_watchpoint): New function.
1223         (masked_watchpoint_breakpoint_ops): Install new methods.
1224         (watch_command_1): Adjust to pass the right breakpoint_ops to
1225         set_raw_breakpoint_without_location rather than setting it
1226         manually later.  Record the current pspace.
1227         (print_it_exception_catchpoint): Adjust to take a bpstat as
1228         argument.
1229         (gnu_v3_exception_catchpoint_ops): Install new methods.
1230         (say_where): New function.
1231         (null_re_set, null_check_status, null_works_in_software_mode)
1232         (null_resources_needed, null_print_one_detail, bp_location_dtor):
1233         New functions.
1234         (bp_location_ops): New global.
1235         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1236         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1237         (bkpt_check_status, bkpt_resources_needed)
1238         (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
1239         (bkpt_print_recreate): New functions.
1240         (bkpt_breakpoint_ops): New global.
1241         (tracepoint_re_set, tracepoint_insert_location)
1242         (tracepoint_remove_location, tracepoint_breakpoint_hit)
1243         (tracepoint_check_status, tracepoint_works_in_software_mode)
1244         (tracepoint_print_it, tracepoint_print_one_detail)
1245         (tracepoint_print_mention, tracepoint_print_recreate): New
1246         functions.
1247         (tracepoint_breakpoint_ops): New global.
1248         (delete_breakpoint): Always call the breakpoint's dtor method, and
1249         remove the default handling from here.
1250         (breakpoint_re_set_default): Make static.
1251         (breakpoint_re_set_one): Always call the breakpoints re_set
1252         method, and remove the default handling from here.
1253         (trace_command, ftrace_command, strace_command)
1254         (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
1255         to create_breakpoint.
1256         (save_breakpoints): Always call the breakpoint's print_recreate
1257         method, and remove the default handling from here.
1258
1259         * ada-lang.c (dtor_exception): Call the base dtor.
1260         (re_set_exception): Call the base method.
1261         (print_it_exception, print_it_catch_exception): Adjust to take a
1262         bpstat as argument.
1263         (catch_exception_breakpoint_ops): Install methods.
1264         (print_it_catch_exception_unhandled): Adjust to take a bpstat as
1265         argument.
1266         (catch_exception_unhandled_breakpoint_ops): Install methods.
1267         (print_it_catch_assert): Adjust to take a bpstat as argument.
1268         (catch_assert_breakpoint_ops): Install methods.
1269
1270         * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
1271         to take a bpstat as argument.
1272         (enum print_stop_action): Add describing comments to each enum
1273         value.
1274         (breakpoint_re_set_default): Delete declaration.
1275         (null_re_set, null_works_in_software_mode, null_resources_needed)
1276         (null_check_status, null_print_one_detail): Declare.
1277         (bkpt_breakpoint_ops): Declare.
1278         (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
1279         (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
1280         (bkpt_check_status, bkpt_resources_needed)
1281         (bkpt_works_in_software_mode, bkpt_print_it)
1282         (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
1283         Declare.
1284
1285         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
1286         bkpt_breakpoint_ops.
1287         * python/py-breakpoint.c (bppy_init): Ditto.
1288
1289 2011-07-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1290
1291         * MAINTAINERS (Write After Approval): Add myself to the list.
1292
1293 2011-07-23  Paul Pluzhnikov  <ppluzhnikov@google.com>
1294
1295         * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
1296
1297 2011-07-22  Pedro Alves  <pedro@codesourcery.com>
1298
1299         * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
1300         (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
1301         (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
1302         adjust.
1303         (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
1304         (struct i386_debug_reg_state): New.
1305         (i386_init_dregs): New.
1306         (dr_mirror): New.
1307         (i386_cleanup_dregs): Use i386_init_dregs.
1308         (i386_show_dr): Add state parameter and adjust.
1309         (i386_insert_aligned_watchpoint): Ditto.  Don't pass the info to
1310         the inferior here.
1311         (i386_remove_aligned_watchpoint): Likewise.
1312         (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
1313         (i386_update_inferior_debug_regs): New.
1314         (i386_insert_watchpoint): Work on a local mirror of the debug
1315         registers, and only update the inferior on success.
1316         (i386_remove_watchpoint): Ditto.
1317         (i386_region_ok_for_watchpoint): Adjust.
1318         (i386_stopped_data_address): Adjust.
1319         (i386_insert_hw_breakpoint): Adjust.
1320         (i386_remove_hw_breakpoint): Adjust.
1321
1322 2011-07-22  Tom Tromey  <tromey@redhat.com>
1323
1324         * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
1325         from amd64_pseudo_register_read.  Change arguments.  Call
1326         mark_value_bytes_unavailable when needed.
1327         (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
1328         set_gdbarch_pseudo_register_read.
1329         * sentinel-frame.c (sentinel_frame_prev_register): Use
1330         regcache_cooked_read_value.
1331         * regcache.h (regcache_cooked_read_value): Declare.
1332         * regcache.c (regcache_cooked_read_value): New function.
1333         (regcache_cooked_read): Call
1334         gdbarch_pseudo_register_read_value if available.
1335         * i386-tdep.h (i386_pseudo_register_read_value): Declare.
1336         (i386_pseudo_register_read): Remove.
1337         * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
1338         i386_pseudo_register_read.  Change arguments.  Call
1339         mark_value_bytes_unavailable when needed.
1340         (i386_pseudo_register_read_value): New function.
1341         (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
1342         not set_gdbarch_pseudo_register_read.
1343         * gdbarch.sh (pseudo_register_read_value): New method.
1344         * gdbarch.c, gdbarch.h: Rebuild.
1345         * findvar.c (value_from_register): Call get_frame_register_value.
1346
1347 2011-07-22  Phil Muldoon  <pmuldoon@redhat.com>
1348
1349         * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
1350         get_prefix.
1351         (display_gdb_prompt): Likewise.
1352         (change_annotation_level): Likewise.
1353         (push_prompt): Likewise.
1354         (pop_prompt): Likewise.
1355         (handle_stop_sig): Use get_prompt with a level.
1356         * top.c (command_loop): Use get_prompt with a level.
1357         (set_async_annotation_level): Use set_prompt with a level.
1358         (get_prefix): New function.
1359         (set_prefix): Ditto.
1360         (set_suffix): Ditto.
1361         (get_suffix): Ditto.
1362         (get_prompt): Accept a level argument.
1363         (set_prompt): Accept a level argument.  Free old prompts.  Set
1364         new_async_prompt if level is 0.
1365         (init_main): Use set_prompt with a level.  Do not set
1366         new_async_prompt.
1367         * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
1368         * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
1369         Modify set_prompt, get_prompt to account for levels.
1370         * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
1371         level.
1372         * python/python.c (before_prompt_hook): Use set_prompt.
1373         
1374 2011-07-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
1375
1376         * defs.h: Add guard against inclusion in gdbserver.
1377         (struct ptid, ptid_t): Move to common/ptid.h.
1378         (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
1379         xsnprintf, internal_error): Move to common/common-utils.h.
1380         (nomem): Delete.
1381         * gdb_assert.h: Move into common/ sub-directory.
1382         * gdb_locale.h: Ditto.
1383         * gdb_dirent.h: Ditto.
1384         * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
1385         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
1386         Move into common/ptid.h.
1387         * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
1388         (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
1389         Change nomem to malloc_failure.
1390         * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
1391         * utils.c (nomem): Rename to malloc_failure.
1392         (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
1393         xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
1394         (gdb_buildargv): Change nomem to malloc_failure.
1395         * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
1396         ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
1397         ptid_is_pid): Move into common/ptid.c.
1398         (initialize_infrun): Delete initialization of null_ptid and
1399         minus_one_ptid.
1400         * linux-nat.c (linux_nat_xfer_osdata): Defer to
1401         linux_common_xfer_osdata.
1402         * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
1403         common/ptid.c and common/buffer.c.
1404         (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
1405         common/ptid.h, common/buffer.h and common/linux-osdata.h.
1406         (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
1407         (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
1408         rules.
1409         * common/gdb_assert.h: New.
1410         * common/gdb_dirent.h: New.
1411         * common/gdb_locale.h: New.
1412         * common/buffer.c: New.
1413         * common/buffer.h: New.
1414         * common/ptid.c: New.
1415         * common/ptid.h: New.
1416         * common/xml-utils.c: New.
1417         * common/xml-utils.h: New.
1418         * common/common-utils.c: New.
1419         * common/common-utils.h: New.
1420         * common/linux-osdata.c: New.
1421         * common/linux-osdata.h: New.
1422         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
1423         * config/arm/linux.mh (NATDEPFILES): Ditto.
1424         * config/i386/linux.mh (NATDEPFILES): Ditto.
1425         * config/i386/linux64.mh (NATDEPFILES): Ditto.
1426         * config/ia64/linux.mh (NATDEPFILES): Ditto.
1427         * config/m32r/linux.mh (NATDEPFILES): Ditto.
1428         * config/m68k/linux.mh (NATDEPFILES): Ditto.
1429         * config/mips/linux.mh (NATDEPFILES): Ditto.
1430         * config/pa/linux.mh (NATDEPFILES): Ditto.
1431         * config/powerpc/linux.mh (NATDEPFILES): Ditto.
1432         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
1433         * config/s390/s390.mh (NATDEPFILES): Ditto.
1434         * config/sparc/linux.mh (NATDEPFILES): Ditto.
1435         * config/sparc/linux64.mh (NATDEPFILES): Ditto.
1436         * config/xtensa/linux.mh (NATDEPFILES): Ditto.
1437
1438 2011-07-21  Matt Rice  <ratmice@gmail.com>
1439
1440         * NEWS: Add info macros and info definitions commands.
1441
1442 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
1443
1444         * NEWS: Document Python prompt substitution hook.
1445
1446 2011-07-18  Matt Rice  <ratmice@gmail.com>
1447
1448         PR macros/12999
1449         * macrotab.h (macro_callback_fn): Add new arguments to callback.
1450         * macrotab.c (foreach_macro): Ditto.
1451         (foreach_macro_in_scope): Ditto.
1452         * macrocmd.c (print_macro_callback): New function.
1453         (info_macro_command): Move some code to print_macro_definition.
1454         (print_macro_definition): New function.
1455         (print_one_macro): Add new arguments to callback.
1456         (info_definitions_command): New function.
1457         (info_macros_command): Ditto.
1458         (_initialize_macrocmd): Add info macros and info definitions commands.
1459         * symtab.c (add_macro_name): Add new arguments to callback.
1460
1461 2011-07-21  Phil Muldoon  <pmuldoon@redhat.com>
1462             Tom Tromey  <tromey@redhat.com>
1463
1464         * top.c (set_prompt): Rewrite to free previous prompt, free
1465         asynch_new_prompt and set both on new prompts.
1466         * event-top.c (display_gdb_prompt): Add prompt substitution
1467         logic.
1468         * python/python.c (before_prompt_hook): New function.
1469
1470 2011-07-20  Matt Rice  <ratmice@gmail.com>
1471
1472         * bfin-tdep.c (bfin_extract_return_value): Fix swapped
1473         arguments to store_unsigned_integer.
1474
1475 2011-07-20  Tom Tromey  <tromey@redhat.com>
1476
1477         * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
1478         in some declaration-only cases.
1479
1480 2011-07-18  Tom Tromey  <tromey@redhat.com>
1481
1482         PR symtab/12984:
1483         * dwarf2read.c (dwarf2_section_info_def): New typedef.
1484         (struct dwarf2_per_objfile) <types>: Change to a VEC.
1485         (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
1486         <debug_type_section>: New field.
1487         (dwarf2_locate_sections): Push .debug_types sections onto VEC.
1488         (load_cu): Use appropriate section.
1489         (create_signatured_type_table_from_index): Add 'section'
1490         argument.
1491         (dwarf2_read_index): Only allow a single .debug_types section.
1492         (dw2_get_file_names): Use appropriate section.
1493         (read_type_comp_unit_head): Add 'section' argument.
1494         (create_debug_types_hash_table): Loop over all .debug_types
1495         sections.
1496         (init_cu_die_reader): Use appropriate section.
1497         (process_psymtab_comp_unit, load_partial_comp_unit)
1498         (load_full_comp_unit, read_die_and_children, find_partial_die)
1499         (lookup_die_type, determine_prefix, follow_die_offset): Update.
1500         (lookup_signatured_type_at_offset): Add 'section' argument.
1501         (read_signatured_type_at_offset): Add 'sect' argument.
1502         (read_signatured_type): Use appropriate section.
1503         (set_die_type, get_die_type_at_offset): Update.
1504         (dwarf2_per_objfile_free): Free all .debug_types sections, and
1505         VEC.
1506         (write_psymtabs_to_index): Don't allow index with more than one
1507         .debug_types section.
1508
1509 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1510
1511         Fix crash if referenced CU is aged out.
1512         * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
1513         xfree of block.data.
1514         (indirect_pieced_value): New variable back_to, use to for xfree of
1515         baton.data.
1516         (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
1517         block.data.
1518         * dwarf2read.c (dwarf2_find_base_address): New prototype.
1519         (load_cu): New function from ...
1520         (dw2_do_instantiate_symtab): ... the code here ...
1521         (process_full_comp_unit): ... and here.
1522         (dwarf2_fetch_die_location_block): Call load_cu first.  Call xmemdup on
1523         retval.data.
1524
1525 2011-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1526
1527         * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
1528         type.
1529
1530 2011-07-19  Gary Benson  <gbenson@redhat.com>
1531
1532         * infrun.c (struct execution_control_state): New member
1533         stop_func_filled_in.
1534         (clear_stop_func, fill_in_stop_func): New functions.
1535         (handle_inferior_event): Call clear_stop_func rather than
1536         manipulating the execution control state directly.
1537         Call fill_in_stop_func lazily as required rather than
1538         directly calling find_pc_partial_function in all cases.
1539
1540 2011-07-18  Tom Tromey  <tromey@redhat.com>
1541
1542         * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
1543         checking for variable-sized array.
1544
1545 2011-07-18  Jean-Charles Delay  <delay@adacore.com>
1546
1547         * varobj.h (varobj_languages): Add vlang_ada definition to the list
1548         of supported languages.
1549         * varobj.c: Add top definitions and basic implementation of the
1550         following callbacks: ada_number_of_children, ada_name_of_variable,
1551         ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
1552         ada_value_of_child, ada_type_of_child, ada_value_of_variable.
1553         (languages): Register Ada-specific callbacks.
1554         (variable_language): Add the Ada case in the language setter switch.
1555
1556 2011-07-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1557
1558         * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
1559
1560 2011-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1561
1562         Code cleanup.
1563         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
1564         (execute_stack_op): Use dwarf2_frame_ctx_funcs
1565         * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
1566         (execute_stack_op): Access read_reg, get_frame_base, read_mem,
1567         get_frame_cfa, get_tls_address and dwarf_call via funcs.
1568         * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
1569         (struct dwarf_expr_context_funcs): New, move here methods from ...
1570         (struct dwarf_expr_context): ... here.  New fields funcs.
1571         * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
1572         (dwarf_expr_ctx_funcs): New.
1573         (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
1574         (needs_frame_dwarf_call): Access get_frame_pc via funcs.
1575         (needs_frame_ctx_funcs): New.
1576         (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
1577
1578 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
1579
1580         * MAINTAINERS (Write After Approval): Add myself to the list.
1581
1582 2011-07-15  Fawzi Mohamed  <fawzi.mohamed@nokia.com>
1583
1584         * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
1585         that CIE pointer of an FDE really points to a CIE .
1586
1587 2011-07-15  Hui Zhu  <teawater@gmail.com>
1588
1589         * remote.c (remote_get_trace_status): Add comments.
1590
1591 2011-07-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1592
1593         Code cleanup - constify struct lval_funcs.
1594         * dwarf2loc.c (pieced_value_funcs): Make it const.
1595         * infrun.c (siginfo_value_funcs): Likewise.
1596         * opencl-lang.c (opencl_value_funcs): Likewise.
1597         * valops.c (value_assign, value_ind): Make the funcs variable const.
1598         * value.c (struct value): Make location.computed.funcs target const.
1599         Rearrange the comments.
1600         (allocate_computed_value): Make the funcs parameter target const.
1601         (value_computed_funcs): Return the funcs target const.
1602         (value_free, value_copy, set_value_component_location): Make the funcs
1603         variable const.
1604         * value.h (allocate_computed_value): Make the funcs parameter target
1605         const.
1606         (value_computed_funcs): Return the funcs target const.
1607         * windows-tdep.c (tlb_value_funcs): Make it const.
1608
1609 2011-07-14  Hui Zhu  <teawater@gmail.com>
1610
1611         * remote.c (remote_get_trace_status): Initialize p.
1612
1613 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1614
1615         Work around kgdb.
1616         * remote.c (remote_get_trace_status): New variable ex.  Put
1617         remote_get_noisy_reply into TRY_CATCH.  Call exception_fprintf for it.
1618
1619 2011-07-13  Tom Tromey  <tromey@redhat.com>
1620
1621         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
1622         value_from_contents for final conversion.
1623
1624 2011-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1625
1626         Code cleanup.
1627         * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
1628         Indent prototypes so they do not get into tags.
1629
1630 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
1631
1632         Code cleanup making also optimized out values lazy.
1633         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
1634         allocate_optimized_out_value.  Twice.
1635         (loclist_read_variable)  Use allocate_optimized_out_value.  Once.
1636         * findvar.c (read_var_value): Likewise.
1637         * value.c (allocate_optimized_out_value): New function.
1638         * value.h (allocate_optimized_out_value): New declaration.
1639
1640 2011-07-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
1641
1642         Fix occasional crash of CTRL-C during DWARF read in.
1643         * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
1644
1645 2011-07-11  Tom Tromey  <tromey@redhat.com>
1646
1647         * regcache.c (struct regcache_descr): Fix typo.
1648         * i387-tdep.c (i387_supply_xsave): Fix typo.
1649
1650 2011-07-11  Tom Tromey  <tromey@redhat.com>
1651
1652         * dwarf2read.c (handle_DW_AT_stmt_list): New function.
1653         (read_file_scope, read_type_unit_scope): Use it.
1654
1655 2011-07-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1656
1657         * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
1658         `int'.
1659
1660 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
1661
1662         PR python/12438
1663         * python/python.c: Set gdbpy_should_print_stack default to off.
1664         (set_python): Deprecate maint set python print-stack to
1665         class_deprecate.
1666         (_initialize_python): Deprecate maint set/show python print-stack.
1667         Add new prefix command, python.  Add new setting, print-backtrace.
1668         * NEWS: Document set python print-stack.  Document default change.
1669
1670 2011-07-11  Phil Muldoon  <pmuldoon@redhat.com>
1671
1672         * python/py-inferior.c (infpy_dealloc): New function.
1673         (inferior_to_inferior_object): Return a new object, or a
1674         new reference to the existing object.
1675         (find_thread_object): Cleanup references to inferior.
1676         (delete_thread_object): Ditto.
1677         * python/py-infthread.c (create_thread_object): Do not increment
1678         inferior reference count.
1679
1680 2011-07-08  Tom Tromey  <tromey@redhat.com>
1681
1682         * dwarf2loc.c (locexpr_regname): New function.
1683         (locexpr_describe_location_piece): Use it.
1684         (disassemble_dwarf_expression): Add per_cu argument.  Use
1685         locexpr_regname.
1686         <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
1687         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1688         New cases.
1689         (locexpr_describe_location_1): Add per_cu argument.
1690         (locexpr_describe_location): Update.
1691         (loclist_describe_location): Update.
1692
1693 2011-07-08  Tom Tromey  <tromey@redhat.com>
1694
1695         * dwarf2expr.c (execute_stack_op): Add QUIT.
1696
1697 2011-07-07  Hui Zhu  <teawater@gmail.com>
1698
1699         Revert:
1700         2011-07-06  Hui Zhu  <teawater@gmail.com>
1701         * remote.c (remote_start_remote): Add TRY_CATCH for
1702         remote_get_trace_status.
1703         * tracepoint.c (disconnect_tracing): Ditto.
1704
1705 2011-07-07  Andrew Burgess  <aburgess@broadcom.com>
1706
1707         * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
1708         variables as signed, not unsigned.
1709
1710 2011-07-06  Joel Brobecker  <brobecker@adacore.com>
1711
1712         * jit.c (jit_inferior_init): Reformat forward declaration.
1713
1714 2011-07-06  Matt Rice  <ratmice@gmail.com>
1715
1716         * MAINTAINERS (Write After Approval): Add myself to the list.
1717
1718 2011-07-06  Hui Zhu  <teawater@gmail.com>
1719
1720         * remote.c (remote_start_remote): Add TRY_CATCH for
1721         remote_get_trace_status.
1722         * tracepoint.c (disconnect_tracing): Ditto.
1723
1724 2011-07-05  Tom Tromey  <tromey@redhat.com>
1725
1726         * symtab.c (operator_chars): Now static.
1727         * linespec.c (operator_chars): Don't declare.
1728
1729 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1730
1731         * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
1732
1733 2011-07-05  Tom Tromey  <tromey@redhat.com>
1734
1735         * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
1736         * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
1737         (TYPE_CPLUS_REALLY_JAVA): New macro.
1738         * dwarf2read.c (process_structure_scope): Set
1739         TYPE_CPLUS_REALLY_JAVA.
1740
1741 2011-07-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1742
1743         * ada-lang.c: Fix typos.
1744         * amd64-tdep.c: Likewise.
1745         * breakpoint.c: Likewise.
1746         * cli/cli-decode.c: Likewise.
1747         * findcmd.c: Likewise.
1748         * inline-frame.c: Likewise.
1749         * mi/mi-main.c: Likewise.
1750         * minsyms.c: Likewise.
1751         * monitor.c: Likewise.
1752         * monitor.h: Likewise.
1753         * prologue-value.c: Likewise.
1754         * reverse.c: Likewise.
1755         * s390-tdep.c: Likewise.
1756
1757 2011-07-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
1758
1759         * jit.c (jit_inferior_init): Forward declare.
1760         (jit_breakpoint_re_set_internal): Call jit_inferior_init.
1761
1762 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
1763
1764         * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
1765
1766 2011-07-04  Tristan Gingold  <gingold@adacore.com>
1767
1768         * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
1769         (tcb_fieldno): Add activation_link field.
1770         (get_known_tasks_addr): Moved and rewritten.
1771         (get_tcb_types_info): Set activation_link field.
1772         (read_known_tasks_array): Add parameter.  Rewritten.
1773         (read_known_tasks_list): New function.
1774         (read_known_tasks): New function.
1775         (ada_build_task_list): Call read_known_tasks instead of
1776         read_known_tasks_array.
1777         * ravenscar-thread.c: Add first_task_name constant.
1778         (has_ravenscar_runtime): Check for task list too.
1779
1780 2011-07-04  Tristan Gingold  <gingold@adacore.com>
1781
1782         * ada-tasks.c: Renames fieldno to actb_fieldno.
1783         (ada_get_task_number): Indentation.
1784         (get_tcb_types_info): Remove all parameters.  Write directly
1785         the globals.
1786         (ptid_from_atcb_common): Adjust.
1787         (read_atcb): Adjust.
1788
1789 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1790
1791         * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
1792
1793 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1794
1795         * ui-out.c (ui_out_field_core_addr): Mention that the function
1796         description is in the header file.
1797         * ui-out.h (ui_out_field_core_addr): Document function.
1798
1799 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1800
1801         * ui-out.c (ui_out_get_field_separator): Remove unused function.
1802         * ui-out.h (ui_out_get_field_separator): Remove prototype.
1803
1804 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1805
1806         * symtab.c (expand_line_sal): Remove empty line.
1807
1808 2011-07-04  Thomas Schwinge  <thomas@schwinge.name>
1809
1810         * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
1811         same way as ELFOSABI_NONE.
1812         <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
1813
1814 2011-07-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1815
1816         * breakpoint.c: Fix typos in comments.
1817         * linespec.c: Likewise.
1818         * symtab.c: Likewise.
1819
1820 2011-07-04  Joel Brobecker  <brobecker@adacore.com>
1821
1822         * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
1823         section in separate object files.
1824
1825 2011-07-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1826
1827         Fix false GCC warning.
1828         * linespec.c (decode_line_1): Initialize values.
1829
1830 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1831
1832         * linespec.c (find_method): Accept the function type automatically only
1833         if it was specified with parameter types.
1834
1835 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1836
1837         Stop on first linespec terminator instead of eating what we can.
1838         * linespec.c (is_linespec_boundary): New function.
1839         (name_end): Remove function.
1840         (keep_name_info): New parameter on_boundary, replace the body.
1841         (decode_line_1): Provide the parameter to keep_name_info.
1842         (decode_compound): Likewise.  Drop the trailing java return type
1843         handling.  Twice.
1844
1845 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1846
1847         Fall back linespec to minimal symbols.
1848         * linespec.c (decode_line_1): New variable ex, saved_argptr.  Protect
1849         decode_compound by TRY_CATCH, fall back on minsyms if it failed.
1850         (find_method, symbol_found): Change error to cplusplus_error.
1851
1852 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1853
1854         * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
1855
1856 2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1857             Tom Tromey  <tromey@redhat.com>
1858
1859         * dwarf2read.c (check_physname): New variable.
1860         (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
1861         (show_check_physname): New function.
1862         (_initialize_dwarf2_read): Add `check-physname' for check_physname.
1863
1864 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
1865
1866         * machoread.c (macho_symfile_read): Delete OBE comment.
1867
1868 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
1869
1870         * machoread.c (struct macho_oso_data): Delete.
1871         (current_oso): Delete.
1872         (macho_relocate_common_syms): New function, mostly extracted
1873         out of
1874         (macho_add_oso_symfile): Call macho_relocate_common_syms.
1875         Remove code that sets and unset current_oso.
1876         (macho_symfile_relocate): Delete handling of common symbols,
1877         now moved to macho_relocate_common_syms.
1878
1879 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
1880
1881         * darwin-nat.c (darwin_ptrace): Add documentation.
1882         Set errno to zero before calling ptrace.  If ptrace returns
1883         -1 and errno is zero, then change then return zero.
1884         (darwin_kill_inferior): Issue a warning instead of triggering
1885         a failed assertion when the PT_KILL ptrace operations returned
1886         nonzero.
1887
1888 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
1889
1890         * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
1891         only when inf->private->no_ptrace.
1892
1893 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
1894
1895         * ada-lang.c (print_it_exception): Print temporary catchpoints
1896         as "Temporary catchpoint".
1897         (print_mention_exception): Likewise.
1898
1899 2011-07-01  Tom Tromey  <tromey@redhat.com>
1900
1901         * jv-lang.c (java_language_defn): Use java_printchar,
1902         java_printstr.
1903         (java_get_encoding): New function.
1904         (java_emit_char): Use generic_emit_char.
1905         (java_printchar): New function.
1906         (java_printstr): Likewise.
1907
1908 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
1909
1910         * ada-typeprint.c (print_record_type): If unable to decode
1911         the name of the parent type, use the encoded name.
1912
1913 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
1914
1915         * ada-typeprint.c (ada_print_type): Fix both PAD type and
1916         pointer to constrained packed array type output.
1917         * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
1918         packed array output.
1919
1920 2011-07-01  Jean-Charles Delay  <delay@adacore.com>
1921
1922         * ada-typeprint.c (print_array_type): removed if condition on show
1923         being negative for bounds printing.
1924
1925 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
1926
1927         * ada-lang.c (ada_identical_enum_types_p): New function.
1928         (symbols_are_identical_enums): New function.
1929         (remove_extra_symbols): Do nothing if NSYMS < 2.
1930         Use symbols_are_identical_enums.
1931
1932 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
1933
1934         * ada-valprint.c (ada_value_print): Handle typedefs.
1935
1936 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
1937
1938         * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
1939
1940 2011-07-01  Eric Botcazou  <ebotcazou@adacore.com>
1941
1942         * ada-lang.c (thin_descriptor_type): Deal with typedefs.
1943         (decode_constrained_packed_array): Likewise.
1944         (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
1945
1946 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
1947
1948         * ada-exp.y (convert_char_literal): Handle typedef types.
1949
1950 2011-07-01  Joel Brobecker  <brobecker@adacore.com>
1951
1952         * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
1953
1954 2011-06-30  Tom Tromey  <tromey@redhat.com>
1955
1956         * varobj.c (varobj_create): Call do_cleanups on early exit path.
1957         * valops.c (find_overload_match): Call do_cleanups on early exit
1958         path.
1959         * solib.c (solib_find): Call do_cleanups on early exit path.
1960
1961 2011-06-30  Tom Tromey  <tromey@redhat.com>
1962
1963         * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
1964         * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
1965         return paths.  Defer final do_cleanups until last return.
1966         * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
1967         early return.
1968
1969 2011-06-30  Tom Tromey  <tromey@redhat.com>
1970
1971         * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
1972
1973 2011-06-30  Andrew Burgess  <aburgess@broadcom.com>
1974
1975         * MAINTAINERS (Write After Approval): Add myself to the list.
1976
1977 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1978
1979         Disable epilogue unwinders on recent GCCs.
1980         * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
1981         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1982         * dwarf2read.c (process_full_comp_unit): Initialize
1983         EPILOGUE_UNWIND_VALID.
1984         * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
1985         initialize it, return 0 on EPILOGUE_UNWIND_VALID.
1986         * symtab.h (struct symtab): New field epilogue_unwind_valid.
1987
1988 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1989
1990         Code cleanup - reformatting.
1991         * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
1992         (producer_is_gcc_ge_4): ... here, change the return value.
1993         (process_full_comp_unit): New variable gcc_4_minor, adjust the value
1994         interpretation.
1995
1996 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1997
1998         Fix non-only rename list for Fortran modules import.
1999         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
2000         cp_add_using_directive caller.
2001         (cp_add_using_directive): New parameter excludes, describe it.  New
2002         variables ix and param.  Compare if also excludes match.  Allocate NEW
2003         with variable size, initialize EXCLUDES there.
2004         (cp_lookup_symbol_imports): New variable excludep, test
2005         current->EXCLUDES with it.
2006         * cp-support.h: Include vec.h.
2007         (struct using_direct): New field excludes, describe it.
2008         (DEF_VEC_P (const_char_ptr)): New.
2009         (cp_add_using_directive): New parameter excludes.
2010         * defs.h (const_char_ptr): New typedef.
2011         * dwarf2read.c (read_import_statement): New variables child_die,
2012         excludes and cleanups, read in excludes.
2013         (read_namespace): Adjust the cp_add_using_directive caller.
2014
2015 2011-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2016
2017         Code cleanup.
2018         * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
2019         negative comparisons.
2020
2021 2011-06-29  André Pönitz  <andre.poenitz@nokia.com>
2022
2023         * mi/mi-main.c (mi_cmd_list_features): Emit
2024         breakpoint-notifications.
2025
2026 2011-06-29  Tom Tromey  <tromey@redhat.com>
2027
2028         PR fortran/10036:
2029         * valprint.h (generic_emit_char, generic_printstr): Declare.
2030         * valprint.c (wchar_printable, append_string_as_wide)
2031         (print_wchar): Move from c-lang.c.
2032         (generic_emit_char): New function; mostly taken from c_emit_char.
2033         (generic_printstr): New function; mostly taken from c_printstr.
2034         * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
2035         represented as arrays.
2036         <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
2037         type.
2038         * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
2039         identically to TYPE_CODE_INT.
2040         * f-lang.c (f_get_encoding): New function.
2041         (f_emit_char): Use generic_emit_char.
2042         (f_printchar): Replace comment.
2043         (f_printstr): Use generic_printstr.
2044         * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
2045         "character" types specially.
2046         <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
2047         for Fortran.
2048         * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
2049         Move to valprint.c
2050         (c_emit_char): Call generic_emit_char.
2051         (c_printstr): Call generic_printstr.
2052
2053 2011-06-29  Gary Benson  <gbenson@redhat.com>
2054
2055         * breakpoint.c (bpstat_what): Removed duplicated case.
2056
2057 2011-06-28  Tom Tromey  <tromey@redhat.com>
2058
2059         * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
2060
2061 2011-06-27  Tom Tromey  <tromey@redhat.com>
2062
2063         * valops.c (find_overload_match): Call do_cleanups before early
2064         return.
2065         * top.c (execute_command): Call do_cleanups before early return.
2066         (command_loop): Likewise.
2067         * stack.c (backtrace_command): Make a null cleanup early.  Don't
2068         conditionally call do_cleanups.
2069         * python/py-value.c (TRY_CATCH): Move cleanup handling into
2070         TRY_CATCH.
2071         * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
2072         so cleanups are always run.
2073         * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
2074         * findcmd.c (parse_find_args): Call do_cleanups on early return
2075         path.
2076         * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
2077         Don't conditionally call do_cleanups.
2078         * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
2079         later.
2080
2081 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2082
2083         * MAINTAINERS (Write After Approval): Use default email address.
2084
2085 2011-06-27  Joel Brobecker  <brobecker@adacore.com>
2086
2087         * MAINTAINERS (Write After Approval): Add Eric Botcazou.
2088
2089 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2090
2091         * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
2092         saved_regs_mask and copied_regs_mask fields.
2093         (sparc_record_save_insn): New prototype.
2094         * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
2095         (sparc_record_save_insn): New function.
2096         (sparc_analyze_prologue): Add head comment.  Recognize store insns
2097         of call-saved registers.  Use OFFSET consistently.  Recognize flat
2098         frames and cache their settings.
2099         (sparc32_skip_prologue): Handle flat frames.
2100         (sparc_frame_cache): Add frame_offset to the base address.
2101         (sparc32_frame_cache): Adjust to new frame description.
2102         (sparc32_frame_prev_register): Likewise.
2103         * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
2104         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2105         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2106         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
2107         frame by calling sparc_record_save_insn.
2108         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
2109         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
2110         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
2111
2112 2011-06-27  Tristan Gingold  <gingold@adacore.com>
2113
2114         * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
2115         field by map_addr and map_len.
2116         (dwarf2_read_section): Adjust for the new bfd_mmap api.
2117         (munmap_section_buffer): Likewise.
2118
2119 2011-06-24  Tom Tromey  <tromey@redhat.com>
2120
2121         * varobj.c (update_dynamic_varobj_children): Make 'name' const.
2122         * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
2123         * python/python.c (gdbpy_parameter): Make 'arg' const.
2124         (execute_gdb_command): Likewise.
2125         (gdbpy_decode_line): Likewise.  Copy it.
2126         (gdbpy_parse_and_eval): Make 'expr_string' const.  Copy it.
2127         (gdbpy_write): Make 'arg' const.
2128         * python/py-type.c (typy_lookup_typename): Make 'type_name'
2129         const.
2130         (gdbpy_lookup_type): Likewise.
2131         * python/py-prettyprint.c (print_children): Make 'name' const.
2132         * python/py-param.c (parmpy_init): Make 'name' const.  Copy it.
2133         * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
2134         Py_ssize_t.
2135         * python/py-function.c (fnpy_init): Make 'name' const.
2136         * python/py-cmd.c (cmdpy_init): Make 'name' const.  Copy it.
2137         (gdbpy_string_to_argv): Make 'input' const.
2138         * python/py-breakpoint.c (bppy_init): Make 'spec' const.  Copy
2139         it.
2140         * gdbtypes.h (lookup_typename): Update.
2141         * gdbtypes.c (lookup_typename): Make 'name' const.
2142         (lookup_struct): Likewise.
2143         (lookup_union): Likewise.
2144         (lookup_enum): Likewise.
2145
2146 2011-06-24  Tom Tromey  <tromey@redhat.com>
2147
2148         * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
2149         gdb_thread_db.h.  Move all common/ entries to be together.
2150         (TAGS): Don't depend on DEPFILES.
2151
2152 2011-06-23  Yao Qi  <yao@codesourcery.com>
2153
2154         * infrun.c (start_remote): Move call init_wait_for_inferior to ...
2155         * remote.c (remote_start_remote): ... here.
2156         * monitor.c (monitor_open): ... here.
2157
2158 2011-06-23  Andrew Burgess  <aburgess@broadcom.com>
2159
2160         * gdbtypes.c (append_composite_type_field_aligned): Fix
2161         calculation of bit position based on alignment.
2162
2163 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2164
2165         * breakpoint.c (bpstat_stop_status): Call the check_status
2166         breakpoint_ops method.
2167         (print_one_breakpoint_location): Also print the condition for Ada
2168         exception catchpoints.
2169         (allocate_bp_location): New, factored out from
2170         allocate_bp_location.
2171         (allocate_bp_location): Adjust.  Call the owner breakpoint's
2172         allocate_location method, if there is one.
2173         (free_bp_location): Call the locations's dtor method, if there is
2174         one.
2175         (init_raw_breakpoint_without_location): New breakpoint_ops
2176         parameter.  Use it.
2177         (set_raw_breakpoint_without_location): Adjust.
2178         (init_raw_breakpoint): New breakpoint_ops parameter.  Pass it down.
2179         (set_raw_breakpoint): Adjust.
2180         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
2181         (catch_syscall_breakpoint_ops): Install NULL allocate_location,
2182         re_set and check_status methods.
2183         (init_catchpoint): Don't memset, initialize thread, addr_string
2184         and enable_state.  Pass the ops down to init_raw_breakpoint.
2185         (install_catchpoint): Rename to ...
2186         (install_breakpoint): ... this, and make extern.
2187         (create_fork_vfork_event_catchpoint): Adjust.
2188         (catch_exec_breakpoint_ops): Install NULL allocate_location,
2189         re_set and check_status methods.
2190         (create_syscall_event_catchpoint): Adjust.
2191         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2192         (masked_watchpoint_breakpoint_ops): Install NULL
2193         allocate_location, re_set and check_status methods.
2194         (catch_exec_command_1): Adjust.
2195         (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
2196         re_set and check_status methods.
2197         (create_ada_exception_breakpoint): Rename to ...
2198         (init_ada_exception_breakpoint): ... this.  Add a struct
2199         breakpoint parameter, and delete the exp_string, cond_string and
2200         cond parameters.  Use init_raw_breakpoint, and don't install or
2201         mention the breakpoint yet.  Don't clear breakpoint fields that
2202         init_raw_breakpoint already clears.
2203         (re_set_breakpoint): Delete, split into ...
2204         (breakpoint_re_set_default, prepare_re_set_context): ... these new
2205         functions.
2206         (breakpoint_re_set_one): Call the breakpoint's
2207         breakpoint_ops->re_set implementation, if there's one.  Adjust.
2208         * breakpoint.h: Forward declare struct bpstats and struct bp_location.
2209         (struct bp_location_ops): New type.
2210         (struct bp_location): New field `ops'.
2211         (struct breakpoint_ops): New `allocate_location', `re_set' and
2212         `check_status' fields.  Make `breakpoint_hit''s description match
2213         reality.
2214         (init_bp_location): Declare.
2215         (breakpoint_re_set_default): Declare.
2216         (create_ada_exception_breakpoint): Rename to ...
2217         (init_ada_exception_breakpoint): ... this.  Add a struct
2218         breakpoint parameter, and delete the exp_string, cond_string and
2219         cond parameters.
2220         (install_breakpoint): Declare.
2221         * ada-lang.c: Include exceptions.h.
2222         <Ada exceptions description>: Update.
2223         (struct ada_catchpoint_location): New type.
2224         (ada_catchpoint_location_dtor): New function.
2225         (ada_catchpoint_location_ops): New global.
2226         (ada_catchpoint): New type.
2227         (create_excep_cond_exprs): New function.
2228         (dtor_exception, allocate_location_exception, re_set_exception)
2229         (should_stop_exception, check_status_exception): New functions.
2230         (print_one_exception, print_mention_exception)
2231         (print_recreate_exception): Adjust.
2232         (dtor_catch_exception, allocate_location_catch_exception)
2233         (re_set_catch_exception, check_status_catch_exception): New
2234         functions.
2235         (catch_exception_breakpoint_ops): Install them.
2236         (dtor_catch_exception_unhandled)
2237         (allocate_location_catch_exception_unhandled)
2238         (re_set_catch_exception_unhandled)
2239         (check_status_catch_exception_unhandled): New functions.
2240         (catch_exception_unhandled_breakpoint_ops): Install them.
2241         (dtor_catch_assert, allocate_location_catch_assert)
2242         (re_set_catch_assert, check_status_catch_assert): New functions.
2243         (catch_assert_breakpoint_ops): Install them.
2244         (ada_exception_catchpoint_p): Delete.
2245         (catch_ada_exception_command_split)
2246         (ada_exception_catchpoint_cond_string): Rename exp_string
2247         parameter to excep_string.  Adjust.
2248         (ada_parse_catchpoint_condition): Delete.
2249         (ada_exception_sal): Rename the exp_string parameter to
2250         excep_string.  Delete the cond_string and cond parameters.
2251         Adjust.
2252         (ada_decode_exception_location): Rename the exp_string parameter
2253         to excep_string.  Delete the cond_string and cond parameters.
2254         Adjust.
2255         (create_ada_exception_catchpoint): New function.
2256         (catch_ada_exception_command, ada_decode_assert_location)
2257         (catch_assert_command): Adjust.
2258         * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
2259
2260 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2261
2262         * ada-lang.c: Include arch-utils.h.
2263         (ada_decode_exception_location): Make static.
2264         (catch_ada_exception_command): Moved here from breakpoint.c.
2265         (ada_decode_assert_location): Make static.
2266         (catch_assert_command): Moved here from breakpoint.c.
2267         (_initialize_ada_lang): Install the exception and assert
2268         catchpoint commands here.
2269         * ada-lang.h (ada_decode_exception_location)
2270         (ada_decode_assert_location): Delete declarations.
2271         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
2272         breakpoint.h.
2273         (create_ada_exception_breakpoint): Make extern.
2274         (catch_ada_exception_command, catch_assert_command): Moved to
2275         ada-lang.c.
2276         (add_catch_command): Make extern.
2277         (_initilize_breakpoint): Don't install the exception and assert
2278         catchpoint commands here.
2279         * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
2280         breakpoint.c
2281         (add_catch_command, create_ada_exception_breakpoint): Declare.
2282
2283 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2284
2285         * breakpoint.c (init_raw_breakpoint_without_location): Don't add
2286         the breakpoint to the breakpoint chain here.
2287         (set_raw_breakpoint_without_location): Add the breakpoint to the
2288         breakpoint chain here.
2289         (init_raw_breakpoint): Adjust comments.
2290         (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
2291         here.
2292         (init_catchpoint): Don't set the catchpoint's breakpoint number
2293         here.
2294         (install_catchpoint): New function.
2295         (create_fork_vfork_event_catchpoint)
2296         (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
2297         use install_catchpoint.
2298
2299 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2300
2301         * breakpoint.c (create_catchpoint_without_mention)
2302         (create_catchpoint): Delete.
2303
2304 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2305
2306         * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
2307         * breakpoint.c (init_raw_breakpoint_without_location): Remove
2308         reference to exec_pathname.
2309         (struct exec_catchpoint): New type.
2310         (dtor_catch_exec): New function.
2311         (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
2312         (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
2313         (catch_exec_command_1): Adjust to use init_catchpoint.
2314         (delete_breakpoint): Remove reference to exec_pathname.
2315
2316 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2317
2318         * breakpoint.h (struct breakpoint_ops): New field `dtor'.
2319         (struct breakpoint): Delete field `syscalls_to_be_caught'.
2320         * breakpoint.c (init_raw_breakpoint_without_location): Remove
2321         reference to syscalls_to_be_caught.
2322         (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
2323         NULL `dtor'.
2324         (struct syscall_catchpoint): New type.
2325         (dtor_catch_syscall): New function.
2326         (insert_catch_syscall, remove_catch_syscall)
2327         (breakpoint_hit_catch_syscall, print_one_catch_syscall)
2328         (print_recreate_catch_syscall): Adjust.
2329         (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
2330         (catch_exec_breakpoint_ops): Install a NULL `dtor'.
2331         (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
2332         (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
2333         (masked_watchpoint_breakpoint_ops)
2334         (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
2335         (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
2336         there is one.  Remove references to syscalls_to_be_caught.
2337         (catching_syscall_number): Adjust.
2338         * ada-lang.c (catch_exception_breakpoint_ops)
2339         (catch_exception_unhandled_breakpoint_ops)
2340         (catch_assert_breakpoint_ops): Install a NULL `dtor'.
2341
2342 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2343
2344         * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
2345         field.
2346         * breakpoint.c (init_raw_breakpoint_without_location): Remove
2347         reference to forked_inferior_pid.
2348         (struct fork_catchpoint): New type.
2349         (breakpoint_hit_catch_fork, print_it_catch_fork)
2350         (print_one_catch_fork, breakpoint_hit_catch_vfork)
2351         (print_it_catch_vfork, print_one_catch_vfork): Adjust.
2352         (create_fork_vfork_event_catchpoint): Adjust to use
2353         init_catchpoint.
2354
2355 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
2356
2357         * breakpoint.c (add_to_breakpoint_chain)
2358         (init_raw_breakpoint_without_location): New functions, factored
2359         out from ...
2360         (set_raw_breakpoint_without_location): ... this one.
2361         (init_raw_breakpoint): New function, factored out from
2362         set_raw_breakpoint and adjusted to use
2363         init_raw_breakpoint_without_location.
2364         (set_raw_breakpoint): Adjust.
2365         (init_catchpoint): New function, factored out from
2366         create_catchpoint_without_mention and adjusted to use
2367         init_raw_breakpoint.
2368         (create_catchpoint_without_mention): Adjust.
2369
2370 2011-06-22  Tom Tromey  <tromey@redhat.com>
2371
2372         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
2373         argument of 0 specially.
2374
2375 2011-06-22  Yao Qi  <yao@codesourcery.com>
2376
2377         * infrun.c (handle_inferior_event): Remove write-only local variable
2378         `sw_single_step_trap_p'.
2379
2380 2011-06-20  Tom Tromey  <tromey@redhat.com>
2381
2382         * symtab.c (lookup_language_this): End loop if block is NULL.
2383
2384 2011-06-17  Tom Tromey  <tromey@redhat.com>
2385
2386         * valops.c (value_of_this): Use lookup_language_this.
2387         * symtab.h (lookup_language_this): Declare.
2388         * symtab.c (lookup_language_this): New function.
2389         (lookup_symbol_aux): Use lookup_language_this.
2390         * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
2391
2392 2011-06-17  Tom Tromey  <tromey@redhat.com>
2393
2394         * value.h (value_of_this): Update.
2395         (value_of_local): Remove.
2396         * valops.c (value_of_this): Rename from value_of_local.  Change
2397         parameters.
2398         * p-exp.y (exp): Update.
2399         (variable): Likewise.
2400         * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
2401
2402 2011-06-17  Tom Tromey  <tromey@redhat.com>
2403
2404         * valops.c (value_of_local): Complain if NAME is NULL.
2405         * std-operator.def (OP_OBJC_SELF): Remove.
2406         * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
2407         * objc-exp.y (name_not_typename): Use OP_THIS.
2408         * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
2409         name for "this".
2410         <OP_OBJC_SELF>: Remove.
2411         * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
2412
2413 2011-06-16  Tristan Gingold  <gingold@adacore.com>
2414
2415         * python/py-events.h (gdb_py_events): Make it extern.
2416         * python/py-evtregistry.c (gdb_py_events): Declare.
2417
2418 2011-06-16  Hui Zhu  <teawater@gmail.com>
2419
2420         * remote.c (remote_trace_set_readonly_regions): Add check for
2421         remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
2422         output warning.
2423
2424 2011-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
2425
2426         * arm-linux-tdep.c: Include "auxv.h".
2427         (AT_HWCAP): Define.
2428         (ARM_LINUX_SIZEOF_VFP): Define.
2429         (arm_linux_supply_vfp): New function.
2430         (arm_linux_collect_vfp): Likewise.
2431         (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
2432         (arm_linux_fpa_regset_sections): New variable.
2433         (arm_linux_vfp_regset_sections): Likewise.
2434         (arm_linux_core_read_description): New function.
2435         (arm_linux_init_abi): Install arm_linux_core_read_description and
2436         arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
2437         appropriate for the architecture.
2438         * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
2439         (tdesc_arm_with_m): Declare.
2440         (tdesc_arm_with_iwmmxt): Likewise.
2441         (tdesc_arm_with_vfpv2): Likewise.
2442         (tdesc_arm_with_vfpv3): Likewise.
2443         (tdesc_arm_with_neon): Likewise.
2444         * arm-linux-nat.c: Move features/*.c includes ...
2445         * arm-tdep.c: ... here.
2446         * arm-linux-nat.c (arm_linux_read_description): Move initializing
2447         target description data structures ...
2448         * arm-tdep.c (_initialize_arm_tdep): ... here.
2449         * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
2450         HWCAP_VFPv3D16): Move definitions ...
2451         * arm-linux-tdep.h: ... here.
2452
2453 2011-06-15  Hui Zhu  <teawater@gmail.com>
2454
2455         * remote.c (remote_trace_set_readonly_regions): Add a check for
2456         target_buf_size.
2457
2458 2011-06-14  Tom Tromey  <tromey@redhat.com>
2459
2460         * coffread.c (coffread_objfile): Rename from current_objfile.
2461         * dbxread.c (dbxread_objfile): Rename from current_objfile.
2462         * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
2463
2464 2011-06-14  Tom Tromey  <tromey@redhat.com>
2465
2466         * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
2467         (class_symtab): Remove.
2468         (jv_dynamics_progspace_key): New global.
2469         (jv_per_objfile_free): Reset program space data.  Update assert.
2470         Don't clear globals.
2471         (get_dynamics_objfile): Use and set program space data.
2472         (get_java_class_symtab): Use get_dynamics_objfile.
2473         (add_class_symbol): Likewise.
2474         (java_link_class_type): Likewise.
2475         (java_object_type, jv_clear_object_type, set_java_object_type):
2476         Remove.
2477         (get_java_object_type): Update.  Don't cache result.
2478         (is_object_type): Don't call set_java_object_type.
2479         (_initialize_java_language): Don't set jv_type_objfile_data_key;
2480         initialize jv_dynamics_progspace_key.
2481
2482 2011-06-14  Tom Tromey  <tromey@redhat.com>
2483
2484         * symtab.h (current_objfile): Don't declare.
2485         * objfiles.h (current_objfile): Don't declare.
2486         * objfiles.c (current_objfile): Remove.
2487         * mdebugread.c (current_objfile): New file-scope global.
2488         * dbxread.c (current_objfile): New file-scope global.
2489         * coffread.c (current_objfile): New file-scope global.
2490
2491 2011-06-13  Pedro Alves  <pedro@codesourcery.com>
2492
2493         * top.h (line): Rename to ...
2494         (saved_command_line): ... this.
2495         (linesize): Rename to ...
2496         (saved_command_line_size): ... this.
2497         * top.c (line): Rename to ...
2498         (saved_command_line): ... this.
2499         (linesize): Rename to ...
2500         (saved_command_line_size): ... this.
2501         (dont_repeat, command_line_input, dont_repeat_command): Adjust.
2502         * event-top.c (command_line_handler): Adjust.
2503         * main.c (captured_main): Adjust.
2504
2505 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
2506
2507         * i386-tdep.c (i386_epilogue_frame_cache): Simplify code.  Call
2508         get_frame_func instead of get_frame_pc to determine the code
2509         address used to construct the frame ID.
2510         (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
2511         (i386_epilogue_frame_this_id): Likewise.
2512         (i386_epilogue_frame_prev_register): New function.
2513         (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
2514         (i386_stack_tramp_frame_sniffer): Fix coding style.
2515         (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
2516         (i386_gdbarch_init): Fix comments.
2517
2518 2011-06-12  Mark Kettenis  <kettenis@gnu.org>
2519
2520         * i386-tdep.c (i386_match_insn_block): Use length of the proper
2521         instruction when walking back through the instruction stream.
2522
2523 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2524
2525         * symtab.c (output_partial_symbol_filename): Exchange the filename and
2526         fullname parameters order.
2527
2528 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2529
2530         Code cleanup.
2531         * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
2532         for fun.
2533         * psymtab.c (map_symbol_filenames_psymtab)
2534         (map_partial_symbol_filenames): Likewise.
2535         * psymtab.h: Include symfile.h.
2536         (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
2537         * symfile.h (symbol_filename_ftype): New.
2538         (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
2539         map_symbol_filenames, clarify more the naming in comment.
2540
2541 2011-06-07  Doug Evans  <dje@google.com>
2542
2543         * cc-with-index.sh: Fix typos in comment.
2544         Look for ../../gdb, for fullname.exp.
2545
2546 2011-06-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2547             Pedro Alves  <pedro@codesourcery.com>
2548
2549         * cli/cli-cmds.c (shell_escape): Use waitpid.
2550         * rs6000-nat.c (exec_one_dummy_insn): Likewise.
2551
2552 2011-06-07  Tristan Gingold  <gingold@adacore.com>
2553
2554         * xcoffread.c (dwarf2_xcoff_names): New variable.
2555         (aix_process_linenos): Add a guard.
2556         (xcoff_symfile_finish): Free dwarf2.
2557         (xcoff_initial_scan): Add dwarf2 support.
2558
2559 2011-06-06  Pedro Alves  <pedro@codesourcery.com>
2560
2561         * infcall.c (run_inferior_call): Don't mask async.  Instead force
2562         a synchronous wait, if the target can async.
2563
2564         * target.h (struct target_ops): Delete to_async_mask.
2565         (target_async_mask): Delete.
2566         * target.c (update_current_target): Delete references to to_async_mask.
2567         * linux-nat.c (linux_nat_async_mask_value): Delete.
2568         (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
2569         to linux_nat_async_mask_value.
2570         (linux_nat_async_mask): Delete.
2571         (linux_nat_async, linux_nat_close): Remove references to
2572         linux_nat_async_mask_value.
2573         * record.c (record_async_mask_value): Delete.
2574         (record_async): Remove references to record_async_mask_value.
2575         (record_async_mask): Delete.
2576         (record_can_async_p, record_is_async_p): Remove references to
2577         record_async_mask_value.
2578         (init_record_ops, init_record_core_ops): Remove references to
2579         record_async_mask.
2580         * remote.c (remote_async_mask_value): Delete.
2581         (init_remote_ops): Remove reference to remote_async_mask.
2582         (remote_can_async_p, remote_is_async_p): Remove references to
2583         remote_async_mask_value.
2584         (remote_async): Remove references to remote_async_mask_value.
2585         (remote_async_mask): Delete.
2586
2587         * infrun.c (fetch_inferior_event): Don't claim registers changed
2588         if the current thread is already not executing.
2589
2590 2011-06-03  Joel Brobecker  <brobecker@adacore.com>  (obvious fix)
2591
2592         From Stephen Kitt  <steve@sk2.org>
2593         * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
2594         gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
2595
2596 2011-06-03  Joel Brobecker  <brobecker@adacore.com>
2597
2598         * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
2599         the case where ADDR_SIZE is different from TYPE_LENGTH (type).
2600
2601 2011-06-03  Tom Tromey  <tromey@redhat.com>
2602
2603         * python/py-inferior.c (python_inferior_exit): Use inferior's exit
2604         code fields.
2605         * python/py-exitedevent.c (create_exited_event_object): Change
2606         type of 'exit_code'.  Optionally add exit_code attribute.
2607         (emit_exited_event): Change type of 'exit_code'.
2608         * python/py-event.h (emit_exited_event): Update.
2609         * mi/mi-interp.c (mi_inferior_exit): Print exit code.
2610         * infrun.c (handle_inferior_event): Set exit code fields on
2611         inferior.
2612         * inferior.h (struct inferior) <has_exit_code, exit_code>: New
2613         fields.
2614         * inferior.c (exit_inferior_1): Initialize new fields.
2615
2616 2011-06-03  Tom Tromey  <tromey@redhat.com>
2617
2618         * dwarf2expr.c (get_signed_type): New function.
2619         (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
2620
2621 2011-06-02  Keith Seitz  <keiths@redhat.com>
2622
2623         * objc-lang.c (find_methods): Increment objfile_csym earlier.
2624
2625 2011-06-02  Pedro Alves  <pedro@codesourcery.com>
2626
2627         * top.h (simplified_command_loop): Delete declaration.
2628
2629 2011-06-01  Mike Frysinger  <vapier@gentoo.org>
2630
2631         * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
2632         gdb_sysroot to the "len" variable.  Append both to "arg_buf".
2633
2634 2011-06-01  Yao Qi  <yao@codesourcery.com>
2635
2636         * objfiles.h (obj_section_addr): Update reference to objfile from
2637         `abfd' to `obfd'.
2638         (obj_section_endaddr): Likewise.
2639
2640 2011-06-01  Daniel Jacobowitz  <drow@false.org>
2641
2642         * MAINTAINERS: Update my email address and affiliation.  Also
2643         update Ian Lance Taylor's affiliation.  Use UTF-8 for ludo@gnu.org.
2644
2645 2010-05-31  Keith Seitz  <keiths@redhat.com>
2646
2647         PR c++/12750
2648         * linespec.c (get_search_block): New function.
2649         (find_methods): Add FILE_SYMTATB parameter and use it and
2650         get_search_block to pass an appropriate block to
2651         lookup_symbol_in_namespace.
2652         (decode_line_1): Record if *ARGPTR is single-quote enclosed.
2653         Check if *ARGPTR starts with a filename first.
2654         If it does, call locate_first_half again to locate the next
2655         "first half" of the linespec.
2656         Pass FILE_SYMTATB to decode_objc and decode_compound.
2657         Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
2658         (locate_first_half): Stop on the first colon seen.
2659         (decode_compound): Add FILE_SYMTAB parameter.
2660         Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
2661         (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
2662         get_search_block with lookup_symbol.
2663         (find_method): Add FILE_SYMTAB parameter and pass it to
2664         find_methods.
2665         (decode_objc): Use get_search_block.
2666
2667 2010-05-31  Keith Seitz  <keiths@redhat.com>
2668
2669         PR symtab/12704
2670         * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
2671         (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
2672         and CP_ANONYMOUS_NAMESPACE_LEN.
2673         (cp_is_anonymous): Likewise.
2674         * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
2675         (CP_ANONYMOUS_NAMESPACE_LEN): Define.
2676         * dwarf2read.c (namespace_name): Likewise.
2677         (fixup_partial_die): Likewise.
2678         * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
2679         seen in the input, keep it.
2680
2681 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
2682
2683         * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
2684         * inf-loop.h (inferior_event_handler_wrapper): Delete.
2685         * inf-loop.c (inferior_event_handler_wrapper): Delete.
2686         (inferior_event_handler): Don't handle INF_QUIT_REQ.
2687         * remote.c (_initialize_remote): Register
2688         async_remote_interrupt_twice directly as
2689         sigint_remote_twice_token event.
2690
2691 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
2692
2693         * target.h (enum inferior_event_type): Delete INF_ERROR.
2694         * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
2695
2696 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
2697
2698         * interps.c (interp_set): Don't cancel continuations.
2699
2700 2011-05-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
2701
2702         * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
2703
2704 2011-05-30  Pedro Alves  <pedro@codesourcery.com>
2705
2706         * continuations.h (continuation_ftype): Add `err' parameter.
2707         Document parameters.
2708         (do_all_continuations, do_all_continuations_thread)
2709         (do_all_intermediate_continuations)
2710         (do_all_intermediate_continuations_thread)
2711         (do_all_inferior_continuations): Add `err' parameter.
2712         * continuations.c (do_my_continuations_1, do_my_continuations)
2713         (do_all_inferior_continuations, do_all_continuations_ptid)
2714         (do_all_continuations_thread_callback)
2715         (do_all_continuations_thread, do_all_continuations)
2716         (do_all_intermediate_continuations_thread_callback)
2717         (do_all_intermediate_continuations_thread)
2718         (do_all_intermediate_continuations): Add `err' parameter, and pass
2719         it down all the way to the continuations proper.
2720         * inf-loop.c (inferior_event_handler): If fetching an inferior
2721         event throws an error, don't pop the target, and still call the
2722         continuations, but with `err' set.  Adjust all other continuation
2723         calls.
2724         * breakpoint.c (until_break_command_continuation): Add `err'
2725         parameter.
2726         * infcmd.c (step_1_continuation): Add `err' parameter.  Don't
2727         issue another step if `err' is set.
2728         (struct until_next_continuation_args): New.
2729         (until_next_continuation): Add `err' parameter.  Adjust.
2730         (until_next_command): Adjust.
2731         (struct finish_command_continuation_args): Add `thread' field.
2732         (finish_command_continuation): Add `err' parameter.  Handle it.
2733         (finish_forward): Adjust.
2734         (attach_command_continuation): Add `err' parameter.  Handle it.
2735         * infrun.c (infrun_thread_stop_requested_callback): Adjust to
2736         cancel the continuations.
2737         * interps.c (interp_set): Adjust to cancel the continuations.
2738         * thread.c (clear_thread_inferior_resources): Adjust to cancel the
2739         continuations rather than discarding.
2740         (free_thread): Don't clear thread inferior resources here.
2741         (delete_thread_1): Do it here instead.  And do it before removing
2742         the thread from the threads list.  Tag the thread as exited before
2743         clearing thread inferior resources.
2744
2745 2011-05-30  Joel Brobecker  <brobecker@adacore.com>
2746
2747         * infcall.c (call_function_by_hand): Rephrase error message.
2748
2749 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
2750
2751         * defs.h (struct thread_info, struct inferior): Delete forward
2752         declarations.
2753         * breakpoint.h (struct thread_info): New forward declaration.
2754         * observer.sh (struct inferior): New forward declaration.
2755         * python/python-internal.h (struct inferior): New forward
2756         declaration.
2757
2758 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
2759
2760         * defs.h (struct continuation, continuation_ftype)
2761         (continuation_free_arg_ftype, add_continuation)
2762         (do_all_continuations, do_all_continuations_thread)
2763         (discard_all_continuations, discard_all_continuations_thread)
2764         (add_intermediate_continuation, do_all_intermediate_continuations)
2765         (do_all_intermediate_continuations_thread)
2766         (discard_all_intermediate_continuations)
2767         (discard_all_intermediate_continuations_thread)
2768         (add_inferior_continuation, do_all_inferior_continuations)
2769         (discard_all_inferior_continuations): Move to ...
2770         * continuations.h: ... this new file.
2771         * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
2772         infcmd.c, inferior.c, infrun.c, interps.c: Include
2773         continuations.h.
2774
2775 2011-05-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
2776             Doug Evans  <dje@google.com>
2777
2778         Fix PR 10970, PR 12702.
2779         * linux-nat.c (linux_lwp_is_zombie): New function.
2780         (wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
2781         Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
2782
2783 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
2784
2785         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
2786         typedefs.
2787         (add_continuation, add_intermediate_continuation)
2788         (add_inferior_continuation): Use them.
2789         * continuations.c (struct continuation): Use them.
2790         (make_continuation_ftype): Delete.
2791         (make_continuation, add_inferior_continuation, add_continuation)
2792         (add_intermediate_continuation): Use continuation_ftype and
2793         continuation_free_arg_ftype.  Rename parameters to shorter names.
2794
2795 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
2796
2797         * continuations.c (make_continuation): Make it return void.
2798         (do_my_continuations): Rename to ...
2799         (do_my_continuations_1): ... this.  Remove old_chain parameter and
2800         adjust.
2801         (do_my_continuations): New.
2802         (discard_my_continuations): Rename to ...
2803         (discard_my_continuations_1): ... this.  Remove old_chain
2804         parameter and adjust.
2805         (discard_my_continuations): New.
2806         (add_inferior_continuation): Simplify.
2807         (do_all_inferior_continuations): Reimplement on top
2808         do_my_continuations.
2809         (discard_all_inferior_continuations): Simplify.
2810         (add_continuation): Simplify.
2811         (do_all_continuations_ptid): Simplify.
2812         (discard_all_continuations_thread_callback): Simplify.
2813         (add_intermediate_continuation): Simplify.
2814         (discard_all_intermediate_continuations_thread_callback):
2815         Simplify.
2816
2817 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
2818
2819         * utils.c (struct continuation, add_continuation)
2820         (add_inferior_continuation)
2821         (do_all_inferior_continuations, discard_all_inferior_continuations)
2822         (restore_thread_cleanup, do_all_continuations_ptid)
2823         (do_all_continuations_thread_callback)
2824         (do_all_continuations_thread, do_all_continuations)
2825         (discard_all_continuations_thread_callback)
2826         (discard_all_continuations_thread, discard_all_continuations)
2827         (add_intermediate_continuation)
2828         (do_all_intermediate_continuations_thread_callback)
2829         (do_all_intermediate_continuations_thread)
2830         (do_all_intermediate_continuations)
2831         (discard_all_intermediate_continuations_thread_callback)
2832         (discard_all_intermediate_continuations_thread)
2833         (discard_all_intermediate_continuations): Move to ...
2834         * continuations.c: ... this new file, and adjust to no longer
2835         implement continuations on top of cleanups.
2836         * Makefile.in (SFILES): Add continuations.c.
2837         (COMMON_OBS): Add continuations.o.
2838
2839 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
2840
2841         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
2842         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
2843         Internal error on invalid values.
2844         * reverse.c: Don't handle EXEC_ERROR.
2845         * mi/mi-main.c: Don't handle EXEC_ERROR.
2846
2847 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
2848
2849         * record.c: Include event-loop.h, inf-loop.h.
2850         (record_beneath_to_async): New global.
2851         (tmp_to_async): New global.
2852         (record_async_inferior_event_token): New global.
2853         (record_open_1): Don't error out if async is enabled.
2854         (record_open): Handle to_async.  Create an async event source in
2855         the event loop.
2856         (record_close): Delete the async event source.
2857         (record_resumed): New global.
2858         (record_execution_dir): New global.
2859         (record_resume, record_core_resume): Set them.  Register the
2860         target on the event loop.
2861         (record_wait): Rename to ...
2862         (record_wait_1): ... this.  Add more debug output.  Handle
2863         TARGET_WNOHANG, and the target beneath returning
2864         TARGET_WAITKIND_IGNORE.
2865         (record_wait): Reimplement on top of record_wait_1.
2866         (record_async_mask_value): New global.
2867         (record_async, record_async_mask, record_can_async_p)
2868         (record_is_async_p, record_execution_direction): New functions.
2869         (init_record_ops, init_record_core_ops): Install new methods.
2870         * infrun.c (fetch_inferior_event): Temporarily switch the global
2871         execution direction to the direction the target was going.
2872         (execution_direction): Change type to int.
2873         * target.c (default_execution_direction): New function.
2874         (update_current_target): Inherit and de_fault
2875         to_execution_direction.
2876         * target.h (struct target_ops) <to_execution_direction>: New
2877         field.
2878         (target_execution_direction): New macro.
2879         * inferior.h (execution_direction): Change type to int.
2880
2881 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
2882
2883         * infcall.c (call_function_by_hand): Don't allow calling functions
2884         in reverse execution mode.
2885
2886 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
2887
2888         * infcmd.c (finish_command): Allow async finish in reverse.
2889
2890 2011-05-26  Yao Qi  <yao@codesourcery.com>
2891
2892         * gdb_thread_db.h: Delete.  Move to ...
2893         * common/gdb_thread_db.h: ... here.
2894
2895 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
2896
2897         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
2898         function's entry point instead of a manually managed momentary
2899         breakpoint, and only ever issue one proceed call.
2900         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
2901         doing a reverse-finish, switch to stepi mode, to do another step.
2902         (insert_step_resume_breakpoint_at_sal): Make public.
2903         (normal_stop): No need to save function value return registers if
2904         going reverse.
2905         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
2906
2907 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
2908
2909         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
2910         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
2911         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
2912         at the end.
2913         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
2914         step-resume breakpoints.
2915         (print_it_typical): Handle bp_hp_step_resume.
2916         (bpstat_what): Ditto.
2917         (bptype_string): Ditto.
2918         (print_one_breakpoint_location): Ditto.
2919         (allocate_bp_location): Ditto.
2920         (mention): Ditto.
2921         (breakpoint_re_set_one): Ditto.
2922         * infrun.c (handle_inferior_event): Adjust.  Split
2923         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
2924         BPSTAT_WHAT_HP_STEP_RESUME.
2925         (insert_step_resume_breakpoint_at_sal): Rename to ...
2926         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
2927         parameter.  Handle it.
2928         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
2929         insert_step_resume_breakpoint_at_sal_1.
2930         (insert_step_resume_breakpoint_at_frame): Rename to ...
2931         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
2932         set a high-priority step-resume breakpoint.
2933         (insert_step_resume_breakpoint_at_frame): Adjust comment.
2934         (insert_step_resume_breakpoint_at_caller): Ditto.
2935
2936 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
2937
2938         * breakpoint.c (iterate_over_related_breakpoints): New.
2939         (do_map_delete_breakpoint): New.
2940         (delete_command): Pass do_map_delete_breakpoint to
2941         map_breakpoint_numbers.
2942         (do_disable_breakpoint): New.
2943         (do_map_disable_breakpoint): Iterate over the breakpoint's related
2944         breakpoints.
2945         (do_enable_breakpoint): Rename to ...
2946         (enable_breakpoint_disp): ... this.
2947         (enable_breakpoint): Adjust.
2948         (do_enable_breakpoint): New.
2949         (enable_once_breakpoint): Delete.
2950         (do_map_enable_breakpoint): New.
2951         (do_map_enable_once_breakpoint): New.
2952         (enable_once_command, enable_delete_command)
2953         (delete_trace_command): Iterate over the breakpoint's related
2954         breakpoints.
2955
2956 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
2957
2958         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
2959         for ALPHA_ZERO_REGNUM.
2960         (alpha_supply_int_regs): Explicitly supply zero as the value for
2961         ALPHA_ZERO_REGNUM in the register cache.
2962         * alpha-nat.c (fetch_osf_core_registers): Ditto.
2963
2964 2011-05-26  Yao Qi  <yao@codesourcery.com>
2965
2966         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
2967
2968 2011-05-26  Tristan Gingold  <gingold@adacore.com>
2969
2970         * symfile.h (struct dwarf2_section_names): New type.
2971         (struct dwarf2_debug_sections): New type.
2972         (dwarf2_has_info): Add parameter.
2973         * dwarf2read.c (dwarf2_elf_names): New variable.
2974         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
2975         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
2976         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
2977         (dwarf2_has_info): Add names parameter.  Pass names
2978         to dwarf2_locate_sections.
2979         (section_is_p): Rewrite using the names parameter.
2980         (dwarf2_locate_sections): Use section names from the names parameter.
2981         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
2982         * elfread.c (read_psyms): Ditto.
2983         * machoread.c (macho_symfile_read): Ditto.
2984
2985 2011-05-25  Andreas Schwab  <schwab@redhat.com>
2986
2987         PR gdb/8677
2988         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
2989
2990 2011-05-24  Keith Seitz  <keiths@redhat.com>
2991
2992         PR breakpoint/12803
2993         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
2994         (decode_compound): Unconditionally call keep_name_info.
2995
2996 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
2997
2998         * breakpoint.c (watchpoint_check): If the watchpoint went out of
2999         scope, clear its command list.
3000         (map_breakpoint_numbers): Don't walk the related breakpoints list
3001         of each breakpoint.
3002
3003 2011-05-24  Tom Tromey  <tromey@redhat.com>
3004
3005         * MAINTAINERS: Move Jim Blandy to past maintainers.
3006
3007 2011-05-24  Tristan Gingold  <gingold@adacore.com>
3008
3009         * symfile.h (enum dwarf2_section_enum): New type.
3010         (dwarf2_get_section_info): New prototype.
3011         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
3012         section_name by sect.  Use a switch to select the info.
3013         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
3014         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
3015
3016 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
3017
3018         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
3019         shared library event breakpoint if there's no execution.
3020
3021 2011-05-24  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3022
3023         * breakpont.c (remove_hw_watchpoints): Remove unused function.
3024         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
3025
3026 2011-05-23  Tom Tromey  <tromey@redhat.com>
3027
3028         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
3029         NULL.
3030
3031 2011-05-23  Doug Evans  <dje@google.com>
3032
3033         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
3034         entry for RuntimeError to doc string.
3035
3036 2011-05-23  Jerome Guitton  <guitton@adacore.com>
3037
3038         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
3039         sequence for probing loops.
3040
3041 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
3042
3043         * infrun.c (user_visible_resume_ptid): Fix typos in describing
3044         comment.
3045
3046 2011-05-21  Mark Kettenis  <kettenis@gnu.org>
3047
3048         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
3049         zero as the value for %g0 in the register cache.
3050         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
3051         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
3052
3053 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
3054
3055         * infrun.c (proceed): Set previous_inferior_ptid here.
3056         (init_wait_for_inferior): Initialize previous_inferior_ptid from
3057         inferior_ptid, not null_ptid.
3058         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
3059         (fetch_inferior_event): Nor here.
3060
3061 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
3062
3063         * inf-loop.c (inferior_event_handler): Only output a message if
3064         verbose.
3065
3066 2011-05-20  Luis Machado  <lgustavo@codesourcery.com>
3067
3068         * MAINTAINERS: Update my e-mail address.
3069
3070 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
3071
3072         * infrun.c (proceed): Switch the inferior event loop to
3073         INF_EXEC_COMPLETE if the target refused to resume from a
3074         vfork/fork.
3075
3076 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
3077
3078         * infcmd.c: Include "inf-loop.h".
3079         (step_once): When stepping into an inline subroutine, pretend the
3080         target has run.  If the target can async, switch the inferior
3081         event loop to INF_EXEC_COMPLETE.
3082         * inferior.h (user_visible_resume_ptid): Declare.
3083         * infrun.c (user_visible_resume_ptid): New function, factored out
3084         from `resume'.
3085         (resume): Use it.
3086         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
3087         that the current thread is running.  Merge async and sync
3088         branches.
3089
3090 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
3091
3092         * infcmd.c (step_1): Simplify synchronous case.
3093
3094 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
3095
3096         * tracepoint.c: Include exceptions.h.
3097         (TFILE_PID): Move higher in file.
3098         (tfile_open): Delay pushing the tfile target until we're assured
3099         the tfile header is present in the file.  Wrap reading the initial
3100         newline-terminated lines in TRY_CATCH.  Pop the target if the
3101         initial setup failed.  Add the tfile's thread immediately
3102         aftwards, before any non-essential setup.  Don't skip
3103         post_create_inferior if there are no traceframes present in the
3104         file.
3105         (tfile_close): Remove redundant check for null before xfree call.
3106         (tfile_thread_alive): New function.
3107         (init_tfile_ops): Register it as to_thread_alive callback.
3108
3109 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
3110
3111         * tracepoint.c (tfile_open): Delete #if 0'd code.
3112
3113 2011-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3114
3115         Fix -readnow for -gdwarf-4 unused type units.
3116         * dwarf2read.c (struct signatured_type): Remove the field offset.
3117         (create_signatured_type_table_from_index): Remove its initialization.
3118         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
3119         instead.  Add a complaint call.
3120         (process_psymtab_comp_unit): Change assignment to gdb_assert.
3121         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
3122         (lookup_signatured_type_at_offset, read_signatured_type)
3123         (write_one_signatured_type): Update the field for per_cu.
3124
3125 2011-05-19  Tom Tromey  <tromey@redhat.com>
3126
3127         * python/py-inferior.c (python_inferior_exit): Use
3128         target_gdbarch.
3129         (python_on_resume): Likewise.
3130
3131 2011-05-19  Matt Rice  <ratmice@gmail.com>
3132
3133         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
3134
3135 2011-05-19  Hui Zhu  <teawater@gmail.com>
3136
3137         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
3138
3139 2011-05-19  Hui Zhu  <teawater@gmail.com>
3140
3141         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
3142
3143 2011-05-18  Tom Tromey  <tromey@redhat.com>
3144
3145         * dwarf2read.c (dwarf2_add_field): Constify.
3146         * value.c (value_static_field): Constify.
3147         * gdbtypes.h (struct main_type) <field.field_location.physname>:
3148         Now const.
3149         * ax-gdb.c (gen_static_field): Constify
3150
3151 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3152
3153         * linux-nat.c (kill_callback): Use SIGKILL first.
3154
3155 2011-05-18  Joel Brobecker  <brobecker@adacore.com>
3156
3157         * ada-lang.c (print_it_exception): Avoid use of sprintf.
3158
3159 2011-05-18  Tom Tromey  <tromey@redhat.com>
3160
3161         * value.c (value_fn_field): Constify.
3162         * symtab.c (gdb_mangle_name): Constify.
3163         * stabsread.c (update_method_name_from_physname): Make 'physname'
3164         argument const.
3165         * p-typeprint.c (pascal_type_print_method_args): Make arguments
3166         const.  Use explicit fputc_filtered loop.
3167         (pascal_type_print_base): Constify.
3168         * p-lang.h (pascal_type_print_method_args): Update.
3169         * linespec.c (add_matching_methods): Constify.
3170         (add_constructors): Likewise.
3171         * jv-typeprint.c (java_type_print_base): Constify.
3172         * gdbtypes.h (struct cplus_struct_type)
3173         <fn_fieldlist.fn_field.physname>: Now const.
3174         * dwarf2read.c (compute_delayed_physnames): Constify.
3175         (dwarf2_add_member_fn): Likewise.
3176         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
3177
3178 2011-05-18  Pedro Alves  <pedro@codesourcery.com>
3179
3180         * infrun.c (resume): Mention which is the current thread, and its
3181         current PC in debug output.
3182         (prepare_to_proceed): Mention the thread switching in debug
3183         output.
3184
3185 2011-05-18  Tom Tromey  <tromey@redhat.com>
3186
3187         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
3188         path check.  Use xmalloc and cleanups.
3189         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
3190
3191 2011-05-17  Tom Tromey  <tromey@redhat.com>
3192
3193         * cp-valprint.c (cp_print_value_fields): Catch errors from
3194         value_static_field.
3195
3196 2011-05-17  Tom Tromey  <tromey@redhat.com>
3197
3198         * dwarf2read.c (dwarf2_get_die_type): Call
3199         get_die_type_at_offset.
3200         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
3201         get_base_type function.
3202
3203 2011-05-17  Tomas Martinec  <fyzmat@gmail.com>
3204
3205         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
3206         trap_expected.
3207
3208 2011-05-16  Doug Evans  <dje@google.com>
3209
3210         * python/py-auto-load.c (source_section_scripts): Mention objfile
3211         name in warning.
3212
3213 2011-05-15  Doug Evans  <dje@google.com>
3214
3215         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
3216         (try_thread_db_load_from_pdir): Call it.  If unable to find
3217         libthread_db in directory of libpthread, see if we're looking at
3218         the separate-debug-info copy.
3219
3220         * python/py-autoload.c (print_script): Print "Missing" instead of
3221         "No" for missing scripts.
3222         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
3223
3224 2011-05-13  Doug Evans  <dje@google.com>
3225
3226         * ui-file.c (stdio_file_write_async_safe): Add comment.
3227
3228 2011-05-14  Hui Zhu  <teawater@gmail.com>
3229
3230         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
3231
3232 2011-05-13  Doug Evans  <dje@google.com>
3233
3234         Support $pdir and $sdir in libthread-db-search-path.
3235         * NEWS: Mention $sdir,$pdir.
3236         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
3237         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
3238         (try_thread_db_load_from_sdir): New function.
3239         (try_thread_db_load_from_dir): New function.
3240         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
3241         system directories if search of libthread-db-search-path fails,
3242         that is now done via $sdir.
3243         (has_libpthread): New function.
3244         (thread_db_load): Remove search for libthread_db in directory of
3245         libpthread, that is now done via $pdir.
3246
3247         * NEWS: Mention "info auto-load-scripts".
3248         * python/py-auto-load.c (struct auto_load_pspace_info): New member
3249         script_not_found_warning_printed.
3250         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
3251         all callers updated.  Initialize script_not_found_warning_printed.
3252         (get_auto_load_pspace_data_for_loading): New function.
3253         (maybe_add_script): New function.
3254         (source_section_scripts): Simplify.  Only print one warning regardless
3255         of the number of auto-load scripts not found.
3256         (clear_section_scripts): Clear script_not_found_warning_printed.
3257         (auto_load_objfile_script): Record script in hash table.
3258         (count_matching_scripts): New function.
3259         (maybe_print_script): Renamed from maybe_print_section_script, all
3260         callers updated.  Rewrite to use ui_out_*.
3261         (info_auto_load_scripts): Renamed from
3262         maintenance_print_section_scripts, all callers updated.
3263         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
3264         renamed as "info auto-load-scripts".
3265
3266 2011-05-13  Tom Tromey  <tromey@redhat.com>
3267
3268         * dwarf2expr.c (read_uleb128): Cast intermediate result.
3269         (read_sleb128): Likewise.
3270
3271 2011-05-13  Tom Tromey  <tromey@redhat.com>
3272
3273         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
3274         offset display.
3275
3276 2011-05-13  Doug Evans  <dje@google.com>
3277
3278         * linux-nat.c (debug_linux_nat_async): Delete.
3279         Replace all references to use debug_linux_nat instead.
3280         (show_debug_linux_nat_async): Delete.
3281         (sigchld_handler): Call ui_file_write_async_safe instead of
3282         fprintf_unfiltered.
3283         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
3284         * ui-file.c (struct ui_file): New member to_write_async_safe.
3285         (null_file_write_async_safe): New function.
3286         (ui_file_write_async_safe): New function.
3287         (set_ui_file_write_async_safe): New function.
3288         (ui_file_new): Initialize to_write_async_safe.
3289         (stdio_file_write_async_safe): New function.
3290         (struct stdio_file): New member fd.
3291         (stdio_file_new): Initialize to_write_async_safe, fd.
3292         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
3293         fileno.
3294         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
3295         (set_ui_file_write_async_safe): Declare.
3296         (ui_file_write_async_safe): Declare.
3297
3298 2011-05-13  Tom Tromey  <tromey@redhat.com>
3299
3300         * utils.c (do_value_free): New function.
3301         (make_cleanup_value_free): Likewise.
3302         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
3303         freeing correctly.
3304         (dwarf2_loc_desc_needs_frame): Call
3305         make_cleanup_value_free_to_mark.
3306         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
3307         * dwarf2expr.c (free_dwarf_expr_context): Don't call
3308         value_free_to_mark.
3309         (new_dwarf_expr_context): Don't call value_mark.
3310         * dwarf2-frame.c (execute_stack_op): Call
3311         make_cleanup_value_free_to_mark.
3312         * defs.h (make_cleanup_value_free): Declare.
3313
3314 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3315
3316         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
3317         prepare_execute_command.
3318         * top.c (prepare_execute_command): Return cleanup.
3319         (execute_command): Use cleanup from prepare_execute_command.
3320         * top.h (prepare_execute_command): Change prototype to return
3321         cleanup.
3322         * defs.h (struct value): Add opaque declaration.
3323         (make_cleanup_value_free_to_mark): Add prototype.
3324         * utils.c (do_value_free_to_mark): New function.
3325         (make_cleanup_value_free_to_mark): Likewise.
3326
3327 2011-05-12  Tom Tromey  <tromey@redhat.com>
3328
3329         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
3330         cast left-hand-side to unsigned.
3331
3332 2011-05-12  Tom Tromey  <tromey@redhat.com>
3333
3334         PR gdb/12617:
3335         * value.h (value_from_contents): Declare.
3336         * value.c (value_from_contents): New function.
3337         * dwarf2read.c (dwarf_stack_op_name): Add new values.
3338         (dwarf2_get_die_type): New function.
3339         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
3340         (allocate_piece_closure): Acquire reference to values.
3341         (read_pieced_value): Update for value-based expressions.
3342         (write_pieced_value): Likewise.
3343         (free_pieced_value_closure): Call value_free as needed.
3344         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
3345         Update for value-based expressions.
3346         * dwarf2loc.h (dwarf2_get_die_type): Declare.
3347         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
3348         <get_base_type>: New field.
3349         (struct dwarf_expr_piece) <v.value>: Change type.
3350         <v.regno>: New field.
3351         (struct dwarf_expr_context) <mark>: New field.
3352         (dwarf_expr_piece, dwarf_expr_fetch): Update.
3353         (dwarf_expr_pop, dwarf_expr_push): Remove.
3354         (dwarf_expr_push_address): Declare.
3355         * dwarf2expr.c (dwarf_arch_cookie): New global.
3356         (struct dwarf_gdbarch_types): New.
3357         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
3358         functions.
3359         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
3360         static.
3361         (dwarf_expr_push_address): New function.
3362         (dwarf_expr_pop): Now static.
3363         (dwarf_expr_fetch): Change return type.
3364         (dwarf_require_integral): New function.
3365         (dwarf_expr_fetch): Simplify.
3366         (add_piece): Update.
3367         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
3368         functions.
3369         (execute_stack_op) <sign_ext>: Remove.
3370         Use values for DWARF stack.
3371         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
3372         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
3373         New cases.
3374         (_initialize_dwarf2expr): New function.
3375         (add_piece): Update.
3376         (new_dwarf_expr_context): Set new field.
3377         (free_dwarf_expr_context): Call value_free_to_mark.
3378         * dwarf2-frame.c (no_base_type): New function.
3379         (execute_stack_op): Set get_base_type field.  Update.
3380
3381 2011-05-12  Tom Tromey  <tromey@redhat.com>
3382
3383         * dwarf2read.c (read_common_block): Fix formatting.
3384
3385 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
3386
3387         * breakpoint.c (disable_breakpoint): Disable all locations
3388         associated with a tracepoint on target if a trace experiment is
3389         running.
3390         (disable_command): Disable a specific tracepoint location on target if
3391         a trace experiment is running.
3392         (do_enable_breakpoint): Enable all locations associated with a
3393         tracepoint on target if a trace experiment is running.
3394         (enable_command) Enable a specific tracepoint location on target if a
3395         trace experiment is running.
3396         * target.c (update_current_target): Add INHERIT and de_fault clauses for
3397         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3398         to_disable_tracepoint.
3399         * target.h: Add declaration of struct bp_location.
3400         (struct target_ops): Add new functions
3401         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
3402         to_disable_tracepoint to target operations.
3403         (target_supports_enable_disable_tracepoint): New macro.
3404         (target_enable_tracepoint): New macro.
3405         (target_disable_tracepoint): New macro.
3406         * remote.c (struct remote_state): Add new field.
3407         (remote_enable_disable_tracepoint_feature): New.
3408         (remote_protocol_features): Add new entry.
3409         (remote_supports_enable_disable_tracepoint): New.
3410         (remote_enable_tracepoint): New.
3411         (remote_disable_tracepoint): New.
3412         (init_remote_ops): Add remote_enable_tracepoint,
3413         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
3414         to remote operations.
3415         * tracepoint.c (start_tracing): Allow tracing to start without any
3416         tracepoints enabled with just a warning if they can be re-enabled
3417         later.
3418         * NEWS: Add news item for the new behaviour of the enable and disable
3419         GDB commands when applied to tracepoints.
3420         Add news items for the new remote packets QTEnable and QTDisable.
3421
3422 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3423
3424         * config.in: Regenerate.
3425         * configure: Regenerate.
3426         * configure.ac <--with-system-readline> (for readline_echoing_p):
3427         Remove the test.
3428         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
3429         (tui_old_rl_echoing_p): ... here.
3430         (tui_setup_io): Rename extern declaration readline_echoing_p to
3431         _rl_echoing_p.  Adjust assignments for the both renames.
3432
3433 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3434
3435         * symtab.c (lookup_symtab): Run cleanup before returning.
3436
3437 2011-05-11  Tom Tromey  <tromey@redhat.com>
3438
3439         * dwarf2read.c (handle_data_member_location): New function.
3440         (dwarf2_add_field): Use it.
3441         (read_common_block): Likewise.
3442
3443 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3444
3445         Make addrs->SECTINDEX always defined.
3446         * symfile.c (relative_addr_info_to_section_offsets): Check for
3447         SECTINDEX -1, not for zero ADDR.
3448         (addrs_section_compar): Remove checking for invalid SECTINDEX.
3449         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
3450         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
3451         on its validity.
3452
3453 2011-05-10  Doug Evans  <dje@google.com>
3454
3455         * linux-thread-db.c: Whitespace cleanup.
3456         (try_thread_db_load_1): Fix comment.
3457
3458         * linux-thread-db.c (set_libthread_db_search_path): New function.
3459         (_initialize_thread_db): Add setter for libthread-db-search-path.
3460
3461 2011-05-09  Doug Evans  <dje@google.com>
3462
3463         * NEWS: Mention --with-iconv-bin.
3464         * configure.ac: New option --with-iconv-bin.
3465         * configure: Regenerate.
3466         * config.in: Regenerate.
3467         * defs.h (relocate_gdb_directory): Declare.
3468         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
3469         removed progname parameter, and exported.  All callers updated.
3470         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
3471
3472         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
3473         adding missing call to restore_child_signals_mask.
3474
3475 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
3476
3477         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
3478         parameter.
3479         * infrun.c (proceed, start_remote): Adjust.
3480         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
3481         and adjust to not handle it.
3482         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
3483         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
3484         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
3485         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
3486         * windows-nat.c (do_initial_windows_stuff): Adjust.
3487         * infcmd.c (attach_command): Adjust.
3488         (notice_new_inferior): Adjust.
3489
3490 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
3491
3492         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
3493         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
3494         * spu-tdep.c (op_selb): Use correct value.
3495
3496 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
3497
3498         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
3499         "parent" parameter to symbol_file_add_from_bfd call.
3500
3501 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
3502             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3503
3504         Implement support for PowerPC BookE masked watchpoints.
3505         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
3506         section.
3507         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
3508         method.  Initialize to NULL in all existing breakpoint_ops instances.
3509         (struct breakpoint) <hw_wp_mask>: New field.
3510         * breakpoint.c (is_masked_watchpoint): Add prototype.
3511         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
3512         breakpoint's breakpoint_ops.works_in_software_mode if available.
3513         (watchpoints_triggered): Handle the case of a hardware masked
3514         watchpoint trigger.
3515         (watchpoint_check): Likewise.
3516         (works_in_software_mode_watchpoint): New function.
3517         (insert_masked_watchpoint, remove_masked_watchpoint)
3518         (resources_needed_masked_watchpoint)
3519         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
3520         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
3521         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
3522         functions.
3523         (masked_watchpoint_breakpoint_ops): New structure.
3524         (watch_command_1): Check for the existence of the `mask' parameter.
3525         Set b->ops according to the type of hardware watchpoint being created.
3526         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
3527         (ppc_linux_remove_mask_watchpoint)
3528         (ppc_linux_masked_watch_num_registers): New functions.
3529         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
3530         to_remove_mask_watchpoint and to_masked_watch_num_registers.
3531         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
3532         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
3533         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3534         (target_masked_watch_num_registers): New functions.
3535         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
3536         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
3537         methods.
3538         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
3539         (target_masked_watch_num_registers): Add prototypes.
3540
3541 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3542
3543         PR 12573
3544         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
3545         (producer_is_gcc_ge_4_0): New function.
3546         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
3547         symtab->language code.
3548         (var_decode_location): Set cu->has_loclist.
3549         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
3550         skip.  Intialize force_skip from locations_valid.  Move the prologue
3551         skipping code into two passes.
3552         * symtab.h (struct symtab): Make the primary field a bitfield.  New
3553         field locations_valid.
3554
3555 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3556
3557         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
3558         (classify_inner_name): Call cp_lookup_nested_type with
3559         yylval.tsym.type.
3560         * cp-namespace.c (cp_lookup_nested_type): New variable
3561         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
3562         type_name_no_tag_or_error with saved_parent_type.
3563         * dwarf2read.c (load_partial_dies): Read in any children of
3564         DW_TAG_typedef with complaint in such case.
3565         * gdbtypes.c (type_name_no_tag_or_error): New function.
3566         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
3567         * valops.c (destructor_name_p): New comment for parameter type.  Remove
3568         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
3569         * value.h (destructor_name_p): Remove type const.
3570
3571 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3572
3573         * symtab.c (compare_symbol_name): New function.
3574         (completion_list_add_name, expand_partial_symbol_name): Call it,
3575         remove the variable ncmp.
3576         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
3577         gdb_assert it.
3578
3579 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3580
3581         Demote to sw watchpoint only in update_watchpoint.
3582         * breakpoint.c (update_watchpoint): Change between software and
3583         hardware watchpoint for all kinds of watchpoints, not just
3584         read/write ones.  Determine b->exact value here instead of
3585         in watch_command_1.  Error out if there are not enough resources
3586         for a read or access hardware watchpoint.
3587         (watch_command_1): Remove logic of checking whether there are
3588         enough resources available, since update_watchpoint will do that
3589         work now.  Don't set b->exact here.  Catch exceptions thrown by
3590         update_watchpoint and delete the watchpoint.
3591         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
3592         Use target_exact_watchpoints instead.
3593         (delete_breakpoint): Notify observers only if deleted watchpoint
3594         has a breakpoint number assigned to it.
3595
3596 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
3597
3598         * MAINTAINERS: Add myself as a write-after-approval maintainer.
3599
3600 2011-05-05  Jerome Guitton  <guitton@adacore.com>
3601
3602         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
3603         New functions.
3604         (i386_stack_tramp_frame_unwind): New static global.
3605         (i386_match_pattern): New function, extracted from i386_match_insn.
3606         (i386_match_insn): Use i386_match_pattern.
3607         (i386_match_insn_block): New function.
3608         (i386_tramp_chain_in_reg_insns)
3609         (i386_tramp_chain_on_stack_insns): New static variables.
3610         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
3611         of unwinders.
3612
3613 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
3614
3615         * configure.host (xscale*): Don't handle target.
3616         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
3617         handle targets.
3618
3619 2011-05-04  Yao Qi  <yao@codesourcery.com>
3620
3621         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
3622
3623 2011-05-03  Joel Brobecker <brobecker@adacore.com>
3624
3625         Revert:
3626         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
3627         | * elfread.c (elf_symtab_read): Stop memory leak.
3628
3629 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
3630
3631         * nto-tdep.c (nto_target): Replace deprecated call to
3632         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
3633
3634 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3635
3636         Fix false GCC warning.
3637         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
3638
3639 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3640
3641         * breakpoint.c (update_watchpoint): Move code to change
3642         the enable state of breakpoint from here ...
3643         (do_enable_breakpoint): ... to here.
3644
3645 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
3646
3647         * valprint.c (val_print_array_elements): Fixed poor performance
3648         of printing very large arrays with repeat_count_threshold set
3649         to unlimited.  New comment.
3650
3651 2011-04-29  Tom Tromey  <tromey@redhat.com>
3652
3653         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
3654         (mi_parse): Likewise.
3655         * breakpoint.c (break_range_command): Use sizeof char*, not
3656         char**.
3657         (create_breakpoint): Likewise.
3658         (parse_breakpoint_sals): Likewise.
3659
3660 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
3661
3662         * linux-nat.c (linux_child_remove_fork_catchpoint)
3663         (linux_child_remove_vfork_catchpoint)
3664         (linux_child_remove_exec_catchpoint): New functions.
3665         (linux_target_install_ops): Install them.
3666
3667 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
3668
3669         PR mi/12531
3670
3671         * varobj.c (install_default_visualizer): Do not install a
3672         visualizer if the varobj is CPLUS_FAKE_CHILD.
3673         (construct_visualizer): Likewise.
3674
3675 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3676
3677         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
3678         case insensitive comparison.
3679
3680 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
3681
3682         * infrun.c (proceed): Revert previous change.
3683         (resume): Instead, handle the case of signal delivery while stepping
3684         off a breakpoint location here, and only if software single-stepping
3685         is used.  Handle nested signals.
3686
3687 2011-04-28  Yao Qi  <yao@codesourcery.com>
3688
3689         * arm-tdep.c (copy_unmodified): Rename to ...
3690         (arm_copy_unmodified): .. this.  New.
3691         (copy_preload): Move common part to ...
3692         (install_preload): .. this.  New.
3693         (arm_copy_preload): New.
3694         (copy_preload_reg): Move common part to ...
3695         (install_preload_reg): ... this.  New.
3696         (arm_copy_preload_reg): New.
3697         (copy_b_bl_blx): Move common part to ...
3698         (install_b_bl_blx): .. this.  New.
3699         (arm_copy_b_bl_blx): New.
3700         (copy_bx_blx_reg): Move common part to ...
3701         (install_bx_blx_reg): ... this. New.
3702         (arm_copy_bx_blx_reg): New.
3703         (copy_alu_reg): Move common part to ...
3704         (install_alu_reg): ... this.  New.
3705         (arm_copy_alu_reg): New.
3706         (copy_alu_shifted_reg): Move common part to ...
3707         (install_alu_shifted_reg): ... this.  New.
3708         (copy_ldr_str_ldrb_strb): Move common part to ...
3709         (install_ldr_str_ldrb_strb): ... this.  New.
3710         (arm_copy_ldr_str_ldrb_strb): New.
3711         (copy_copro_load_store): Move some common part to ...
3712         (install_copy_copro_load_store): ... this.  New.
3713         (arm_copy_copro_load_store): New.
3714         (copy_svc): Delete.
3715         (arm_copy_svc): Renamed from copy_svc.
3716         (copy_undef): Delete.
3717         (arm_copy_undef): Renamed from copy_undef.
3718         (decode_ext_reg_ld_st): Delete.
3719         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3720         (decode_svc_copro): Delete.
3721         (arm_decode_svc_copro): Renamed from decode_svc_copro.
3722         (copy_copro_load_store, copy_alu_imm): update callers.
3723         (copy_extra_ld_st, copy_block_xfer): Likewise.
3724         (decode_misc_memhint_neon, decode_unconditional): Likewise.
3725         (decode_miscellaneous, decode_dp_misc): Likewise.
3726         (decode_ld_st_word_ubyte, decode_media): Likewise.
3727         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
3728         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
3729         (decode_unconditional, decode_miscellaneous): Likewise.
3730         (decode_media, decode_b_bl_ldmstm): Likewise.
3731         (arm_process_displaced_insn): Likewise..
3732         (decode_misc_memhint_neon): Delete.
3733         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
3734         (decode_miscellaneous): Delete.
3735         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
3736         (decode_dp_misc): Delete.
3737         (arm_decode_dp_misc): Renamed from decode_dp_misc.
3738         (decode_ld_st_word_ubyte): Delete.
3739         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
3740         (decode_media): Delete.
3741         (arm_decode_media): Renamed from decode_media.
3742         (decode_b_bl_ldmstm): Delete.
3743         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
3744         (decode_ext_reg_ld_st): Delete.
3745         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
3746         (decode_unconditional): Delete.
3747         (arm_decode_unconditional): Renamed from decode_unconditional.
3748
3749 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3750
3751         Case insensitive lookups implementation.
3752         * dwarf2read.c: Include ctype.h.
3753         (struct mapped_index): New field version.
3754         (mapped_index_string_hash): New parameter index_version.  New comment
3755         for it.  Call tolower appropriately.
3756         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
3757         Choose the right index version for mapped_index_string_hash.
3758         (dwarf2_read_index): Support also the index version 5.  Initialize the
3759         new struct mapped_index field version.
3760         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
3761         (find_slot): Explain the version needs.  Pass INT_MAX for the new
3762         parameter.
3763         (write_psymtabs_to_index): Produce version 5.
3764         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
3765         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
3766         * psymtab.c (lookup_partial_symbol): Find the
3767         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
3768         entries.
3769         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
3770         NAME lowercasing.
3771         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
3772         (completion_list_add_name): New variable ncmp, initialize it, use it.
3773         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
3774         * utils.c (strcmp_iw): Support case_sensitive_off.
3775         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
3776         New function comment part.  New variables saved_string1,
3777         saved_string2 and case_pass.  Add a proper second pass.
3778
3779 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3780
3781         Replace re_comp/re_exec by regcomp/regexec.
3782         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
3783         (search_symbols_name_matches): Use them, use regexec.
3784         (search_symbols): New variable retval_chain, adjust the use of
3785         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
3786         search_symbols_data fields, use regexec instead of re_exec.
3787
3788 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
3789
3790         Format the code for the next patch.
3791         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
3792         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
3793         New variables c1 and c2.
3794
3795 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
3796
3797         * infrun.c (proceed): Do not single-step into signal delivery
3798         when stepping off a breakpoint location.
3799         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
3800         (insert_step_resume_breakpoint_at_caller): Likewise.
3801         (insert_step_resume_breakpoint_at_sal): Likewise.
3802         (insert_longjmp_resume_breakpoint): Likewise.
3803
3804 2011-04-27  Yao Qi  <yao@codesourcery.com>
3805
3806         * common/linux-ptrace.h: Remove include <sys/wait.h>.
3807
3808 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
3809
3810         * procfs.c (procfs_pass_signals): Fix advance declaration.
3811
3812 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
3813
3814         * target.h (struct target_ops): Remove to_notice_signals;
3815         add to_pass_signals.
3816         (target_notice_signals): Remove.
3817         (target_pass_signals): Add prototype.
3818         * target.c (update_current_target): Remove to_notice_signals;
3819         mention to_pass_signals.
3820         (target_pass_signals): New function.
3821         (debug_to_notice_signals): Remove.
3822         (setup_target_debug): Do not install debug_to_notice_signals.
3823
3824         * infrun.c (signal_pass): New global.
3825         (resume): Call target_pass_signals.
3826         (handle_inferior_event): Report all signals while stepping over
3827         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
3828         are re-inserted when stepping over a signal handler.
3829         (signal_cache_update): New function.
3830         (signal_stop_update): Call it.
3831         (signal_print_update): Likewise.
3832         (signal_pass_update): Likewise.
3833         (handle_command): Call signal_cache_update and target_pass_signals
3834         instead of target_notice_signals.
3835         (_initialize_infrun): Initialize signal_pass.
3836
3837         * linux-nat.c (pass_mask): New global.
3838         (linux_nat_pass_signals): New function.
3839         (linux_nat_create_inferior): Report all signals initially.
3840         (linux_nat_attach): Likewise.
3841         (linux_nat_resume): Use pass_mask to decide whether to directly
3842         handle an inferior signal.
3843         (linux_nat_wait_1): Likewise.
3844         (linux_nat_add_target): Install to_pass_signals callback.
3845
3846         * nto-procfs.c (notice_signals): Remove.
3847         (procfs_resume): Do not call notice_signals.
3848         (procfs_notice_signals): Remove.
3849         (procfs_pass_signals): New function.
3850         (init_procfs_ops): Install to_pass_signals callback instead of
3851         to_notice_signals callback.
3852         (_initialize_procfs): Report all signals initially.
3853
3854         * procfs.c (procfs_notice_signals): Remove.
3855         (procfs_pass_signals): New function.
3856         (procfs_target): Install to_pass_signals callback instead of
3857         to_notice_signals callback.
3858         (register_gdb_signals): Remove.
3859         (procfs_debug_inferior): Report all signals initially.
3860         (procfs_init_inferior): Remove redundant register_gdb_signals call.
3861
3862         * remote.c (remote_pass_signals): Add numsigs and pass_signals
3863         parameters; use them instead of calling signal_..._state routines.
3864         (remote_notice_signals): Remove.
3865         (remote_start_remote): Report all signals initially.
3866         (remote_resume): Do not call remote_pass_signals.
3867         (_initialize_remote): Install to_pass_signals callback instead of
3868         to_notice_signals callback.
3869
3870 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
3871
3872         * breakpoint.c (user_settable_breakpoint): Delete.
3873         (user_breakpoint_p): Remove check on user_settable_breakpoint.
3874         (delete_command): Check user_breakpoint_p instead of looking at
3875         the breakpoint's type.
3876         (disable_command): Ditto.
3877         (enable_command): Ditto.
3878         (delete_trace_command): Use user_breakpoint_p instead of looking
3879         at the breakpoint number directly.  When checking if there are
3880         user visible tracepoints, in order to know whether to ask the user
3881         for confirmation, check whether the breakpoint is actually a
3882         tracepoint.
3883
3884 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
3885
3886         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
3887         compilation.
3888
3889 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
3890
3891         MI breakpoint notifications.
3892
3893         * annotate.c (breakpoint_changed): Adjust parameter type.
3894         * breakpoint.c (set_breakpoint_condition): Adjust to change
3895         in breakpoint_modified type.
3896         (breakpoint_set_commands): Likewise.
3897         (do_map_commands_command): Likewise.
3898         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
3899         changed after bumping hit count.
3900         (bpstat_stop_status): Likewise.
3901         (print_one_breakpoint_location): Don't wrap in tuple here.
3902         (print_one_breakpoint): Always print individual locations.
3903         For locations, use unnamed tuple.
3904         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
3905         has changed.
3906         (create_catchpoint, create_syscall_event_catchpoint): Call
3907         breakpoint_created obsever.
3908         (mention): Don't call breakpoint_created observer.
3909         (create_breakpoint_sal): Call breakpoint_created observer.
3910         (create_breakpoint, watch_command_1): Likewise.
3911         (create_ada_exception_breakpoint): Likewise.
3912         (delete_breakpoint): Call breakpoint_deleted breakpoint.
3913         (locations_are_equal): New.
3914         (update_breakpoint_locations): If locations were changed, notify.
3915         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
3916         Call breakpoint_modified observer.
3917
3918         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3919         (mi_cmd_break_insert): Don't set observers for modify and delete.
3920         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
3921         (mi_breakpoint_created, mi_breakpoint_deleted)
3922         (mi_breakpoint_modified): New.
3923         (mi_interpreter_init): Hook the above.
3924         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
3925         while -break-* commands are executing.
3926         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
3927         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
3928         (mi_redirect): New.
3929         (mi_ui_out_impl): Hook in mi_redirect.
3930         (mi_field_skip): True to the name, skip the field, don't output
3931         a field with an empty value.
3932
3933         * python/py-breakpoint.c (gdbpy_breakpoint_created)
3934         (gdbpy_breakpoint_deleted): Adjust.
3935         * tui/tui-hooks.c (tui_event_create_breakpoint)
3936         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
3937
3938 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
3939
3940         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
3941         (procfs_remove_hw_watchpoint): Likewise.
3942
3943 2011-04-26  Michael Walle  <michael@walle.cc>
3944
3945         * remote.c (remote_start_remote): Ack packet after sending the
3946         interrupt sequence.
3947
3948 2011-04-26  Yao Qi  <yao@codesourcery.com>
3949
3950         * linux-nat.c: Move common macros to ...
3951         Include linux-ptrace.h.
3952         * common/linux-ptrace.h: ... here.  New.
3953
3954 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3955
3956         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
3957         !objfile_has_partial_symbols.  New comment.
3958         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
3959         SYM_READ_PSYMBOLS is not present. Extend the comment.
3960         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
3961
3962 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3963
3964         * defs.h (ENUM_BITFIELD): Remove.
3965
3966 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3967             Eli Zaretskii  <eliz@gnu.org>
3968
3969         * NEWS: Document the new gdbserver --once option.
3970
3971 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
3972
3973         * MAINTAINERS: Update my email address.
3974
3975 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3976
3977         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
3978         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
3979         function call if __STDC_ISO_10646__ macro is defined.
3980         (intermediate_encoding): New prototype.
3981         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
3982         to generate compile time error for unsupported gdb_wchar_t size.
3983         (ENDIAN_SUFFIX): New macro.
3984         (intermediate_encoding): New function.
3985
3986 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3987
3988         * ada-lang.c (struct add_partial_datum): Update the comment for
3989         expand_partial_symbol_name.
3990         (ada_add_partial_symbol_completions): Rename to ...
3991         (ada_expand_partial_symbol_name): ... here, change return type, update
3992         function comment, call symbol_completion_match instead of
3993         symbol_completion_add.
3994         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
3995         and ada_expand_partial_symbol_name.
3996         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
3997         FILE_MATCHER.
3998         (dw2_map_symbol_names): Remove.
3999         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
4000         * psymtab.c (map_symbol_names_psymtab): Remove.
4001         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
4002         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
4003         order.
4004         (psym_functions): Unlist map_symbol_names_psymtab.
4005         (map_partial_symbol_names): Rename to ...
4006         (expand_partial_symbol_names): ... here, change the FUN type, call
4007         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
4008         * psymtab.h (map_partial_symbol_names): Rename to ...
4009         (expand_partial_symbol_names): ... here, change the FUN type.
4010         * symfile.h (struct quick_symbol_functions): Update the description of
4011         expand_symtabs_matching.  Remove map_symbol_names.
4012         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
4013         (struct add_name_data): Update the comment for
4014         expand_partial_symbol_name.
4015         (add_partial_symbol_name): Rename to ...
4016         (expand_partial_symbol_name): ... here.  Replace
4017         completion_list_add_name call by strncmp.
4018         (default_make_symbol_completion_list_break_on): Use now
4019         expand_partial_symbol_names and expand_partial_symbol_name.
4020         * symtab.h (enum search_domain): New element ALL_DOMAIN.
4021
4022 2011-04-20  Tom Tromey  <tromey@redhat.com>
4023
4024         * dwarf2read.c (save_gdb_index_command): Replace format
4025         documentation with a pointer to the manual.
4026
4027 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
4028
4029         * regcache.c: Include remote.h.
4030         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
4031         (regcache_dump): Handle regcache_dump_remote.
4032         (maintenance_print_remote_registers): New function.
4033         (_initialize_regcache): Install "maint print remote-registers"
4034         command.
4035         * remote.c (map_regcache_remote_table): New function, factored out
4036         from ...
4037         (init_remote_state): ... here.
4038         (remote_register_number_and_offset): New.
4039         * remote.h (remote_register_number_and_offset): Declare.
4040
4041 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
4042
4043         * regcache.c (get_thread_arch_regcache): If creating a regcache for
4044         null_ptid, assume and allow a NULL address space, instead of
4045         asking the target for the ptid's address space.
4046         * infrun.c (ptid_is_pid): Remove assertion.
4047
4048 2011-04-19  Tom Tromey  <tromey@redhat.com>
4049
4050         * windows-tdep.c (windows_xfer_shared_library):
4051         * windows-nat.c (get_module_name, windows_make_so):
4052         * v850-tdep.c (v850_handle_pushm):
4053         * utils.c (null_cleanup, gdb_realpath):
4054         * ui-out.c (get_next_header):
4055         * tracepoint.c (clear_traceframe_info):
4056         * symtab.c (lookup_symtab):
4057         * serial.h (struct serial_ops):
4058         * mipsread.c (read_alphacoff_dynamic_symtab):
4059         * infcmd.c (print_return_value):
4060         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
4061         * f-exp.y (parse_number):
4062         * exceptions.c (catch_exceptions):
4063         * dummy-frame.c (dummy_frame_this_id):
4064         * defs.h (struct cleanup):
4065         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
4066         * arm-tdep.c (arm_push_dummy_call):
4067         * amd64-tdep.h (amd64_collect_xsave):
4068         * amd64-tdep.c (amd64_collect_xsave):
4069         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
4070         * README (typing): Remove duplicate words.
4071         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
4072         * infrun.c (siginfo_value_read): Fix typo.
4073         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
4074         * top.c (source_line_number): Add comma.
4075
4076 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
4077
4078         * thread.c (any_live_thread_of_process): Prioritize threads
4079         that are not executing.
4080         * gdbthread.h (any_live_thread_of_process): Update comment
4081         as per above change.
4082
4083 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
4084
4085         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
4086         (scan_xcoff_symtab): Likewise.
4087
4088 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4089
4090         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
4091         inside if clause.
4092
4093 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4094             Pedro Alves  <pedro@codesourcery.com>
4095
4096         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
4097         variables to simplify code and avoid == operator at end of
4098         line as this is against GNU coding standards.
4099
4100 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4101
4102         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
4103         lm_name to name_lm to avoid conflict with lm_name function.
4104
4105 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4106
4107         ARI fixes: Use only lowercase function name for static functions.
4108         * nto-tdep.c (LM_ADDR): Rename to...
4109         (lm_addr): New function name.
4110         (nto_relocate_section_addresses): Adapt to change above.
4111         * solib-sunos.c (LM_ADDR): Rename to...
4112         (lm_addr): New function name.
4113         (LM_NEXT): Rename to...
4114         (lm_next): New function name.
4115         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
4116         function name changes above.
4117         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
4118         (lm_addr_from_link_map): New function name.
4119         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4120         (has_lm_dynamic_from_link_map): New function name.
4121         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
4122         (lm_dynamic_from_link_map): New function name.
4123         (LM_ADDR_CHECK): Rename to...
4124         (lm_addr_check): New function name.
4125         (LM_NEXT): Rename to...
4126         (lm_next): New function name.
4127         (LM_PREV): Rename to...
4128         (lm_prev): New function name.
4129         (LM_NAME): Rename to...
4130         (lm_name): New function name.
4131         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
4132         (ignore_first_link_map_entry): New function name.
4133         (svr4_keep_data_in_core): Adapt to function name changes above.
4134         (svr4_current_sos): Likewise.
4135         (enable_break): Likewise.
4136         (svr4_relocate_section_addresses): Likewise.
4137
4138 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
4139
4140         ARI cleanup.
4141         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
4142         sprintf. Simplify code and avoid loosing memory.
4143         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
4144         (call0_frame_cache): Remove && operator from end of line.
4145
4146 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4147
4148         Fix libraries displacement if they change whether they were prelinked.
4149         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
4150         does not match.  Comment why.
4151
4152 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4153
4154         * corelow.c: Include wrapper.h.
4155         (core_open): Call now gdb_target_find_new_threads.
4156         * wrapper.c: Include target.h.
4157         (gdb_target_find_new_threads): New.
4158         * wrapper.h (gdb_target_find_new_threads): New declaration.
4159
4160 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4161
4162         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4163         even if !TARGET_HAS_EXECUTION.
4164
4165 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4166
4167         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
4168         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
4169         bfd_get_synthetic_symtab.
4170         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
4171         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
4172         parameter parent, remove the call to add_separate_debug_objfile.
4173         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
4174         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4175         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
4176         parent, new comment for it, call add_separate_debug_objfile for it.
4177         (symbol_file_add_separate): Pass objfile as the parameter parent,
4178         remove the call to add_separate_debug_objfile.
4179         (symbol_file_add_from_bfd): New parameter parent, pass it.
4180         (symbol_file_add): Pass NULL to the new parameter parent.
4181         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
4182
4183 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4184
4185         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
4186         BSF_SYNTHETIC.
4187
4188 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4189
4190         Fix Python access to inlined frames.
4191         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
4192         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4193
4194 2011-04-15  Tom Tromey  <tromey@redhat.com>
4195
4196         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
4197
4198 2011-04-15  Gary Benson  <gbenson@redhat.com>
4199
4200         * MAINTAINERS: Add myself to write-after-approval section.
4201
4202 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
4203
4204         * remote-sim.c (sim_command_completer): New function.
4205         (_initialize_remote_sim): Set completer to sim_command_completer.
4206
4207 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4208
4209         * breakpoint.c (print_exception_catchpoint): Rename to ...
4210         (print_it_exception_catchpoint): ... this.
4211         (gnu_v3_exception_catchpoint_ops): Update with new name
4212         for print_it_exception_catchpoint.
4213
4214 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4215
4216         * MAINTAINERS: Add myself for write after approval privileges.
4217
4218 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
4219
4220         * MAINTAINERS: Add myself as a write-after-approval maintainer.
4221
4222 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4223
4224         * breakpoint.c (watch_command_1): Remove colon from exp_string.
4225
4226 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4227
4228         * breakpoint.c (save_breakpoints): Verify whether
4229         breakpoint_ops.print_recreate is defined before calling it.
4230
4231 2011-04-11  Gary Benson  <gbenson@redhat.com>
4232
4233         Fix failure with --enable-maintainer-mode.
4234         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
4235
4236 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4237
4238         Code cleanup.
4239         * symtab.c (search_symbols): Reorder the KIND description in the
4240         function comment.  Remove the unused 4th element of types, types2,
4241         types3 and types4.  New gdb_assert on KIND.
4242         (symtab_symbol_info): Remove the unused 4th element of classnames.
4243         New gdb_assert on KIND.
4244         * symtab.h (enum search_domain): New warning in the enum comment.
4245         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
4246         TYPES_DOMAIN.
4247
4248 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4249
4250         Fix crash of gdb save-index on a STABS file.
4251         * dwarf2read.c (write_psymtabs_to_index): Return also on no
4252         PSYMTABS_ADDRMAP.
4253
4254 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
4255
4256         Fix DW_AT_accessibility compatibility with gcc-4.6+.
4257         * dwarf2read.c: Include ctype.h.
4258         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
4259         functions.
4260         (dwarf2_add_field): Fix new_field->accessibility by calling
4261         dwarf2_default_access_attribute.  Restructure setting accessibility
4262         vs. virtuality.
4263         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
4264         is_private and is_protected by calling
4265         dwarf2_default_access_attribute.
4266
4267 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
4268
4269         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
4270         to the initialization.
4271
4272 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
4273
4274         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
4275         initalization.
4276
4277 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
4278
4279         Remove support for old Cygwin 1.5 versions.
4280         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
4281         function on old Cygwin version.
4282         * windows-nat.c: Remove cygwin version check and always define
4283         __USEWIDE for Cygwin compilation.
4284
4285 2011-04-07  Yao Qi  <yao@codesourcery.com>
4286
4287         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
4288         and TO.
4289         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
4290         (arm_copy_svc): Remove parameters INSN and TO.
4291         (decode_svc_copro): Update caller.
4292         * arm-tdep.h (struct displaced_step_closure): Remove parameters
4293         from function pointer `copy_svc_os'.
4294
4295 2011-04-07  Yao Qi  <yao@codesourcery.com>
4296
4297         * arm-tdep.c (cleanup_branch): Set a correct return address in
4298         LR for ARM and Thumb.
4299
4300 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4301
4302         Code cleanup.
4303         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
4304         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
4305         in the function comment, a new note on values compatibility.
4306         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
4307         * symtab.h (SYMBOL_HASH_NEXT): New.
4308
4309 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4310
4311         * ppc-linux-nat.c (check_condition): Add len output parameter.
4312         Set it based on the memory region referenced in the condition
4313         expression.  Update all callers.
4314
4315 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4316
4317         Fix crash regression on systems featuring .gdb_index.
4318         * objfiles.c (free_objfile): Move the
4319         forget_cached_source_info_for_objfile call earlier.  Comment it.
4320         Extend the comment for objfile_free_data.
4321
4322 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4323
4324         Fix regression of displaying the debug format.
4325         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
4326         subfile.
4327
4328 2011-04-04  Tom Tromey  <tromey@redhat.com>
4329
4330         * cli/cli-interp.c (struct captured_execute_command_args):
4331         Remove.
4332         (do_captured_execute_command): Remove.
4333         (safe_execute_command): Use TRY_CATCH.
4334         * cli/cli-script.c (struct wrapped_read_command_file_args):
4335         Remove.
4336         (wrapped_read_command_file): Remove.
4337         (script_from_file): Use TRY_CATCH.
4338         * exceptions.c (catch_exception): Remove.
4339         * exceptions.h (catch_exception): Remove.
4340         (deprecated_throw_reason): Update comment.
4341         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
4342         argument to 'context'.
4343         (mi_execute_command): Use TRY_CATCH.
4344         * remote.c (struct start_remote_args): Remove.
4345         (remote_start_remote): Update; change arguments.
4346         (remote_open_1): Use TRY_CATCH.
4347
4348 2011-04-04  Tom Tromey  <tromey@redhat.com>
4349
4350         * tracepoint.c (scope_info): Update.
4351         * symtab.c (decode_line_spec): Update.
4352         * python/python.c (gdbpy_decode_line): Update.
4353         * linespec.h (decode_line_1): Update.
4354         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
4355         (decode_compound, find_method, symtab_from_filename)
4356         (decode_variable): Likewise.
4357         * cli/cli-cmds.c (edit_command): Update.
4358         (list_command): Update.
4359         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
4360         argument.
4361         (create_breakpoint): Update.
4362         (until_break_command): Update.
4363         (addr_string_to_sals): Update.
4364         (decode_line_spec_1): Update.
4365
4366 2011-04-04  Tom Tromey  <tromey@redhat.com>
4367
4368         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
4369         (do_captured_parse_breakpoint): Remove.
4370         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
4371         Use TRY_CATCH directly.
4372
4373 2011-04-04  Tom Tromey  <tromey@redhat.com>
4374
4375         * symtab.h (free_symtab): Remove.
4376         (forget_cached_source_info_for_objfile): Declare.
4377         * symmisc.c (free_symtab): Remove.
4378         * source.c (forget_cached_source_info_for_objfile): New function.
4379         (forget_cached_source_info): Use it.
4380         * objfiles.c (free_objfile): Simplify check before calling
4381         clear_current_source_symtab_and_line.  Call
4382         forget_cached_source_info_for_objfile.
4383
4384 2011-04-04  Tom Tromey  <tromey@redhat.com>
4385
4386         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
4387         (new_symtab): Don't set `free_code' on symtab.
4388         (new_linetable): Properly handle size==0.
4389         * symtab.h (struct symtab) <free_code, free_func>: Remove.
4390         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
4391         free_func.
4392         * jv-lang.c (struct jv_per_objfile_data): New.
4393         (jv_per_objfile_free): Free the data.
4394         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
4395         (get_java_class_symtab): Set the `dict' field on the
4396         jv_per_objfile_data.
4397         (free_class_block): Remove.
4398         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
4399         the symtab.
4400
4401 2011-04-04  Tom Tromey  <tromey@redhat.com>
4402
4403         * symfile.c (reread_symbols): Update.
4404         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
4405         field.
4406         * objfiles.c (allocate_objfile): Update.
4407         * cp-support.h (cp_check_possible_namespace_symbols): Don't
4408         declare.
4409         * cp-namespace.c (lookup_symbol_file): Don't call
4410         lookup_possible_namespace_symbol.
4411         (initialize_namespace_symtab, get_possible_namespace_block)
4412         (free_namespace_block, cp_check_possible_namespace_symbols)
4413         (check_possible_namespace_symbols_loop)
4414         (check_one_possible_namespace_symbol)
4415         (lookup_possible_namespace_symbol): Remove.
4416         (maintenance_cplus_namespace): Replace with notice.
4417         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
4418
4419 2011-04-04  Tom Tromey  <tromey@redhat.com>
4420
4421         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
4422         * symtab.h (struct symtab) <producer, debugformat>: Now const.
4423         * symmisc.c (free_symtab): Don't free debugformat.
4424         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
4425         (record_debugformat, record_producer): Document.
4426         * buildsym.c (end_symtab): Don't save debugformat and producer
4427         names on obstack.
4428         (end_symtab): Don't free debugformat and producer fields.
4429         (record_debugformat): Don't call xstrdup.
4430         (record_producer): Likewise.
4431
4432 2011-04-04  Tom Tromey  <tromey@redhat.com>
4433
4434         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
4435         (source_line_charpos, source_charpos_line): Remove.
4436
4437 2011-04-04  Tom Tromey  <tromey@redhat.com>
4438
4439         * symtab.h (domain_enum): Split in two...
4440         (enum search_domain): New.
4441         (search_symbols): Update.
4442         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
4443         redundant declarations.
4444         (search_symbols): Change 'kind' argument to search_domain.
4445         Update.
4446         (print_symbol_info): Likewise.
4447         (symtab_symbol_info): Likewise.
4448         * symfile.h (struct quick_symbol_functions)
4449         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
4450         <expand_symtabs_matching>: Likewise.
4451         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
4452         (expand_symtabs_matching_via_partial): Update.
4453         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
4454         (dw2_expand_symtabs_for_function): Update.
4455         * block.h: Moved anonymous enum...
4456         * defs.h (enum block_enum): ... here.  Now named.
4457
4458 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
4459
4460         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
4461         * version.in: Bump version to 7.3.50.20110403-cvs.
4462
4463 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
4464
4465         * NEWS: Create a new section for the next release branch.
4466         Rename the section of the current branch, now that it has
4467         been cut.
4468
4469 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
4470
4471         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
4472         for "fpscr" in target description.
4473
4474 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4475
4476         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
4477         initialize it.  Delay HASH initialization.  Strip the part after open
4478         parenthesis for languages with qualifiers.  Call do_cleanups.
4479
4480 2011-04-01  Tom Tromey  <tromey@redhat.com>
4481
4482         * utils.c (report_command_stats): Don't print `-' for negative
4483         number.
4484
4485 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
4486
4487         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
4488         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
4489         typedefs.
4490
4491 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
4492
4493         * breakpoint.h (bpdisp_text): Add declaration.
4494         * breakpoint.c (bpdisp_text): Make non-static.
4495         * ada-lang.c: #include "mi/mi-common.h".
4496         (print_it_exception): Rewrite to improve GDB/MI output.
4497
4498 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
4499
4500         * arm-tdep.h (struct address_space): Add forward declaration.
4501
4502 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
4503
4504         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
4505         * arm-tdep.c (arm_override_mode): New global.
4506         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
4507         execution mode heuristics.
4508         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
4509         second single-step breakpoint if needed, using
4510         arm_insert_single_step_breakpoint.
4511         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
4512         ARM execution mode, do not call thumb_get_next_pc_raw.
4513         (arm_get_next_pc): Encode execution mode in return value.  Call
4514         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
4515         (arm_insert_single_step_breakpoint): New function.
4516         (arm_software_single_step): Call it.
4517         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
4518         argument to return execution mode of sigreturn target.
4519         (arm_linux_syscall_next_pc): Use it.
4520         (arm_linux_copy_svc): Update call.
4521         (arm_linux_software_single_step): Call
4522         arm_insert_single_step_breakpoint.
4523
4524 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
4525
4526         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
4527         the comment.
4528
4529 2011-03-31  Tom Tromey  <tromey@redhat.com>
4530
4531         * varobj.c (update_dynamic_varobj_children): Properly handle
4532         errors from iterator.
4533
4534 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
4535
4536         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
4537         struct linkage name twice.
4538
4539 2011-03-31  Tom Tromey  <tromey@redhat.com>
4540
4541         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
4542         missing ">" to message.
4543
4544 2011-03-31  Tom Tromey  <tromey@redhat.com>
4545
4546         * varobj.c (instantiate_pretty_printer): Remove duplicate
4547         'return'.
4548
4549 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
4550
4551         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
4552         if neither saved value nor register available (e.g. signal frame).
4553
4554 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4555
4556         * macroexp.c (expand): Avoid uninitialized variable
4557         compiler warning.
4558
4559 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4560
4561         * breakpoint.c (break_range_command): Fix typo in comment.
4562
4563 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4564             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
4565
4566         Implement support for PowerPC BookE ranged breakpoints.
4567         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
4568         * breakpoint.h (struct bp_target_info) <length>: New member
4569         variable.
4570         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
4571         instead of struct breakpoint as argument, and also add ASPACE
4572         and BP_ADDR arguments.  Update all callers.
4573         (struct breakpoint_ops) <print_one_detail>: New method.
4574         (struct breakpoint) <addr_string_range_end>: New member variable.
4575         * breakpoint.c (breakpoint_location_address_match): Add function
4576         prototype.
4577         (insert_bp_location): Set bl->target_info.length.
4578         (breakpoint_here_p): Call breakpoint_location_address_match.
4579         (moribund_breakpoint_here_p): Likewise.
4580         (regular_breakpoint_inserted_here_p): Likewise.
4581         (breakpoint_thread_match): Likewise.
4582         (bpstat_stop_status): Likewise.
4583         (bpstat_check_location): Move call to
4584         breakpoint_ops.breakpoint_hit to the top.
4585         (print_one_breakpoint_location): Call
4586         breakpoint_ops.print_one_detail if available.
4587         (breakpoint_address_match_range): New function.
4588         (breakpoint_location_address_match): Likewise.
4589         (breakpoint_locations_match): Compare the length field of the
4590         locations too.
4591         (hw_breakpoint_used_count): Count resources used by all locations
4592         in a breakpoint, and use breakpoint_ops.resources_needed if
4593         available.
4594         (breakpoint_hit_ranged_breakpoint): New function.
4595         (resources_needed_ranged_breakpoint): Likewise.
4596         (print_it_ranged_breakpoint): Likewise.
4597         (print_one_ranged_breakpoint): Likewise.
4598         (print_one_detail_ranged_breakpoint): Likewise.
4599         (print_mention_ranged_breakpoint): Likewise.
4600         (print_recreate_ranged_breakpoint): Likewise.
4601         (ranged_breakpoint_ops): New structure.
4602         (find_breakpoint_range_end): New function.
4603         (break_range_command): Likewise.
4604         (delete_breakpoint): Free addr_string_range_end.
4605         (update_breakpoint_locations): Add SALS_END argument.  Update
4606         all callers.  Calculate breakpoint length if a non-zero SALS_END
4607         is given.  Call breakpoint_locations_match instead of
4608         breakpoint_address_match.
4609         (reset_breakpoint): Find SaL of the end of the range if B is a
4610         ranged breakpoint.
4611         (_initialize_breakpoint): Register break-range command.
4612         * defs.h (print_core_address): Add function prototype.
4613         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
4614         function.
4615         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
4616         (ppc_linux_remove_hw_breakpoint): Likewise.
4617         (_initialize_ppc_linux_nat): Initialize
4618         to_ranged_break_num_registers.
4619         * target.c (update_current_target): Add comment about
4620         to_ranged_break_num_registers.
4621         (target_ranged_break_num_registers): New function.
4622         * target.h (struct target_ops) <to_ranged_break_num_registers>:
4623         New method.
4624         (target_ranged_break_num_registers): Add function prototype.
4625         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
4626         * utils.c (print_core_address): ... here.
4627
4628 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
4629
4630         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
4631         variable compiler warning.
4632
4633 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4634
4635         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
4636         code from here ...
4637         (re_set_breakpoint): ... to here ...
4638         (addr_string_to_sals): ... and here.
4639
4640 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
4641
4642         * Makefile.in (SFILES): Add missing C sources.
4643         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
4644         Add missing headers.
4645
4646 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
4647
4648         * .gitignore: New file.
4649
4650 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
4651
4652         * NEWS: Mention new cfi device simulation.
4653
4654 2011-03-29  Tom Tromey  <tromey@redhat.com>
4655
4656         * dwarf2read.c (fixup_partial_die): Handle linkage name on
4657         otherwise anonymous types.
4658         (dwarf2_name): Likewise.
4659         * valops.c (value_struct_elt_for_reference): Refine artificial
4660         type logic.  Call error if j==-1.
4661
4662 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
4663
4664         Fix false GCC warning.
4665         * infcall.c (find_function_addr): Initialize funaddr.
4666
4667 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
4668
4669         Fix mingw compilation with --enable-targets=all.
4670         * remote-mips.c (gdb_usleep.h): Include header.
4671         (mips_enter_debug): Use gdb_usleep instead of sleep.
4672
4673 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4674
4675         Support resolution of STT_GNU_IFUNC via breakpoints.
4676         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
4677         bp_gnu_ifunc_resolver_return.
4678         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
4679         the loop.  Support bp_gnu_ifunc_resolver and
4680         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
4681         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
4682         breakpoints.
4683         (bptype_string, print_one_breakpoint_location): Support
4684         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
4685         (user_settable_breakpoint): Return true also for
4686         bp_gnu_ifunc_resolver.
4687         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
4688         bp_gnu_ifunc_resolver_return.
4689         (set_breakpoint_location_function): New parameter explicit_loc,
4690         describe it.  Call find_pc_partial_function_gnu_ifunc with new
4691         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
4692         EXPLICIT_LOC is not set.
4693         (set_raw_breakpoint): Set EXPLICIT_LOC for
4694         set_breakpoint_location_function.
4695         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
4696         set_breakpoint_location_function.
4697         (mention): Support bp_gnu_ifunc_resolver and
4698         bp_gnu_ifunc_resolver_return.
4699         (add_location_to_breakpoint): Set EXPLICIT_LOC for
4700         set_breakpoint_location_function.
4701         (update_breakpoint_locations): Remove static.
4702         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
4703         bp_gnu_ifunc_resolver_return.
4704         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
4705         bp_gnu_ifunc_resolver_return.
4706         (update_breakpoint_locations): New declaration.
4707         * elfread.c: Include gdbthread.h and regcache.h.
4708         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
4709         functions.
4710         (elf_gnu_ifunc_fns): Install them.
4711         * minsyms.c (stub_gnu_ifunc_resolver_stop)
4712         (stub_gnu_ifunc_resolver_return_stop): New functions.
4713         (stub_gnu_ifunc_fns): Install them.
4714         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
4715         and gnu_ifunc_resolver_return_stop.
4716         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
4717
4718 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4719
4720         STT_GNU_IFUNC reader implementation.
4721         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
4722         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
4723         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
4724         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
4725         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
4726         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
4727         (elf_gnu_ifunc_resolve_addr): New.
4728         (elf_symfile_read): Call elf_rel_plt_read.
4729         (elf_gnu_ifunc_fns): New.
4730         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
4731         Install elf_gnu_ifunc_fns.
4732         * infcall.c (find_function_return_type): New function.
4733         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
4734         * minsyms.c (stub_gnu_ifunc_resolve_addr)
4735         (stub_gnu_ifunc_resolve_name): New functions.
4736         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
4737         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
4738         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
4739
4740 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4741
4742         Code cleanup for later STT_GNU_IFUNC support.
4743         * infcall.c (find_function_addr): Remove variable code, use explicit
4744         dereferences for it.  Move VALUE_TYPE initialization later.
4745
4746 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4747
4748         GDB find_pc_partial_function support for STT_GNU_IFUNC.
4749         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
4750         (clear_pc_function_cache): Clear it.
4751         (find_pc_partial_function): Rename to ...
4752         (find_pc_partial_function_gnu_ifunc): ... this function.  New
4753         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
4754         (find_pc_partial_function): New wrapper for this function.
4755         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
4756
4757 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4758
4759         GDB internal type support for STT_GNU_IFUNC.
4760         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
4761         (elf_symtab_read): Set mst_text_gnu_ifunc for
4762         BSF_GNU_INDIRECT_FUNCTION.
4763         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
4764         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
4765         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
4766         nodebug_got_plt_symbol.
4767         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
4768         (TYPE_GNU_IFUNC): New.
4769         (struct main_type): New field flag_gnu_ifunc.
4770         (struct builtin_type): New field builtin_func_func.
4771         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
4772         nodebug_got_plt_symbol.
4773         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
4774         (in_gnu_ifunc_stub): New.
4775         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
4776         mst_text_gnu_ifunc.
4777         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
4778         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
4779         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
4780         in_gnu_ifunc_stub.
4781         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
4782         * symtab.c (search_symbols): Likewise.
4783         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
4784         and mst_slot_got_plt.
4785         (in_gnu_ifunc_stub): New declaration.
4786
4787 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4788
4789         Support a ring of related breakpoints.
4790         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
4791         other functions, add gdb_assert.
4792         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
4793         watchpoint_del_at_next_stop.
4794         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
4795         (bpstat_stop_status): Handle ring in related_breakpoint.
4796         (set_raw_breakpoint_without_location): Initialize ring in
4797         related_breakpoint.
4798         (delete_breakpoint): Handle ring in related_breakpoint, use
4799         watchpoint_del_at_next_stop.
4800         (map_breakpoint_numbers): Handle ring in related_breakpoint.
4801
4802 2011-03-28  Tom Tromey  <tromey@redhat.com>
4803
4804         PR symtab/12441:
4805         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
4806         with `language_minimal'.
4807
4808 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
4809
4810         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
4811         instead of checking for STT_ARM_TFUNC symbol type.
4812
4813 2011-03-25  Tom Tromey  <tromey@redhat.com>
4814
4815         * linespec.c (symbol_found): Restore line-based result for
4816         non-LOC_LABEL symbols.
4817
4818 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4819
4820         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
4821         instead of strcmp for comparison.
4822         (tui_source_is_displayed): Likewise.
4823         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
4824
4825 2011-03-24  Mark Wielaard  <mjw@redhat.com>
4826
4827         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
4828         complaint.
4829         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
4830         (find_partial_die_in_comp_unit): Likewise in comment.
4831         (read_attribute_value): Likewise.
4832         (lookup_die_type): Likewise.
4833         (dwarf_form_name): Likewise.
4834         (dump_die_shallow): Likewise.
4835         (follow_die_ref_or_sig): Likewise.
4836
4837 2011-03-24  Tom Tromey  <tromey@redhat.com>
4838
4839         PR breakpoints/11816:
4840         * linespec.c (decode_line_1): Parse `function:label' linespecs.
4841         (decode_compound): Update.
4842         (find_function_symbol): New function.
4843         (decode_dollar): Update.
4844         (decode_label): Add 'function_symbol' parameter.  Handle
4845         function-relative labels.
4846         (decode_variable): Update.
4847         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
4848         not its line.  Set `special_display' and canonical name for
4849         labels.
4850
4851 2011-03-24  Tom Tromey  <tromey@redhat.com>
4852
4853         * linespec.h (struct linespec_result) <special_display>: New
4854         field.
4855         * breakpoint.h (struct breakpoint) <display_canonical>: New
4856         field.
4857         * breakpoint.c (print_breakpoint_location): Respect
4858         display_canonical.
4859         (create_breakpoint_sal): Add 'display_canonical' parameter.
4860         (create_breakpoints_sal): Update.
4861         (create_breakpoint): Update.
4862
4863 2011-03-24  Tom Tromey  <tromey@redhat.com>
4864
4865         * symtab.c (decode_line_spec): Update.
4866         * linespec.c (build_canonical_line_spec): Change type of
4867         'canonical'.
4868         (decode_line_2, decode_line_1, decode_objc, decode_compound)
4869         (find_method, decode_all_digits, decode_dollar, decode_label)
4870         (symbol_found): Likewise.
4871         (init_linespec_result): New function.
4872         * breakpoint.c (struct captured_parse_breakpoint_args)
4873         <canonical_p>: New field, replaces addr_string_p.
4874         (create_breakpoints_sal): Add 'canonical' parameter, replacing
4875         'addr_string'.
4876         (parse_breakpoint_sals): Likewise.
4877         (do_captured_parse_breakpoint): Update.
4878         (create_breakpoint): Use struct linespec_result.
4879         (until_break_command): Update.
4880         (breakpoint_re_set_one): Update.
4881         (decode_line_spec_1): Update.
4882         * linespec.h (struct linespec_result): New.
4883         (init_linespec_result): Declare.
4884
4885 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
4886
4887         * regcache.c (regcache_raw_read): If the target didn't supply a
4888         given raw register, mark it as unavailable.
4889
4890 2011-03-23  Kai Tietz  <ktietz@redhat.com>
4891
4892         * breakpoint.c (clear_command): Use filename_cmp
4893         instead of strcmp for comparison.
4894         * buildsym.c (watch_main_source_file_lossage): Likewise.
4895         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
4896         checking just for slash.
4897         * dbxread.c (read_dbx_symtab): Use lbasename instead of
4898         strrchr and filename_cmp instead of strcmp for filenames.
4899         (add_old_header_file): Use filename_cmp
4900         instead of strcmp for comparison.
4901         * exec.c (exec_set_section_address): Likewise.
4902         * macrotab.c (macro_lookup_inclusion): Likewise.
4903         (macro_lookup_inclusion): Likewise.
4904         * elfread.c (_initialize_elfread): Likewise.
4905         (elfstab_offset_sections): Likewise.
4906         (elfstab_offset_sections): Use lbasename instead of
4907         strrchr.
4908         * mdebugread.c (parse_partial_symbols): Likewise.
4909         (arse_partial_symbols): Use filename_(n)cmp instead of
4910         str(n)cmp for comparison.
4911         * minsyms.c (lookup_minimal_symbol): Likewise.
4912         * psymtab.c (read_psymtabs_with_filename): Likewise.
4913         * solib.c (solib_read_symbols): Likewise.
4914         (reload_shared_libraries_1): Likewise.
4915         * symmisc.c (maintenance_print_symbols): Likewise.
4916         * symfile.c (separate_debug_file_exists): Likewise.
4917         (reread_symbols): Likewise.
4918         (find_separate_debug_file_by_debuglink): Likewise.
4919         * remote-fileio.c (remote_fileio_func_rename): Likewise.
4920         * source.c (add_path): Likewise.
4921         * symtab.c (filename_seen): Likewise.
4922         (file_matches): Likewise.
4923         (print_symbol_info): Likewise.
4924         (maybe_add_partial_symtab_filename): Likewise.
4925         (make_source_files_completion_list): Likewise.
4926         * xml-syscall.c (init_sysinfo): Likewise.
4927         * windows-nat.c (_initialize_check_for_gdb_ini): Use
4928         IS_DIR_SEPARATOR for checking for trailing path separator.
4929
4930 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4931
4932         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
4933         label abort_expression.
4934         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
4935         DWARF_VALUE_OPTIMIZED_OUT.
4936
4937 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4938
4939         Code cleanup.
4940         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
4941         to linkage_name.  Invert its value.  Update the function comment.
4942         (c_type_print_varspec_suffix): Invert it at the caller.
4943         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
4944
4945 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
4946
4947         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
4948         errors when reading the `stop_pc'.
4949         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
4950         get_frame_pc.
4951
4952 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
4953
4954         * NEWS: Document gdb.Write stream keyword.
4955
4956 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4957
4958         Revert:
4959         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4960         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4961         (dwarf2_add_field): Fix new_field->accessibility for
4962         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4963
4964 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
4965
4966         PR python/12183
4967
4968         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
4969         other error classes.  Do not print stack trace.
4970
4971 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4972
4973         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
4974         (dwarf2_add_field): Fix new_field->accessibility for
4975         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
4976
4977 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
4978
4979         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
4980         encountering a load via a non-SP register.
4981
4982 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
4983
4984         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
4985         field in returned unwinder.
4986
4987 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4988
4989         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
4990
4991 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
4992
4993         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
4994         of xmalloc.
4995
4996 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
4997
4998         * frame.c (frame_unwind_register): Throw an error if unwinding the
4999         register failed.
5000         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
5001         an unwind stop reason.
5002         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
5003         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
5004         UNWIND_UNAVAILABLE>: New.
5005         * inline-frame.c (inline_frame_unwind): Install
5006         default_frame_unwind_stop_reason.
5007         * frame-unwind.c: Include "exceptions.h".
5008         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
5009         (default_frame_unwind_stop_reason): New.
5010         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
5011         (default_frame_unwind_stop_reason): Declare.
5012         (struct frame_unwind) <stop_reason>: New function pointer.
5013
5014         * dummy-frame.c: Install default_frame_unwind_stop_reason.
5015         * dwarf2-frame.c: Include exceptions.h.
5016         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
5017         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
5018         computing the CFA.  If such an error was thrown, set
5019         unavailable_retaddr.
5020         (dwarf2_frame_unwind_stop_reason): New.
5021         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
5022         unavailable.
5023         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
5024         (dwarf2_signal_frame_unwind): Ditto.
5025
5026         * amd64-tdep.c: Include "exceptions.h".
5027         (struct amd64_frame_cache): New field "base_p".
5028         (amd64_init_frame_cache): Clear it.
5029         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
5030         Avoid reading registers with functions that throw if the register
5031         is not necessary to compute the frame base.
5032         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5033         swallowing NOT_AVAILABLE_ERROR.
5034         (amd64_frame_unwind_stop_reason): New.
5035         (amd64_frame_this_id): Don't build a frame id if the frame base
5036         was unavailable.
5037         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
5038         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5039         base_p if the frame base was computable.
5040         (amd64_sigtramp_frame_unwind_stop_reason): New.
5041         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
5042         frame base was unavailable.
5043         (amd64_sigtramp_frame_unwind): Install
5044         amd64_sigtramp_frame_unwind_stop_reason.
5045         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5046         base_p if the frame base was computable.
5047         (amd64_epilogue_frame_unwind_stop_reason): New.
5048         (amd64_epilogue_frame_this_id): Don't build a frame id if the
5049         frame base was unavailable.
5050         (amd64_epilogue_frame_unwind): Install
5051         amd64_epilogue_frame_unwind_stop_reason.
5052         * i386-tdep.c: Include "exceptions.h".
5053         (struct i386_frame_cache): New field "base_p".
5054         (i386_init_frame_cache): Clear it.
5055         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
5056         Avoid reading registers with functions that throw if the register
5057         is not necessary to compute the frame base.
5058         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
5059         swallowing NOT_AVAILABLE_ERROR.
5060         (i386_frame_unwind_stop_reason): New.
5061         (i386_frame_this_id): Don't build a frame id if the frame base was
5062         unavailable.
5063         (i386_frame_prev_register): Handle unavailable SP.
5064         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
5065         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5066         base_p if the frame base was computable.
5067         (i386_epilogue_frame_unwind_stop_reason): New.
5068         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
5069         base was unavailable.
5070         (i386_epilogue_frame_unwind): Install
5071         i386_epilogue_frame_unwind_stop_reason.
5072         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
5073         base_p if the frame base was computable.
5074         (i386_sigtramp_frame_unwind_stop_reason): New.
5075         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
5076         base was unavailable.
5077         (i386_sigtramp_frame_unwind): Install
5078         i386_sigtramp_frame_unwind_stop_reason.
5079         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
5080         type's size, not the register's.
5081         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
5082
5083         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
5084         default_frame_unwind_stop_reason.
5085         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
5086         (alpha_heuristic_frame_unwind): Ditto.
5087         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
5088         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
5089         * avr-tdep.c (avr_frame_unwind): Ditto.
5090         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
5091         Ditto.
5092         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
5093         * frv-tdep.c (frv_frame_unwind): Ditto.
5094         * h8300-tdep.c (h8300_frame_unwind): Ditto.
5095         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
5096         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
5097         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
5098         (hppa_stub_frame_unwind): Ditto.
5099         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
5100         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
5101         (ia64_libunwind_frame_unwind)
5102         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
5103         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
5104         * lm32-tdep.c (lm32_frame_unwind): Ditto.
5105         * m32c-tdep.c (m32c_unwind): Ditto.
5106         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
5107         * m32r-tdep.c (m32r_frame_unwind): Ditto.
5108         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
5109         * m68k-tdep.c (m68k_frame_unwind): Ditto.
5110         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
5111         * m88k-tdep.c (m88k_frame_unwind): Ditto.
5112         * mep-tdep.c (mep_frame_unwind): Ditto.
5113         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
5114         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
5115         (mips_stub_frame_unwind): Ditto.
5116         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
5117         * moxie-tdep.c (moxie_frame_unwind): Ditto.
5118         * mt-tdep.c (mt_frame_unwind): Ditto.
5119         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
5120         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
5121         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
5122         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
5123         (s390_sigtramp_frame_unwind): Ditto.
5124         * score-tdep.c (score_prologue_unwind): Ditto.
5125         * sh-tdep.c (sh_frame_unwind): Ditto.
5126         * sh64-tdep.c (sh64_frame_unwind): Ditto.
5127         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
5128         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
5129         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
5130         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
5131         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
5132         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
5133         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
5134         (sparc64obsd_trapframe_unwind): Ditto.
5135         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
5136         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
5137         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
5138         * v850-tdep.c (v850_frame_unwind): Ditto.
5139         * vax-tdep.c (vax_frame_unwind): Ditto.
5140         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
5141         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
5142         * xtensa-tdep.c (xtensa_unwind): Ditto.
5143
5144 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5145
5146         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
5147         there's always a frame.  Use get_frame_pc_if_available instead of
5148         get_frame_pc, and if there's no PC available, don't look up a
5149         symtab.
5150
5151 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5152
5153         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
5154         unavailable PC.
5155
5156 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5157
5158         * tracepoint.c (set_traceframe_context): Handle unavailable PC
5159         gracefully.
5160
5161 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5162
5163         * frame.h (frame_unwind_caller_pc_if_available): Declare.
5164         * frame.c (frame_unwind_caller_pc_if_available): New.
5165         * stack.c (frame_info): Handle unavailable PC.
5166
5167 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5168
5169         * frame.c (frame_unwind_pc): Rename to ...
5170         (frame_unwind_pc_if_available): ... this.  New `pc' output
5171         parameter.  Change return type to int.  Gracefully handle
5172         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
5173         happened, or 1 otherwise.
5174         (frame_unwind_pc): Reimplement on top of
5175         frame_unwind_pc_if_available.
5176         (get_frame_func): Rename to ...
5177         (get_frame_func_if_available): New `pc' output parameter.  Change
5178         return type to int.  Gracefully handle the PC not being available.
5179         (get_frame_func): Reimplement on top of
5180         get_frame_func_if_available.
5181         (select_frame): Handle the PC being unavailable.
5182         (get_prev_frame): Handle the PC being unavailable.
5183         (get_frame_pc_if_available): New.
5184         (get_frame_address_in_block_if_available): New.
5185         (find_frame_sal): Handle the frame PC not being available.
5186         * frame.h (get_frame_pc_if_available): Declare.
5187         (get_frame_address_in_block_if_available): Declare.
5188         (get_frame_func_if_available): Declare.
5189         * stack.c (print_frame_info): Handle the PC being unavailable.
5190         (find_frame_funname): Ditto.
5191         (print_frame): Handle the PC being unavailable.
5192         (get_frame_language): Ditto.
5193         * blockframe.c (get_frame_block): Ditto.
5194         * macroscope.c (default_macro_scope): Ditto.
5195         * tui/tui-stack.c (tui_show_frame_info): Ditto.
5196
5197 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5198
5199         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
5200         NOT_AVAILABLE_ERROR when evaluating the location expression.
5201
5202 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5203
5204         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
5205         returning that the register piece is unavailable/optimized out.
5206         (write_pieced_value): Handle get_frame_register_bytes returning
5207         that the register piece is unavailable/optimized out when doing a
5208         read-modify write of a bitfield.
5209         * findvar.c (value_from_register): Handle get_frame_register_bytes
5210         returning that the register piece is unavailable/optimized out.
5211         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
5212         and `unavailablep'.  Throw error on bad debug info.  Use
5213         frame_register instead of frame_register_read, to fill in the new
5214         arguments.
5215         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
5216         and `unavailablep'.
5217         * valops.c: (value_assign): Adjust, and handle
5218         get_frame_register_bytes failing.
5219         * spu-tdep.c: Include exceptions.h.
5220         (spu_software_single_step): Adjust, and handle
5221         get_frame_register_bytes failing.
5222         (spu_get_longjmp_target): Ditto.
5223         * gdbarch.sh (register_to_value): Change to return int.  New
5224         parameters `optimizedp' and `unavailablep'.
5225         * gdbarch.h, gdbarch.c: Regenerate.
5226         * i386-tdep.c (i386_register_to_value): Adjust to new
5227         gdbarch_register_to_value interface.
5228         * i387-tdep.c (i387_register_to_value): Ditto.
5229         * i387-tdep.h (i387_register_to_value): Ditto.
5230         * alpha-tdep.c (alpha_register_to_value): Ditto.
5231         * ia64-tdep.c (ia64_register_to_value): Ditto.
5232         * m68k-tdep.c (m68k_register_to_value): Ditto.
5233         * mips-tdep.c (mips_register_to_value): Ditto.
5234         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
5235
5236 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5237
5238         * findvar.c (value_of_register): Mark the value as unavailable, if
5239         the register is unavailable.
5240         * frame.h (frame_register_unwind): New `unavailablep' parameter.
5241         (frame_register): New `unavailablep' parameter.
5242         (frame_register_read): Update comment.
5243         * frame.c (frame_register_unwind): New `unavailablep' parameter.
5244         Set it if the register is unavailable.  If the register is
5245         unavailable, clear the output buffer.
5246         (frame_register): New `unavailablep' parameter.  Pass it down.
5247         (frame_unwind_register): Adjust.
5248         (put_frame_register): Adjust.
5249         (frame_register_read): Adjust.  Also return false if the register
5250         is not available.
5251         (frame_register_unwind_location): Adjust.
5252         * sentinel-frame.c (sentinel_frame_prev_register): If the register
5253         is unavailable, mark the value accordingly.
5254         * stack.c (frame_info): Handle unavailable registers.
5255
5256 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5257
5258         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
5259         simplify, using regcache_cooked_read.
5260
5261 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
5262
5263         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
5264         (regcache_raw_read_unsigned, regcache_raw_read_signed)
5265         (regcache_raw_read_unsigned, regcache_raw_read_part)
5266         (regcache_cooked_read, regcache_cooked_read_signed)
5267         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
5268         (regcache_cooked_read_ftype): Change return to enum
5269         register_status.
5270         * regcache.c: Include exceptions.h
5271         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
5272         (do_cooked_read): Change return to enum register_status.  Always
5273         forward to regcache_cooked_read.
5274         (regcache_raw_read): Change return to enum register_status.  If
5275         the register is not REG_VALID, memset the buffer.  Return the
5276         register's status.
5277         (regcache_raw_read_signed): Handle non-REG_VALID registers and
5278         return the register's status.
5279         (regcache_raw_read_unsigned): Ditto.
5280         (regcache_cooked_read): Change return to enum register_status.
5281         Assert that with read-only regcaches, the register's status must
5282         be known.  If the regcache is read-only, and the register is not
5283         REG_VALID, memset the buffer.  Return the register's status.
5284         (regcache_cooked_read_signed): Change return to enum
5285         register_status.  Handle non-REG_VALID registers and return the
5286         register's status.
5287         (regcache_cooked_read_unsigned): Change return to enum
5288         register_status.  Handle non-REG_VALID registers and return the
5289         register's status.
5290         (regcache_xfer_part, regcache_raw_read_part)
5291         (regcache_cooked_read_part): Change return to enum
5292         register_status.  Return the register's status.
5293         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
5294         unavailable.
5295         (regcache_dump): Handle unavailable cooked registers.
5296         * frame.c (do_frame_register_read): Adjust interface to match
5297         regcache_cooked_read_ftype.
5298         * gdbarch.sh (pseudo_register_read): Change return to enum
5299         register_status.
5300         * gdbarch.h, gdbarch.c: Regenerate.
5301
5302         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
5303         register_status.
5304         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
5305         register_status.  If reading a raw register indicates the raw
5306         register is not valid, return the raw register's status,
5307         otherwise, return REG_VALID.
5308         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
5309         register_status.  Handle non-REG_VALID raw registers and return
5310         the register's status.
5311         * arm-tdep.c (arm_neon_quad_read)
5312         (arm_pseudo_read): Change return to enum register_status.  Handle
5313         non-REG_VALID raw registers and return the register's status.
5314         * avr-tdep.c (avr_pseudo_register_read): Ditto.
5315         * frv-tdep.c (frv_pseudo_register_read): Ditto.
5316         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
5317         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
5318         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
5319         register_status.
5320         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
5321         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
5322         (m32c_part_write, m32c_cat_read, m32c_cat_write)
5323         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
5324         (m32c_pseudo_register_read): Change return to enum
5325         register_status.  Adjust.
5326         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
5327         enum register_status.  Return the register's status.
5328         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
5329         register_status.  Return the register's status.
5330         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
5331         * mips-tdep.c (mips_pseudo_register_read): Ditto.
5332         * mt-tdep.c (mt_pseudo_register_read): Ditto.
5333         * rs6000-tdep.c (move_ev_register_func): New typedef.
5334         (e500_move_ev_register): Use it.  Change return to enum
5335         register_status.  Return the register's status.
5336         (do_regcache_raw_read): New function.
5337         (do_regcache_raw_write): New function.
5338         (e500_pseudo_register_read): Change return to enum
5339         register_status.  Return the register's status.  Use
5340         do_regcache_raw_read.
5341         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
5342         (dfp_pseudo_register_read): Change return to enum register_status.
5343         Return the register's status.
5344         (vsx_pseudo_register_read): Ditto.
5345         (efpr_pseudo_register_read): Ditto.
5346         (rs6000_pseudo_register_read): Ditto.
5347         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
5348         register_status.  Return the register's status.
5349         * sh64-tdep.c (pseudo_register_read_portions): New function.
5350         (sh64_pseudo_register_read): Change return to enum
5351         register_status.  Use pseudo_register_read_portions.  Return the
5352         register's status.
5353         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
5354         register_status.  Return the register's status.
5355         * sh-tdep.c (pseudo_register_read_portions): New function.
5356         (sh_pseudo_register_read): Change return to enum register_status.
5357         Use pseudo_register_read_portions.  Return the register's status.
5358         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
5359         enum register_status.  Return the register's status.
5360         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
5361         * spu-tdep.c (spu_pseudo_register_read_spu)
5362         (spu_pseudo_register_read): Ditto.
5363         * xtensa-tdep.c (xtensa_register_read_masked)
5364         (xtensa_pseudo_register_read): Ditto.
5365         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
5366
5367 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5368
5369         * python/py-value.c (valpy_getitem): Fix formatting of error function
5370         call.
5371
5372 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5373
5374         ARI fixes: Add missing internationalization markups throughout
5375         C source files.
5376         * darwin-nat-info.c: Ditto.
5377         * record.c: Ditto.
5378         * remote.c: Ditto.
5379         * mi/mi-main.c: Ditto.
5380
5381 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5382
5383         ARI fixes: Add missing internationalization markups throughout
5384         yacc files.
5385         * c-exp.y: Ditto.
5386         * cp-name-parser.y: Ditto.
5387         * f-exp.y: Ditto.
5388         * m2-exp.y: Ditto.
5389         * objc-exp.y: Ditto.
5390         * p-exp.y: Ditto.
5391
5392 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5393
5394         ARI fixes: Messages should have no trailing new lines.
5395         * darwin-nat.c (mach_check_error): Remove trailing new line from
5396         warning function call message.
5397         * record.c (bfdcore_read): Idem for error call.
5398
5399 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5400
5401         * common/signals.c (target_signal_from_host): Add _ markup to error
5402         function call message.
5403         (target_signal_to_host): Add _ markup and remove trailing new line
5404         from warning call message.
5405         (target_signal_from_command): Add _ markup to error function call
5406         message.
5407
5408 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
5409
5410         PR python/12149
5411
5412         * python/python.c (gdbpy_write): Accept a stream argument and
5413         operate to the appropriate stream.
5414         (gdbpy_flush): Likewise.
5415         (_initialize_python): Add stream constants.
5416         (finish_python_initialization): Add GdbOutputErrorFile class.
5417
5418 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
5419
5420         * MAINTAINERS: Add myself as a write-after-approval maintainer.
5421
5422 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
5423
5424         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
5425         to store_signed_integer.  Add debug message when relocating CALL
5426         instructions.  Fix formatting of debug message.
5427         * i386-tdep.c (i386_relocate_instruction): Ditto.
5428
5429 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
5430
5431         * target.h (struct target_ops): Remove to_lookup_symbol field.
5432         (target_lookup_symbol): Delete macro.
5433         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
5434         (update_current_target, setup_target_debug): Remove handling
5435         of to_lookup_symbol target_ops field.
5436         * ada-tasks.c (get_known_tasks_addr): Remove use of
5437         target_lookup_symbol.
5438         * coffread.c (coff_symtab_read): Likewise.
5439         * dbxread.c (read_dbx_symtab): Ditto.
5440
5441 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
5442
5443         PR gdb/12116:
5444         * configure.ac: Add getthrds declaration check.
5445         * configure, config.in: Regenerate.
5446         * aix-thread.c (getthrds): Declare only if not already declared
5447         in procinfo.h.  More declaration out of get_signaled_thread to
5448         global scope.
5449
5450 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
5451
5452         * python/py-symtab.c: Populate symtab_object_methods,
5453         sal_object_methods.
5454         (stpy_is_valid): New function.
5455         (salpy_is_valid): Ditto.
5456         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
5457         (sympy_is_valid): New function.
5458         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
5459         (objfpy_is_valid): New function.
5460         * python/py-inferior.c: Populate inferior_object_methods.
5461         (infpy_is_valid): New function.
5462         * python/py-infthread.c: Populate thread_object_methods.
5463         (thpy_is_valid): New function.
5464         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
5465         block_iterator_object_methods.  Populate.
5466         (blpy_is_valid): New function.
5467         (blpy_iter_is_valid): Ditto.
5468
5469 2011-03-16  Keith Seitz  <keiths@redhat.com>
5470
5471         * linespec.c (find_methods): Canonicalize NAME before looking
5472         up the symbol.
5473         (name_end): New function.
5474         (keep_name_info): New function.
5475         (decode_line_1): Use keep_name_info.
5476         (decode_compound): Likewise.
5477         * cli/cli-utils.h (remove_trailing_whitespace): New function.
5478         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
5479
5480         PR c++/12273
5481         * linespec.c (locate_first_half): Keep overload information, too.
5482         (decode_compound): Use a string to represent break characters
5483         to escape the loop.
5484         If P points to a break character, do not increment it.
5485         For C++ and Java, keep overload information and relevant keywords.
5486         If we cannot find a symbol, search the minimal symbols.
5487
5488         PR c++/11734
5489         * linespec.c (decode_compound): Rename SAVED_ARG to
5490         THE_REAL_SAVED_ARG.
5491         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
5492         single-quotes.
5493         Pass a valid block to lookup_symbol.
5494         (lookup_prefix_sym): Likewise.
5495         (find_method): Construct search name based on SYM_CLASS instead
5496         of SAVED_ARG.
5497         * psymtab.c (lookup_partial_symbol): Add language parameter.
5498         (lookup_symbol_aux_psymtabs): Likewise.
5499         Don't assume that the psymtab we found was the right one. Search
5500         for the desired symbol in the symtab to be certain.
5501         (psymtab_search_name): New function.
5502         (lookup_partial_symbol): Use psymtab_search_name.
5503         Add language parameter.
5504         (read_symtabs_for_function): Add language parameter and pass to
5505         lookup_partial_symbol.
5506         (find_symbol_file_from_partial): Likewise.
5507
5508 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5509
5510         PR gdb/12528
5511         * dwarf2read.c (noop_record_line): New function.
5512         (dwarf_decode_lines): Ignore line tables for GCd functions.
5513
5514 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
5515
5516         Fix ARI warnings about new lines at the end of messages, which
5517         are unneeded as there is a new line added at the end of the message
5518         automatically.
5519         * darwin-nat.c (darwin_stop_inferior): Ditto.
5520         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
5521         * dfp.c (decimal_to_number): Ditto.
5522         * exec.c (print_section_info): Ditto.
5523         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
5524         * osdata.c (get_osdata): Ditto.
5525         * record.c (bfdcore_write): Ditto.
5526         * remote-mips.c (mips_readchar): Ditto.
5527         * remote.c (read_ptid): Ditto.
5528         * ser-mingw.c (ser_windows_raw): Ditto.
5529         * tracepoint.c (add_local_symbols): Ditto.
5530         * windows-nat.c (fake_create_process): Ditto.
5531
5532 2011-03-16  Tom Tromey  <tromey@redhat.com>
5533
5534         * tracepoint.c (stop_tracing): Don't declare.
5535         * event-top.c (after_char_processing_hook): Add `(void)'.
5536
5537 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
5538
5539         * NEWS: Add Parameter sub-classing description.
5540
5541 2011-03-16  Kai Tietz  <ktietz@redhat.com>
5542
5543         * MAINTAINERS: Update my e-mail address.
5544
5545 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
5546
5547         * MAINTAINERS: Add myself for write after approval privileges.
5548
5549 2011-03-15  Michael Snyder  <msnyder@vmware.com>
5550
5551         * frame.c (find_frame_sal): Assert sym is not null.
5552
5553         * dbxread.c (process_one_symbol): Assert 'name' is not null.
5554
5555         * objc-lang.c (selectors_info): Check strchr for null result.
5556
5557         * stabsread.c (define_symbol): Guard against bad stabstring input.
5558
5559 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
5560
5561         Remove trailing spaces and tabulations from pascal language
5562         support sources.
5563         p-exp.y: Ditto.
5564         p-lang.c: Ditto.
5565         p-lang.h: Ditto.
5566         p-valprint.c: Ditto.
5567
5568 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5569
5570         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
5571         than LOW.  Comment it.
5572         (read_partial_die): Call complaint for inappropriate zero LOWPC or
5573         HIGHPC not strictly higher than LOWPC.
5574
5575 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
5576
5577         Fix formatting of function declarations returning a pointer in
5578         previous commit.
5579         * varobj.c (varobj_add_child): Ditto.
5580         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
5581         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
5582
5583 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
5584
5585         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
5586         for the "generic" vector ABI used with GCC 4.3 and later.
5587         (ppc64_sysv_abi_return_value): Likewise.
5588
5589 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
5590
5591         * infcall.c (call_function_by_hand): Function return value is
5592         always a non_lval, even when using struct_return.
5593
5594 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
5595
5596         * printcmd.c (ALL_DISPLAYS_SAFE): New.
5597         (map_display_numbers): New.
5598         (do_delete_display): New.
5599         (undisplay_command): Use map_display_numbers.
5600         (do_enable_disable_display): New.
5601         (enable_disable_display_command): New function.
5602         (enable_display): Delete.
5603         (enable_display_command): New.
5604         (disable_display_command): Reimplement.
5605         (_initialize_printcmd): Adjust "enable display" command to use
5606         `enable_display_command' as callback.
5607
5608 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
5609
5610         * NEWS: Add Python breakpoint 'stop' operation.
5611
5612 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
5613
5614         * NEWS: Delete duplicate entry. Fix typo.
5615
5616 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
5617
5618         Fix ARI warning about function names in first column.
5619         Put prototype declaration on same line as return type.
5620         * objc-exp.y: Ditto.
5621         * p-exp.y: Ditto.
5622         * python/py-stopevent.h: Ditto.
5623         For long function names, split parameters to
5624         allow function name on same line as return type.
5625         * solib-pa64.c: Ditto.
5626         * varobj.c: Ditto.
5627         * varobj.h: Ditto.
5628         For long function declaration, use single line.
5629         * hppa-tdep.h: Ditto.
5630         * inferior.h: Ditto.
5631
5632 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
5633
5634         * python/python.h: Declare gdbpy_should_stop and
5635         gdbpy_breakpoint_has_py_cond.
5636         * python/python.c: Add python.h to includes.  Remove python.h from
5637         HAVE_PYTHON definition
5638         (gdbpy_should_stop): New dummy function.
5639         (gdbpy_breakpoint_has_py_cond): New dummy function.
5640         * python/py-breakpoint.c (bppy_init): Rewrite to allow
5641         sub-classing capabilities.
5642         (gdbpy_should_stop): New function.
5643         (gdbpy_breakpoint_has_py_cond): New function.
5644         (local_setattro): New function.
5645         * breakpoint.c (condition_command): Add check for Python 'stop'
5646         operation.
5647         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
5648         operation function as part of stop/continue tests.
5649
5650 2011-03-14  Tom Tromey  <tromey@redhat.com>
5651
5652         PR gdb/12576:
5653         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
5654         (needs_frame_dwarf_call): Likewise.
5655
5656 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
5657
5658         Fix ARI warning about functions without parameters that do not
5659         use (void).
5660         * breakpoint.c (all_tracepoints): Replace () by (void).
5661         * f-exp.y (match_string_literal): Ditto.
5662         (yylex): Ditto.
5663         * m2-exp.y (yylex): Ditto.
5664         * mep-tdep.c (current_me_module): Ditto.
5665         (current_options): Ditto.
5666         (current_cop_data_bus_width): Ditto.
5667         (current_cr_names): Ditto.
5668         (current_cr_is_float): Ditto.
5669         (current_ccr_names): Ditto.
5670         * objc-exp.y (yylex): Ditto.
5671         * p-exp.y (yylex): Ditto.
5672         * remote.c (send_interrupt_sequence): Ditto.
5673         * tracepoint.c (current_trace_status): Ditto.
5674         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
5675         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
5676
5677 2011-03-11  Michael Snyder  <msnyder@vmware.com>
5678
5679         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
5680         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
5681         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
5682         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
5683         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
5684
5685         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
5686         (delete_async_event_handler): Ditto.
5687
5688         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
5689
5690         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
5691
5692         * top.c (set_verbose): Assert showcmd was found.
5693
5694 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
5695
5696         * xtensa-tdep.c (warning_once): Correct style issues.
5697
5698 2011-03-11  Yao Qi  <yao@codesourcery.com>
5699
5700         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
5701
5702 2011-03-11  Andreas Schwab  <schwab@redhat.com>
5703
5704         * common/aclocal.m4: Remove.
5705
5706 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
5707
5708         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
5709         (xtensa_write_register, xtensa_read_register): Likewise.
5710         (xtensa_hextochar): Removed.
5711         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
5712
5713 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
5714
5715         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
5716         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
5717         (xtensa_alloc_frame_cache): Add initialization for new fields.
5718         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
5719         (warning_once): New function.
5720         (xtensa_insn_kind): New item c0opc_and.
5721         (call0_classify_opcode): Add the case for AND instruction.
5722         (call0_track_op): Change arguments.  New local variable litbase.
5723         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
5724         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
5725         in the prologue.
5726         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
5727         (call0_analyze_prologue): Update the comments.  Change arguments.
5728         Add the variety of updates to handle extended prologues, which now can
5729         conduct dynamic stack adjustments.
5730         (call0_frame_cache): Likewise.
5731         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
5732         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
5733
5734 2011-03-10  Michael Snyder  <msnyder@vmware.com>
5735
5736         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
5737         (cmd_qtframe): Ditto.
5738         (cmd_qtbuffer): Ditto.
5739         (cmd_bigqtbuffer): Ditto.
5740
5741 2011-03-10  Tom Tromey  <tromey@redhat.com>
5742
5743         * tracepoint.c (trace_actions_command): Update.
5744         * thread.c (thread_apply_command): Update.
5745         * reverse.c (delete_bookmark_command): Update.
5746         (bookmarks_info): Update.
5747         * printcmd.c (undisplay_command): Update.
5748         * memattr.c (mem_enable_command): Update.
5749         (mem_disable_command): Update.
5750         (mem_delete_command): Update.
5751         * inferior.c (detach_inferior_command): Update.
5752         (kill_inferior_command): Update.
5753         (remove_inferior_command): Update.
5754         * cli/cli-utils.h (struct get_number_or_range_state): New.
5755         (init_number_or_range): Declare.
5756         (get_number_or_range): Update.
5757         * cli/cli-utils.c (init_number_or_range): New function.
5758         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
5759         static variables.
5760         (number_is_in_list): Update.
5761         * breakpoint.h (get_tracepoint_by_number): Update.
5762         * breakpoint.c (map_breakpoint_numbers): Update for change to
5763         get_number_or_range.
5764         (find_location_by_number): Use get_number, not
5765         get_number_or_range.
5766         (trace_pass_set_count): New function.
5767         (trace_pass_command): Update for change to get_number_or_range.
5768         Rework loop logic.
5769         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
5770         'state' parameter.
5771
5772 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
5773
5774         * python/py-param.c (add_setshow_generic): Add set/show callback
5775         parameters.  Register Python object context.
5776         (get_show_value): New function.
5777         (get_set_value): New function.
5778         (call_doc_function): New function.
5779         (get_doc_string): Move behind get_show_value/get_set_value.
5780
5781 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
5782
5783         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
5784
5785 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
5786
5787         * xtensa-tdep.c (xtensa_read_register): Add comment.
5788         (xtensa_write_register): Likewise.
5789         (xtensa_hextochar): Add comment and update to match coding conventions.
5790         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
5791         (execute_l32e, execute_s32e, execute_code): Update comments.
5792         (xtensa_exception_handler_t): Update to match coding conventions.
5793         (xtensa_insn_kind): Likewise.
5794
5795 2011-03-09  Michael Snyder  <msnyder@vmware.com>
5796
5797         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
5798
5799 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
5800
5801         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
5802
5803 2011-03-09  Tom Tromey  <tromey@redhat.com>
5804
5805         * thread.c (restore_selected_frame): Handle frame_level == -1.
5806         (make_cleanup_restore_current_thread): Use
5807         get_selected_frame_if_set.
5808         * frame.h (get_selected_frame_if_set): Declare.
5809         * frame.c (get_selected_frame_if_set): New function.
5810
5811 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
5812
5813         * cli/cli-cmds.c (shell_escape): Use lbasename.
5814         * coffread.c (coff_start_symtab): Constify parameter.
5815         (complete_symtab): Constify `name' parameter.
5816         (coff_symtab_read): Constify `filestring' local.
5817         (coff_getfilename): Constify return and `result' local.
5818         Use lbasename.
5819         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
5820         * linux-fork.c (info_checkpoints_command): Use lbasename.
5821         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
5822         * minsyms.c (lookup_minimal_symbol): Use lbasename.
5823         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
5824         * procfs.c (procfs_make_note_section): Use lbasename.
5825         * tui/tui-io.c (printable_part): Constity return and parameter.
5826         Use lbasename.
5827         (print_filename): Constify parameters, and local `s'.
5828         (tui_rl_display_match_list): Constify local `temp'.
5829
5830 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
5831
5832         Revert:
5833         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5834         Fix DWARF-3+ DW_AT_accessibility default assumption.
5835         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5836         cu->header.version >= 3.
5837
5838 2011-03-09  Yao Qi  <yao@codesourcery.com>
5839
5840         * common/Makefile.in: Remove.
5841         * common/configure: Remove.
5842         * common/configure.ac: Remove.
5843
5844 2011-03-09  Yao Qi  <yao@codesourcery.com>
5845
5846         Revert:
5847         2011-02-11  Yao Qi  <yao@codesourcery.com>
5848
5849         * common/Makefile.in: Add copyright header.
5850
5851         2011-02-11  Yao Qi  <yao@codesourcery.com>
5852
5853         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
5854         libcommon.a.
5855         * configure.ac: Add common to sub dir.
5856         * configure: Regenerate.
5857
5858 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
5859
5860         * xtensa-tdep.c (call0_ret): New function.
5861         (xtensa_skip_prologue): Speed up analysis.
5862
5863 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
5864
5865         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
5866         while executing MI command -data-list-changed-registers.
5867
5868 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
5869
5870         * xtensa-tdep.c (xtensa_read_register): New function.
5871         (xtensa_write_register): New function.
5872         (xtensa_find_register_by_name): New function.
5873         (xtensa_windowed_frame_cache): Update comments in type description.
5874         (xtensa_frame_cache): Likewise.
5875         (xtensa_window_interrupt_insn): New function.
5876         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
5877         (xtensa_insn_kind): Add new instructions.
5878         (rwx_special_register): New function.
5879         (call0_classify_opcode): Add new instructions to the analysis.
5880         (a0_saved, a7_saved, a11_saved): New variables.
5881         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
5882         (execute_l32e): New function.
5883         (execute_s32e): New function.
5884         (xtensa_exception_handler_t): New type.
5885         (execute_code): New function.
5886         (xtensa_window_interrupt_frame_cache): New function to conduct frame
5887         analysis for Xtensa Window Exception handlers.
5888
5889 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
5890
5891         * xtensa-tdep.c (TX_PS): New.
5892         (windowing_enabled): Update to count for Call0 ABI.
5893         (xtensa_hextochar): New.
5894         (xtensa_init_reggroups): Make algorithm generic.
5895         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
5896
5897 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
5898
5899         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
5900
5901 2011-03-08  Michael Snyder  <msnyder@vmware.com>
5902
5903         * i386-tdep.c (i386_follow_jump): Check return value of
5904         target_read_memory.
5905         (i386_analyze_struct_return): Ditto.
5906         (i386_skip_probe): Ditto.
5907         (i386_match_insn): Ditto.
5908         (i386_skip_noop): Ditto.
5909         (i386_analyze_frame_setup): Ditto.
5910         (i386_analyze_register_saves): Ditto.
5911         (i386_skip_prologue): Ditto.
5912         (i386_skip_main_prologue): Ditto.
5913
5914         * target.c (read_whatever_is_readable): Fix memory leak.
5915
5916         * i386-tdep.c (i386_process_record): Document fall through.
5917
5918 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
5919
5920         Fix DWARF-3+ DW_AT_accessibility default assumption.
5921         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
5922         cu->header.version >= 3.
5923
5924 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
5925
5926         * remote.c (remote_check_symbols): Skip if the target has no
5927         execution.
5928
5929 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
5930
5931         * target.c (read_whatever_is_readable): Reformat comment,
5932         with a minor typo fix. Minor reformatting of the code.
5933
5934 2011-03-08  Yao Qi  <yao@codesourcery.com>
5935
5936         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
5937         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
5938         Use cached result instead of calling displaced_in_arm_mode again.
5939         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
5940         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
5941         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
5942         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
5943         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
5944         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
5945         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
5946         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
5947         (cleanup_block_load_pc, copy_block_xfer): Likewise.
5948         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
5949         (arm_catch_kernel_helper_return): Likewise.
5950         * gdb/arm-tdep.h : Update function declarations.
5951
5952 2011-03-07  Michael Snyder  <msnyder@vmware.com>
5953
5954         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
5955
5956         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
5957
5958         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
5959
5960         * elfread.c (elf_symtab_read): Stop memory leak.
5961
5962         * main.c (captured_main): Fix memory leak.
5963
5964 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
5965
5966         * ada-lang.c (compare_names): Call is_name_suffix with string1
5967         instead of string2.
5968
5969 2011-03-07  Tom Tromey  <tromey@redhat.com>
5970
5971         * xcoffread.c (xcoff_sym_fns): Update.
5972         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
5973         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
5974         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
5975         (symbol_file_add_with_addrs_or_offsets): Likewise.
5976         (reread_symbols): Handle OBJF_PSYMTABS_READ.
5977         * somread.c (som_sym_fns): Update.
5978         * psymtab.h (require_partial_symbols): Declare.
5979         * psymtab.c (require_partial_symbols): New function.
5980         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
5981         (ALL_OBJFILE_PSYMTABS): Undef.
5982         (ALL_PSYMTABS): Move from psympriv.h.
5983         (lookup_partial_symtab, find_pc_sect_psymtab)
5984         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
5985         (find_last_source_symtab_from_partial)
5986         (forget_cached_source_info_partial)
5987         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
5988         (expand_partial_symbol_tables, read_psymtabs_with_filename)
5989         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
5990         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
5991         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
5992         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
5993         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
5994         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
5995         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
5996         psymtabs.
5997         * mipsread.c (ecoff_sym_fns): Update.
5998         * machoread.c (macho_sym_fns): Update.
5999         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
6000         (read_psyms): New function.
6001         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
6002         (elf_sym_fns_lazy_psyms): New global.
6003         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
6004         dwarf2_build_psymtabs.
6005         * dbxread.c (aout_sym_fns): Update.
6006         * coffread.c (coff_sym_fns): Update.
6007
6008 2011-03-07  Tom Tromey  <tromey@redhat.com>
6009
6010         * infrun.c (print_exited_reason): Include inferior id and pid in
6011         message.
6012
6013 2011-03-07  Tom Tromey  <tromey@redhat.com>
6014
6015         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
6016         parameter.
6017         (target_has_execution_1): Update.
6018         (target_has_execution_current): Declare.
6019         (target_has_execution): Call target_has_execution_current.
6020         (default_child_has_execution): Update.
6021         * target.c (default_child_has_execution): Add 'the_ptid'
6022         parameter.
6023         (target_has_execution_1): Likewise.
6024         (target_has_execution_current): New function.
6025         (add_target): Update.
6026         (init_dummy_target): Update.
6027         * remote-m32r-sdi.c (m32r_has_execution): New function.
6028         (init_m32r_ops): Use it.
6029         * record.c (record_core_has_execution): Now static.  Add
6030         'the_ptid' parameter.
6031         * inferior.c (have_live_inferiors): Don't save current thread.
6032         Use target_has_execution_1.
6033
6034 2011-03-07  Yao Qi  <yao@codesourcery.com>
6035
6036         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
6037
6038 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
6039
6040         * elfread.c (elf_symtab_read): Minor reformatting.
6041
6042 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
6043
6044         * objc-lang.c (selectors_info): Minor reformatting.
6045
6046 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
6047
6048         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
6049
6050 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
6051             Michael Snyder  <msnyder@vmware.com>
6052
6053         * ada-valprint.c (ada_val_print_array): Move the declaration of
6054         "byte_order" and "elttype" inside the block where these variables
6055         are actually used.  Remove some special handling for the case
6056         where "elttype" and "eltlen" are null.  Replace by a comment
6057         and a couple of assertion checks.
6058
6059 2011-03-05  Michael Snyder  <msnyder@vmware.com>
6060
6061         * source.c (add_path): Replace semicolon at end of block.
6062         * dwarf2expr.c (execute_stack_op): Ditto.
6063
6064 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
6065
6066         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
6067         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
6068         (bfin-*-*): Likewise.
6069
6070 2011-03-05  Michael Snyder  <msnyder@vmware.com>
6071
6072         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
6073         * mdebugread.c (parse_symbol): Ditto.
6074         * parse.c (parse_exp_in_context): Ditto.
6075         * source.c (add_path): Ditto.
6076         * utils.c (gnu_debuglink_crc32): Ditto.
6077         * varobj.c (variable_language): Ditto.
6078
6079         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
6080
6081 2011-03-04  Michael Snyder  <msnyder@vmware.com>
6082
6083         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
6084
6085         * symfile.c (simple_overlay_update): Check for null return value
6086         from lookup_minimal_symbol.
6087
6088         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
6089
6090 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6091
6092         * eval.c (parse_and_eval_address_1): Remove function.
6093         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
6094         instead of parse_and_eval_address_1.
6095         * value.h (parse_and_eval_address_1): Remove prototype.
6096
6097 2011-03-04  Michael Snyder  <msnyder@vmware.com>
6098
6099         * remote.c (putpkt_binary): Document that case stmt falls through.
6100
6101 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6102
6103         * breakpointc (print_it_typical): Move NULL check from here...
6104         (print_bp_stop_message): ... to here.
6105
6106 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
6107
6108         * breakpoint.c (enable_command): Use break instead of continue,
6109         and fill in a missing break.
6110         (disable_command): Ditto.
6111
6112 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
6113
6114         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
6115         (terminal_save_ours): Remove misleading comment.
6116         (inflow_inferior_data_cleanup): Free ttystate.
6117         (inflow_inferior_exit): Likewise.
6118         (copy_terminal_info): Copy ttystate.
6119
6120         * serial.c (serial_copy_tty_state): New function.
6121         * serial.h (serial_copy_tty_state): Add prototype.
6122         (struct serial_ops): Add copy_tty_state callback.
6123         * ser-base.c (ser_base_copy_tty_state): New function.
6124         * ser-base.h (ser_base_copy_tty_state): Add prototype.
6125         * ser-go32.c (dos_copy_tty_state): New function.
6126         (dos_ops): Install copy_tty_state callback.
6127         * ser-mingw.c (_initialize_ser_windows): Likewise.
6128         * ser-pipe.c (_initialize_ser_pipe): Likewise.
6129         * ser-unix.c (hardwire_copy_tty_state): New function.
6130         (_initialize_ser_hardwire): Install it.
6131
6132 2011-03-04  Michael Snyder  <msnyder@vmware.com>
6133
6134         * breakpoint.c (create_breakpoint): Add missing break statement.
6135
6136         Reverting this patch:
6137         * infcall.c (call_function_by_hand): Add break statements for lint.
6138
6139         Reverting this patch:
6140         * cli/cli-script.c (script_from_file): Add break for lint.
6141
6142 2011-03-04  Michael Snyder  <msnyder@vmware.com>
6143
6144         * solib.c (reload_shared_libraries_1): Close memory leak.
6145
6146 2011-03-03  Tom Tromey  <tromey@redhat.com>
6147
6148         PR gdb/12538:
6149         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
6150         DW_STRING is NULL.
6151
6152 2011-03-03  Michael Snyder  <msnyder@vmware.com>
6153
6154         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
6155         fields of struct 'st' to zero.
6156
6157         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
6158         sal.pspace before calling set_current_source_symtab_and_line.
6159
6160 2011-03-03  Yao Qi  <yao@codesourcery.com>
6161
6162         * Makefile.in (configure-common): Remove.  Let Makefile
6163         in dir common to rebuild itself.
6164         (common/Makefile): Likewise.
6165
6166 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
6167
6168         * utils.c (parse_escape): Add i18n markup in error message.
6169
6170 2011-03-03  Yao Qi  <yao@codesourcery.com>
6171
6172         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
6173         ARM_PC_REGNUM.
6174         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
6175         (displaced_write_reg, displaced_read_reg): Likewise.
6176         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
6177         (cleanup_block_load_pc, copy_block_xfer): Likewise.
6178         (cleanup_branch): Replace magic number 14 and 15 with
6179         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
6180
6181 2011-03-02  Michael Snyder  <msnyder@vmware.com>
6182
6183         * maint.c (maintenance_do_deprecate): No need to check for NULL.
6184
6185         * cli/cli-script.c (script_from_file): Add break for lint.
6186
6187         * mdebugread.c (parse_partial_symbols): Fix indent.
6188
6189         * target-descriptions.c (tdesc_gdb_type): No need to call
6190         xstrdup, callee saves a copy.
6191
6192         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
6193
6194         * infcall.c (call_function_by_hand): Add break statements for lint.
6195
6196         * utils.c (parse_escape): Escape the escape char.
6197
6198         * python/py-inferior.c (build_inferior_list): Error out if
6199         PyList_Append fails.
6200         (gdbpy_inferiors): Error out if build_inferior_list fails.
6201
6202         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
6203         a function call.
6204
6205         * record.c (record_restore): Move printf to before error return.
6206
6207 2011-03-02  Yao Qi  <yao@codesourcery.com>
6208
6209         * arm-tdep.h (struct displaced_step_closure): Add two new fields
6210         is_thumb and insn_size.
6211         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
6212         on both ARM and Thumb mode.
6213         (arm_process_displaced_insn): Set is_thumb and insn_size.
6214         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
6215         (arm_displaced_step_fixup): Likewise.
6216
6217 2011-03-01  Michael Snyder  <msnyder@vmware.com>
6218
6219         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
6220
6221         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
6222
6223         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
6224
6225         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
6226
6227         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
6228         with xmalloc.
6229
6230         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
6231         which shadows function parameter.
6232
6233         * tracepoint.c (create_tsv_from_upload): Superfluous call
6234         to xstrdup.  Callee already calls xstrdup.
6235
6236         * linespec.c (decode_line_1): Remove unnecessary null check.
6237
6238         * tracepoint.c (scope_info): Fix mem leak, remove underused
6239         variable.
6240
6241         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
6242         superfluous null check.
6243
6244         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
6245         (value_of_builtin_frame_fp_reg): Ditto.
6246
6247         * event-top.c (display_gdb_prompt): Remove superfluous null check.
6248
6249         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
6250         be null.
6251
6252         * linespec.c (decode_line_1): Check for null before dereference.
6253
6254         * reverse.c (record_restore): Move null-check to before pointer
6255         dereference.
6256
6257         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
6258
6259         * objc-lang.c (selectors_info): Add explanitory comment.
6260         (classes_info): Ditto.
6261
6262 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
6263
6264         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
6265         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
6266         versions of the trampoline.  Handle Thumb vs. ARM addresses.
6267         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
6268         (arm_linux_init_abi): Install it.
6269         * arm-tdep.c (arm_psr_thumb_bit): Make global.
6270         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
6271
6272 2011-02-28  Michael Snyder  <msnyder@vmware.com>
6273
6274         * ui-out.c (ui_out_field_core_addr): Make local char buffer
6275         a little bigger, to avoid possibility of an overflow.
6276
6277         * breakpoint.c (breakpoint_adjustment_warning): Make local char
6278         buffers a little bigger, to avoid possibility of an overflow.
6279
6280         * coffread.c (coff_getfilename): Add check to avoid overflow.
6281
6282         * objc-lang.c (selectors_info): Add a small safety margin to
6283         avoid overflow.
6284         (classes_info): Error out on too long REGEXP.
6285
6286         * infrun.c (handle_inferior_event): Remove unused function call.
6287
6288         * fork-child.c (fork_inferior): Remove ifdef'd code and
6289         unused variable.
6290
6291         * linux-thread-db.c (attach_thread): Discard unused value.
6292
6293         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
6294
6295         * remote.c (remote_get_noisy_reply): Discard unused value.
6296         (remote_vcont_resume): Ditto.
6297         (remote_stop_ns): Ditto.
6298
6299         * linespec.c (decode_objc): Delete unused variable.
6300
6301         * tui/tui-regs.c (tui_register_format): Delete unused variable.
6302
6303         * dwarf2read.c (add_partial_symbol): Discard unused values.
6304         (read_base_type): Delete unused variable.
6305
6306         * dbxread.c (read_dbx_symtab): Discard unused value.
6307
6308         * eval.c (evaluate_subexp_standard): Delete unused variable,
6309         and discard unused values.
6310
6311         * infcmd.c (_initialize_infcmd): Discard unused values.
6312
6313         * stabsread.c (rs6000_builtin_type): Missing break statement.
6314
6315         * dbxread.c (process_one_symbol): Discard unused value.
6316
6317         * coffread.c (coff_end_symtab): Delete unused variable.
6318
6319         * dwarf2read.c (dw2_get_file_names): Discard unused value.
6320         (dwarf2_add_typedef): Delete unused variable.
6321         (read_namespace): Ditto.
6322         (dwarf_decode_macros): Ditto.
6323
6324         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
6325
6326         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
6327
6328         * p-valprint.c (pascal_val_print): Discard unused value.
6329
6330         * utils.c (nquery): Call va_end before return;
6331         (yquery): Ditto.
6332         (query): Ditto.
6333
6334         * proc-service.c (ps_plog): Call va_end before return.
6335
6336 2011-02-28  Tom Tromey  <tromey@redhat.com>
6337
6338         * python/python.c (gdbpy_value_cst): New global.
6339         (_initialize_python): Initialize it.
6340         * python/python-internal.h (gdbpy_value_cst): Declare.
6341         * python/py-value.c (convert_value_from_python): Use
6342         gdbpy_value_cst.
6343
6344 2011-02-28  Michael Snyder  <msnyder@vmware.com>
6345
6346         * python/py-cmd.c (cmdpy_init): Fix memory leak.
6347
6348         * breakpoint.c (catch_syscall_completer): Free malloced list.
6349
6350         * jv-lang.c (java_primitive_type_from_name): Add missing break.
6351
6352         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
6353         (lval_func_check_synthetic_pointer): Ditto.
6354         (lval_func_free_closure): Fix use-after-free.
6355
6356 2011-02-28  Tom Tromey  <tromey@redhat.com>
6357
6358         * psymtab.c (expand_partial_symbol_tables): Use
6359         ALL_OBJFILE_PSYMTABS.
6360
6361 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6362
6363         * objc-lang.c (selectors_info): Error on too long REGEXP.
6364
6365 2011-02-28  Michael Snyder  <msnyder@vmware.com>
6366
6367         * python/py-param.c (set_parameter_value): Add missing
6368         break statement.
6369
6370         * linux-record.c (record_linux_system_call): Add missing
6371         break statement.
6372
6373 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
6374
6375         * breakpoint.c (print_one_breakpoint_location): Remove unused
6376         argument PRINT_ADDRESS_BITS.  Update callers.
6377         (print_one_breakpoint): Likewise.
6378
6379 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
6380
6381         * breakpoint.c (wrap_indent_at_field): New function.
6382         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
6383         Allocate ui_stream locally instead of using STB argument.
6384         (print_one_breakpoint_location): Update call.
6385         * ui-out.c (ui_out_query_field): New function.
6386         * ui-out.h (ui_out_query_field): Add prototype.
6387
6388 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
6389
6390         From Michael Snyder  <msnyder@vmware.com>
6391         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
6392
6393 2011-02-27  Michael Snyder  <msnyder@vmware.com>
6394
6395         * objc-lang.c (selectors_info): Prevent string overrun.
6396
6397         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6398         error in strncpy.
6399
6400         * symtab.c (rbreak_command): Move variable 'file_name' to
6401         outer scope.
6402
6403         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
6404         param with a local variable of the same name.
6405
6406 2011-02-27  Michael Snyder  <msnyder@vmware.com>
6407
6408         * value.c (value_from_history_ref): New function.
6409         * value.h (value_from_history_ref): Export.
6410         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
6411         to parse value history references.
6412         * cli/cli-utils.h (get_number_trailer): Update comment.
6413
6414 2011-02-27  Michael Snyder  <msnyder@vmware.com>
6415
6416         * inferior.c (detach_inferior_command): Use get_number_or_range.
6417         (kill_inferior_command): Ditto.
6418         (remove_inferior_command): Ditto.
6419         (initialize_inferiors): Make command names plural.
6420         Update help strings.
6421
6422 2011-02-27  Michael Snyder  <msnyder@vmware.com>
6423
6424         * darwin-nat-info.c: Fix comment typo.
6425         * dwarf2expr.h: Ditto.
6426         * fbsd-nat.c: Ditto.
6427         * fbsd-nat.h: Ditto.
6428         * frame-unwind.h: Ditto.
6429         * frame.h: Ditto.
6430         * hppa-hpux-tdep.c: Ditto.
6431         * i386-linux-nat.c: Ditto.
6432         * linux-nat.c: Ditto.
6433         * nbsd-nat.c: Ditto.
6434         * nbsd-nat.h: Ditto.
6435         * ppc-linux-tdep.c: Ditto.
6436         * serial.c: Ditto.
6437         * ui-file.h: Ditto.
6438         * tui/tui-winsource.c: Ditto.
6439
6440 2011-02-26  Michael Snyder  <msnyder@vmware.com>
6441
6442         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
6443
6444         * maint.c (maintenance_do_deprecate): Plug a memory leak.
6445
6446         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
6447         with a local variable of the same name.
6448
6449         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
6450         param with a local variable of the same name.
6451         (i387_supply_xsave): Ditto.
6452
6453         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
6454         that it does not shadow a function parameter.
6455
6456         * i386-nat.c (i386_length_and_rw_bits): Document that case
6457         statement is meant to fall through.
6458
6459         * expprint.c (dump_subexp_body_standard): Document that case
6460         statement is meant to fall through.
6461
6462         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
6463         dead if statement.  Condition can't be false.
6464
6465 2011-02-25  Michael Snyder  <msnyder@vmware.com>
6466
6467         * arm-tdep.c: Fix typos in comments.
6468         * bsd-uthread.c: Ditto.
6469         * completer.c: Ditto.
6470         * corelow.c: Ditto.
6471         * cp-namespace.c: Ditto.
6472         * cp-support.c: Ditto.
6473         * cris-tdep.c: Ditto.
6474         * dbxread.c: Ditto.
6475         * dwarf2read.c: Ditto.
6476         * frame.h: Ditto.
6477         * gdbtypes.h: Ditto.
6478         * inferior.h: Ditto.
6479         * mdebugread.c: Ditto.
6480         * mips-tdep.c: Ditto.
6481         * ppc-linux-nat.c: Ditto.
6482         * ppc-linux-tdep.c: Ditto.
6483         * printcmd.c: Ditto.
6484         * sol-thread.c: Ditto.
6485         * solib-frv.c: Ditto.
6486         * solist.h: Ditto.
6487         * sparc64-tdep.c: Ditto.
6488         * spu-tdep.c: Ditto.
6489         * stabsread.c: Ditto.
6490         * symfile.c: Ditto.
6491         * valops.c: Ditto.
6492         * varobj.c: Ditto.
6493         * vax-nat.c: Ditto.
6494         * python/py-block.c: Ditto.
6495         * python/py-symbol.c: Ditto.
6496         * python/py-symtab.c: Ditto.
6497         * python/py-value.c: Ditto.
6498         * tui/tui-win.c: Ditto.
6499
6500 2011-02-25  Michael Snyder  <msnyder@vmware.com>
6501
6502         * inferior.c (print_inferior): Accept a string instead of an int
6503         for requested_inferiors, and use get_number_or_range to parse it.
6504         (info_inferiors_command): Pass args string to print_inferior.
6505         (initialize_inferiors): Change help string for info inferiors.
6506         * inferior.h (print_inferior): Export prototype change.
6507
6508 2011-02-25  Tom Tromey  <tromey@redhat.com>
6509
6510         * common/ax.def (invalid2): Set to 0x31.
6511
6512 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
6513
6514         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
6515         L and plongest.
6516         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
6517         use L and plongest.
6518         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
6519
6520 2011-02-24  Michael Snyder  <msnyder@vmware.com>
6521
6522         * Makefile.in (clean): Make clean should remove generated files
6523         observer.h and observer.inc.
6524
6525 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
6526
6527         Revert the following patch (not approved yet):
6528         2011-02-21  Hui Zhu  <teawater@gmail.com>
6529         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6530         * ax-gdb.c (gen_printf_expr_callback): New function.
6531         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6532         * ax-general.c (ax_memcpy): New function.
6533         (ax_print): Handle "printf".
6534         (ax_reqs): Ditto.
6535         * ax.h (ax_memcpy): Forward declare.
6536         * common/ax.def (invalid2): Removed.
6537         (printf): New entry.
6538         * printcmd.c (printcmd.h): New include.
6539         (string_printf): New function.
6540         (ui_printf): Removed.
6541         (printf_command): Remove static.  Call string_printf.
6542         (eval_command): Call string_printf.
6543         * printcmd.h: New file.
6544         * tracepoint.c (validate_actionline,
6545         encode_actions_1): handle printf_command.
6546
6547 2011-02-23  Tom Tromey  <tromey@redhat.com>
6548
6549         * ax-general.c (ax_pick): Add missing newline.
6550
6551 2011-02-23  Michael Snyder  <msnyder@vmware.com>
6552
6553         * breakpoint.c (breakpoint_1): Change first argument from an int
6554         to a char pointer, so that the function now accepts a list of
6555         breakpoints rather than just one.  Use new function
6556         'number_is_in_list' to implement.
6557         (breakpoints_info): Pass char * instead of int to breakpoint_1.
6558         (watchpoints_info): Ditto.
6559         (tracepoints_info): Ditto.
6560         (maintenance_info_breakpoints): Ditto.
6561         (_initialize_breakpoint): Update help strings to reflect the fact
6562         that these functions can now take more than one argument.
6563         * cli/cli-utils.c (number_is_in_list): New function.
6564         * cli/cli-utils.h (number_is_in_list): Export.
6565
6566 2011-02-23  Michael Snyder  <msnyder@vmware.com>
6567
6568         * memattr.c (mem_enable_command): Use get_number_or_range.
6569         (mem_disable_command): Ditto.
6570         (mem_delete_command): Ditto.
6571         (_initialize_mem): Tweak usage message to reflect multiple
6572         arguments.
6573
6574 2011-02-22  Doug Evans  <dje@google.com>
6575
6576         Add gdb.lookup_global_symbol python function.
6577         * NEWS: Add entry.
6578         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
6579         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
6580         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
6581
6582 2011-02-22  Tom Tromey  <tromey@redhat.com>
6583
6584         * language.c (language_class_name_from_physname): Rename
6585         'curr_language' argument to 'lang'; use in body.
6586
6587 2011-02-22  Michael Snyder  <msnyder@vmware.com>
6588
6589         * cli/cli-utils.c (number_is_in_list): Check for zero return.
6590
6591 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
6592
6593         * frame-unwind.h: Fix comment to mention the this frame, not the
6594         next.
6595
6596 2011-02-22  Tom Tromey  <tromey@redhat.com>
6597
6598         * symfile.c (auto_solib_limit): Remove.
6599         * symfile.h (auto_solib_limit): Remove.
6600
6601 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
6602
6603         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
6604
6605 2011-02-21  Michael Snyder  <msnyder@vmware.com>
6606
6607         * gdbthread.h (print_thread_info): Change prototype.
6608         * thread.c (print_thread_info): Accept char* instead of int for
6609         requested_threads argument.  Use new function number_is_in_list
6610         to determine which threads to list.
6611         (info_threads_command): Pass char* to print_thread_info.
6612         * cli/cli-utils.c (number_is_in_list): New function.
6613         * cli/cli-utils.h (number_is_in_list): Export.
6614         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
6615         print_thread_info.
6616         (print_one_inferior): Ditto.
6617         (mi_cmd_list_thread_groups): Ditto.
6618
6619 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
6620
6621         * common/Makefile.in (CFLAGS): New.
6622         (COMPILE): Add $(CFLAGS).
6623
6624 2011-02-21  Tom Tromey  <tromey@redhat.com>
6625
6626         * breakpoint.c (catch_syscall_command_1): Fix typo.
6627
6628 2011-02-21  Tom Tromey  <tromey@redhat.com>
6629
6630         * reverse.c: Include cli-utils.h.
6631         * printcmd.c: Include cli-utils.h.
6632         (string_printf): Use skip_spaces.
6633         * cli/cli-utils.h: New file.
6634         * cli/cli-utils.c: New file.
6635         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
6636         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
6637         * breakpoint.h (get_number, get_number_or_range): Move to
6638         cli-utils.h.
6639         * breakpoint.c: Include cli-utils.h.
6640         (get_number_trailer, get_number, get_number_or_range)
6641         (ep_skip_leading_whitespace): Move to cli-utils.c.
6642         (create_breakpoint_sal, find_condition_and_thread)
6643         (decode_static_tracepoint_spec, watch_command_1)
6644         (watch_maybe_just_location, ep_parse_optional_if_clause)
6645         (catch_fork_command_1, catch_exec_command_1)
6646         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
6647         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
6648         (SUBDIR_CLI_SRCS): Add cli-utils.c.
6649         (HFILES_NO_SRCDIR): Add cli-utils.h.
6650         (cli-utils.o): New target.
6651
6652 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
6653
6654         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
6655         before calling discard_all_inferiors.
6656
6657 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
6658
6659         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
6660         (struct builtin_opencl_type): Remove.
6661         (builtin_opencl_type): Change return type to "struct type **".
6662         (lookup_opencl_vector_type): Update caller.
6663         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
6664         (build_opencl_types): Install plain array of "struct type *"
6665         instead of "struct builtin_opencl_type".
6666
6667 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6668             Ulrich Weigand  <uweigand@de.ibm.com>
6669
6670         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
6671         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
6672         (struct arm_linux_hwbp_cap): New type.
6673         (arm_linux_get_hwbp_cap): New function.
6674         (arm_linux_get_hw_breakpoint_count): Likewise.
6675         (arm_linux_get_hw_watchpoint_count): Likewise.
6676         (arm_linux_can_use_hw_breakpoint): Likewise.
6677         (arm_hwbp_type): New type.
6678         (arm_hwbp_control_t): Likewise.
6679         (struct arm_linux_hw_breakpoint): Likewise.
6680         (struct arm_linux_thread_points): Likewise.
6681         (arm_threads): New global variable.
6682         (arm_linux_find_breakpoints_by_tid): New function.
6683         (arm_hwbp_control_initialize): Likewise.
6684         (arm_hwbp_control_is_enabled): Likewise.
6685         (arm_hwbp_control_disable): Likewise.
6686         (arm_linux_hw_breakpoint_initialize): Likewise.
6687         (arm_linux_get_hwbp_type): Likewise.
6688         (arm_linux_hw_watchpoint_initialize): Likewise.
6689         (arm_linux_hw_breakpoint_equal): Likewise.
6690         (arm_linux_insert_hw_breakpoint1): Likewise.
6691         (arm_linux_remove_hw_breakpoint1): Likewise.
6692         (arm_linux_insert_hw_breakpoint): Likewise.
6693         (arm_linux_remove_hw_breakpoint): Likewise.
6694         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
6695         (arm_linux_insert_watchpoint): Likewise.
6696         (arm_linux_remove_watchpoint): Likewise.
6697         (arm_linux_stopped_data_address): Likewise.
6698         (arm_linux_stopped_by_watchpoint): Likewise.
6699         (arm_linux_watchpoint_addr_within_range): Likewise.
6700         (arm_linux_new_thread): Likewise.
6701         (arm_linux_thread_exit): Likewise.
6702         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
6703         related target callbacks.  Register arm_linux_new_thread and
6704         arm_linux_thread_exit.
6705         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
6706         * arm-tdep.c (arm_pc_is_thumb): Make global.
6707         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
6708
6709 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
6710
6711         * breakpoint.c (update_watchpoint): Do not attempt to recreate
6712         per-frame locations while within a function epilogue.
6713
6714 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6715
6716         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
6717         to GNU coding standards.
6718
6719 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6720
6721         Allow use of mingw native on Windows 95 OS.
6722         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
6723         (ser_windows_close): Only call CancelIo if function exists.
6724         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
6725         to check for existence of CancelIo function in kernel32 DLL.
6726
6727 2011-02-21  Hui Zhu  <teawater@gmail.com>
6728
6729         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
6730         * ax-gdb.c (gen_printf_expr_callback): New function.
6731         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
6732         * ax-general.c (ax_memcpy): New function.
6733         (ax_print): Handle "printf".
6734         (ax_reqs): Ditto.
6735         * ax.h (ax_memcpy): Forward declare.
6736         * common/ax.def (invalid2): Removed.
6737         (printf): New entry.
6738         * printcmd.c (printcmd.h): New include.
6739         (string_printf): New function.
6740         (ui_printf): Removed.
6741         (printf_command): Remove static.  Call string_printf.
6742         (eval_command): Call string_printf.
6743         * printcmd.h: New file.
6744         * tracepoint.c (validate_actionline,
6745         encode_actions_1): handle printf_command.
6746
6747 2011-02-19  Michael Snyder  <msnyder@vmware.com>
6748
6749         * reverse.c (delete_one_bookmark): Argument is now bookmark
6750         id rather than pointer to bookmark struct.
6751         (delete_bookmark_command): Use get_number_or_range.
6752         (goto_bookmark_command): Parse with get_number instead of strtoul.
6753         (bookmark_1): New function.  Print info for one bookmark.
6754         (bookmarks_info): Use get_number_or_range and bookmark_1.
6755
6756 2011-02-18  Michael Snyder  <msnyder@vmware.com>
6757
6758         * thread.c (info_threads_command): Re-implement using
6759         get_number_or_range.
6760         (thread_apply_command): Ditto.
6761
6762 2011-02-18  Tom Tromey  <tromey@redhat.com>
6763
6764         * common/ax.def: New file.
6765         * ax.h (enum agent_op): Use ax.def.
6766         * ax-general.c (aop_map): Use ax.def.
6767
6768 2011-02-18  Tom Tromey  <tromey@redhat.com>
6769
6770         * ax-general.c (aop_map): Add pick and rot.
6771         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
6772         <DW_OP_rot>: Implement.
6773         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
6774         (ax_pick): Declare.
6775         * ax-general.c (ax_pick): New function.
6776
6777 2011-02-18  Tom Tromey  <tromey@redhat.com>
6778
6779         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
6780
6781 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6782             Tom Tromey  <tromey@redhat.com>
6783
6784         * cp-support.c (make_symbol_overload_list_namespace): Do not call
6785         make_symbol_overload_list_block with NULL BLOCK.
6786         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
6787
6788 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
6789
6790         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
6791         * breakpoint.h (get_number_or_range): Declare.
6792         * printcmd.c (ALL_DISPLAYS): Declare.
6793         (delete_display): Reimplement taking a display pointer.
6794         (undisplay_command): Accept a range of displays to delete, using
6795         get_number_or_range.
6796
6797 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
6798
6799         * c-valprint.c (c_val_print): Add embedded_offset to address
6800         for arrays of unspecified length.
6801         * p-valprint.c (pascal_val_print): Likewise.
6802
6803 2011-02-18  Yao Qi  <yao@codesourcery.com>
6804
6805         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
6806         (arm_process_displaced_insn): .. here. Remove parameter INSN.
6807         (thumb_process_displaced_insn): New.
6808         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
6809         call to arm_process_displaced_insn.
6810         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
6811
6812 2011-02-17  Tom Tromey  <tromey@redhat.com>
6813
6814         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
6815         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
6816         compile_dwarf_to_ax.  No longer static.  Call
6817         dwarf2_compile_cfa_to_ax.
6818         (locexpr_tracepoint_var_ref): Update.
6819         (loclist_tracepoint_var_ref): Update.
6820         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
6821         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
6822         argument; add 'gdbarch' and 'pc'.
6823         (dwarf2_compile_cfa_to_ax): New function.
6824         (dwarf2_frame_cache): Update.
6825
6826 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
6827
6828         * ada-lang.c (ada_type_of_array): Fix the size of the array
6829         in the case of an unconstrained packed array.
6830
6831 2011-02-17  Yao Qi  <yao@codesourcery.com>
6832
6833         * common/Makefile.in: Add more targets for make.
6834
6835 2011-02-16  Tom Tromey  <tromey@redhat.com>
6836
6837         * dwarf2loc.c (unimplemented): Fix typo.
6838
6839 2011-02-16  Tom Tromey  <tromey@redhat.com>
6840
6841         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
6842         (compile_dwarf_to_ax) <default>: Use unimplemented.
6843         <DW_OP_deref>: Update.
6844         (disassemble_dwarf_expression): Update.
6845         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
6846         (decode_locdesc): Update.
6847         * dwarf2expr.h (dwarf_stack_op_name): Update.
6848
6849 2011-02-16  Tom Tromey  <tromey@redhat.com>
6850
6851         * ax.h (struct aop_map) <name>: Now const.
6852
6853 2011-02-16  Tom Tromey  <tromey@redhat.com>
6854
6855         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
6856         than axs_rvalue.
6857
6858 2011-02-16  Yao Qi  <yao@codesourcery.com>
6859
6860         * infrun.c (get_displaced_step_closure_by_addr): New.
6861         * inferior.h: Declare it.
6862         * arm-tdep.c: (arm_pc_is_thumb): Call
6863         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
6864         returns non-NULL.
6865
6866 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
6867             Jan Kratochvil  <jan.kratochvil@redhat.com>
6868
6869         gdb/
6870         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
6871
6872 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
6873             Jan Kratochvil  <jan.kratochvil@redhat.com>
6874
6875         * value.c (value_contents_copy_raw): Extend describing comment.
6876         Assert that the destination contents we're overwriting are wholly
6877         available.
6878         (value_contents_copy): Extend describing comment.
6879
6880 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
6881             Jan Kratochvil  <jan.kratochvil@redhat.com>
6882
6883         * value.c (value_available_contents_eq): Remove redundant local
6884         variables.  Fix available contents comparision.
6885         * value.h (value_available_contents_eq): Extend describing
6886         comment.
6887
6888 2011-02-16  Yao Qi  <yao@codesourcery.com>
6889
6890         * thread.c (info_threads_command): Add missing i18n markup and remove
6891         trailing newline.
6892
6893 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
6894
6895         * breakpoint.c (longjmp_names): New variable.
6896         (struct breakpoint_objfile_data): New type.
6897         (breakpoint_objfile_key): New variable.
6898         (msym_not_found): New variable.
6899         (msym_not_found_p): New predicate.
6900         (get_breakpoint_objfile_data): New function.
6901         (create_overlay_event_breakpoint): Check per-objfile cache for
6902         symbols first.
6903         (create_longjmp_master_breakpoint): Likewise.
6904         (create_std_terminate_master_breakpoint): Likewise.
6905         (create_exception_master_breakpoint): Likewise.
6906         (_initialize_breakpoint): Register per-objfile data key.
6907
6908 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
6909
6910         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
6911         parameter value.
6912         (create_longjmp_master_breakpoint): Loop over longjmp names.
6913         (create_std_terminate_master_breakpoint): Const-propagate parameter
6914         value.
6915         (update_breakpoints_after_exec): Adjust.
6916         (breakpoint_re_set): Adjust.
6917
6918 2011-02-15  Michael Snyder  <msnyder@vmware.com>
6919
6920         * thread.c (info_threads_command): Process arg as thread id,
6921         or list of thread ids.
6922         (thread_find_command): New command.
6923         (_initialize_thread): Document argument for info threads.
6924         Document 'thread find' command.
6925         * NEWS: Document new command "thread find".
6926
6927 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6928
6929         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
6930         * aclocal.m4: Regenerated with aclocal-1.11.1.
6931         * common/configure: Regenerate with autoconf-2.64.
6932
6933 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
6934
6935         * opencl-lang.c (build_opencl_types): Set the size of the built-in
6936         bool data type to a size of one byte.
6937
6938 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
6939             Jan Kratochvil  <jan.kratochvil@redhat.com>
6940
6941         * target.c (memory_xfer_live_readonly_partial): Document where to
6942         look for interface description.
6943
6944 2011-02-15  Yao Qi  <yao@codesourcery.com>
6945
6946         PR tdep/12352
6947         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
6948         order to store PC value on stack instead of text section.
6949
6950 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6951
6952         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
6953         the EFP register set size.
6954         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
6955         data from the VMX register.
6956         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
6957         and write data from/to the VMX register.
6958
6959 2011-02-14  Michael Snyder  <msnyder@vmware.com>
6960
6961         * command.h (enum command_class): New class 'no_set_class', for
6962         "show" commands without a corresponding "set" command.
6963         * value.c (_initialize_values): Use 'no_set_class' for "show values".
6964         * copying.c (_initialize_copying): Ditto for "show copying" and
6965         "show warranty".
6966         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
6967         "show version".
6968         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
6969         which there is no corresponding "set" command (eg. "show copying").
6970
6971 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
6972             Jan Kratochvil  <jan.kratochvil@redhat.com>
6973
6974         * exec.c (section_table_available_memory): Change `len' parameter
6975         type to ULONGEST.
6976         * exec.h (section_table_available_memory): Ditto.
6977         * value.h (read_value_memory): Rename the `offset' parameter to
6978         `embedded_offset'.
6979
6980 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
6981             Jan Kratochvil  <jan.kratochvil@redhat.com>
6982
6983         * memrange.c (compare_mem_ranges): Mention sort order in
6984         describing comment.
6985         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
6986         * tracepoint.c (traceframe_available_memory): Extend comment to
6987         mention what happens to RESULT when the target does not support
6988         the query.
6989
6990 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
6991             Jan Kratochvil  <jan.kratochvil@redhat.com>
6992
6993         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
6994         range.
6995
6996 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
6997
6998         * value.c (value_bits_valid, value_bits_synthetic_pointer):
6999         No longer handle NULL values.
7000
7001 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7002
7003         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
7004         * value.c: Include "exceptions.h".
7005         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
7006         generic error.
7007         * cp-abi.c: Include gdb_assert.h.
7008         (baseclass_offset): Add `embedded_offset' and `val' parameters.
7009         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
7010         errors.
7011         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
7012         parameters.  No longer returns -1 on error.
7013         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
7014         `val' parameters.
7015         * cp-valprint.c: Include exceptions.h.
7016         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
7017         the baseclass_offset.  Handle unavailable base classes.  Use
7018         val_print_invalid_address.
7019         * p-valprint.c: Include exceptions.h.
7020         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
7021         when fetching the baseclass_offset.  No longer expect
7022         baseclass_offset returning -1.  Handle unavailable base classes.
7023         Use val_print_invalid_address.
7024         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
7025         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
7026         `embedded_offset' and `val' parameters.  Adjust.
7027         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
7028         parameter, and change its type to gdb_byte pointer.  Add
7029         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
7030         baseclass_offset returning -1.
7031         (value_dynamic_cast): Use value_contents_for_printing rather than
7032         value_contents.  Adjust.
7033         (search_struct_field): No longer expect baseclass_offset returning
7034         -1.
7035         (search_struct_method): If reading memory from the target is
7036         necessary, wrap it in a new value to pass to baseclass_offset.  No
7037         longer expect baseclass_offset returning -1.
7038         (find_method_list): No longer expect baseclass_offset returning
7039         -1.  Use value_contents_for_printing rather than value_contents.
7040         * valprint.c (val_print_invalid_address): New function.
7041         * valprint.h (val_print_invalid_address): Declare.
7042         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
7043         and `val' parameters.  No longer expect baseclass_offset returning
7044         -1.  Adjust.
7045         * gnu-v2-abi.c: Include "exceptions.h".
7046         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
7047         parameters.  Handle unavailable memory.  Recurse through
7048         gnuv2_baseclass_offset directly, rather than through
7049         baseclass_offset.  No longer returns -1 on not found, instead
7050         throw an error.
7051         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
7052         `val' parameters.  Adjust.
7053
7054 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7055
7056         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
7057         almost but not quite adjacent.
7058
7059 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7060
7061         * value.h (value_entirely_available): Declare.
7062         * value.c (value_entirely_available): New function.
7063         * c-valprint.c (c_value_print): Don't try fetching the pointer's
7064         real type if the pointer is unavailable.
7065
7066 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7067
7068         * valops.c (value_repeat): Use read_value_memory instead of
7069         read_memory.
7070
7071 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7072
7073         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
7074         * value.c (value_contents_copy_raw, value_contents_copy): New
7075         functions.
7076         (value_primitive_field): Use value_contents_copy_raw instead of
7077         memcpy.
7078         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
7079         memcpy.
7080         (value_array, value_slice): Ditto.
7081         * valarith.c (value_subscripted_rvalue): Use
7082         value_contents_copy_raw instead of memcpy.
7083
7084 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7085
7086         <unavailable> references.
7087
7088         * valops.c (get_value_at): Use value_from_contents_and_address,
7089         avoiding read_memory.
7090
7091 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7092
7093         * c-valprint.c (c_val_print): Print a string with unavailable
7094         contents as an array.
7095
7096 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7097
7098         * value.h (unpack_bits_as_long): Delete declaration.
7099         (unpack_value_bits_as_long): Declare.
7100         (unpack_value_field_as_long): Declare.
7101         (value_field_bitfield): Declare.
7102         * value.c (unpack_bits_as_long): Rename to...
7103         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
7104         value parameters.  Return the extracted result in a new output
7105         parameter.  If the value contents are unavailable, return false,
7106         otherwise return true.
7107         (unpack_value_bits_as_long): New.
7108         (unpack_field_as_long): Rename to...
7109         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
7110         Add embedded_offset and value parameters.  Return the extracted
7111         result in a new output parameter. If the value contents are
7112         unavailable, return false, otherwise return true.
7113         (unpack_value_field_as_long): New.
7114         (unpack_field_as_long_1): New.
7115         (unpack_field_as_long): Reimplement as wrapper around
7116         unpack_value_field_as_long_1.
7117         (value_field_bitfield): New function.
7118         * valops.c (value_fetch_lazy): When fetching a bitfield, use
7119         unpack_value_bits_as_long.  Mark the value as unavailable, if it
7120         is unavailable.
7121         * jv-valprint.c (java_print_value_fields): Use
7122         value_field_bitfield.
7123         * p-valprint.c (pascal_object_print_value_fields): Use
7124         value_field_bitfield.
7125         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
7126
7127 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7128
7129         * value.c (get_internalvar_integer): Also return the int value of
7130         TYPE_CODE_INT INTERNALVAR_VALUE values.
7131         (set_internalvar): Don't special case TYPE_CODE_INT.
7132
7133 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7134
7135         * value.c (struct internalvar) <enum internalvar_kind>: Remove
7136         INTERNALVAR_POINTER.
7137         <pointer>: Delete.
7138         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
7139         (set_internalvar): Remove special TYPE_CODE_PTR handling.
7140         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
7141
7142 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7143
7144         * value.h (value_available_contents_eq): Declare.
7145         * value.c (find_first_range_overlap): New function.
7146         (value_available_contents_eq): New function.
7147         * valprint.c (val_print_array_elements): Use
7148         value_available_contents_eq.
7149         * ada-valprint.c (val_print_packed_array_elements): Use
7150         value_available_contents_eq.
7151         * jv-valprint.c (java_value_print): Use
7152         value_available_contents_eq.
7153
7154 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7155
7156         * target.c (target_read_live_memory): New function.
7157         (memory_xfer_live_readonly_partial): New.
7158         (memory_xfer_partial): If reading from a traceframe, fallback to
7159         reading unavailable read-only memory from read-only regions of
7160         live target memory.
7161         * tracepoint.c (disconnect_tracing): Adjust.
7162         (set_current_traceframe): New, factored out from
7163         set_traceframe_number.
7164         (set_traceframe_number): Reimplement to only change the traceframe
7165         number on the GDB side.
7166         (do_restore_current_traceframe_cleanup): Adjust.
7167         (make_cleanup_restore_traceframe_number): New.
7168         (cur_traceframe_number): New global.
7169         (tfile_open): Set cur_traceframe_number to no traceframe.
7170         (set_tfile_traceframe): New function.
7171         (tfile_trace_find): If looking up a traceframe using any method
7172         other than by number, make sure the current tfile traceframe
7173         matches gdb's current traceframe.  Update the current tfile
7174         traceframe if the lookup succeeded.
7175         (tfile_fetch_registers, tfile_xfer_partial)
7176         (tfile_get_trace_state_variable_value): Make sure the remote
7177         traceframe matches gdb's current traceframe.
7178         * remote.c (remote_traceframe_number): New global.
7179         (remote_open_1): Set it to -1.
7180         (set_remote_traceframe): New function.
7181         (remote_fetch_registers, remote_store_registers)
7182         (remote_xfer_memory, remote_xfer_partial)
7183         (remote_get_trace_state_variable_value): Make sure the remote
7184         traceframe matches gdb's current traceframe.
7185         (remote_trace_find): If looking up a traceframe using any method
7186         other than by number, make sure the current remote traceframe
7187         matches gdb's current traceframe.  Update the current remote
7188         traceframe if the lookup succeeded.
7189         * infrun.c (fetch_inferior_event): Adjust.
7190         * tracepoint.h (set_current_traceframe): Declare.
7191         (get_traceframe_number, set_traceframe_number): Add describing
7192         comments.
7193
7194 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7195
7196         Mark pieces of values as unavailable if the corresponding memory
7197         is unavailable.
7198
7199         * valops.c: Include tracepoint.h.
7200         (value_fetch_lazy): Use read_value_memory.
7201         (read_value_memory): New.
7202         * value.h (read_value_memory): Declare.
7203         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
7204         * exec.c (section_table_available_memory): New function.
7205         * exec.h (section_table_available_memory): Declare.
7206
7207 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7208
7209         * Makefile.in (SFILES): Add memrange.c.
7210         (HFILES_NO_SRCDIR): Add memrange.h.
7211         (COMMON_OBS): Add memrange.o.
7212         * memrange.c: New file.
7213         * memrange.h: New file.
7214         * tracepoint.c: Include memrange.h.
7215         (struct mem_range): Delete.
7216         (mem_range_s): Delete.
7217         (traceframe_available_memory): New function.
7218         * tracepoint.h (traceframe_available_memory): Declare.
7219
7220 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7221
7222         * target.h (struct traceframe_info): Forward declare.
7223         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
7224         (struct target_ops) <to_traceframe_info>: New field.
7225         (target_traceframe_info): New.
7226         * target.c (update_current_target): Inherit and default
7227         to_traceframe_info.
7228         * remote.c (PACKET_qXfer_traceframe_info): New.
7229         (remote_protocol_features): Register qXfer:traceframe-info:read.
7230         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
7231         (remote_traceframe_info): New.
7232         (init_remote_ops): Install it.
7233         (_initialize_remote): Install "set/show remote traceframe-info"
7234         commands.
7235         * tracepoint.h (parse_traceframe_info): Declare.
7236         * tracepoint.c (struct mem_range): New.
7237         (mem_range_s): New typedef.
7238         (struct traceframe_info): New.
7239         (traceframe_info): New global.
7240         (free_traceframe_info): New function.
7241         (clear_traceframe_info): New function.
7242         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
7243         info.
7244         (build_traceframe_info): New function.
7245         (tfile_traceframe_info): New function.
7246         (init_tfile_ops): Install tfile_traceframe_info.
7247         (traceframe_info_start_memory, free_result): New functions.
7248         (memory_attributes, traceframe_info_elements): New globals.
7249         (parse_traceframe_info, get_traceframe_info): New functions.
7250         * features/traceframe-info.dtd: New file.
7251         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
7252
7253 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
7254
7255         Base support for <unavailable> value contents.
7256
7257         * value.h (value_bytes_available): Declare.
7258         (mark_value_bytes_unavailable): Declare.
7259         * value.c (struct range): New struct.
7260         (range_s): New typedef.
7261         (ranges_overlap): New function.
7262         (range_lessthan): New function.
7263         (ranges_contain_p): New function.
7264         (struct value) <unavailable>: New field.
7265         (value_bytes_available): New function.
7266         (mark_value_bytes_unavailable): New function.
7267         (require_not_optimized_out): Constify parameter.
7268         (require_available): New function.
7269         (value_contents_all, value_contents): Require all bytes be
7270         available.
7271         (value_free): Free `unavailable'.
7272         (value_copy): Copy `unavailable'.
7273         * valprint.h (val_print_unavailable): Declare.
7274         * valprint.c (valprint_check_validity): Rename `offset' parameter
7275         to `embedded_offset'.  If printing a scalar, check whether the
7276         value chunk is available.
7277         (val_print_unavailable): New.
7278         (val_print_scalar_formatted): Check whether the value is
7279         available.
7280         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
7281         pretty-printing unavailable values.
7282
7283 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7284
7285         Fix const/volatile qualifiers of C++ types, PR c++/12328.
7286         * c-typeprint.c (c_type_print_args): Update the function comment.  New
7287         variable param_type, initialize it.  Remove const/volatile qualifiers
7288         for language_cplus and !show_artificial.  Use param_type.
7289
7290 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
7291
7292         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
7293         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
7294         * symtab.h (struct symtab) <next>: Comment extension.
7295
7296 2011-02-12  Yao Qi  <yao@codesourcery.com>
7297
7298         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
7299
7300 2011-02-11  Yao Qi  <yao@codesourcery.com>
7301
7302         * common/Makefile.in: Add copyright header.
7303
7304 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
7305
7306         * infrun.c (proceed): Move switching out and in of tfind mode from
7307         here ...
7308         (fetch_inferior_event): ... to here.
7309
7310 2011-02-11  Yao Qi  <yao@codesourcery.com>
7311
7312         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
7313         libcommon.a.
7314         * configure.ac: Add common to sub dir.
7315         * configure: Regenerate.
7316
7317 2011-02-11  Yao Qi  <yao@codesourcery.com>
7318
7319         Build libcommon.a.
7320
7321         * common/Makefile.in: New.
7322         * common/configure.ac: New.
7323         * common/aclocal.m4: New.
7324         * common/configure: Generate.
7325
7326 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
7327
7328         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
7329         side of the parenthesis.
7330
7331         Merge from GCC:
7332         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
7333         * vec.h (VEC_block_remove): Fix comment.
7334
7335 2011-02-08  Michael Snyder  <msnyder@vmware.com>
7336
7337         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
7338
7339 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7340
7341         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
7342         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
7343         psubd and paddd.
7344
7345 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
7346
7347         PR 12361.
7348         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
7349         phsubsw.
7350         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
7351         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
7352
7353 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
7354
7355         * dwarf2read.c (read_subroutine_type): Set special calling
7356         convention flag for functions compiled by IBM XL C for OpenCL.
7357         * ppc-sysv-tdep.c: Include "dwarf2.h"
7358         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
7359         calling convention.
7360         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
7361         IBM OpenCL vector types calling convention.
7362         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
7363         (ppc_sysv_abi_broken_return_value): Likewise.
7364         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
7365         types calling convention.
7366         (ppc64_sysv_abi_return_value): Likewise.
7367         * spu-tdep.c: Include "dwarf2.h"
7368         (spu_return_value): Implement IBM OpenCL vector types calling
7369         convention.
7370
7371 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
7372
7373         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
7374         correct ABI for AltiVec vector arguments.
7375
7376 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
7377
7378         * valprint.c (val_print): Extend comment.
7379         * ada-valprint.c (ada_valprint): Rewrite comment deferring
7380         interface explanation to val_print.
7381         (ada_val_print_array): Adjust comment to current interface.
7382         (print_field_values): Adjust comment to current interface.
7383         * c-valprint.c (c_val_print): Rewrite comment deferring interface
7384         explanation to val_print.
7385         * f-valprint.c (f_val_print): Ditto.
7386         * jv-valprint.c (java_val_print): Ditto.
7387         * m2-valprint.c (m2_val_print): Ditto.
7388         * p-valprint.c (pascal_val_print): Ditto.
7389
7390 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7391
7392         * breakpoint.c (parse_breakpoint_sals): Fix description.
7393
7394 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
7395             Oguz Kayral <oguzkayral@gmail.com>
7396
7397         * python/py-inferior.c (python_on_normal_stop): New function.
7398         (python_on_resume): New function.
7399         (python_inferior_exit): New function.
7400         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
7401         inferior_exit observers.
7402         * python/py-evtregistry.c: New file.
7403         * python/py-threadevent.c : New file.
7404         * python/py-event.c: New file.
7405         * python/py-evts.c: New file.
7406         * python/py-continueevent.c: New file.
7407         * python/py-bpevent.c: New file.
7408         * python/py-signalevent.c: New file.
7409         * python/py-exetiedevent.c: New file.
7410         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
7411         Move struct breakpoint_object from here...
7412         * python/python-internal.h: ... to here.
7413         * python/py-event.h: New file.
7414         * python/py-events.h: New file.
7415         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
7416         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
7417         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
7418         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
7419         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
7420         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
7421         Add build rules for all the above.
7422
7423 2011-02-04  Tom Tromey  <tromey@redhat.com>
7424
7425         * dwarf2read.c (dwarf2_section_empty_p): New function.
7426         (dwarf2_read_section): Use dwarf2_section_empty_p.
7427         (dwarf2_section_size): New function.
7428         (dwarf2_get_section_info): Unconditionally read section.
7429         (dwarf2_read_index): Use dwarf2_section_empty_p.
7430         (partial_read_comp_unit_head): Use dwarf2_section_size.
7431         (dwarf2_symbol_mark_computed): Likewise.
7432
7433 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7434
7435         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
7436
7437 2011-02-04 David Daney <ddaney@caviumnetworks.com>
7438
7439         * mips-linux-tdep.c: Include xml-syscall.h.
7440         (mips_linux_get_syscall_number): New function.
7441         (mips_linux_init_abi): Add calls to
7442         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
7443         * data-directory/Makefile.in (SYSCALLS_FILES): Add
7444         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
7445         * syscalls/mips-n32-linux.xml: New file.
7446         * syscalls/mips-n64-linux.xml: New file.
7447         * syscalls/mips-o32-linux.xml: New file.
7448
7449 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
7450
7451         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
7452         Complain about inverted range entries.
7453         (dwarf2_record_block_ranges): Likewise.
7454
7455 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7456
7457         Fix some typos.
7458         * breakpoint.c (update_watchpoint): Fix name of the
7459         update_global_location_list function.
7460         (print_one_breakpoint): Fix typo.
7461         (_initialize_breakpoint): Remove extra space in hbreak help
7462         string.
7463         * breakpoint.h (struct bp_location) <length>: Fix field
7464         description.
7465
7466 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
7467
7468         * regcache.c (registers_changed_ptid): Don't explictly always
7469         clear `current_regcache'.  Only clear current_thread_ptid and
7470         current_thread_arch when PTID matches.  Only reinit the frame
7471         cache if PTID matches the current inferior_ptid.  Move alloca(0)
7472         call to ...
7473         (registers_changed): ... here.
7474
7475 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
7476
7477         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
7478         starts with __stack_chk_guard as stack guard symbol.
7479
7480 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
7481
7482         * disasm.c (compare_lines): Handle the end of sequence markers
7483         within the line table to better support disassembling over
7484         compilation unit boundaries.
7485
7486 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
7487
7488         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
7489         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
7490         implementation even if no symbols are available.
7491         (thumb_analyze_prologue): Update call to skip_prologue_function.
7492         (arm_analyze_prologue): Likewise.
7493
7494 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
7495
7496         * arm-tdep.c: Include "observer.h".
7497         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
7498         (arm_exidx_data_key): New static variable.
7499         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
7500         (struct arm_exidx_data): Likewise.
7501         (arm_exidx_data_free): New function.
7502         (arm_compare_exidx_entries): Likewise.
7503         (arm_obj_section_from_vma): Likewise.
7504         (arm_exidx_new_objfile): Likewise.
7505         (arm_find_exidx_entry): Likewise.
7506         (arm_exidx_fill_cache): Likewise.
7507         (arm_exidx_unwind_sniffer): Likewise.
7508         (arm_exidx_unwind): New global variable.
7509         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
7510         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
7511         observer.  Register arm_exidx_data_key as objfile data.
7512
7513 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
7514
7515         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
7516         due to accessing uninitialized variable.  Fix indentation.
7517
7518 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
7519
7520         * c-valprint.c (c_value_print): When doing virtual base pointer
7521         adjustment, create a new value with adjusted contents rather than
7522         changing the contents of the value being printed (and getting it
7523         wrong).
7524
7525 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
7526
7527         * xml-support.c (xml_find_attribute): New.
7528         (xinclude_start_include): Use it.
7529         * xml-support.h (xml_find_attribute): Declare.
7530         * memory-map.c (memory_map_start_memory)
7531         (memory_map_start_property): Use xml_find_attribute.
7532         * osdata.c (osdata_start_osdata, osdata_start_column): Use
7533         xml_find_attribute.
7534         * remote.c (start_thread): Use xml_find_attribute.
7535         * solib-target.c (library_list_start_segment)
7536         (library_list_start_section, library_list_start_library)
7537         (library_list_start_list): Use xml_find_attribute.
7538         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
7539         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
7540         (tdesc_start_field): Use xml_find_attribute.
7541
7542 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
7543
7544         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
7545         (BUILD_OCL_VTYPES): Update.
7546
7547 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
7548
7549         * configure.ac: Work around non-GNU sed limitation when computing
7550         python version number.
7551         * configure: Regenerate.
7552
7553 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7554
7555         Fix debug printing of TYPE_INSTANCE.
7556         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
7557         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
7558
7559 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
7560
7561         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
7562         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
7563         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
7564         * ada-operator.inc: Rename the file to ...
7565         * ada-operator.def: ... here, wrap all the entries by macro OP.
7566         * expprint.c (op_name_standard): Remove all the entries.  Include
7567         "std-operator.def" instead.
7568         * expression.h (enum exp_opcode): Include "std-operator.def" and
7569         "ada-operator.def".  Move all the entries ...
7570         * std-operator.def: ... here, wrap all the entries by macro OP.
7571
7572 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
7573
7574         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
7575         * breakpoint.c (remove_jit_event_breakpoints): New function.
7576         * jit.c (jit_descriptor_addr): Delete.
7577         (registering_code): Delete.
7578         (clear_int): Delete.
7579         (jit_inferior_data): New variable.
7580         (struct jit_inferior_data): New type.
7581         (get_jit_inferior_data): New function.
7582         (jit_inferior_data_cleanup): New function.
7583         (jit_read_descriptor): Adjust.
7584         (jit_register_code): Adjust.
7585         (jit_breakpoint_re_set_internal): New function; move code here ...
7586         (jit_inferior_init): ... from here.
7587         (jit_breakpoint_re_set): Adjust.
7588         (jit_reset_inferior_data_and_breakpoints): New function.
7589         (jit_inferior_created_observer): Adjust.
7590         (jit_inferior_exit_hook): Adjust.
7591         (jit_executable_changed_observer): New function.
7592         (jit_event_handler): Adjust.
7593         (_initialize_jit): Adjust.
7594
7595 2011-01-31  Michael Snyder  <msnyder@vmware.com>
7596
7597         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
7598         line.
7599
7600 2011-01-31  Tom Tromey  <tromey@redhat.com>
7601
7602         PR python/12216:
7603         * python/python.c (execute_gdb_command): Call
7604         prevent_dont_repeat.
7605         * top.c (suppress_dont_repeat): New global.
7606         (dont_repeat): Use it.
7607         (prevent_dont_repeat): New function.
7608         * command.h (prevent_dont_repeat): Declare.
7609
7610 2011-01-31  Tom Tromey  <tromey@redhat.com>
7611
7612         * infcmd.c (finish_backward): Use breakpoint_set_silent.
7613         * python/py-breakpoint.c (bppy_set_silent): Use
7614         breakpoint_set_silent.
7615         (bppy_set_thread): Use breakpoint_set_thread.
7616         (bppy_set_task): Use breakpoint_set_task.
7617         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
7618         (breakpoint_set_task): Declare.
7619         (make_breakpoint_silent): Remove.
7620         * breakpoint.c (breakpoint_set_silent): New function.
7621         (breakpoint_set_thread): Likewise.
7622         (breakpoint_set_task): Likewise.
7623         (make_breakpoint_silent): Remove.
7624
7625 2011-01-31  Tom Tromey  <tromey@redhat.com>
7626
7627         * breakpoint.h (user_breakpoint_p): Declare.
7628         * breakpoint.c (user_breakpoint_p): New function.
7629         (breakpoint_1): Use it.
7630         (save_breakpoints): Likewise.
7631
7632 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
7633
7634         * configure.ac: Add handling of Python distribution on Windows.
7635         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
7636         sysconfig variables are not defined, then do not use them.
7637         On Windows, if LIBPL is not defined, then use prefix + '/libs'
7638         instead.  On Windows, return all paths using forward-slashes
7639         rather than backslashes.
7640
7641 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
7642
7643         * configure.ac: Remove fallback behavior for building
7644         against Python.  Remove tweaking of Python include path.
7645         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
7646         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
7647         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
7648         Always restore CPPFLAGS and LIBS after linking test.
7649         * configure: Regenerated.
7650         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
7651         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
7652         * python/python-internal.h: Adjust includes of Python .h files.
7653
7654 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
7655
7656         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
7657         in error message.
7658
7659 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
7660
7661         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
7662         value test.
7663
7664 2011-01-31  Yao Qi  <yao@codesourcery.com>
7665
7666         * arm-linux-nat.c: Update calls to regcache_register_status
7667         instead of regcache_valid_p.
7668         * aix-thread.c: Likewise.
7669         * i386gnu-nat.c: Likewise.
7670
7671 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
7672
7673         Fix crash.
7674         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
7675         touching TYPE_FIELD_ARTIFICIAL.
7676
7677 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
7678
7679         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
7680         Committers.
7681
7682 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
7683
7684         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
7685         selected, don't try iterating over the traceframe's blocks.
7686         (tfile_has_stack): If there's no traceframe selected, then there's
7687         no stack.
7688         (tfile_has_registers): If there's no traceframe selected, then
7689         there's no registers.
7690
7691 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
7692
7693         * target.c (memory_xfer_partial): No need to restore shadows if we
7694         haven't read anything.
7695
7696 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
7697
7698         * mips-tdep.c (mips_print_register): Use get_frame_register_value
7699         and val_print_scalar_formatted.
7700
7701 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
7702
7703         * tracepoint.c (tfile_read): New.
7704         (tfile_open): Use it.
7705         (tfile_get_traceframe_address): Use it.
7706         (tfile_trace_find): Use it.
7707         (walk_blocks_callback_func): New typedef.
7708         (match_blocktype): New function.
7709         (traceframe_walk_blocks): New function.
7710         (traceframe_find_block_type): New function.
7711         (tfile_fetch_registers, tfile_xfer_partial)
7712         (tfile_get_trace_state_variable_value): Use
7713         traceframe_find_block_type and tfile_read.
7714
7715 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
7716
7717         * remote-mips.c: Add internationalization mark ups.  Remove
7718         trailing \n from already marked up strings.
7719
7720 2011-01-26  Tom Tromey  <tromey@redhat.com>
7721
7722         * python/py-prettyprint.c (print_string_repr): Clear
7723         'addressprint' option when calling val_print_string.
7724         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
7725         option when calling val_print_string.
7726
7727 2011-01-26  Tom Tromey  <tromey@redhat.com>
7728
7729         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
7730         GDB_PY_LL_ARG.
7731         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
7732         macros.
7733         (gdb_py_longest, gdb_py_ulongest): New typedefs.
7734         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
7735         (gdb_py_long_as_ulongest): New defines.
7736         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
7737         (gdb_py_int_as_long): Declare.
7738         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
7739         GDB_PY_LL_ARG, gdb_py_object_from_longest.
7740         (valpy_long): Add comment.
7741         * python/py-utils.c (get_addr_from_python): Use
7742         gdb_py_long_as_ulongest.  Handle overflow properly.
7743         (gdb_py_object_from_longest): New function.
7744         (gdb_py_object_from_ulongest): Likewise.
7745         (gdb_py_int_as_long): Likewise.
7746         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
7747         * python/py-symtab.c (salpy_get_pc): Use
7748         gdb_py_long_from_ulongest.
7749         (salpy_get_line): Use PyInt_FromLong.
7750         * python/py-param.c (set_parameter_value): Use
7751         gdb_py_int_as_long.
7752         * python/py-lazy-string.c (stpy_get_address): Use
7753         gdb_py_long_from_ulongest.
7754         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
7755         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
7756         * python/py-breakpoint.c (bppy_set_thread): Use
7757         gdb_py_int_as_long.
7758         (bppy_set_task): Likewise.
7759         (bppy_set_ignore_count): Likewise.
7760         (bppy_set_hit_count): Likewise.
7761         * python/py-block.c (blpy_get_start): Use
7762         gdb_py_object_from_ulongest.
7763         (blpy_get_end): Likewise.
7764         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
7765
7766 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
7767
7768         PR/symtab 11766:
7769         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
7770         * gdb/solib.c (solib_read_symbols): Check for addr_low in
7771         equality test for objfile, initialize addr_low if needed.
7772
7773 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7774
7775         * tui/tui-regs.c (tui_register_format): Remove dead code.
7776
7777 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7778
7779         * printcmd.c (print_formatted): Use val_print_scalar_formatted
7780         instead of print_scalar_formatted.
7781         (print_scalar_formatted): Don't handle 's' format strings here,
7782         and add an assertion that we never see such format here.
7783         * valprint.h (val_print_scalar_formatted): Declare.
7784         * valprint.c (val_print_scalar_formatted): New.
7785         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
7786         instead of print_scalar_formatted.
7787         * jv-valprint.c (java_val_print): Ditto.
7788         * p-valprint.c (pascal_val_print): Ditto.
7789         * ada-valprint.c (ada_val_print_1): Ditto.
7790         * f-valprint.c (f_val_print): Ditto.
7791         * infcmd.c (registers_info): Ditto.
7792         * m2-valprint.c (m2_val_print): Ditto.
7793
7794 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7795
7796         * m2-valprint.c (print_unbounded_array): Pass
7797         value_contents_for_printing rather than value_contents, to
7798         m2_print_array_contents.  Also pass in the value.
7799
7800 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7801
7802         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
7803         (save_gdb_index_command): Switch to .gdb_index version 4.
7804
7805 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7806
7807         * mi/mi-main.c (get_register): Use get_frame_register_value rather
7808         than frame_register, and always pass a valid value to val_print.
7809
7810 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7811
7812         Centralize printing "<optimized out>".
7813
7814         * valprint.h (val_print_optimized_out): Declare.
7815         * cp-valprint.c (cp_print_value_fields): Use
7816         val_print_optimized_out.
7817         * jv-valprint.c (java_print_value_fields): Ditto.
7818         * p-valprint.c (pascal_object_print_value_fields): Ditto.
7819         * printcmd.c (print_formatted): Ditto.
7820         * valprint.c (valprint_check_validity): Ditto.
7821         (value_check_printable): Ditto.
7822         (val_print_optimized_out): New.
7823
7824 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7825
7826         * infcmd.c (default_print_registers_info): Allocate values so to
7827         never pass a NULL value to val_print.
7828
7829 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7830
7831         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
7832         boolean.  Make sure to always pass a value that matches the
7833         contents buffer to callees.  Preserve `address' for following
7834         iterations.
7835         * value.c (value_contents_for_printing_const): New.
7836         (value_address): Constify value argument.
7837         * value.h (value_contents_for_printing_const): Declare.
7838         (value_address): Constify value argument.
7839
7840 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7841
7842         * regcache.c (struct regcache_descr): Rename
7843         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
7844         and sizeof_cooked_register_valid_p to
7845         sizeof_cooked_register_status.
7846         (init_regcache_descr): Adjust.
7847         (struct regcache): Rename register_valid_p field to
7848         register_status.
7849         (regcache_xmalloc_1, regcache_xfree, regcache_save)
7850         (do_cooked_read): Adjust.
7851         (regcache_valid_p): Rename to ...
7852         (regcache_register_status): ... this.  Adjust.
7853         (regcache_invalidate): Adjust.
7854         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
7855         Adjust.
7856         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
7857         as unavailable, not valid.
7858         (regcache_dump): Adjust.
7859         * regcache.h (enum register_status): New.
7860         (regcache_register_status): Declare.
7861         (regcache_invalidate): Delete declaration.
7862         * corelow.c (get_core_registers): Adjust.
7863         * tracepoint.c (tfile_fetch_registers): Adjust.
7864         * trad-frame.c (REG_VALUE): Rename to ...
7865         (TF_REG_VALUE): ... this.
7866         (REG_UNKNOWN): Rename to ...
7867         (TF_REG_UNKNOWN): ... this.
7868         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
7869         * mi/mi-main.c (register_changed_p): Adjust.
7870
7871 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7872
7873         * regcache.c (struct regcache_descr): Remove outdated comment.
7874         (init_regcache_descr): Remove sizeof_raw_register_valid_p
7875         overallocate hack.
7876         (regcache_xmalloc): Rename to ...
7877         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
7878         Allocate the regcache type accordingly.
7879         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
7880         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
7881         cooked registers, not raw.
7882         (regcache_dup_no_passthrough): Delete.
7883         (get_thread_arch_regcache): Use regcache_xmalloc_1.
7884         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
7885         mention obsolete write_register_bytes.
7886         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
7887
7888 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7889
7890         Stop remote_read_bytes from handling partial reads itself.
7891
7892         * remote-fileio.c: Include target.h.
7893         (remote_fileio_write_bytes): Delete.
7894         (remote_fileio_func_open, remote_fileio_func_write)
7895         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
7896         target_read_memory.
7897         (remote_fileio_func_stat): Use target_read_memory and
7898         target_write_memory.
7899         (remote_fileio_func_gettimeofday): Use target_write_memory.
7900         (remote_fileio_func_system): Use target_read_memory.
7901         * remote.c (remote_write_bytes): Make it static.
7902         (remote_read_bytes): Don't handle partial reads here.
7903         * remote.h (remote_read_bytes): Delete declaration.
7904
7905 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
7906
7907         Simplify XML parsing a bit.
7908
7909         * xml-support.h (gdb_xml_parse_quick): Declare.
7910         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
7911         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
7912         parameter.
7913         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
7914         gdb_xml_create_parser_and_cleanup_1.
7915         (gdb_xml_parse_quick): New.
7916         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
7917         * osdata.c (osdata_parse): Ditto.
7918         * remote.c (remote_threads_info): Ditto.
7919         * solib-target.c (solib_target_parse_libraries): Ditto.
7920         * xml-syscall.c (syscall_parse_xml): Ditto.
7921         * xml-tdesc.c (tdesc_parse_xml): Ditto.
7922
7923 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
7924
7925         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
7926         with remote-mips.o added to gdb_target_obs.
7927         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
7928
7929 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
7930
7931         * ada-valprint.c (val_print_packed_array_elements): Pass the
7932         correct struct value to val_print.
7933         (ada_val_print_1): Ditto.
7934
7935 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
7936
7937         Don't lose embedded_offset in printing routines throughout.
7938
7939         * valprint.h (val_print_array_elements): Change prototype.
7940         * valprint.c (val_print_array_elements): Add `embedded_offset'
7941         parameter, and adjust to pass it down to val_print, while passing
7942         `valaddr' or `address' unmodified.  Take embedded_offset into
7943         account when checking repetitions.
7944         * c-valprint.c (c_val_print): Pass embedded_offset to
7945         val_print_array_elements instead of adjusting `valaddr' and
7946         `address'.
7947         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
7948         embedded_offset to val_print_array_elements instead of adjusting
7949         `valaddr'.
7950         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
7951         * p-valprint.c (pascal_val_print): Pass embedded_offset to
7952         val_print_array_elements and pascal_object_print_value_fields
7953         instead of adjusting `valaddr'.
7954         (pascal_object_print_value_fields): Add `offset' parameter, and
7955         adjust to use it.
7956         (pascal_object_print_value): Add `offset' parameter, and adjust to
7957         use it.
7958         (pascal_object_print_static_field): Use
7959         value_contents_for_printing/value_embedded_offset, rather than
7960         value_contents.
7961         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
7962         parameter, and adjust to use it.  Use
7963         value_contents_for_printing/value_embedded_offset, rather than
7964         value_contents.
7965         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
7966         (ada_val_print_array): Add `offset' parameter, and adjust to use
7967         it.
7968         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
7969         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
7970         Instead work with offsets.  Use
7971         value_contents_for_printing/value_embedded_offset, rather than
7972         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
7973         and use value_from_pointer to extract a target pointer, rather
7974         than value_from_longest.
7975         (print_variant_part): Add `offset' parameter.  Replace
7976         `outer_valaddr' parameter by a new `outer_offset' parameter.
7977         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
7978         (ada_value_print): Use
7979         value_contents_for_printing/value_embedded_offset, rather than
7980         value_contents.
7981         (print_record): Add `offset' parameter, and adjust to pass it
7982         down.
7983         (print_field_values): Add `offset' parameter.  Replace
7984         `outer_valaddr' parameter by a new `outer_offset' parameter.
7985         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
7986         Use value_contents_for_printing/value_embedded_offset, rather than
7987         value_contents.
7988         * d-valprint.c (dynamic_array_type): Use
7989         value_contents_for_printing/value_embedded_offset, rather than
7990         value_contents.
7991         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
7992         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
7993         (java_print_value_fields): Take `offset' into account.  Don't
7994         re-adjust `valaddr'.  Instead pass down adjusted offsets.
7995         (java_val_print): Take `embedded_offset' into account.  Pass it to
7996         java_print_value_fields.
7997         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
7998         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
7999         down adjusted offsets.
8000         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
8001         (f_val_print): Take `embedded_offset' into account.
8002
8003 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
8004
8005         * inflow.c: Include "gdbcmd.h".
8006         (interactive_mode): New static global, moved here from top.c.
8007         (show_interactive_mode): New function, moved here from top.c.
8008         use gdb_has_a_terminal instead of input_from_terminal_p to
8009         determine the current mode.
8010         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
8011         setting.
8012         (_initialize_inflow): Add the "set/show interactive-mode"
8013         commands.  Moved here from top.c, after having adjusted slightly
8014         the help text.
8015         * top.c (interactive_mode, show_interactive_mode): Delete, moved
8016         to inflow.c.
8017         (input_from_terminal_p): Remove handling of "interactive-mode"
8018         setting, moved to infow.c.
8019         (init_main): Remove creation of the "set/show interactive-mode"
8020         commands, moved to inflow.c.
8021
8022 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
8023
8024         * NEWS: Add entry for native ia64-hpux support.
8025
8026 2011-01-19  Tom Tromey  <tromey@redhat.com>
8027
8028         PR mi/8618:
8029         * thread.c (free_thread): Free 'name'.
8030         (print_thread_info): Emit thread name.  Change CLI output.
8031         (thread_name_command): New function.
8032         (do_captured_thread_select): Emit newline.
8033         (_initialize_thread): Register 'thread name' command.
8034         * target.h (struct target_ops) <to_thread_name>: New field.
8035         (target_thread_name): New macro.
8036         * target.c (update_current_target): Handle to_thread_name.
8037         * python/py-infthread.c (thpy_get_name): New function.
8038         (thpy_set_name): Likewise.
8039         (thread_object_getset): Add "name".
8040         * linux-nat.c (linux_nat_thread_name): New function.
8041         (linux_nat_add_target): Set to_thread_name.
8042         * gdbthread.h (struct thread_info) <name>: New field.
8043
8044 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
8045
8046         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
8047         (ada_val_print_1): Likewise.
8048
8049 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
8050
8051         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
8052         upper limit address is not greater than the function end address
8053         when the upper limit could not be computed using the debugging
8054         info.
8055
8056 2011-01-17  Tom Tromey  <tromey@redhat.com>
8057
8058         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
8059         get_regcomp_error.
8060         * utils.c: Include gdb_regex.h.
8061         (do_regfree_cleanup): New function.
8062         (make_regfree_cleanup): Likewise.
8063         (get_regcomp_error): Likewise.
8064         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
8065
8066 2011-01-17  Tom Tromey  <tromey@redhat.com>
8067
8068         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
8069         re_compile_fastmap.
8070
8071 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
8072
8073         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
8074         for internal variables.
8075         (last_was_structop): New static variable.
8076         (COMPLETE): New token.
8077         (field_exp): New rule to group all '.' suffix handling.
8078         Add mark_struct_expression calls when approriate to be able
8079         to correctly find fields for completion.
8080         (yylex): Adapt to handle field completion and set INTVAR when
8081         required.
8082
8083 2011-01-14  Yao Qi  <yao@codesourcery.com>
8084
8085         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
8086         save_reggroup, restore_reggroup and all_reggroup.
8087
8088 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
8089
8090         * ada-valprint. (ada_printchar): Use the correct type length
8091         in call to ada_emit_char.
8092         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
8093
8094 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
8095
8096         * solib-som.h (hpux_major_release): Declare variable here.
8097         * solib-som.c:  Remove <sys/utsname.h> header.
8098         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
8099         (hpux_major_release): Make global, change default value to
8100         DEFAULT_HPUX_MAJOR_RELEASE.
8101         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
8102         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
8103         Add "solib-som.h" header.
8104         (set_hpux_major_release): New function.
8105         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
8106
8107 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
8108
8109         * configure.tgt (*-*-uclinux*): Match more Linux os targets
8110
8111 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
8112
8113         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
8114         new-line at end of warning message.
8115         (ia64_hpux_store_register): Remove trailing new-line at end of
8116         error message.
8117         * ia64-hpux-tdep.c: Rephrase comment.
8118         * solib-ia64-hpux.c (struct dld_info): Change type of field
8119         dld_flags from "long long" to ULONGEST.
8120
8121 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
8122
8123         * target.h (deprecated_child_ops): Delete declaration.
8124         * target.c (deprecated_child_ops): Delete definition.
8125
8126 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
8127
8128         * Makefile.in (hpux-thread.o): Delete rule.
8129         * configure.ac: Don't check for HPUX DCE threads support.
8130         * configure, config.in: Regenerate.
8131         * hppa-hpux-nat.c (child_suppress_run): Delete.
8132         (hppa_hpux_child_can_run): Delete.
8133         (_initialize_hppa_hpux_nat): Don't override to_can_run.
8134         * hpux-thread.c: Delete.
8135
8136 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8137
8138         * hpux-thread.c (hpux_pid_to_str): Delete.
8139
8140 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8141
8142         * ada-valprint.c (ada_emit_char): Remove strange code.
8143         Check that c is <= UCHAR_MAX before passing it to isascii.
8144         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
8145
8146 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8147
8148         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
8149         to the case where instream is stdin.
8150
8151 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8152
8153         * ia64-tdep.h (struct regcache): Forward declare.
8154         (struct ia64_infcall_ops): New struct type.
8155         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
8156         and "infcall_ops".
8157         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
8158         Renames ia64_find_global_pointer.
8159         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
8160         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
8161         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
8162         methods.
8163         (ia64_infcall_ops): New static global constant.
8164         (ia64_gdbarch_init): Set tdep->infcall_ops.
8165         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
8166         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
8167         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
8168         (ia64_hpux_dummy_code): New static global constant.
8169         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
8170         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
8171         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
8172         New function.
8173         (ia64_hpux_infcall_ops): New static global constant.
8174         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
8175         for inferior function calls to work properly on ia64-hpux.
8176
8177 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8178
8179         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
8180         * ia64-tdep.h (struct frame_info): forward declaration.
8181         (struct gdbarch_tdep): Add field size_of_register_frame.
8182         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
8183         to determine the size of the register frame.
8184         (ia64_size_of_register_frame): New function.
8185         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
8186         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
8187         (IA64_HPUX_UREG_REASON): New macro.
8188         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
8189         New functions.
8190         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
8191         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
8192         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
8193         objects.
8194
8195 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8196
8197         Add support for ia64-hpux.
8198         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
8199         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
8200
8201         * configure.host: Add handling for ia64-hpux hosts.  Add associated
8202         floatformats.
8203         * configure.tgt: Add handling for ia64-hpux targets.
8204         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
8205         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
8206         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
8207
8208 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8209
8210         [ttrace] Compute thread list immediately after attach.
8211         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
8212         New subprogram.
8213         (inf_ttrace_attach): Use it.
8214
8215 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8216
8217         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
8218         if we could not determine the frame's function address.  Instead,
8219         use the frame's PC, and then continue.
8220
8221 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8222
8223         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
8224         not already defined.
8225
8226 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8227
8228         * ia64-tdep.c (ia64_struct_type_p): New function.
8229         (ia64_extract_return_value): Handle integral values that are
8230         less than 8 bytes long.
8231         (ia64_push_dummy_call): Likewise.
8232
8233 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
8234
8235         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
8236         floatformat_ia64_ext.
8237         (floatformat_ia64_ext_big): New static const.
8238         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
8239
8240 2011-01-12  Tom Tromey  <tromey@redhat.com>
8241
8242         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
8243         messages.
8244         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
8245         (mi_cmd_thread_list_ids): Likewise.
8246         (mi_cmd_data_list_changed_registers): Likewise.
8247         (mi_cmd_data_list_register_values): Likewise.
8248         (mi_cmd_data_write_register_values): Likewise.
8249         (mi_cmd_data_evaluate_expression): Likewise.
8250         (mi_cmd_data_read_memory): Likewise.
8251         (mi_cmd_data_read_memory_bytes): Likewise.
8252         (mi_cmd_data_write_memory): Likewise.
8253         (mi_cmd_enable_timings): Likewise.
8254         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
8255         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
8256         (mi_cmd_var_delete): Likewise.
8257         (mi_cmd_var_set_format): Likewise.
8258         (mi_cmd_var_show_format): Likewise.
8259         (mi_cmd_var_info_num_children): Likewise.
8260         (mi_cmd_var_list_children): Likewise.
8261         (mi_cmd_var_info_type): Likewise.
8262         (mi_cmd_var_info_expression): Likewise.
8263         (mi_cmd_var_show_attributes): Likewise.
8264         (mi_cmd_var_assign): Likewise.
8265         (mi_cmd_var_update): Likewise.
8266         (mi_cmd_enable_pretty_printing): Likewise.
8267         (mi_cmd_var_set_update_range): Likewise.
8268         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
8269         messages.
8270         (mi_cmd_target_file_put): Likewise.
8271         (mi_cmd_target_file_delete): Likewise.
8272         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
8273         messages.
8274         (mi_cmd_stack_info_depth): Likewise.
8275         (mi_cmd_stack_list_locals): Likewise.
8276         (mi_cmd_stack_list_args): Likewise.
8277         (mi_cmd_stack_select_frame): Likewise.
8278         (mi_cmd_stack_select_frame): Likewise.
8279         (mi_cmd_stack_info_frame): Likewise.
8280         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
8281         messages.
8282         (mi_cmd_file_list_exec_source_files): Likewise.
8283         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
8284         (mi_cmd_env_cd): Likewise.
8285         (mi_cmd_env_path): Likewise.
8286         (mi_cmd_env_dir): Likewise.
8287         (mi_cmd_inferior_tty_show): Likewise.
8288         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
8289         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
8290         (mi_cmd_break_watch): Likewise.
8291
8292 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8293
8294         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
8295         (ppc_linux_insert_hw_breakpoint): Likewise.
8296         (ppc_linux_remove_hw_breakpoint): Likewise.
8297         (ppc_linux_insert_watchpoint): Likewise.
8298
8299 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
8300             Jan Kratochvil  <jan.kratochvil@redhat.com>
8301
8302         PR fortran/11104 and DWARF unbound arrays detection.
8303         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
8304         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
8305         unspecified upper bound.
8306         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
8307         variables array_size_array, tmp_type and offset_item.  New variable
8308         array.  Remove call to f77_get_upperbound.  New variables array_type
8309         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
8310         the final call to deprecated_set_value_type.
8311
8312 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
8313
8314         Make value allocations more lazy.
8315         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
8316         instead of allocate_value and set_value_lazy when possible.
8317         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
8318         instead of allocate_value and set_value_lazy.
8319         * findvar.c (value_of_register_lazy): Likewise.
8320         (read_var_value): Remove V preallocation, call just check_typedef in
8321         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
8322         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
8323         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
8324         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
8325         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
8326         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
8327         the end, remove set_value_lazy there.
8328         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
8329         instead of allocate_value and set_value_lazy when possible.
8330         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
8331         * value.c (allocate_computed_value): Use allocate_value_lazy instead
8332         of allocate_value and set_value_lazy.
8333         (value_from_contents_and_address): Use allocate_value_lazy instead of
8334         allocate_value and set_value_lazy when possible.
8335
8336 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
8337
8338         * disasm.c (dump_insns): Support dumping opcodes for MI.
8339         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
8340         dumping of instruction opcodes.
8341
8342 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
8343
8344         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
8345         appropiately.
8346
8347 2011-01-11  Tom Tromey  <tromey@redhat.com>
8348
8349         * thread.c (do_captured_thread_select): Emit newline before
8350         printing frame.
8351
8352 2011-01-11  Michael Snyder  <msnyder@vmware.com>
8353
8354         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
8355         * score-tdep.c: Ditto.
8356         * score-tdep.h: Ditto.
8357         * ser-base.c: Ditto.
8358         * ser-go32.c: Ditto.
8359         * serial.c: Ditto.
8360         * serial.h: Ditto.
8361         * ser-mingw.c: Ditto.
8362         * ser-pipe.c: Ditto.
8363         * ser-tcp.c: Ditto.
8364         * ser-unix.c: Ditto.
8365         * sh64-tdep.c: Ditto.
8366         * shnbsd-nat.c: Ditto.
8367         * sh-tdep.c: Ditto.
8368         * sh-tdep.h: Ditto.
8369         * solib.c: Ditto.
8370         * solib-darwin.c: Ditto.
8371         * solib-frv.c: Ditto.
8372         * solib.h: Ditto.
8373         * solib-irix.c: Ditto.
8374         * solib-osf.c: Ditto.
8375         * solib-pa64.c: Ditto.
8376         * solib-som.c: Ditto.
8377         * solib-spu.c: Ditto.
8378         * solib-sunos.c: Ditto.
8379         * solib-svr4.c: Ditto.
8380         * solist.h: Ditto.
8381         * sol-thread.c: Ditto.
8382         * somread.c: Ditto.
8383         * source.c: Ditto.
8384         * source.h: Ditto.
8385         * sparc64-linux-tdep.c: Ditto.
8386         * sparc64-tdep.c: Ditto.
8387         * sparc-linux-nat.c: Ditto.
8388         * sparc-linux-tdep.c: Ditto.
8389         * sparc-sol2-nat.c: Ditto.
8390         * sparc-sol2-tdep.c: Ditto.
8391         * sparc-tdep.c: Ditto.
8392         * sparc-tdep.h: Ditto.
8393         * spu-tdep.c: Ditto.
8394         * stabsread.c: Ditto.
8395         * stabsread.h: Ditto.
8396         * stack.c: Ditto.
8397         * symfile.c: Ditto.
8398         * symfile.h: Ditto.
8399         * symmisc.c: Ditto.
8400         * symtab.c: Ditto.
8401         * symtab.h: Ditto.
8402         * target.c: Ditto.
8403         * target-descriptions.c: Ditto.
8404         * target-descriptions.h: Ditto.
8405         * target.h: Ditto.
8406         * target-memory.c: Ditto.
8407         * terminal.h: Ditto.
8408         * thread.c: Ditto.
8409         * top.c: Ditto.
8410         * tracepoint.c: Ditto.
8411         * tracepoint.h: Ditto.
8412         * trad-frame.h: Ditto.
8413         * typeprint.c: Ditto.
8414
8415 2011-01-11  Michael Snyder  <msnyder@vmware.com>
8416
8417         * ui-file.c: Comment cleanup, mostly periods and spaces.
8418         * ui-file.h: Ditto.
8419         * ui-out.c: Ditto.
8420         * ui-out.h: Ditto.
8421         * utils.c: Ditto.
8422         * v850-tdep.c: Ditto.
8423         * valarith.c: Ditto.
8424         * valops.c: Ditto.
8425         * valprint.c: Ditto.
8426         * valprint.h: Ditto.
8427         * value.c: Ditto.
8428         * value.h: Ditto.
8429         * varobj.c: Ditto.
8430         * varobj.h: Ditto.
8431         * vax-tdep.c: Ditto.
8432         * vec.c: Ditto.
8433         * vec.h: Ditto.
8434         * version.h: Ditto.
8435         * windows-nat.c: Ditto.
8436         * windows-tdep.c: Ditto.
8437         * xcoffread.c: Ditto.
8438         * xcoffsolib.c: Ditto.
8439         * xml-support.c: Ditto.
8440         * xstormy16-tdep.c: Ditto.
8441         * xtensa-tdep.c: Ditto.
8442         * xtensa-tdep.h: Ditto.
8443
8444 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8445
8446         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
8447         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
8448
8449 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
8450             Thiago Jung Bauermann  <bauerman@br.ibm.com>
8451
8452         Implement support for PowerPC BookE ranged watchpoints.
8453         * breakpoint.h
8454         (struct breakpoint_ops) <resources_needed>: New method.
8455         Initialize to NULL in all existing breakpoint_ops instances.
8456         (struct breakpoint) <exact>: New field.
8457         (target_exact_watchpoints): Declare external global.
8458         * breakpoint.c (target_exact_watchpoints): New global flag.
8459         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
8460         b->enable_state to bp_enabled before calling
8461         hw_watchpoint_used_count.
8462         (hw_watchpoint_used_count): Iterate over all bp_locations in a
8463         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
8464         if available.
8465         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
8466         if the watchpoint is exact.
8467         (resources_needed_watchpoint): New function.
8468         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
8469         (watch_command_1): Set b->exact if the user asked for an exact
8470         watchpoint and one can be set.
8471         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
8472         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
8473         the user asks for an exact watchpoint and one can be set.  Return
8474         number of needed debug registers to watch the expression.
8475         * gdbtypes.c (is_scalar_type): New function, based on
8476         valprint.c:scalar_type_p.
8477         (is_scalar_type_recursive): New function.
8478         * gdbtypes.h (is_scalar_type_recursive): Declare.
8479         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
8480         handle regions when ranged watchpoints are available.
8481         (create_watchpoint_request): New function.
8482         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
8483         create_watchpoint_request.
8484         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
8485         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
8486         `set powerpc' and `show powerpc' commands.
8487         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8488         Mention documentation comment in the target macro.
8489         (target_region_ok_for_hw_watchpoint): Document return value.
8490
8491 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8492
8493         * breakpoint.c (update_watchpoint): Decide on using a software or
8494         hardware watchpoint after the bp_locations are created.
8495
8496 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8497
8498         Convert hardware watchpoints to use breakpoint_ops.
8499         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
8500         <insert_location>: ... this.  Return int instead of void.
8501         Accept pointer to struct bp_location instead of pointer to
8502         struct breakpoint.  Adapt all implementations.
8503         (breakpoint_ops) <remove>: Rename to...
8504         <remove_location>: ... this.  Accept pointer to struct bp_location
8505         instead of pointer to struct breakpoint.  Adapt all implementations.
8506         * breakpoint.c (insert_catchpoint): Delete function.
8507         (insert_bp_location): Call the watchpoint or catchpoint's
8508         breakpoint_ops.insert method.
8509         (remove_breakpoint_1): Call the watchpoint or catchpoint's
8510         breakpoint_ops.remove method.
8511         (insert_watchpoint, remove_watchpoint): New functions.
8512         (watchpoint_breakpoint_ops): New structure.
8513         (watch_command_1): Initialize the OPS field.
8514         * inf-child.c (inf_child_insert_fork_catchpoint)
8515         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
8516         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
8517         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
8518         Delete functions.
8519         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
8520         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
8521         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
8522         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
8523         * target.c (update_current_target): Change default implementation of
8524         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
8525         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
8526         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
8527         to_set_syscall_catchpoint to return_one.
8528         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
8529         (debug_to_insert_exec_catchpoint): Report return value.
8530         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
8531         (to_insert_exec_catchpoint): Change declaration to return int instead
8532         of void.
8533
8534 2011-01-11  Michael Snyder  <msnyder@vmware.com>
8535
8536         * arm-tdep.c: Internationalization.
8537         * c-lang.c: Ditto.
8538         * charset.c: Ditto.
8539         * fork-child.c: Ditto.
8540         * nto-procfs.c: Ditto.
8541         * ppc-sysv-tdep.c: Ditto.
8542         * procfs.c: Ditto.
8543         * remote-mips.c: Ditto.
8544         * remote.c: Ditto.
8545         * rs6000-nat.c: Ditto.
8546         * rs6000-tdep.c: Ditto.
8547         * target.c: Ditto.
8548         * valops.c: Ditto.
8549         * value.c: Ditto.
8550         * xml-support.c: Ditto.
8551         * mi/mi-cmd-break.c: Ditto.
8552         * mi/mi-cmd-var.c: Ditto.
8553         * mi/mi-interp.c: Ditto.
8554         * mi/mi-main.c: Ditto.
8555
8556 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
8557
8558         * remote-sim.c (gdbsim_store_register): Update API to
8559         sim_store_register to check more error conditions.
8560
8561 2011-01-10  Michael Snyder  <msnyder@vmware.com>
8562
8563         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
8564         * nto-tdep.c: Ditto.
8565         * nto-tdep.h: Ditto.
8566         * objc-exp.y: Ditto.
8567         * objc-lang.c: Ditto.
8568         * objfiles.c: Ditto.
8569         * objfiles.h: Ditto.
8570         * observer.c: Ditto.
8571         * opencl-lang.c: Ditto.
8572         * osabi.c: Ditto.
8573         * parse.c: Ditto.
8574         * parser-defs.h: Ditto.
8575         * p-exp.y: Ditto.
8576         * p-lang.c: Ditto.
8577         * posix-hdep.c: Ditto.
8578         * ppcbug-rom.c: Ditto.
8579         * ppc-linux-nat.c: Ditto.
8580         * ppc-linux-tdep.c: Ditto.
8581         * ppc-linux-tdep.h: Ditto.
8582         * ppcnbsd-tdep.c: Ditto.
8583         * ppcobsd-tdep.c: Ditto.
8584         * ppcobsd-tdep.h: Ditto.
8585         * ppc-sysv-tdep.c: Ditto.
8586         * ppc-tdep.h: Ditto.
8587         * printcmd.c: Ditto.
8588         * proc-abi.c: Ditto.
8589         * proc-flags.c: Ditto.
8590         * procfs.c: Ditto.
8591         * proc-utils.h: Ditto.
8592         * progspace.h: Ditto.
8593         * prologue-value.c: Ditto.
8594         * prologue-value.h: Ditto.
8595         * psympriv.h: Ditto.
8596         * psymtab.c: Ditto.
8597         * p-typeprint.c: Ditto.
8598         * p-valprint.c: Ditto.
8599         * ravenscar-sparc-thread.c: Ditto.
8600         * ravenscar-thread.c: Ditto.
8601         * ravenscar-thread.h: Ditto.
8602         * record.c: Ditto.
8603         * regcache.c: Ditto.
8604         * regcache.h: Ditto.
8605         * remote.c: Ditto.
8606         * remote-fileio.c: Ditto.
8607         * remote-fileio.h: Ditto.
8608         * remote.h: Ditto.
8609         * remote-m32r-sdi.c: Ditto.
8610         * remote-mips.c: Ditto.
8611         * remote-sim.c: Ditto.
8612         * rs6000-aix-tdep.c: Ditto.
8613         * rs6000-nat.c: Ditto.
8614         * rs6000-tdep.c: Ditto.
8615
8616 2011-01-10  Michael Snyder  <msnyder@vmware.com>
8617
8618         * charset.c (validate): Internationalization.
8619         * coffread.c (read_one_sym): Ditto.
8620         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
8621         * h8300-tdep.c (H8300_extract_return_value): Ditto.
8622         * inflow.c (new_tty): Ditto.
8623         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
8624         * m32c-tdep.c (m32c_return_value): Ditto.
8625         * mep-tdep.c (mep_store_return_value): Ditto.
8626         * score-tdep.c (score7_fetch_insn): Ditto.
8627         * ser-mingw.c (pipe_windows_open): Ditto.
8628         * sh64-tdep.c (sh64_extract_return_value): Ditto.
8629         * spu-tdep.c (spu_register_type): Ditto.
8630         * tracepoint.c (trace_find_command): Ditto.
8631         * valarith.c (value_pos): Ditto.
8632
8633 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
8634
8635         * ada-valprint.c (printstr): Minor comment reformatting.
8636
8637 2011-01-08  Michael Snyder  <msnyder@vmware.com>
8638
8639         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
8640         markup.
8641
8642 2011-01-08  Michael Snyder  <msnyder@vmware.com>
8643
8644         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
8645         * hppa-hpux-tdep.c: Ditto.
8646         * hppa-linux-nat.c: Ditto.
8647         * hppa-linux-tdep.c: Ditto.
8648         * hppanbsd-tdep.c: Ditto.
8649         * hppa-tdep.c: Ditto.
8650         * hppa-tdep.h: Ditto.
8651         * hpux-thread.c: Ditto.
8652         * i386-cygwin-tdep.c: Ditto.
8653         * i386-darwin-nat.c: Ditto.
8654         * i386gnu-nat.c: Ditto.
8655         * i386-linux-nat.c: Ditto.
8656         * i386-linux-tdep.c: Ditto.
8657         * i386-nat.c: Ditto.
8658         * i386-nat.h: Ditto.
8659         * i386nbsd-tdep.c: Ditto.
8660         * i386-sol2-nat.c: Ditto.
8661         * i386-stub.c: Ditto.
8662         * i386-tdep.c: Ditto.
8663         * i386-tdep.h: Ditto.
8664         * i387-tdep.c: Ditto.
8665         * ia64-linux-nat.c: Ditto.
8666         * ia64-linux-tdep.c: Ditto.
8667         * ia64-tdep.c: Ditto.
8668         * infcall.c: Ditto.
8669         * infcall.h: Ditto.
8670         * infcmd.c: Ditto.
8671         * inferior.c: Ditto.
8672         * inferior.h: Ditto.
8673         * infloop.c: Ditto.
8674         * inflow.c: Ditto.
8675         * infrun.c: Ditto.
8676         * interps.c: Ditto.
8677         * interps.h: Ditto.
8678         * iq2000-tdep.c: Ditto.
8679         * irix5-nat.c: Ditto.
8680         * jit.c: Ditto.
8681         * jit.h: Ditto.
8682         * jv-exp.y: Ditto.
8683         * jv-lang.c: Ditto.
8684         * jv-lang.h: Ditto.
8685         * jv-typeprint.c: Ditto.
8686         * jv-valprint.c: Ditto.
8687         * language.c: Ditto.
8688         * language.h: Ditto.
8689         * linespec.c: Ditto.
8690         * linux-fork.c: Ditto.
8691         * linux-nat.c: Ditto.
8692         * linux-thread-db.c: Ditto.
8693         * lm32-tdep.c: Ditto.
8694
8695 2011-01-08  Michael Snyder  <msnyder@vmware.com>
8696
8697         * m2-exp.y: Comment cleanup, mostly periods and spaces.
8698         * m2-lang.c: Ditto.
8699         * m2-typeprint.c: Ditto.
8700         * m2-valprint.c: Ditto.
8701         * m32c-tdep.c: Ditto.
8702         * m32r-linux-nat.c: Ditto.
8703         * m32r-rom.c: Ditto.
8704         * m32r-tdep.c: Ditto.
8705         * m32r-tdep.h: Ditto.
8706         * m68hc11-tdep.c: Ditto.
8707         * m58klinux-nat.c: Ditto.
8708         * m68k-tdep.c: Ditto.
8709         * m88k-tdep.c: Ditto.
8710         * m88k-tdep.h: Ditto.
8711         * machoread.c: Ditto.
8712         * macrocmd.c: Ditto.
8713         * macroexp.c: Ditto.
8714         * macrotab.c: Ditto.
8715         * main.c: Ditto.
8716         * maint.c: Ditto.
8717         * mdebugread.c: Ditto.
8718         * mdebugread.h: Ditto.
8719         * memattr.c: Ditto.
8720         * memattr.h: Ditto.
8721         * memory-map.h: Ditto.
8722         * mep-tdep.c: Ditto.
8723         * microblaze-rom.c: Ditto.
8724         * microblaze-tdep.c: Ditto.
8725         * minsyms.c: Ditto.
8726         * mips-irix-tdep.c: Ditto.
8727         * mips-linux-nat.c: Ditto.
8728         * mips-linux-tdep.c: Ditto.
8729         * mips-linux-tdep.h: Ditto.
8730         * mipsnbsd-nat.c: Ditto.
8731         * mipsnbsd-tdep.c: Ditto.
8732         * mipsread.c: Ditto.
8733         * mips-tdep.c: Ditto.
8734         * mips-tdep.h: Ditto.
8735         * mn10300-linux-tdep.c: Ditto.
8736         * mn10300-tdep.c: Ditto.
8737         * mn10300-tdep.h: Ditto.
8738         * monitor.c: Ditto.
8739         * monitor.h: Ditto.
8740         * moxie-tdep.c: Ditto.
8741         * moxie-tdep.h: Ditto.
8742         * mt-tdep.c: Ditto.
8743
8744 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
8745
8746         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
8747
8748 2011-01-08  Robert Millan  <rmh@gnu.org>
8749
8750         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
8751
8752 2011-01-07  Michael Snyder  <msnyder@vmware.com>
8753
8754         * charset.c (_initialize_charset): Fix typo in string.
8755
8756 2011-01-07  Michael Snyder  <msnyder@vmware.com>
8757
8758         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
8759         for i18n.
8760         * tui/tui-layout.c (tui_set_layout_for_display_command):
8761         Split line so that operator goes to beginning of line.
8762         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
8763         assignment out of if statement.
8764
8765 2011-01-07  Michael Snyder  <msnyder@vmware.com>
8766
8767         * ada-lang.c: Comment cleanup, mostly periods and spaces.
8768         * ada-lang.h: Ditto.
8769         * ada-tasks.c: Ditto.
8770         * ada-valprint.c: Ditto.
8771         * aix-threads.c: Ditto.
8772         * alpha-linux-nat.c: Ditto.
8773         * alpha-linux-tdep.c: Ditto.
8774         * alpha-mdebug-tdep.c: Ditto.
8775         * alpha-nat.c: Ditto.
8776         * alpha-osf1-tdep.c: Ditto.
8777         * alpha-tdep.c: Ditto.
8778         * alphabsd-nat.c: Ditto.
8779         * alphabsd-tdep.c: Ditto.
8780         * amd64-darwin-tdep.c: Ditto.
8781         * amd64-linux-nat.c: Ditto.
8782         * amd64-linux-tdep.c: Ditto.
8783         * amd64-sol2-tdep.c: Ditto.
8784         * amd64-tdep.c: Ditto.
8785         * amd64-fbsd-tdep.c: Ditto.
8786         * amd64-nbsd-tdep.c: Ditto.
8787         * amd64-obsd-tdep.c: Ditto.
8788         * amd64-linux-nat.c: Ditto.
8789         * amd64-linux-tdep.c: Ditto.
8790         * arm-tdep.c: Ditto.
8791         * arm-tdep.h: Ditto.
8792         * armnbsd-nat.c: Ditto.
8793         * avr-tdep.c: Ditto.
8794         * bfin-tdep.c: Ditto.
8795         * bsd-kvm.c: Ditto.
8796         * c-typeprintc: Ditto.
8797         * c-valprint.c: Ditto.
8798         * coff-pe-read.h: Ditto.
8799         * coffreead.c: Ditto.
8800         * cris-tdep.c: Ditto.
8801         * d-lang.c: Ditto.
8802         * darwin-nat-info.c: Ditto.
8803         * darwin-nat.c: Ditto.
8804         * dbug-rom.c: Ditto.
8805         * dbxread.c: Ditto.
8806         * dcache.c: Ditto.
8807         * dcache.h: Ditto.
8808         * dec-thread.c: Ditto.
8809         * defs.h: Ditto.
8810         * demangle.c: Ditto.
8811         * dicos-tdep.c: Ditto.
8812         * dictionary.c: Ditto.
8813         * dictionary.h: Ditto.
8814         * dink32-rom.c: Ditto.
8815         * disasm.c: Ditto.
8816         * doublest.c: Ditto.
8817         * dsrec.c: Ditto.
8818         * dummy-frame.c: Ditto.
8819         * dwarf2-frame.c: Ditto.
8820         * dwarf2expr.c: Ditto.
8821         * dwarf2loc.c: Ditto.
8822         * dwarf2read.c: Ditto.
8823         * elfread.c: Ditto.
8824         * environ.c: Ditto.
8825         * eval.c: Ditto.
8826         * event-top.h: Ditto.
8827         * exceptions.c: Ditto.
8828         * exceptions.h: Ditto.
8829         * exec.c: Ditto.
8830         * expprint.c: Ditto.
8831         * expression.h: Ditto.
8832         * f-exp.y: Ditto.
8833         * f-lang.c: Ditto.
8834         * f-lang.h: Ditto.
8835         * f-typeprint.c: Ditto.
8836         * f-valprint.c: Ditto.
8837         * fbsd-nat.c: Ditto.
8838         * findvar.c: Ditto.
8839         * fork-child.c: Ditto.
8840         * frame.c: Ditto.
8841         * frame.h: Ditto.
8842         * frv-linux-tdep.c: Ditto.
8843         * frv-tdep.c: Ditto.
8844         * gcore.c: Ditto.
8845         * gdb-stabs.h: Ditto.
8846         * gdb_assert.h: Ditto.
8847         * gdb_string.h: Ditto.
8848         * gdb_thread_db.h: Ditto.
8849         * gdb_wait.h: Ditto.
8850         * gdbarch.sh: Ditto.
8851         * gdbcore.h: Ditto.
8852         * gdbthread.h: Ditto.
8853         * gdbtypes.c: Ditto.
8854         * gdbtypes.h: Ditto.
8855         * gnu-nat.c: Ditto.
8856         * gnu-nat.h: Ditto.
8857         * gnu-v2-abi.c: Ditto.
8858         * gnu-v3-abi.c: Ditto.
8859         * go32-nat.c: Ditto.
8860         * gdbarch.c: Regenerate.
8861         * gdbarch.h: Regenerate.
8862
8863 2011-01-07  Michael Snyder  <msnyder@vmware.com>
8864
8865         * ax-gdb.c: Adjust some long output strings.
8866         * breakpoint.c: Ditto.
8867         * charset.c: Ditto.
8868         * cp-abi.c: Ditto.
8869         * infcall.c: Ditto.
8870         * infrun.c: Ditto.
8871         * linux-nat.c: Ditto.
8872         * solib-pa64.c: Ditto.
8873         * solib-som.c: Ditto.
8874
8875 2011-01-06  Tom Tromey  <tromey@redhat.com>
8876
8877         PR python/12367:
8878         * NEWS: Add item.
8879         * python/python.c (GdbMethods): Add "newest_frame" method.
8880         * python/python-internal.h (gdbpy_newest_frame): Declare.
8881         * python/py-frame.c (gdbpy_newest_frame): New function.
8882
8883 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8884
8885         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
8886         * jit.c (jit_debug): New variable.
8887         (show_jit_debug): New function.
8888         (struct target_buffer): Use ULONGEST.
8889         (bfd_open_from_target_memory): Likewise.
8890         (jit_register_code, jit_inferior_init): Add debug output.
8891         (_initialize_jit): Register "debug jit" command.
8892
8893 2011-01-06  Tom Tromey  <tromey@redhat.com>
8894
8895         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
8896         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
8897         and ARCH_FRAME.
8898
8899 2011-01-06  Tom Tromey  <tromey@redhat.com>
8900
8901         * python/py-frame.c (frapy_block): Use get_frame_block.
8902
8903 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
8904
8905         Do not stop on SIGPRIO signals by default
8906         * infrun.c (_initialize_infrun): Unset signal_stop and
8907         signal_print for TARGET_SIGNAL_PRIO.
8908
8909 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
8910
8911         * ada-tasks.c: Fix style violation in comment.
8912
8913 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
8914
8915         * linespec.c (decode_compound, find_method): Remove trailing \n
8916         at end of error string.
8917         * solib-irix.c (irix_current_sos): Likewise.
8918         * varobj.c (uninstall_variable): Likewise.
8919
8920 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
8921
8922         * copyright.py: New script.
8923         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
8924         Launch emacs without exec'ing. Call copyright.py afterwards.
8925
8926 2011-01-05  Michael Snyder  <msnyder@vmware.com>
8927
8928         * addrmap.c: Shorten lines of >= 80 columns.
8929         * arch-utils.c: Ditto.
8930         * arch-utils.h: Ditto.
8931         * ax-gdb.c: Ditto.
8932         * ax-general.c: Ditto.
8933         * bcache.c: Ditto.
8934         * blockframe.c: Ditto.
8935         * breakpoint.c: Ditto.
8936         * buildsym.c: Ditto.
8937         * c-lang.c: Ditto.
8938         * c-typeprint.c: Ditto.
8939         * charset.c: Ditto.
8940         * coffread.c: Ditto.
8941         * command.h: Ditto.
8942         * corelow.c: Ditto.
8943         * cp-abi.c: Ditto.
8944         * cp-namespace.c: Ditto.
8945         * cp-support.c: Ditto.
8946         * dbug-rom.c: Ditto.
8947         * dbxread.c: Ditto.
8948         * defs.h: Ditto.
8949         * dfp.c: Ditto.
8950         * dfp.h: Ditto.
8951         * dictionary.c: Ditto.
8952         * disasm.c: Ditto.
8953         * doublest.c: Ditto.
8954         * dwarf2-frame.c: Ditto.
8955         * dwarf2expr.c: Ditto.
8956         * dwarf2loc.c: Ditto.
8957         * dwarf2read.c: Ditto.
8958         * elfread.c: Ditto.
8959         * eval.c: Ditto.
8960         * event-loop.c: Ditto.
8961         * event-loop.h: Ditto.
8962         * exceptions.h: Ditto.
8963         * exec.c: Ditto.
8964         * expprint.c: Ditto.
8965         * expression.h: Ditto.
8966         * f-lang.c: Ditto.
8967         * f-valprint.c: Ditto.
8968         * findcmd.c: Ditto.
8969         * frame-base.c: Ditto.
8970         * frame-unwind.c: Ditto.
8971         * frame-unwind.h: Ditto.
8972         * frame.c: Ditto.
8973         * frame.h: Ditto.
8974         * gcore.c: Ditto.
8975         * gdb-stabs.h: Ditto.
8976         * gdb_assert.h: Ditto.
8977         * gdb_dirent.h: Ditto.
8978         * gdb_obstack.h: Ditto.
8979         * gdbcore.h: Ditto.
8980         * gdbtypes.c: Ditto.
8981         * gdbtypes.h: Ditto.
8982         * inf-ttrace.c: Ditto.
8983         * infcall.c: Ditto.
8984         * infcmd.c: Ditto.
8985         * inflow.c: Ditto.
8986         * infrun.c: Ditto.
8987         * inline-frame.h: Ditto.
8988         * language.c: Ditto.
8989         * language.h: Ditto.
8990         * libunwind-frame.c: Ditto.
8991         * libunwind-frame.h: Ditto.
8992         * linespec.c: Ditto.
8993         * linux-nat.c: Ditto.
8994         * linux-nat.h: Ditto.
8995         * linux-thread-db.c: Ditto.
8996         * machoread.c: Ditto.
8997         * macroexp.c: Ditto.
8998         * macrotab.c: Ditto.
8999         * main.c: Ditto.
9000         * maint.c: Ditto.
9001         * mdebugread.c: Ditto.
9002         * memattr.c: Ditto.
9003         * minsyms.c: Ditto.
9004         * monitor.c: Ditto.
9005         * monitor.h: Ditto.
9006         * objfiles.c: Ditto.
9007         * objfiles.h: Ditto.
9008         * osabi.c: Ditto.
9009         * p-typeprint.c: Ditto.
9010         * p-valprint.c: Ditto.
9011         * parse.c: Ditto.
9012         * printcmd.c: Ditto.
9013         * proc-events.c: Ditto.
9014         * procfs.c: Ditto.
9015         * progspace.c: Ditto.
9016         * progspace.h: Ditto.
9017         * psympriv.h: Ditto.
9018         * psymtab.c: Ditto.
9019         * record.c: Ditto.
9020         * regcache.c: Ditto.
9021         * regcache.h: Ditto.
9022         * remote-fileio.c: Ditto.
9023         * remote.c: Ditto.
9024         * ser-mingw.c: Ditto.
9025         * ser-tcp.c: Ditto.
9026         * ser-unix.c: Ditto.
9027         * serial.c: Ditto.
9028         * serial.h: Ditto.
9029         * solib-frv.c: Ditto.
9030         * solib-irix.c: Ditto.
9031         * solib-osf.c: Ditto.
9032         * solib-pa64.c: Ditto.
9033         * solib-som.c: Ditto.
9034         * solib-sunos.c: Ditto.
9035         * solib-svr4.c: Ditto.
9036         * solib-target.c: Ditto.
9037         * solib.c: Ditto.
9038         * somread.c: Ditto.
9039         * source.c: Ditto.
9040         * stabsread.c: Ditto.
9041         * stabsread.c: Ditto.
9042         * stack.c: Ditto.
9043         * stack.h: Ditto.
9044         * symfile-mem.c: Ditto.
9045         * symfile.c: Ditto.
9046         * symfile.h: Ditto.
9047         * symmisc.c: Ditto.
9048         * symtab.c: Ditto.
9049         * symtab.h: Ditto.
9050         * target-descriptions.c: Ditto.
9051         * target-memory.c: Ditto.
9052         * target.c: Ditto.
9053         * target.h: Ditto.
9054         * terminal.h: Ditto.
9055         * thread.c: Ditto.
9056         * top.c: Ditto.
9057         * tracepoint.c: Ditto.
9058         * tracepoint.h: Ditto.
9059         * ui-file.c: Ditto.
9060         * ui-file.h: Ditto.
9061         * ui-out.h: Ditto.
9062         * user-regs.c: Ditto.
9063         * user-regs.h: Ditto.
9064         * utils.c: Ditto.
9065         * valarith.c: Ditto.
9066         * valops.c: Ditto.
9067         * valprint.c: Ditto.
9068         * valprint.h: Ditto.
9069         * value.c: Ditto.
9070         * varobj.c: Ditto.
9071         * varobj.h: Ditto.
9072         * vec.h: Ditto.
9073         * xcoffread.c: Ditto.
9074         * xcoffsolib.c: Ditto.
9075         * xcoffsolib.h: Ditto.
9076         * xml-syscall.c: Ditto.
9077         * xml-tdesc.c: Ditto.
9078
9079 2011-01-05  Michael Snyder  <msnyder@vmware.com>
9080
9081         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
9082         * cli/cli-decode.c: Ditto.
9083         * cli/cli-dump.c: Ditto.
9084         * cli/cli-logging.c: Ditto.
9085         * cli/cli-script.c: Ditto.
9086         * cli/cli-setshow.c: Ditto.
9087         * common/signals.c: Ditto.
9088         * mi/mi-cmd-break.c: Ditto.
9089         * mi/mi-cmd-disas.c: Ditto.
9090         * mi/mi-cmd-stack.c: Ditto.
9091         * mi/mi-cmd-var.c: Ditto.
9092         * mi/mi-cmds.c: Ditto.
9093         * mi/mi-common.h: Ditto.
9094         * mi/mi-console.c: Ditto.
9095         * mi/mi-interp.c: Ditto.
9096         * mi/mi-main.c: Ditto.
9097         * osf-share/cma_attr.c: Ditto.
9098         * osf-share/cma_deb_core.h: Ditto.
9099         * osf-share/cma_debug_client.h: Ditto.
9100         * osf-share/cma_handle.h: Ditto.
9101         * osf-share/cma_mutex.h: Ditto.
9102         * osf-share/cma_stack_int.h: Ditto.
9103         * osf-share/cma_tcb_defs.h: Ditto.
9104         * python/py-auto-load.c: Ditto.
9105         * python/py-breakpoint.c: Ditto.
9106         * python/py-cmd.c: Ditto.
9107         * python/py-frame.c: Ditto.
9108         * python/py-objfile.c: Ditto.
9109         * python/py-param.c: Ditto.
9110         * python/py-progspace.c: Ditto.
9111         * python/py-symbol.c: Ditto.
9112         * python/py-value.c: Ditto.
9113         * python/python-internal.h: Ditto.
9114         * python/python.c: Ditto.
9115         * tui/tui-data.c: Ditto.
9116         * tui/tui-disasm.c: Ditto.
9117         * tui/tui-hooks.c: Ditto.
9118         * tui/tui-io.c: Ditto.
9119         * tui/tui-layout.c: Ditto.
9120         * tui/tui-regs.c: Ditto.
9121         * tui/tui-source.c: Ditto.
9122         * tui/tui-stack.c: Ditto.
9123         * tui/tui-win.c: Ditto.
9124         * tui/tui-windata.c: Ditto.
9125         * tui/tui-winsource.c: Ditto.
9126
9127 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
9128
9129         * configure.ac, gdb.1: Copyright year update.
9130
9131 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9132
9133         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
9134         this_pc_in_block, morestack_msym and morestack_name.  Check for
9135         "__morestack" minimal symbol there.
9136
9137 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
9138
9139         * symfile.c (find_sym_fns): Add call to dont_repeat.
9140
9141 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
9142
9143         Copyright year update in most files (performed by copyright.sh).
9144
9145 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
9146
9147         * top.c (print_gdb_version): Update copyright year in version output.
9148
9149 For older changes see ChangeLog-2010.
9150 \f
9151 Local Variables:
9152 mode: change-log
9153 left-margin: 8
9154 fill-column: 74
9155 version-control: never
9156 coding: utf-8
9157 End: