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