2011-05-27 Pedro Alves <pedro@codesourcery.com>
[external/binutils.git] / gdb / ChangeLog
1 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
2
3         * defs.h (struct continuation, continuation_ftype)
4         (continuation_free_arg_ftype, add_continuation)
5         (do_all_continuations, do_all_continuations_thread)
6         (discard_all_continuations, discard_all_continuations_thread)
7         (add_intermediate_continuation, do_all_intermediate_continuations)
8         (do_all_intermediate_continuations_thread)
9         (discard_all_intermediate_continuations)
10         (discard_all_intermediate_continuations_thread)
11         (add_inferior_continuation, do_all_inferior_continuations)
12         (discard_all_inferior_continuations): Move to ...
13         * continuations.h: ... this new file.
14         * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
15         infcmd.c, inferior.c, infrun.c, interps.c: Include
16         continuations.h.
17
18 2011-05-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
19             Doug Evans  <dje@google.com>
20
21         Fix PR 10970, PR 12702.
22         * linux-nat.c (linux_lwp_is_zombie): New function.
23         (wait_lwp): Initialize status.  New variable prev_mask.  Block signals.
24         Check for linux_lwp_is_zombie.  Use WNOHANG and sigsuspend.
25
26 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
27
28         * defs.h (continuation_ftype, continuation_free_arg_ftype): New
29         typedefs.
30         (add_continuation, add_intermediate_continuation)
31         (add_inferior_continuation): Use them.
32         * continuations.c (struct continuation): Use them.
33         (make_continuation_ftype): Delete.
34         (make_continuation, add_inferior_continuation, add_continuation)
35         (add_intermediate_continuation): Use continuation_ftype and
36         continuation_free_arg_ftype.  Rename parameters to shorter names.
37
38 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
39
40         * continuations.c (make_continuation): Make it return void.
41         (do_my_continuations): Rename to ...
42         (do_my_continuations_1): ... this.  Remove old_chain parameter and
43         adjust.
44         (do_my_continuations): New.
45         (discard_my_continuations): Rename to ...
46         (discard_my_continuations_1): ... this.  Remove old_chain
47         parameter and adjust.
48         (discard_my_continuations): New.
49         (add_inferior_continuation): Simplify.
50         (do_all_inferior_continuations): Reimplement on top
51         do_my_continuations.
52         (discard_all_inferior_continuations): Simplify.
53         (add_continuation): Simplify.
54         (do_all_continuations_ptid): Simplify.
55         (discard_all_continuations_thread_callback): Simplify.
56         (add_intermediate_continuation): Simplify.
57         (discard_all_intermediate_continuations_thread_callback):
58         Simplify.
59
60 2011-05-27  Pedro Alves  <pedro@codesourcery.com>
61
62         * utils.c (struct continuation, add_continuation)
63         (add_inferior_continuation)
64         (do_all_inferior_continuations, discard_all_inferior_continuations)
65         (restore_thread_cleanup, do_all_continuations_ptid)
66         (do_all_continuations_thread_callback)
67         (do_all_continuations_thread, do_all_continuations)
68         (discard_all_continuations_thread_callback)
69         (discard_all_continuations_thread, discard_all_continuations)
70         (add_intermediate_continuation)
71         (do_all_intermediate_continuations_thread_callback)
72         (do_all_intermediate_continuations_thread)
73         (do_all_intermediate_continuations)
74         (discard_all_intermediate_continuations_thread_callback)
75         (discard_all_intermediate_continuations_thread)
76         (discard_all_intermediate_continuations): Move to ...
77         * continuations.c: ... this new file, and adjust to no longer
78         implement continuations on top of cleanups.
79         * Makefile.in (SFILES): Add continuations.c.
80         (COMMON_OBS): Add continuations.o.
81
82 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
83
84         * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
85         * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
86         Internal error on invalid values.
87         * reverse.c: Don't handle EXEC_ERROR.
88         * mi/mi-main.c: Don't handle EXEC_ERROR.
89
90 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
91
92         * record.c: Include event-loop.h, inf-loop.h.
93         (record_beneath_to_async): New global.
94         (tmp_to_async): New global.
95         (record_async_inferior_event_token): New global.
96         (record_open_1): Don't error out if async is enabled.
97         (record_open): Handle to_async.  Create an async event source in
98         the event loop.
99         (record_close): Delete the async event source.
100         (record_resumed): New global.
101         (record_execution_dir): New global.
102         (record_resume, record_core_resume): Set them.  Register the
103         target on the event loop.
104         (record_wait): Rename to ...
105         (record_wait_1): ... this.  Add more debug output.  Handle
106         TARGET_WNOHANG, and the target beneath returning
107         TARGET_WAITKIND_IGNORE.
108         (record_wait): Reimplement on top of record_wait_1.
109         (record_async_mask_value): New global.
110         (record_async, record_async_mask, record_can_async_p)
111         (record_is_async_p, record_execution_direction): New functions.
112         (init_record_ops, init_record_core_ops): Install new methods.
113         * infrun.c (fetch_inferior_event): Temporarily switch the global
114         execution direction to the direction the target was going.
115         (execution_direction): Change type to int.
116         * target.c (default_execution_direction): New function.
117         (update_current_target): Inherit and de_fault
118         to_execution_direction.
119         * target.h (struct target_ops) <to_execution_direction>: New
120         field.
121         (target_execution_direction): New macro.
122         * inferior.h (execution_direction): Change type to int.
123
124 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
125
126         * infcall.c (call_function_by_hand): Don't allow calling functions
127         in reverse execution mode.
128
129 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
130
131         * infcmd.c (finish_command): Allow async finish in reverse.
132
133 2011-05-26  Yao Qi  <yao@codesourcery.com>
134
135         * gdb_thread_db.h: Delete.  Move to ...
136         * common/gdb_thread_db.h: ... here.
137
138 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
139
140         * infcmd.c (finish_backward): Set a step-resume breakpoint at the
141         function's entry point instead of a manually managed momentary
142         breakpoint, and only ever issue one proceed call.
143         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
144         doing a reverse-finish, switch to stepi mode, to do another step.
145         (insert_step_resume_breakpoint_at_sal): Make public.
146         (normal_stop): No need to save function value return registers if
147         going reverse.
148         * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
149
150 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
151
152         * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
153         (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
154         before BPSTAT_WHAT_STOP_SILENT.  Add BPSTAT_WHAT_HP_STEP_RESUME
155         at the end.
156         * breakpoint.c (update_breakpoints_after_exec): Also delete hp
157         step-resume breakpoints.
158         (print_it_typical): Handle bp_hp_step_resume.
159         (bpstat_what): Ditto.
160         (bptype_string): Ditto.
161         (print_one_breakpoint_location): Ditto.
162         (allocate_bp_location): Ditto.
163         (mention): Ditto.
164         (breakpoint_re_set_one): Ditto.
165         * infrun.c (handle_inferior_event): Adjust.  Split
166         BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
167         BPSTAT_WHAT_HP_STEP_RESUME.
168         (insert_step_resume_breakpoint_at_sal): Rename to ...
169         (insert_step_resume_breakpoint_at_sal_1): ... this.  Add bptype
170         parameter.  Handle it.
171         (insert_step_resume_breakpoint_at_sal): Reimplement on top of
172         insert_step_resume_breakpoint_at_sal_1.
173         (insert_step_resume_breakpoint_at_frame): Rename to ...
174         (insert_hp_step_resume_breakpoint_at_frame): ... this.  Adjust to
175         set a high-priority step-resume breakpoint.
176         (insert_step_resume_breakpoint_at_frame): Adjust comment.
177         (insert_step_resume_breakpoint_at_caller): Ditto.
178
179 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
180
181         * breakpoint.c (iterate_over_related_breakpoints): New.
182         (do_map_delete_breakpoint): New.
183         (delete_command): Pass do_map_delete_breakpoint to
184         map_breakpoint_numbers.
185         (do_disable_breakpoint): New.
186         (do_map_disable_breakpoint): Iterate over the breakpoint's related
187         breakpoints.
188         (do_enable_breakpoint): Rename to ...
189         (enable_breakpoint_disp): ... this.
190         (enable_breakpoint): Adjust.
191         (do_enable_breakpoint): New.
192         (enable_once_breakpoint): Delete.
193         (do_map_enable_breakpoint): New.
194         (do_map_enable_once_breakpoint): New.
195         (enable_once_command, enable_delete_command)
196         (delete_trace_command): Iterate over the breakpoint's related
197         breakpoints.
198
199 2011-05-26  Pedro Alves  <pedro@codesourcery.com>
200
201         * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
202         for ALPHA_ZERO_REGNUM.
203         (alpha_supply_int_regs): Explicitly supply zero as the value for
204         ALPHA_ZERO_REGNUM in the register cache.
205         * alpha-nat.c (fetch_osf_core_registers): Ditto.
206
207 2011-05-26  Yao Qi  <yao@codesourcery.com>
208
209         * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
210
211 2011-05-26  Tristan Gingold  <gingold@adacore.com>
212
213         * symfile.h (struct dwarf2_section_names): New type.
214         (struct dwarf2_debug_sections): New type.
215         (dwarf2_has_info): Add parameter.
216         * dwarf2read.c (dwarf2_elf_names): New variable.
217         (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
218         (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
219         (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
220         (dwarf2_has_info): Add names parameter.  Pass names
221         to dwarf2_locate_sections.
222         (section_is_p): Rewrite using the names parameter.
223         (dwarf2_locate_sections): Use section names from the names parameter.
224         * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
225         * elfread.c (read_psyms): Ditto.
226         * machoread.c (macho_symfile_read): Ditto.
227
228 2011-05-25  Andreas Schwab  <schwab@redhat.com>
229
230         PR gdb/8677
231         * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
232
233 2011-05-24  Keith Seitz  <keiths@redhat.com>
234
235         PR breakpoint/12803
236         * linespec.c (keep_name_info): Add handling for "volatile" keyword.
237         (decode_compound): Unconditionally call keep_name_info.
238
239 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
240
241         * breakpoint.c (watchpoint_check): If the watchpoint went out of
242         scope, clear its command list.
243         (map_breakpoint_numbers): Don't walk the related breakpoints list
244         of each breakpoint.
245
246 2011-05-24  Tom Tromey  <tromey@redhat.com>
247
248         * MAINTAINERS: Move Jim Blandy to past maintainers.
249
250 2011-05-24  Tristan Gingold  <gingold@adacore.com>
251
252         * symfile.h (enum dwarf2_section_enum): New type.
253         (dwarf2_get_section_info): New prototype.
254         * dwarf2read.c (dwarf2_get_section_info): Replace parameter
255         section_name by sect.  Use a switch to select the info.
256         * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
257         (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
258
259 2011-05-24  Pedro Alves  <pedro@codesourcery.com>
260
261         * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
262         shared library event breakpoint if there's no execution.
263
264 2011-05-24  Thiago Jung Bauermann  <bauerman@br.ibm.com>
265
266         * breakpont.c (remove_hw_watchpoints): Remove unused function.
267         * breakpoint.h remove_hw_watchpoints(): Remove prototype.
268
269 2011-05-23  Tom Tromey  <tromey@redhat.com>
270
271         * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
272         NULL.
273
274 2011-05-23  Doug Evans  <dje@google.com>
275
276         * python/lib/gdb/printing.py (register_pretty_printer): Add missing
277         entry for RuntimeError to doc string.
278
279 2011-05-23  Jerome Guitton  <guitton@adacore.com>
280
281         * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
282         sequence for probing loops.
283
284 2011-05-23  Pedro Alves  <pedro@codesourcery.com>
285
286         * infrun.c (user_visible_resume_ptid): Fix typos in describing
287         comment.
288
289 2011-05-21  Mark Kettenis  <kettenis@gnu.org>
290
291         * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
292         zero as the value for %g0 in the register cache.
293         * sparc-tdep.c (sparc32_supply_gregset): Likewise.
294         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
295
296 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
297
298         * infrun.c (proceed): Set previous_inferior_ptid here.
299         (init_wait_for_inferior): Initialize previous_inferior_ptid from
300         inferior_ptid, not null_ptid.
301         (wait_for_inferior): Don't initialize previous_inferior_ptid here.
302         (fetch_inferior_event): Nor here.
303
304 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
305
306         * inf-loop.c (inferior_event_handler): Only output a message if
307         verbose.
308
309 2011-05-20  Luis Machado  <lgustavo@codesourcery.com>
310
311         * MAINTAINERS: Update my e-mail address.
312
313 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
314
315         * infrun.c (proceed): Switch the inferior event loop to
316         INF_EXEC_COMPLETE if the target refused to resume from a
317         vfork/fork.
318
319 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
320
321         * infcmd.c: Include "inf-loop.h".
322         (step_once): When stepping into an inline subroutine, pretend the
323         target has run.  If the target can async, switch the inferior
324         event loop to INF_EXEC_COMPLETE.
325         * inferior.h (user_visible_resume_ptid): Declare.
326         * infrun.c (user_visible_resume_ptid): New function, factored out
327         from `resume'.
328         (resume): Use it.
329         * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
330         that the current thread is running.  Merge async and sync
331         branches.
332
333 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
334
335         * infcmd.c (step_1): Simplify synchronous case.
336
337 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
338
339         * tracepoint.c: Include exceptions.h.
340         (TFILE_PID): Move higher in file.
341         (tfile_open): Delay pushing the tfile target until we're assured
342         the tfile header is present in the file.  Wrap reading the initial
343         newline-terminated lines in TRY_CATCH.  Pop the target if the
344         initial setup failed.  Add the tfile's thread immediately
345         aftwards, before any non-essential setup.  Don't skip
346         post_create_inferior if there are no traceframes present in the
347         file.
348         (tfile_close): Remove redundant check for null before xfree call.
349         (tfile_thread_alive): New function.
350         (init_tfile_ops): Register it as to_thread_alive callback.
351
352 2011-05-20  Pedro Alves  <pedro@codesourcery.com>
353
354         * tracepoint.c (tfile_open): Delete #if 0'd code.
355
356 2011-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
357
358         Fix -readnow for -gdwarf-4 unused type units.
359         * dwarf2read.c (struct signatured_type): Remove the field offset.
360         (create_signatured_type_table_from_index): Remove its initialization.
361         (create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
362         instead.  Add a complaint call.
363         (process_psymtab_comp_unit): Change assignment to gdb_assert.
364         (process_type_comp_unit, lookup_die_type, dump_die_shallow)
365         (lookup_signatured_type_at_offset, read_signatured_type)
366         (write_one_signatured_type): Update the field for per_cu.
367
368 2011-05-19  Tom Tromey  <tromey@redhat.com>
369
370         * python/py-inferior.c (python_inferior_exit): Use
371         target_gdbarch.
372         (python_on_resume): Likewise.
373
374 2011-05-19  Matt Rice  <ratmice@gmail.com>
375
376         * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
377
378 2011-05-19  Hui Zhu  <teawater@gmail.com>
379
380         * tracepoint.c (tfile_trace_find): Return directly when num is -1.
381
382 2011-05-19  Hui Zhu  <teawater@gmail.com>
383
384         * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
385
386 2011-05-18  Tom Tromey  <tromey@redhat.com>
387
388         * dwarf2read.c (dwarf2_add_field): Constify.
389         * value.c (value_static_field): Constify.
390         * gdbtypes.h (struct main_type) <field.field_location.physname>:
391         Now const.
392         * ax-gdb.c (gen_static_field): Constify
393
394 2011-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
395
396         * linux-nat.c (kill_callback): Use SIGKILL first.
397
398 2011-05-18  Joel Brobecker  <brobecker@adacore.com>
399
400         * ada-lang.c (print_it_exception): Avoid use of sprintf.
401
402 2011-05-18  Tom Tromey  <tromey@redhat.com>
403
404         * value.c (value_fn_field): Constify.
405         * symtab.c (gdb_mangle_name): Constify.
406         * stabsread.c (update_method_name_from_physname): Make 'physname'
407         argument const.
408         * p-typeprint.c (pascal_type_print_method_args): Make arguments
409         const.  Use explicit fputc_filtered loop.
410         (pascal_type_print_base): Constify.
411         * p-lang.h (pascal_type_print_method_args): Update.
412         * linespec.c (add_matching_methods): Constify.
413         (add_constructors): Likewise.
414         * jv-typeprint.c (java_type_print_base): Constify.
415         * gdbtypes.h (struct cplus_struct_type)
416         <fn_fieldlist.fn_field.physname>: Now const.
417         * dwarf2read.c (compute_delayed_physnames): Constify.
418         (dwarf2_add_member_fn): Likewise.
419         * c-typeprint.c (c_type_print_base): Constify.  Use cleanups.
420
421 2011-05-18  Pedro Alves  <pedro@codesourcery.com>
422
423         * infrun.c (resume): Mention which is the current thread, and its
424         current PC in debug output.
425         (prepare_to_proceed): Mention the thread switching in debug
426         output.
427
428 2011-05-18  Tom Tromey  <tromey@redhat.com>
429
430         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
431         path check.  Use xmalloc and cleanups.
432         (try_thread_db_load_from_dir): Use xmalloc and cleanups.
433
434 2011-05-17  Tom Tromey  <tromey@redhat.com>
435
436         * cp-valprint.c (cp_print_value_fields): Catch errors from
437         value_static_field.
438
439 2011-05-17  Tom Tromey  <tromey@redhat.com>
440
441         * dwarf2read.c (dwarf2_get_die_type): Call
442         get_die_type_at_offset.
443         * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
444         get_base_type function.
445
446 2011-05-17  Tomas Martinec  <fyzmat@gmail.com>
447
448         * infrun.c (handle_inferior_event) <handling deferred step>: Clear
449         trap_expected.
450
451 2011-05-16  Doug Evans  <dje@google.com>
452
453         * python/py-auto-load.c (source_section_scripts): Mention objfile
454         name in warning.
455
456 2011-05-15  Doug Evans  <dje@google.com>
457
458         * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
459         (try_thread_db_load_from_pdir): Call it.  If unable to find
460         libthread_db in directory of libpthread, see if we're looking at
461         the separate-debug-info copy.
462
463         * python/py-autoload.c (print_script): Print "Missing" instead of
464         "No" for missing scripts.
465         (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
466
467 2011-05-13  Doug Evans  <dje@google.com>
468
469         * ui-file.c (stdio_file_write_async_safe): Add comment.
470
471 2011-05-14  Hui Zhu  <teawater@gmail.com>
472
473         * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
474
475 2011-05-13  Doug Evans  <dje@google.com>
476
477         Support $pdir and $sdir in libthread-db-search-path.
478         * NEWS: Mention $sdir,$pdir.
479         * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
480         * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
481         (try_thread_db_load_from_sdir): New function.
482         (try_thread_db_load_from_dir): New function.
483         (thread_db_load_search): Handle $pdir, $sdir.  Remove trying of
484         system directories if search of libthread-db-search-path fails,
485         that is now done via $sdir.
486         (has_libpthread): New function.
487         (thread_db_load): Remove search for libthread_db in directory of
488         libpthread, that is now done via $pdir.
489
490         * NEWS: Mention "info auto-load-scripts".
491         * python/py-auto-load.c (struct auto_load_pspace_info): New member
492         script_not_found_warning_printed.
493         (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
494         all callers updated.  Initialize script_not_found_warning_printed.
495         (get_auto_load_pspace_data_for_loading): New function.
496         (maybe_add_script): New function.
497         (source_section_scripts): Simplify.  Only print one warning regardless
498         of the number of auto-load scripts not found.
499         (clear_section_scripts): Clear script_not_found_warning_printed.
500         (auto_load_objfile_script): Record script in hash table.
501         (count_matching_scripts): New function.
502         (maybe_print_script): Renamed from maybe_print_section_script, all
503         callers updated.  Rewrite to use ui_out_*.
504         (info_auto_load_scripts): Renamed from
505         maintenance_print_section_scripts, all callers updated.
506         (gdbpy_initialize_auto_load): "maintenance print section-scripts"
507         renamed as "info auto-load-scripts".
508
509 2011-05-13  Tom Tromey  <tromey@redhat.com>
510
511         * dwarf2expr.c (read_uleb128): Cast intermediate result.
512         (read_sleb128): Likewise.
513
514 2011-05-13  Tom Tromey  <tromey@redhat.com>
515
516         * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
517         offset display.
518
519 2011-05-13  Doug Evans  <dje@google.com>
520
521         * linux-nat.c (debug_linux_nat_async): Delete.
522         Replace all references to use debug_linux_nat instead.
523         (show_debug_linux_nat_async): Delete.
524         (sigchld_handler): Call ui_file_write_async_safe instead of
525         fprintf_unfiltered.
526         (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
527         * ui-file.c (struct ui_file): New member to_write_async_safe.
528         (null_file_write_async_safe): New function.
529         (ui_file_write_async_safe): New function.
530         (set_ui_file_write_async_safe): New function.
531         (ui_file_new): Initialize to_write_async_safe.
532         (stdio_file_write_async_safe): New function.
533         (struct stdio_file): New member fd.
534         (stdio_file_new): Initialize to_write_async_safe, fd.
535         (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
536         fileno.
537         * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
538         (set_ui_file_write_async_safe): Declare.
539         (ui_file_write_async_safe): Declare.
540
541 2011-05-13  Tom Tromey  <tromey@redhat.com>
542
543         * utils.c (do_value_free): New function.
544         (make_cleanup_value_free): Likewise.
545         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
546         freeing correctly.
547         (dwarf2_loc_desc_needs_frame): Call
548         make_cleanup_value_free_to_mark.
549         * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
550         * dwarf2expr.c (free_dwarf_expr_context): Don't call
551         value_free_to_mark.
552         (new_dwarf_expr_context): Don't call value_mark.
553         * dwarf2-frame.c (execute_stack_op): Call
554         make_cleanup_value_free_to_mark.
555         * defs.h (make_cleanup_value_free): Declare.
556
557 2011-05-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
558
559         * mi/mi-main.c (mi_cmd_execute): Use cleanup from
560         prepare_execute_command.
561         * top.c (prepare_execute_command): Return cleanup.
562         (execute_command): Use cleanup from prepare_execute_command.
563         * top.h (prepare_execute_command): Change prototype to return
564         cleanup.
565         * defs.h (struct value): Add opaque declaration.
566         (make_cleanup_value_free_to_mark): Add prototype.
567         * utils.c (do_value_free_to_mark): New function.
568         (make_cleanup_value_free_to_mark): Likewise.
569
570 2011-05-12  Tom Tromey  <tromey@redhat.com>
571
572         * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
573         cast left-hand-side to unsigned.
574
575 2011-05-12  Tom Tromey  <tromey@redhat.com>
576
577         PR gdb/12617:
578         * value.h (value_from_contents): Declare.
579         * value.c (value_from_contents): New function.
580         * dwarf2read.c (dwarf_stack_op_name): Add new values.
581         (dwarf2_get_die_type): New function.
582         * dwarf2loc.c (dwarf_expr_get_base_type): New function.
583         (allocate_piece_closure): Acquire reference to values.
584         (read_pieced_value): Update for value-based expressions.
585         (write_pieced_value): Likewise.
586         (free_pieced_value_closure): Call value_free as needed.
587         (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
588         Update for value-based expressions.
589         * dwarf2loc.h (dwarf2_get_die_type): Declare.
590         * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
591         <get_base_type>: New field.
592         (struct dwarf_expr_piece) <v.value>: Change type.
593         <v.regno>: New field.
594         (struct dwarf_expr_context) <mark>: New field.
595         (dwarf_expr_piece, dwarf_expr_fetch): Update.
596         (dwarf_expr_pop, dwarf_expr_push): Remove.
597         (dwarf_expr_push_address): Declare.
598         * dwarf2expr.c (dwarf_arch_cookie): New global.
599         (struct dwarf_gdbarch_types): New.
600         (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
601         functions.
602         (dwarf_expr_push): Change type of 'value' argument.  Update.  Now
603         static.
604         (dwarf_expr_push_address): New function.
605         (dwarf_expr_pop): Now static.
606         (dwarf_expr_fetch): Change return type.
607         (dwarf_require_integral): New function.
608         (dwarf_expr_fetch): Simplify.
609         (add_piece): Update.
610         (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
611         functions.
612         (execute_stack_op) <sign_ext>: Remove.
613         Use values for DWARF stack.
614         <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
615         DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
616         New cases.
617         (_initialize_dwarf2expr): New function.
618         (add_piece): Update.
619         (new_dwarf_expr_context): Set new field.
620         (free_dwarf_expr_context): Call value_free_to_mark.
621         * dwarf2-frame.c (no_base_type): New function.
622         (execute_stack_op): Set get_base_type field.  Update.
623
624 2011-05-12  Tom Tromey  <tromey@redhat.com>
625
626         * dwarf2read.c (read_common_block): Fix formatting.
627
628 2011-05-12  Kwok Cheung Yeung  <kcy@codesourcery.com>
629
630         * breakpoint.c (disable_breakpoint): Disable all locations
631         associated with a tracepoint on target if a trace experiment is
632         running.
633         (disable_command): Disable a specific tracepoint location on target if
634         a trace experiment is running.
635         (do_enable_breakpoint): Enable all locations associated with a
636         tracepoint on target if a trace experiment is running.
637         (enable_command) Enable a specific tracepoint location on target if a
638         trace experiment is running.
639         * target.c (update_current_target): Add INHERIT and de_fault clauses for
640         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
641         to_disable_tracepoint.
642         * target.h: Add declaration of struct bp_location.
643         (struct target_ops): Add new functions
644         to_supports_enable_disable_tracepoint, to_enable_tracepoint and
645         to_disable_tracepoint to target operations.
646         (target_supports_enable_disable_tracepoint): New macro.
647         (target_enable_tracepoint): New macro.
648         (target_disable_tracepoint): New macro.
649         * remote.c (struct remote_state): Add new field.
650         (remote_enable_disable_tracepoint_feature): New.
651         (remote_protocol_features): Add new entry.
652         (remote_supports_enable_disable_tracepoint): New.
653         (remote_enable_tracepoint): New.
654         (remote_disable_tracepoint): New.
655         (init_remote_ops): Add remote_enable_tracepoint,
656         remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
657         to remote operations.
658         * tracepoint.c (start_tracing): Allow tracing to start without any
659         tracepoints enabled with just a warning if they can be re-enabled
660         later.
661         * NEWS: Add news item for the new behaviour of the enable and disable
662         GDB commands when applied to tracepoints.
663         Add news items for the new remote packets QTEnable and QTDisable.
664
665 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
666
667         * config.in: Regenerate.
668         * configure: Regenerate.
669         * configure.ac <--with-system-readline> (for readline_echoing_p):
670         Remove the test.
671         * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
672         (tui_old_rl_echoing_p): ... here.
673         (tui_setup_io): Rename extern declaration readline_echoing_p to
674         _rl_echoing_p.  Adjust assignments for the both renames.
675
676 2011-05-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
677
678         * symtab.c (lookup_symtab): Run cleanup before returning.
679
680 2011-05-11  Tom Tromey  <tromey@redhat.com>
681
682         * dwarf2read.c (handle_data_member_location): New function.
683         (dwarf2_add_field): Use it.
684         (read_common_block): Likewise.
685
686 2011-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
687
688         Make addrs->SECTINDEX always defined.
689         * symfile.c (relative_addr_info_to_section_offsets): Check for
690         SECTINDEX -1, not for zero ADDR.
691         (addrs_section_compar): Remove checking for invalid SECTINDEX.
692         (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
693         * symfile.h (struct section_addr_info) <sectindex>: Update the comment
694         on its validity.
695
696 2011-05-10  Doug Evans  <dje@google.com>
697
698         * linux-thread-db.c: Whitespace cleanup.
699         (try_thread_db_load_1): Fix comment.
700
701         * linux-thread-db.c (set_libthread_db_search_path): New function.
702         (_initialize_thread_db): Add setter for libthread-db-search-path.
703
704 2011-05-09  Doug Evans  <dje@google.com>
705
706         * NEWS: Mention --with-iconv-bin.
707         * configure.ac: New option --with-iconv-bin.
708         * configure: Regenerate.
709         * config.in: Regenerate.
710         * defs.h (relocate_gdb_directory): Declare.
711         * main.c (relocate_gdb_directory): Renamed from relocate_directory,
712         removed progname parameter, and exported.  All callers updated.
713         * charset.c (find_charset_names): Use --with-iconv-bin if specified.
714
715         * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
716         adding missing call to restore_child_signals_mask.
717
718 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
719
720         * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
721         parameter.
722         * infrun.c (proceed, start_remote): Adjust.
723         (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
724         and adjust to not handle it.
725         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
726         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
727         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
728         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
729         * windows-nat.c (do_initial_windows_stuff): Adjust.
730         * infcmd.c (attach_command): Adjust.
731         (notice_new_inferior): Adjust.
732
733 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
734
735         * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
736         (ppu2spu_unwind_register): Mark pseudo registers unavailable.
737         * spu-tdep.c (op_selb): Use correct value.
738
739 2011-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
740
741         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
742         "parent" parameter to symbol_file_add_from_bfd call.
743
744 2011-05-06  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
745             Thiago Jung Bauermann  <bauerman@br.ibm.com>
746
747         Implement support for PowerPC BookE masked watchpoints.
748         * NEWS: Mention masked watchpoint support.  Create "Changed commands"
749         section.
750         * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
751         method.  Initialize to NULL in all existing breakpoint_ops instances.
752         (struct breakpoint) <hw_wp_mask>: New field.
753         * breakpoint.c (is_masked_watchpoint): Add prototype.
754         (update_watchpoint): Don't set b->val for masked watchpoints.  Call
755         breakpoint's breakpoint_ops.works_in_software_mode if available.
756         (watchpoints_triggered): Handle the case of a hardware masked
757         watchpoint trigger.
758         (watchpoint_check): Likewise.
759         (works_in_software_mode_watchpoint): New function.
760         (insert_masked_watchpoint, remove_masked_watchpoint)
761         (resources_needed_masked_watchpoint)
762         (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
763         (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
764         (print_recreate_masked_watchpoint, is_masked_watchpoint): New
765         functions.
766         (masked_watchpoint_breakpoint_ops): New structure.
767         (watch_command_1): Check for the existence of the `mask' parameter.
768         Set b->ops according to the type of hardware watchpoint being created.
769         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
770         (ppc_linux_remove_mask_watchpoint)
771         (ppc_linux_masked_watch_num_registers): New functions.
772         (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
773         to_remove_mask_watchpoint and to_masked_watch_num_registers.
774         * target.c (update_current_target): Mention to_insert_mask_watchpoint,
775         to_remove_mask_watchpoint, and to_masked_watch_num_registers.
776         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
777         (target_masked_watch_num_registers): New functions.
778         * target.h (struct target_ops) <to_insert_mask_watchpoint>,
779         <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
780         methods.
781         (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
782         (target_masked_watch_num_registers): Add prototypes.
783
784 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
785
786         PR 12573
787         * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
788         (producer_is_gcc_ge_4_0): New function.
789         (process_full_comp_unit): Set also symtab->locations_valid.  Move the
790         symtab->language code.
791         (var_decode_location): Set cu->has_loclist.
792         * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
793         skip.  Intialize force_skip from locations_valid.  Move the prologue
794         skipping code into two passes.
795         * symtab.h (struct symtab): Make the primary field a bitfield.  New
796         field locations_valid.
797
798 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
799
800         * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
801         (classify_inner_name): Call cp_lookup_nested_type with
802         yylval.tsym.type.
803         * cp-namespace.c (cp_lookup_nested_type): New variable
804         saved_parent_type.  Call CHECK_TYPEDEF for parent_type.  Call
805         type_name_no_tag_or_error with saved_parent_type.
806         * dwarf2read.c (load_partial_dies): Read in any children of
807         DW_TAG_typedef with complaint in such case.
808         * gdbtypes.c (type_name_no_tag_or_error): New function.
809         * gdbtypes.h (type_name_no_tag_or_error): New prototype.
810         * valops.c (destructor_name_p): New comment for parameter type.  Remove
811         type const.  Make dname and cp const.  Call type_name_no_tag_or_error.
812         * value.h (destructor_name_p): Remove type const.
813
814 2011-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
815
816         * symtab.c (compare_symbol_name): New function.
817         (completion_list_add_name, expand_partial_symbol_name): Call it,
818         remove the variable ncmp.
819         (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
820         gdb_assert it.
821
822 2011-05-05  Thiago Jung Bauermann  <bauerman@br.ibm.com>
823
824         Demote to sw watchpoint only in update_watchpoint.
825         * breakpoint.c (update_watchpoint): Change between software and
826         hardware watchpoint for all kinds of watchpoints, not just
827         read/write ones.  Determine b->exact value here instead of
828         in watch_command_1.  Error out if there are not enough resources
829         for a read or access hardware watchpoint.
830         (watch_command_1): Remove logic of checking whether there are
831         enough resources available, since update_watchpoint will do that
832         work now.  Don't set b->exact here.  Catch exceptions thrown by
833         update_watchpoint and delete the watchpoint.
834         (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
835         Use target_exact_watchpoints instead.
836         (delete_breakpoint): Notify observers only if deleted watchpoint
837         has a breakpoint number assigned to it.
838
839 2011-05-05  Janis Johnson  <janisjo@codesourcery.com>
840
841         * MAINTAINERS: Add myself as a write-after-approval maintainer.
842
843 2011-05-05  Jerome Guitton  <guitton@adacore.com>
844
845         * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
846         New functions.
847         (i386_stack_tramp_frame_unwind): New static global.
848         (i386_match_pattern): New function, extracted from i386_match_insn.
849         (i386_match_insn): Use i386_match_pattern.
850         (i386_match_insn_block): New function.
851         (i386_tramp_chain_in_reg_insns)
852         (i386_tramp_chain_on_stack_insns): New static variables.
853         (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
854         of unwinders.
855
856 2011-05-04  Joseph Myers  <joseph@codesourcery.com>
857
858         * configure.host (xscale*): Don't handle target.
859         * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
860         handle targets.
861
862 2011-05-04  Yao Qi  <yao@codesourcery.com>
863
864         * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
865
866 2011-05-03  Joel Brobecker <brobecker@adacore.com>
867
868         Revert:
869         | 2011-03-07  Michael Snyder  <msnyder@vmware.com>
870         | * elfread.c (elf_symtab_read): Stop memory leak.
871
872 2011-05-03  Pierre Muller  <muller@ics.u-strasbg.fr>
873
874         * nto-tdep.c (nto_target): Replace deprecated call to
875         cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
876
877 2011-05-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
878
879         Fix false GCC warning.
880         * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
881
882 2011-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
883
884         * breakpoint.c (update_watchpoint): Move code to change
885         the enable state of breakpoint from here ...
886         (do_enable_breakpoint): ... to here.
887
888 2011-04-26  Andrew Gontarek  <andrewg@cray.com>
889
890         * valprint.c (val_print_array_elements): Fixed poor performance
891         of printing very large arrays with repeat_count_threshold set
892         to unlimited.  New comment.
893
894 2011-04-29  Tom Tromey  <tromey@redhat.com>
895
896         * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
897         (mi_parse): Likewise.
898         * breakpoint.c (break_range_command): Use sizeof char*, not
899         char**.
900         (create_breakpoint): Likewise.
901         (parse_breakpoint_sals): Likewise.
902
903 2011-04-29  Pedro Alves  <pedro@codesourcery.com>
904
905         * linux-nat.c (linux_child_remove_fork_catchpoint)
906         (linux_child_remove_vfork_catchpoint)
907         (linux_child_remove_exec_catchpoint): New functions.
908         (linux_target_install_ops): Install them.
909
910 2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>
911
912         PR mi/12531
913
914         * varobj.c (install_default_visualizer): Do not install a
915         visualizer if the varobj is CPLUS_FAKE_CHILD.
916         (construct_visualizer): Likewise.
917
918 2011-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
919
920         * symtab.c (expand_partial_symbol_name): New variable NCMP.  Support
921         case insensitive comparison.
922
923 2011-04-28  Ulrich Weigand  <ulrich.weigand@linaro.org>
924
925         * infrun.c (proceed): Revert previous change.
926         (resume): Instead, handle the case of signal delivery while stepping
927         off a breakpoint location here, and only if software single-stepping
928         is used.  Handle nested signals.
929
930 2011-04-28  Yao Qi  <yao@codesourcery.com>
931
932         * arm-tdep.c (copy_unmodified): Rename to ...
933         (arm_copy_unmodified): .. this.  New.
934         (copy_preload): Move common part to ...
935         (install_preload): .. this.  New.
936         (arm_copy_preload): New.
937         (copy_preload_reg): Move common part to ...
938         (install_preload_reg): ... this.  New.
939         (arm_copy_preload_reg): New.
940         (copy_b_bl_blx): Move common part to ...
941         (install_b_bl_blx): .. this.  New.
942         (arm_copy_b_bl_blx): New.
943         (copy_bx_blx_reg): Move common part to ...
944         (install_bx_blx_reg): ... this. New.
945         (arm_copy_bx_blx_reg): New.
946         (copy_alu_reg): Move common part to ...
947         (install_alu_reg): ... this.  New.
948         (arm_copy_alu_reg): New.
949         (copy_alu_shifted_reg): Move common part to ...
950         (install_alu_shifted_reg): ... this.  New.
951         (copy_ldr_str_ldrb_strb): Move common part to ...
952         (install_ldr_str_ldrb_strb): ... this.  New.
953         (arm_copy_ldr_str_ldrb_strb): New.
954         (copy_copro_load_store): Move some common part to ...
955         (install_copy_copro_load_store): ... this.  New.
956         (arm_copy_copro_load_store): New.
957         (copy_svc): Delete.
958         (arm_copy_svc): Renamed from copy_svc.
959         (copy_undef): Delete.
960         (arm_copy_undef): Renamed from copy_undef.
961         (decode_ext_reg_ld_st): Delete.
962         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
963         (decode_svc_copro): Delete.
964         (arm_decode_svc_copro): Renamed from decode_svc_copro.
965         (copy_copro_load_store, copy_alu_imm): update callers.
966         (copy_extra_ld_st, copy_block_xfer): Likewise.
967         (decode_misc_memhint_neon, decode_unconditional): Likewise.
968         (decode_miscellaneous, decode_dp_misc): Likewise.
969         (decode_ld_st_word_ubyte, decode_media): Likewise.
970         (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
971         (decode_svc_copro, decode_misc_memhint_neon): Likewise.
972         (decode_unconditional, decode_miscellaneous): Likewise.
973         (decode_media, decode_b_bl_ldmstm): Likewise.
974         (arm_process_displaced_insn): Likewise..
975         (decode_misc_memhint_neon): Delete.
976         (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
977         (decode_miscellaneous): Delete.
978         (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
979         (decode_dp_misc): Delete.
980         (arm_decode_dp_misc): Renamed from decode_dp_misc.
981         (decode_ld_st_word_ubyte): Delete.
982         (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
983         (decode_media): Delete.
984         (arm_decode_media): Renamed from decode_media.
985         (decode_b_bl_ldmstm): Delete.
986         (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
987         (decode_ext_reg_ld_st): Delete.
988         (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
989         (decode_unconditional): Delete.
990         (arm_decode_unconditional): Renamed from decode_unconditional.
991
992 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
993
994         Case insensitive lookups implementation.
995         * dwarf2read.c: Include ctype.h.
996         (struct mapped_index): New field version.
997         (mapped_index_string_hash): New parameter index_version.  New comment
998         for it.  Call tolower appropriately.
999         (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1000         Choose the right index version for mapped_index_string_hash.
1001         (dwarf2_read_index): Support also the index version 5.  Initialize the
1002         new struct mapped_index field version.
1003         (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1004         (find_slot): Explain the version needs.  Pass INT_MAX for the new
1005         parameter.
1006         (write_psymtabs_to_index): Produce version 5.
1007         * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1008         use it.  New comment for SYMBOL_MATCHES_SEARCH_NAME.
1009         * psymtab.c (lookup_partial_symbol): Find the
1010         SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1011         entries.
1012         * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1013         NAME lowercasing.
1014         (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1015         (completion_list_add_name): New variable ncmp, initialize it, use it.
1016         * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1017         * utils.c (strcmp_iw): Support case_sensitive_off.
1018         (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1019         New function comment part.  New variables saved_string1,
1020         saved_string2 and case_pass.  Add a proper second pass.
1021
1022 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1023
1024         Replace re_comp/re_exec by regcomp/regexec.
1025         * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1026         (search_symbols_name_matches): Use them, use regexec.
1027         (search_symbols): New variable retval_chain, adjust the use of
1028         old_chain against it.  Replace re_comp by regcomp.  Use the new struct
1029         search_symbols_data fields, use regexec instead of re_exec.
1030
1031 2011-04-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1032
1033         Format the code for the next patch.
1034         * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1035         * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1036         New variables c1 and c2.
1037
1038 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
1039
1040         * infrun.c (proceed): Do not single-step into signal delivery
1041         when stepping off a breakpoint location.
1042         (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1043         (insert_step_resume_breakpoint_at_caller): Likewise.
1044         (insert_step_resume_breakpoint_at_sal): Likewise.
1045         (insert_longjmp_resume_breakpoint): Likewise.
1046
1047 2011-04-27  Yao Qi  <yao@codesourcery.com>
1048
1049         * common/linux-ptrace.h: Remove include <sys/wait.h>.
1050
1051 2011-04-27  Joel Brobecker  <brobecker@adacore.com>
1052
1053         * procfs.c (procfs_pass_signals): Fix advance declaration.
1054
1055 2011-04-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
1056
1057         * target.h (struct target_ops): Remove to_notice_signals;
1058         add to_pass_signals.
1059         (target_notice_signals): Remove.
1060         (target_pass_signals): Add prototype.
1061         * target.c (update_current_target): Remove to_notice_signals;
1062         mention to_pass_signals.
1063         (target_pass_signals): New function.
1064         (debug_to_notice_signals): Remove.
1065         (setup_target_debug): Do not install debug_to_notice_signals.
1066
1067         * infrun.c (signal_pass): New global.
1068         (resume): Call target_pass_signals.
1069         (handle_inferior_event): Report all signals while stepping over
1070         non-steppable watchpoint.  Reset trap_expected to ensure breakpoints
1071         are re-inserted when stepping over a signal handler.
1072         (signal_cache_update): New function.
1073         (signal_stop_update): Call it.
1074         (signal_print_update): Likewise.
1075         (signal_pass_update): Likewise.
1076         (handle_command): Call signal_cache_update and target_pass_signals
1077         instead of target_notice_signals.
1078         (_initialize_infrun): Initialize signal_pass.
1079
1080         * linux-nat.c (pass_mask): New global.
1081         (linux_nat_pass_signals): New function.
1082         (linux_nat_create_inferior): Report all signals initially.
1083         (linux_nat_attach): Likewise.
1084         (linux_nat_resume): Use pass_mask to decide whether to directly
1085         handle an inferior signal.
1086         (linux_nat_wait_1): Likewise.
1087         (linux_nat_add_target): Install to_pass_signals callback.
1088
1089         * nto-procfs.c (notice_signals): Remove.
1090         (procfs_resume): Do not call notice_signals.
1091         (procfs_notice_signals): Remove.
1092         (procfs_pass_signals): New function.
1093         (init_procfs_ops): Install to_pass_signals callback instead of
1094         to_notice_signals callback.
1095         (_initialize_procfs): Report all signals initially.
1096
1097         * procfs.c (procfs_notice_signals): Remove.
1098         (procfs_pass_signals): New function.
1099         (procfs_target): Install to_pass_signals callback instead of
1100         to_notice_signals callback.
1101         (register_gdb_signals): Remove.
1102         (procfs_debug_inferior): Report all signals initially.
1103         (procfs_init_inferior): Remove redundant register_gdb_signals call.
1104
1105         * remote.c (remote_pass_signals): Add numsigs and pass_signals
1106         parameters; use them instead of calling signal_..._state routines.
1107         (remote_notice_signals): Remove.
1108         (remote_start_remote): Report all signals initially.
1109         (remote_resume): Do not call remote_pass_signals.
1110         (_initialize_remote): Install to_pass_signals callback instead of
1111         to_notice_signals callback.
1112
1113 2011-04-27  Pedro Alves  <pedro@codesourcery.com>
1114
1115         * breakpoint.c (user_settable_breakpoint): Delete.
1116         (user_breakpoint_p): Remove check on user_settable_breakpoint.
1117         (delete_command): Check user_breakpoint_p instead of looking at
1118         the breakpoint's type.
1119         (disable_command): Ditto.
1120         (enable_command): Ditto.
1121         (delete_trace_command): Use user_breakpoint_p instead of looking
1122         at the breakpoint number directly.  When checking if there are
1123         user visible tracepoints, in order to know whether to ask the user
1124         for confirmation, check whether the breakpoint is actually a
1125         tracepoint.
1126
1127 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
1128
1129         * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1130         compilation.
1131
1132 2011-04-27  Vladimir Prus  <vladimir@codesourcery.com>
1133
1134         MI breakpoint notifications.
1135
1136         * annotate.c (breakpoint_changed): Adjust parameter type.
1137         * breakpoint.c (set_breakpoint_condition): Adjust to change
1138         in breakpoint_modified type.
1139         (breakpoint_set_commands): Likewise.
1140         (do_map_commands_command): Likewise.
1141         (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1142         changed after bumping hit count.
1143         (bpstat_stop_status): Likewise.
1144         (print_one_breakpoint_location): Don't wrap in tuple here.
1145         (print_one_breakpoint): Always print individual locations.
1146         For locations, use unnamed tuple.
1147         (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1148         has changed.
1149         (create_catchpoint, create_syscall_event_catchpoint): Call
1150         breakpoint_created obsever.
1151         (mention): Don't call breakpoint_created observer.
1152         (create_breakpoint_sal): Call breakpoint_created observer.
1153         (create_breakpoint, watch_command_1): Likewise.
1154         (create_ada_exception_breakpoint): Likewise.
1155         (delete_breakpoint): Call breakpoint_deleted breakpoint.
1156         (locations_are_equal): New.
1157         (update_breakpoint_locations): If locations were changed, notify.
1158         (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1159         Call breakpoint_modified observer.
1160
1161         * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1162         (mi_cmd_break_insert): Don't set observers for modify and delete.
1163         * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1164         (mi_breakpoint_created, mi_breakpoint_deleted)
1165         (mi_breakpoint_modified): New.
1166         (mi_interpreter_init): Hook the above.
1167         * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1168         while -break-* commands are executing.
1169         * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1170         * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1171         (mi_redirect): New.
1172         (mi_ui_out_impl): Hook in mi_redirect.
1173         (mi_field_skip): True to the name, skip the field, don't output
1174         a field with an empty value.
1175
1176         * python/py-breakpoint.c (gdbpy_breakpoint_created)
1177         (gdbpy_breakpoint_deleted): Adjust.
1178         * tui/tui-hooks.c (tui_event_create_breakpoint)
1179         (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1180
1181 2011-04-26  Aleksandar Ristovski  <aristovski@qnx.com>
1182
1183         * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1184         (procfs_remove_hw_watchpoint): Likewise.
1185
1186 2011-04-26  Michael Walle  <michael@walle.cc>
1187
1188         * remote.c (remote_start_remote): Ack packet after sending the
1189         interrupt sequence.
1190
1191 2011-04-26  Yao Qi  <yao@codesourcery.com>
1192
1193         * linux-nat.c: Move common macros to ...
1194         Include linux-ptrace.h.
1195         * common/linux-ptrace.h: ... here.  New.
1196
1197 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1198
1199         * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1200         !objfile_has_partial_symbols.  New comment.
1201         * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1202         SYM_READ_PSYMBOLS is not present. Extend the comment.
1203         * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1204
1205 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1206
1207         * defs.h (ENUM_BITFIELD): Remove.
1208
1209 2011-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1210             Eli Zaretskii  <eliz@gnu.org>
1211
1212         * NEWS: Document the new gdbserver --once option.
1213
1214 2011-04-21  Jie Zhang  <jzhang918@gmail.com>
1215
1216         * MAINTAINERS: Update my email address.
1217
1218 2011-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1219
1220         * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1221         (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1222         function call if __STDC_ISO_10646__ macro is defined.
1223         (intermediate_encoding): New prototype.
1224         * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1225         to generate compile time error for unsupported gdb_wchar_t size.
1226         (ENDIAN_SUFFIX): New macro.
1227         (intermediate_encoding): New function.
1228
1229 2011-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
1230
1231         * ada-lang.c (struct add_partial_datum): Update the comment for
1232         expand_partial_symbol_name.
1233         (ada_add_partial_symbol_completions): Rename to ...
1234         (ada_expand_partial_symbol_name): ... here, change return type, update
1235         function comment, call symbol_completion_match instead of
1236         symbol_completion_add.
1237         (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1238         and ada_expand_partial_symbol_name.
1239         * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1240         FILE_MATCHER.
1241         (dw2_map_symbol_names): Remove.
1242         (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1243         * psymtab.c (map_symbol_names_psymtab): Remove.
1244         (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1245         Support KIND == ALL_DOMAIN.  Exchange the NAME_MATCHER and KIND check
1246         order.
1247         (psym_functions): Unlist map_symbol_names_psymtab.
1248         (map_partial_symbol_names): Rename to ...
1249         (expand_partial_symbol_names): ... here, change the FUN type, call
1250         expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1251         * psymtab.h (map_partial_symbol_names): Rename to ...
1252         (expand_partial_symbol_names): ... here, change the FUN type.
1253         * symfile.h (struct quick_symbol_functions): Update the description of
1254         expand_symtabs_matching.  Remove map_symbol_names.
1255         * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1256         (struct add_name_data): Update the comment for
1257         expand_partial_symbol_name.
1258         (add_partial_symbol_name): Rename to ...
1259         (expand_partial_symbol_name): ... here.  Replace
1260         completion_list_add_name call by strncmp.
1261         (default_make_symbol_completion_list_break_on): Use now
1262         expand_partial_symbol_names and expand_partial_symbol_name.
1263         * symtab.h (enum search_domain): New element ALL_DOMAIN.
1264
1265 2011-04-20  Tom Tromey  <tromey@redhat.com>
1266
1267         * dwarf2read.c (save_gdb_index_command): Replace format
1268         documentation with a pointer to the manual.
1269
1270 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
1271
1272         * regcache.c: Include remote.h.
1273         (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1274         (regcache_dump): Handle regcache_dump_remote.
1275         (maintenance_print_remote_registers): New function.
1276         (_initialize_regcache): Install "maint print remote-registers"
1277         command.
1278         * remote.c (map_regcache_remote_table): New function, factored out
1279         from ...
1280         (init_remote_state): ... here.
1281         (remote_register_number_and_offset): New.
1282         * remote.h (remote_register_number_and_offset): Declare.
1283
1284 2011-04-20  Pedro Alves  <pedro@codesourcery.com>
1285
1286         * regcache.c (get_thread_arch_regcache): If creating a regcache for
1287         null_ptid, assume and allow a NULL address space, instead of
1288         asking the target for the ptid's address space.
1289         * infrun.c (ptid_is_pid): Remove assertion.
1290
1291 2011-04-19  Tom Tromey  <tromey@redhat.com>
1292
1293         * windows-tdep.c (windows_xfer_shared_library):
1294         * windows-nat.c (get_module_name, windows_make_so):
1295         * v850-tdep.c (v850_handle_pushm):
1296         * utils.c (null_cleanup, gdb_realpath):
1297         * ui-out.c (get_next_header):
1298         * tracepoint.c (clear_traceframe_info):
1299         * symtab.c (lookup_symtab):
1300         * serial.h (struct serial_ops):
1301         * mipsread.c (read_alphacoff_dynamic_symtab):
1302         * infcmd.c (print_return_value):
1303         * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1304         * f-exp.y (parse_number):
1305         * exceptions.c (catch_exceptions):
1306         * dummy-frame.c (dummy_frame_this_id):
1307         * defs.h (struct cleanup):
1308         * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1309         * arm-tdep.c (arm_push_dummy_call):
1310         * amd64-tdep.h (amd64_collect_xsave):
1311         * amd64-tdep.c (amd64_collect_xsave):
1312         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1313         * README (typing): Remove duplicate words.
1314         * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1315         * infrun.c (siginfo_value_read): Fix typo.
1316         * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1317         * top.c (source_line_number): Add comma.
1318
1319 2011-04-19  Marc Khouzam  <marc.khouzam@ericsson.com>
1320
1321         * thread.c (any_live_thread_of_process): Prioritize threads
1322         that are not executing.
1323         * gdbthread.h (any_live_thread_of_process): Update comment
1324         as per above change.
1325
1326 2011-04-19  Andreas Schwab  <schwab@linux-m68k.org>
1327
1328         * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1329         (scan_xcoff_symtab): Likewise.
1330
1331 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1332
1333         * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1334         inside if clause.
1335
1336 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1337             Pedro Alves  <pedro@codesourcery.com>
1338
1339         * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1340         variables to simplify code and avoid == operator at end of
1341         line as this is against GNU coding standards.
1342
1343 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1344
1345         * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1346         lm_name to name_lm to avoid conflict with lm_name function.
1347
1348 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1349
1350         ARI fixes: Use only lowercase function name for static functions.
1351         * nto-tdep.c (LM_ADDR): Rename to...
1352         (lm_addr): New function name.
1353         (nto_relocate_section_addresses): Adapt to change above.
1354         * solib-sunos.c (LM_ADDR): Rename to...
1355         (lm_addr): New function name.
1356         (LM_NEXT): Rename to...
1357         (lm_next): New function name.
1358         (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1359         function name changes above.
1360         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1361         (lm_addr_from_link_map): New function name.
1362         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1363         (has_lm_dynamic_from_link_map): New function name.
1364         (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1365         (lm_dynamic_from_link_map): New function name.
1366         (LM_ADDR_CHECK): Rename to...
1367         (lm_addr_check): New function name.
1368         (LM_NEXT): Rename to...
1369         (lm_next): New function name.
1370         (LM_PREV): Rename to...
1371         (lm_prev): New function name.
1372         (LM_NAME): Rename to...
1373         (lm_name): New function name.
1374         (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1375         (ignore_first_link_map_entry): New function name.
1376         (svr4_keep_data_in_core): Adapt to function name changes above.
1377         (svr4_current_sos): Likewise.
1378         (enable_break): Likewise.
1379         (svr4_relocate_section_addresses): Likewise.
1380
1381 2011-04-19  Pierre Muller  <muller@ics.u-strasbg.fr>
1382
1383         ARI cleanup.
1384         * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1385         sprintf. Simplify code and avoid loosing memory.
1386         (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1387         (call0_frame_cache): Remove && operator from end of line.
1388
1389 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1390
1391         Fix libraries displacement if they change whether they were prelinked.
1392         * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1393         does not match.  Comment why.
1394
1395 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1396
1397         * corelow.c: Include wrapper.h.
1398         (core_open): Call now gdb_target_find_new_threads.
1399         * wrapper.c: Include target.h.
1400         (gdb_target_find_new_threads): New.
1401         * wrapper.h (gdb_target_find_new_threads): New declaration.
1402
1403 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1404
1405         * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1406         even if !TARGET_HAS_EXECUTION.
1407
1408 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1409
1410         Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1411         * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1412         bfd_get_synthetic_symtab.
1413         * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1414         * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1415         parameter parent, remove the call to add_separate_debug_objfile.
1416         * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1417         * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1418         * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1419         parent, new comment for it, call add_separate_debug_objfile for it.
1420         (symbol_file_add_separate): Pass objfile as the parameter parent,
1421         remove the call to add_separate_debug_objfile.
1422         (symbol_file_add_from_bfd): New parameter parent, pass it.
1423         (symbol_file_add): Pass NULL to the new parameter parent.
1424         * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1425
1426 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1427
1428         * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1429         BSF_SYNTHETIC.
1430
1431 2011-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1432
1433         Fix Python access to inlined frames.
1434         * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1435         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1436
1437 2011-04-15  Tom Tromey  <tromey@redhat.com>
1438
1439         * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1440
1441 2011-04-15  Gary Benson  <gbenson@redhat.com>
1442
1443         * MAINTAINERS: Add myself to write-after-approval section.
1444
1445 2011-04-14  Mike Frysinger  <vapier@gentoo.org>
1446
1447         * remote-sim.c (sim_command_completer): New function.
1448         (_initialize_remote_sim): Set completer to sim_command_completer.
1449
1450 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1451
1452         * breakpoint.c (print_exception_catchpoint): Rename to ...
1453         (print_it_exception_catchpoint): ... this.
1454         (gnu_v3_exception_catchpoint_ops): Update with new name
1455         for print_it_exception_catchpoint.
1456
1457 2011-04-13  Edjunior Machado  <emachado@linux.vnet.ibm.com>
1458
1459         * MAINTAINERS: Add myself for write after approval privileges.
1460
1461 2011-04-13  Marek Polacek  <mpolacek@redhat.com>
1462
1463         * MAINTAINERS: Add myself as a write-after-approval maintainer.
1464
1465 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1466
1467         * breakpoint.c (watch_command_1): Remove colon from exp_string.
1468
1469 2011-04-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1470
1471         * breakpoint.c (save_breakpoints): Verify whether
1472         breakpoint_ops.print_recreate is defined before calling it.
1473
1474 2011-04-11  Gary Benson  <gbenson@redhat.com>
1475
1476         Fix failure with --enable-maintainer-mode.
1477         * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1478
1479 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1480
1481         Code cleanup.
1482         * symtab.c (search_symbols): Reorder the KIND description in the
1483         function comment.  Remove the unused 4th element of types, types2,
1484         types3 and types4.  New gdb_assert on KIND.
1485         (symtab_symbol_info): Remove the unused 4th element of classnames.
1486         New gdb_assert on KIND.
1487         * symtab.h (enum search_domain): New warning in the enum comment.
1488         Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1489         TYPES_DOMAIN.
1490
1491 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1492
1493         Fix crash of gdb save-index on a STABS file.
1494         * dwarf2read.c (write_psymtabs_to_index): Return also on no
1495         PSYMTABS_ADDRMAP.
1496
1497 2011-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
1498
1499         Fix DW_AT_accessibility compatibility with gcc-4.6+.
1500         * dwarf2read.c: Include ctype.h.
1501         (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1502         functions.
1503         (dwarf2_add_field): Fix new_field->accessibility by calling
1504         dwarf2_default_access_attribute.  Restructure setting accessibility
1505         vs. virtuality.
1506         (dwarf2_add_member_fn): New variable accessibility.  Fix fnp
1507         is_private and is_protected by calling
1508         dwarf2_default_access_attribute.
1509
1510 2011-04-08  Kevin Buettner  <kevinb@redhat.com>
1511
1512         * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1513         to the initialization.
1514
1515 2011-04-08  Steve Ellcey  <sje@cup.hp.com>
1516
1517         * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1518         initalization.
1519
1520 2011-04-07  Pierre Muller  <muller@ics.u-strasbg.fr>
1521
1522         Remove support for old Cygwin 1.5 versions.
1523         * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1524         function on old Cygwin version.
1525         * windows-nat.c: Remove cygwin version check and always define
1526         __USEWIDE for Cygwin compilation.
1527
1528 2011-04-07  Yao Qi  <yao@codesourcery.com>
1529
1530         * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1531         and TO.
1532         * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1533         (arm_copy_svc): Remove parameters INSN and TO.
1534         (decode_svc_copro): Update caller.
1535         * arm-tdep.h (struct displaced_step_closure): Remove parameters
1536         from function pointer `copy_svc_os'.
1537
1538 2011-04-07  Yao Qi  <yao@codesourcery.com>
1539
1540         * arm-tdep.c (cleanup_branch): Set a correct return address in
1541         LR for ARM and Thumb.
1542
1543 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1544
1545         Code cleanup.
1546         * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1547         * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1548         in the function comment, a new note on values compatibility.
1549         * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1550         * symtab.h (SYMBOL_HASH_NEXT): New.
1551
1552 2011-04-06  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1553
1554         * ppc-linux-nat.c (check_condition): Add len output parameter.
1555         Set it based on the memory region referenced in the condition
1556         expression.  Update all callers.
1557
1558 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1559
1560         Fix crash regression on systems featuring .gdb_index.
1561         * objfiles.c (free_objfile): Move the
1562         forget_cached_source_info_for_objfile call earlier.  Comment it.
1563         Extend the comment for objfile_free_data.
1564
1565 2011-04-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1566
1567         Fix regression of displaying the debug format.
1568         * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1569         subfile.
1570
1571 2011-04-04  Tom Tromey  <tromey@redhat.com>
1572
1573         * cli/cli-interp.c (struct captured_execute_command_args):
1574         Remove.
1575         (do_captured_execute_command): Remove.
1576         (safe_execute_command): Use TRY_CATCH.
1577         * cli/cli-script.c (struct wrapped_read_command_file_args):
1578         Remove.
1579         (wrapped_read_command_file): Remove.
1580         (script_from_file): Use TRY_CATCH.
1581         * exceptions.c (catch_exception): Remove.
1582         * exceptions.h (catch_exception): Remove.
1583         (deprecated_throw_reason): Update comment.
1584         * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1585         argument to 'context'.
1586         (mi_execute_command): Use TRY_CATCH.
1587         * remote.c (struct start_remote_args): Remove.
1588         (remote_start_remote): Update; change arguments.
1589         (remote_open_1): Use TRY_CATCH.
1590
1591 2011-04-04  Tom Tromey  <tromey@redhat.com>
1592
1593         * tracepoint.c (scope_info): Update.
1594         * symtab.c (decode_line_spec): Update.
1595         * python/python.c (gdbpy_decode_line): Update.
1596         * linespec.h (decode_line_1): Update.
1597         * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1598         (decode_compound, find_method, symtab_from_filename)
1599         (decode_variable): Likewise.
1600         * cli/cli-cmds.c (edit_command): Update.
1601         (list_command): Update.
1602         * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1603         argument.
1604         (create_breakpoint): Update.
1605         (until_break_command): Update.
1606         (addr_string_to_sals): Update.
1607         (decode_line_spec_1): Update.
1608
1609 2011-04-04  Tom Tromey  <tromey@redhat.com>
1610
1611         * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1612         (do_captured_parse_breakpoint): Remove.
1613         (create_breakpoint): `e' is now volatile.  Remove `parse_args'.
1614         Use TRY_CATCH directly.
1615
1616 2011-04-04  Tom Tromey  <tromey@redhat.com>
1617
1618         * symtab.h (free_symtab): Remove.
1619         (forget_cached_source_info_for_objfile): Declare.
1620         * symmisc.c (free_symtab): Remove.
1621         * source.c (forget_cached_source_info_for_objfile): New function.
1622         (forget_cached_source_info): Use it.
1623         * objfiles.c (free_objfile): Simplify check before calling
1624         clear_current_source_symtab_and_line.  Call
1625         forget_cached_source_info_for_objfile.
1626
1627 2011-04-04  Tom Tromey  <tromey@redhat.com>
1628
1629         * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1630         (new_symtab): Don't set `free_code' on symtab.
1631         (new_linetable): Properly handle size==0.
1632         * symtab.h (struct symtab) <free_code, free_func>: Remove.
1633         * symmisc.c (free_symtab): Don't free the linetable.  Don't call
1634         free_func.
1635         * jv-lang.c (struct jv_per_objfile_data): New.
1636         (jv_per_objfile_free): Free the data.
1637         (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1638         (get_java_class_symtab): Set the `dict' field on the
1639         jv_per_objfile_data.
1640         (free_class_block): Remove.
1641         * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1642         the symtab.
1643
1644 2011-04-04  Tom Tromey  <tromey@redhat.com>
1645
1646         * symfile.c (reread_symbols): Update.
1647         * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1648         field.
1649         * objfiles.c (allocate_objfile): Update.
1650         * cp-support.h (cp_check_possible_namespace_symbols): Don't
1651         declare.
1652         * cp-namespace.c (lookup_symbol_file): Don't call
1653         lookup_possible_namespace_symbol.
1654         (initialize_namespace_symtab, get_possible_namespace_block)
1655         (free_namespace_block, cp_check_possible_namespace_symbols)
1656         (check_possible_namespace_symbols_loop)
1657         (check_one_possible_namespace_symbol)
1658         (lookup_possible_namespace_symbol): Remove.
1659         (maintenance_cplus_namespace): Replace with notice.
1660         (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1661
1662 2011-04-04  Tom Tromey  <tromey@redhat.com>
1663
1664         * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1665         * symtab.h (struct symtab) <producer, debugformat>: Now const.
1666         * symmisc.c (free_symtab): Don't free debugformat.
1667         * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1668         (record_debugformat, record_producer): Document.
1669         * buildsym.c (end_symtab): Don't save debugformat and producer
1670         names on obstack.
1671         (end_symtab): Don't free debugformat and producer fields.
1672         (record_debugformat): Don't call xstrdup.
1673         (record_producer): Likewise.
1674
1675 2011-04-04  Tom Tromey  <tromey@redhat.com>
1676
1677         * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1678         (source_line_charpos, source_charpos_line): Remove.
1679
1680 2011-04-04  Tom Tromey  <tromey@redhat.com>
1681
1682         * symtab.h (domain_enum): Split in two...
1683         (enum search_domain): New.
1684         (search_symbols): Update.
1685         * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1686         redundant declarations.
1687         (search_symbols): Change 'kind' argument to search_domain.
1688         Update.
1689         (print_symbol_info): Likewise.
1690         (symtab_symbol_info): Likewise.
1691         * symfile.h (struct quick_symbol_functions)
1692         <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1693         <expand_symtabs_matching>: Likewise.
1694         * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1695         (expand_symtabs_matching_via_partial): Update.
1696         * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1697         (dw2_expand_symtabs_for_function): Update.
1698         * block.h: Moved anonymous enum...
1699         * defs.h (enum block_enum): ... here.  Now named.
1700
1701 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
1702
1703         GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1704         * version.in: Bump version to 7.3.50.20110403-cvs.
1705
1706 2011-04-03  Joel Brobecker  <brobecker@adacore.com>
1707
1708         * NEWS: Create a new section for the next release branch.
1709         Rename the section of the current branch, now that it has
1710         been cut.
1711
1712 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
1713
1714         * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1715         for "fpscr" in target description.
1716
1717 2011-04-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1718
1719         * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1720         initialize it.  Delay HASH initialization.  Strip the part after open
1721         parenthesis for languages with qualifiers.  Call do_cleanups.
1722
1723 2011-04-01  Tom Tromey  <tromey@redhat.com>
1724
1725         * utils.c (report_command_stats): Don't print `-' for negative
1726         number.
1727
1728 2011-04-01  Eric Botcazou  <ebotcazou@adacore.com>
1729
1730         * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1731         (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1732         typedefs.
1733
1734 2011-04-01  Joel Brobecker  <brobecker@adacore.com>
1735
1736         * breakpoint.h (bpdisp_text): Add declaration.
1737         * breakpoint.c (bpdisp_text): Make non-static.
1738         * ada-lang.c: #include "mi/mi-common.h".
1739         (print_it_exception): Rewrite to improve GDB/MI output.
1740
1741 2011-04-01  Pedro Alves  <pedro@codesourcery.com>
1742
1743         * arm-tdep.h (struct address_space): Add forward declaration.
1744
1745 2011-04-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
1746
1747         * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1748         * arm-tdep.c (arm_override_mode): New global.
1749         (arm_pc_is_thumb): Respect arm_override_mode.  Remove single-step
1750         execution mode heuristics.
1751         (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1752         second single-step breakpoint if needed, using
1753         arm_insert_single_step_breakpoint.
1754         (arm_get_next_pc_raw): Remove INSERT_BKTP argument.  Only handle
1755         ARM execution mode, do not call thumb_get_next_pc_raw.
1756         (arm_get_next_pc): Encode execution mode in return value.  Call
1757         either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1758         (arm_insert_single_step_breakpoint): New function.
1759         (arm_software_single_step): Call it.
1760         * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1761         argument to return execution mode of sigreturn target.
1762         (arm_linux_syscall_next_pc): Use it.
1763         (arm_linux_copy_svc): Update call.
1764         (arm_linux_software_single_step): Call
1765         arm_insert_single_step_breakpoint.
1766
1767 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1768
1769         * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1770         the comment.
1771
1772 2011-03-31  Tom Tromey  <tromey@redhat.com>
1773
1774         * varobj.c (update_dynamic_varobj_children): Properly handle
1775         errors from iterator.
1776
1777 2011-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
1778
1779         * dwarf2read.c (dwarf2_name): Initialize DEMANGLED.  Avoid demangling
1780         struct linkage name twice.
1781
1782 2011-03-31  Tom Tromey  <tromey@redhat.com>
1783
1784         * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1785         missing ">" to message.
1786
1787 2011-03-31  Tom Tromey  <tromey@redhat.com>
1788
1789         * varobj.c (instantiate_pretty_printer): Remove duplicate
1790         'return'.
1791
1792 2011-03-31  Ulrich Weigand  <ulrich.weigand@linaro.org>
1793
1794         * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1795         if neither saved value nor register available (e.g. signal frame).
1796
1797 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1798
1799         * macroexp.c (expand): Avoid uninitialized variable
1800         compiler warning.
1801
1802 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1803
1804         * breakpoint.c (break_range_command): Fix typo in comment.
1805
1806 2011-03-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1807             Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
1808
1809         Implement support for PowerPC BookE ranged breakpoints.
1810         * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1811         * breakpoint.h (struct bp_target_info) <length>: New member
1812         variable.
1813         (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1814         instead of struct breakpoint as argument, and also add ASPACE
1815         and BP_ADDR arguments.  Update all callers.
1816         (struct breakpoint_ops) <print_one_detail>: New method.
1817         (struct breakpoint) <addr_string_range_end>: New member variable.
1818         * breakpoint.c (breakpoint_location_address_match): Add function
1819         prototype.
1820         (insert_bp_location): Set bl->target_info.length.
1821         (breakpoint_here_p): Call breakpoint_location_address_match.
1822         (moribund_breakpoint_here_p): Likewise.
1823         (regular_breakpoint_inserted_here_p): Likewise.
1824         (breakpoint_thread_match): Likewise.
1825         (bpstat_stop_status): Likewise.
1826         (bpstat_check_location): Move call to
1827         breakpoint_ops.breakpoint_hit to the top.
1828         (print_one_breakpoint_location): Call
1829         breakpoint_ops.print_one_detail if available.
1830         (breakpoint_address_match_range): New function.
1831         (breakpoint_location_address_match): Likewise.
1832         (breakpoint_locations_match): Compare the length field of the
1833         locations too.
1834         (hw_breakpoint_used_count): Count resources used by all locations
1835         in a breakpoint, and use breakpoint_ops.resources_needed if
1836         available.
1837         (breakpoint_hit_ranged_breakpoint): New function.
1838         (resources_needed_ranged_breakpoint): Likewise.
1839         (print_it_ranged_breakpoint): Likewise.
1840         (print_one_ranged_breakpoint): Likewise.
1841         (print_one_detail_ranged_breakpoint): Likewise.
1842         (print_mention_ranged_breakpoint): Likewise.
1843         (print_recreate_ranged_breakpoint): Likewise.
1844         (ranged_breakpoint_ops): New structure.
1845         (find_breakpoint_range_end): New function.
1846         (break_range_command): Likewise.
1847         (delete_breakpoint): Free addr_string_range_end.
1848         (update_breakpoint_locations): Add SALS_END argument.  Update
1849         all callers.  Calculate breakpoint length if a non-zero SALS_END
1850         is given.  Call breakpoint_locations_match instead of
1851         breakpoint_address_match.
1852         (reset_breakpoint): Find SaL of the end of the range if B is a
1853         ranged breakpoint.
1854         (_initialize_breakpoint): Register break-range command.
1855         * defs.h (print_core_address): Add function prototype.
1856         * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1857         function.
1858         (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1859         (ppc_linux_remove_hw_breakpoint): Likewise.
1860         (_initialize_ppc_linux_nat): Initialize
1861         to_ranged_break_num_registers.
1862         * target.c (update_current_target): Add comment about
1863         to_ranged_break_num_registers.
1864         (target_ranged_break_num_registers): New function.
1865         * target.h (struct target_ops) <to_ranged_break_num_registers>:
1866         New method.
1867         (target_ranged_break_num_registers): Add function prototype.
1868         * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1869         * utils.c (print_core_address): ... here.
1870
1871 2011-03-31  Ulrich Weigand  <uweigand@de.ibm.com>
1872
1873         * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1874         variable compiler warning.
1875
1876 2011-03-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1877
1878         * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1879         code from here ...
1880         (re_set_breakpoint): ... to here ...
1881         (addr_string_to_sals): ... and here.
1882
1883 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
1884
1885         * Makefile.in (SFILES): Add missing C sources.
1886         (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1887         Add missing headers.
1888
1889 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
1890
1891         * .gitignore: New file.
1892
1893 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
1894
1895         * NEWS: Mention new cfi device simulation.
1896
1897 2011-03-29  Tom Tromey  <tromey@redhat.com>
1898
1899         * dwarf2read.c (fixup_partial_die): Handle linkage name on
1900         otherwise anonymous types.
1901         (dwarf2_name): Likewise.
1902         * valops.c (value_struct_elt_for_reference): Refine artificial
1903         type logic.  Call error if j==-1.
1904
1905 2011-03-29  Andreas Tobler  <andreast-list@fgznet.ch>
1906
1907         Fix false GCC warning.
1908         * infcall.c (find_function_addr): Initialize funaddr.
1909
1910 2011-03-29  Pierre Muller  <muller@ics.u-strasbg.fr>
1911
1912         Fix mingw compilation with --enable-targets=all.
1913         * remote-mips.c (gdb_usleep.h): Include header.
1914         (mips_enter_debug): Use gdb_usleep instead of sleep.
1915
1916 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1917
1918         Support resolution of STT_GNU_IFUNC via breakpoints.
1919         * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1920         bp_gnu_ifunc_resolver_return.
1921         (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1922         the loop.  Support bp_gnu_ifunc_resolver and
1923         bp_gnu_ifunc_resolver_return.  New comment after the loop.  New loop
1924         for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1925         breakpoints.
1926         (bptype_string, print_one_breakpoint_location): Support
1927         bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1928         (user_settable_breakpoint): Return true also for
1929         bp_gnu_ifunc_resolver.
1930         (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1931         bp_gnu_ifunc_resolver_return.
1932         (set_breakpoint_location_function): New parameter explicit_loc,
1933         describe it.  Call find_pc_partial_function_gnu_ifunc with new
1934         variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1935         EXPLICIT_LOC is not set.
1936         (set_raw_breakpoint): Set EXPLICIT_LOC for
1937         set_breakpoint_location_function.
1938         (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1939         set_breakpoint_location_function.
1940         (mention): Support bp_gnu_ifunc_resolver and
1941         bp_gnu_ifunc_resolver_return.
1942         (add_location_to_breakpoint): Set EXPLICIT_LOC for
1943         set_breakpoint_location_function.
1944         (update_breakpoint_locations): Remove static.
1945         (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1946         bp_gnu_ifunc_resolver_return.
1947         * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1948         bp_gnu_ifunc_resolver_return.
1949         (update_breakpoint_locations): New declaration.
1950         * elfread.c: Include gdbthread.h and regcache.h.
1951         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1952         functions.
1953         (elf_gnu_ifunc_fns): Install them.
1954         * minsyms.c (stub_gnu_ifunc_resolver_stop)
1955         (stub_gnu_ifunc_resolver_return_stop): New functions.
1956         (stub_gnu_ifunc_fns): Install them.
1957         * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1958         and gnu_ifunc_resolver_return_stop.
1959         (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1960
1961 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1962
1963         STT_GNU_IFUNC reader implementation.
1964         * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1965         (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1966         (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1967         (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1968         (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1969         (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1970         (elf_gnu_ifunc_resolve_addr): New.
1971         (elf_symfile_read): Call elf_rel_plt_read.
1972         (elf_gnu_ifunc_fns): New.
1973         (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1974         Install elf_gnu_ifunc_fns.
1975         * infcall.c (find_function_return_type): New function.
1976         (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1977         * minsyms.c (stub_gnu_ifunc_resolve_addr)
1978         (stub_gnu_ifunc_resolve_name): New functions.
1979         (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1980         * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1981         (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1982
1983 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1984
1985         Code cleanup for later STT_GNU_IFUNC support.
1986         * infcall.c (find_function_addr): Remove variable code, use explicit
1987         dereferences for it.  Move VALUE_TYPE initialization later.
1988
1989 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
1990
1991         GDB find_pc_partial_function support for STT_GNU_IFUNC.
1992         * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1993         (clear_pc_function_cache): Clear it.
1994         (find_pc_partial_function): Rename to ...
1995         (find_pc_partial_function_gnu_ifunc): ... this function.  New
1996         parameter is_gnu_ifunc_p, describe it.  Set *IS_GNU_IFUNC_P.
1997         (find_pc_partial_function): New wrapper for this function.
1998         * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1999
2000 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2001
2002         GDB internal type support for STT_GNU_IFUNC.
2003         * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2004         (elf_symtab_read): Set mst_text_gnu_ifunc for
2005         BSF_GNU_INDIRECT_FUNCTION.
2006         * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2007         * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2008         builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2009         nodebug_got_plt_symbol.
2010         * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2011         (TYPE_GNU_IFUNC): New.
2012         (struct main_type): New field flag_gnu_ifunc.
2013         (struct builtin_type): New field builtin_func_func.
2014         (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2015         nodebug_got_plt_symbol.
2016         * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2017         (in_gnu_ifunc_stub): New.
2018         (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2019         mst_text_gnu_ifunc.
2020         * parse.c (write_exp_msymbol): New variable ifunc_msym.  Detect and
2021         support mst_text_gnu_ifunc.  Support mst_slot_got_plt.
2022         * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2023         in_gnu_ifunc_stub.
2024         * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2025         * symtab.c (search_symbols): Likewise.
2026         * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2027         and mst_slot_got_plt.
2028         (in_gnu_ifunc_stub): New declaration.
2029
2030 2011-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
2031
2032         Support a ring of related breakpoints.
2033         * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2034         other functions, add gdb_assert.
2035         (update_watchpoint, watchpoint_check): Add gdb_assert.  Use
2036         watchpoint_del_at_next_stop.
2037         (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2038         (bpstat_stop_status): Handle ring in related_breakpoint.
2039         (set_raw_breakpoint_without_location): Initialize ring in
2040         related_breakpoint.
2041         (delete_breakpoint): Handle ring in related_breakpoint, use
2042         watchpoint_del_at_next_stop.
2043         (map_breakpoint_numbers): Handle ring in related_breakpoint.
2044
2045 2011-03-28  Tom Tromey  <tromey@redhat.com>
2046
2047         PR symtab/12441:
2048         * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2049         with `language_minimal'.
2050
2051 2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
2052
2053         * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2054         instead of checking for STT_ARM_TFUNC symbol type.
2055
2056 2011-03-25  Tom Tromey  <tromey@redhat.com>
2057
2058         * linespec.c (symbol_found): Restore line-based result for
2059         non-LOC_LABEL symbols.
2060
2061 2011-03-25  Kai Tietz  <ktietz@redhat.com>
2062
2063         * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2064         instead of strcmp for comparison.
2065         (tui_source_is_displayed): Likewise.
2066         * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2067
2068 2011-03-24  Mark Wielaard  <mjw@redhat.com>
2069
2070         * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2071         complaint.
2072         (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2073         (find_partial_die_in_comp_unit): Likewise in comment.
2074         (read_attribute_value): Likewise.
2075         (lookup_die_type): Likewise.
2076         (dwarf_form_name): Likewise.
2077         (dump_die_shallow): Likewise.
2078         (follow_die_ref_or_sig): Likewise.
2079
2080 2011-03-24  Tom Tromey  <tromey@redhat.com>
2081
2082         PR breakpoints/11816:
2083         * linespec.c (decode_line_1): Parse `function:label' linespecs.
2084         (decode_compound): Update.
2085         (find_function_symbol): New function.
2086         (decode_dollar): Update.
2087         (decode_label): Add 'function_symbol' parameter.  Handle
2088         function-relative labels.
2089         (decode_variable): Update.
2090         (symbol_found): Add 'function_symbol' parameter.  Use label's PC,
2091         not its line.  Set `special_display' and canonical name for
2092         labels.
2093
2094 2011-03-24  Tom Tromey  <tromey@redhat.com>
2095
2096         * linespec.h (struct linespec_result) <special_display>: New
2097         field.
2098         * breakpoint.h (struct breakpoint) <display_canonical>: New
2099         field.
2100         * breakpoint.c (print_breakpoint_location): Respect
2101         display_canonical.
2102         (create_breakpoint_sal): Add 'display_canonical' parameter.
2103         (create_breakpoints_sal): Update.
2104         (create_breakpoint): Update.
2105
2106 2011-03-24  Tom Tromey  <tromey@redhat.com>
2107
2108         * symtab.c (decode_line_spec): Update.
2109         * linespec.c (build_canonical_line_spec): Change type of
2110         'canonical'.
2111         (decode_line_2, decode_line_1, decode_objc, decode_compound)
2112         (find_method, decode_all_digits, decode_dollar, decode_label)
2113         (symbol_found): Likewise.
2114         (init_linespec_result): New function.
2115         * breakpoint.c (struct captured_parse_breakpoint_args)
2116         <canonical_p>: New field, replaces addr_string_p.
2117         (create_breakpoints_sal): Add 'canonical' parameter, replacing
2118         'addr_string'.
2119         (parse_breakpoint_sals): Likewise.
2120         (do_captured_parse_breakpoint): Update.
2121         (create_breakpoint): Use struct linespec_result.
2122         (until_break_command): Update.
2123         (breakpoint_re_set_one): Update.
2124         (decode_line_spec_1): Update.
2125         * linespec.h (struct linespec_result): New.
2126         (init_linespec_result): Declare.
2127
2128 2011-03-23  Pedro Alves  <pedro@codesourcery.com>
2129
2130         * regcache.c (regcache_raw_read): If the target didn't supply a
2131         given raw register, mark it as unavailable.
2132
2133 2011-03-23  Kai Tietz  <ktietz@redhat.com>
2134
2135         * breakpoint.c (clear_command): Use filename_cmp
2136         instead of strcmp for comparison.
2137         * buildsym.c (watch_main_source_file_lossage): Likewise.
2138         (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2139         checking just for slash.
2140         * dbxread.c (read_dbx_symtab): Use lbasename instead of
2141         strrchr and filename_cmp instead of strcmp for filenames.
2142         (add_old_header_file): Use filename_cmp
2143         instead of strcmp for comparison.
2144         * exec.c (exec_set_section_address): Likewise.
2145         * macrotab.c (macro_lookup_inclusion): Likewise.
2146         (macro_lookup_inclusion): Likewise.
2147         * elfread.c (_initialize_elfread): Likewise.
2148         (elfstab_offset_sections): Likewise.
2149         (elfstab_offset_sections): Use lbasename instead of
2150         strrchr.
2151         * mdebugread.c (parse_partial_symbols): Likewise.
2152         (arse_partial_symbols): Use filename_(n)cmp instead of
2153         str(n)cmp for comparison.
2154         * minsyms.c (lookup_minimal_symbol): Likewise.
2155         * psymtab.c (read_psymtabs_with_filename): Likewise.
2156         * solib.c (solib_read_symbols): Likewise.
2157         (reload_shared_libraries_1): Likewise.
2158         * symmisc.c (maintenance_print_symbols): Likewise.
2159         * symfile.c (separate_debug_file_exists): Likewise.
2160         (reread_symbols): Likewise.
2161         (find_separate_debug_file_by_debuglink): Likewise.
2162         * remote-fileio.c (remote_fileio_func_rename): Likewise.
2163         * source.c (add_path): Likewise.
2164         * symtab.c (filename_seen): Likewise.
2165         (file_matches): Likewise.
2166         (print_symbol_info): Likewise.
2167         (maybe_add_partial_symtab_filename): Likewise.
2168         (make_source_files_completion_list): Likewise.
2169         * xml-syscall.c (init_sysinfo): Likewise.
2170         * windows-nat.c (_initialize_check_for_gdb_ini): Use
2171         IS_DIR_SEPARATOR for checking for trailing path separator.
2172
2173 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2174
2175         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value.  New
2176         label abort_expression.
2177         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2178         DWARF_VALUE_OPTIMIZED_OUT.
2179
2180 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2181
2182         Code cleanup.
2183         * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2184         to linkage_name.  Invert its value.  Update the function comment.
2185         (c_type_print_varspec_suffix): Invert it at the caller.
2186         * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2187
2188 2011-03-22  Pedro Alves  <pedro@codesourcery.com>
2189
2190         * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2191         errors when reading the `stop_pc'.
2192         * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2193         get_frame_pc.
2194
2195 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
2196
2197         * NEWS: Document gdb.Write stream keyword.
2198
2199 2011-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2200
2201         Revert:
2202         2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2203         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2204         (dwarf2_add_field): Fix new_field->accessibility for
2205         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2206
2207 2011-03-22  Phil Muldoon  <pmuldoon@redhat.com>
2208
2209         PR python/12183
2210
2211         * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2212         other error classes.  Do not print stack trace.
2213
2214 2011-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2215
2216         * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2217         (dwarf2_add_field): Fix new_field->accessibility for
2218         cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2219
2220 2011-03-21  Ulrich Weigand  <ulrich.weigand@linaro.org>
2221
2222         * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2223         encountering a load via a non-SP register.
2224
2225 2011-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
2226
2227         * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2228         field in returned unwinder.
2229
2230 2012-03-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2231
2232         * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2233
2234 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
2235
2236         * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2237         of xmalloc.
2238
2239 2012-03-18  Pedro Alves  <pedro@codesourcery.com>
2240
2241         * frame.c (frame_unwind_register): Throw an error if unwinding the
2242         register failed.
2243         * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2244         an unwind stop reason.
2245         (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2246         * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2247         UNWIND_UNAVAILABLE>: New.
2248         * inline-frame.c (inline_frame_unwind): Install
2249         default_frame_unwind_stop_reason.
2250         * frame-unwind.c: Include "exceptions.h".
2251         (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2252         (default_frame_unwind_stop_reason): New.
2253         * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2254         (default_frame_unwind_stop_reason): Declare.
2255         (struct frame_unwind) <stop_reason>: New function pointer.
2256
2257         * dummy-frame.c: Install default_frame_unwind_stop_reason.
2258         * dwarf2-frame.c: Include exceptions.h.
2259         (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2260         (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2261         computing the CFA.  If such an error was thrown, set
2262         unavailable_retaddr.
2263         (dwarf2_frame_unwind_stop_reason): New.
2264         (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2265         unavailable.
2266         (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2267         (dwarf2_signal_frame_unwind): Ditto.
2268
2269         * amd64-tdep.c: Include "exceptions.h".
2270         (struct amd64_frame_cache): New field "base_p".
2271         (amd64_init_frame_cache): Clear it.
2272         (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2273         Avoid reading registers with functions that throw if the register
2274         is not necessary to compute the frame base.
2275         (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2276         swallowing NOT_AVAILABLE_ERROR.
2277         (amd64_frame_unwind_stop_reason): New.
2278         (amd64_frame_this_id): Don't build a frame id if the frame base
2279         was unavailable.
2280         (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2281         (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2282         base_p if the frame base was computable.
2283         (amd64_sigtramp_frame_unwind_stop_reason): New.
2284         (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2285         frame base was unavailable.
2286         (amd64_sigtramp_frame_unwind): Install
2287         amd64_sigtramp_frame_unwind_stop_reason.
2288         (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2289         base_p if the frame base was computable.
2290         (amd64_epilogue_frame_unwind_stop_reason): New.
2291         (amd64_epilogue_frame_this_id): Don't build a frame id if the
2292         frame base was unavailable.
2293         (amd64_epilogue_frame_unwind): Install
2294         amd64_epilogue_frame_unwind_stop_reason.
2295         * i386-tdep.c: Include "exceptions.h".
2296         (struct i386_frame_cache): New field "base_p".
2297         (i386_init_frame_cache): Clear it.
2298         (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2299         Avoid reading registers with functions that throw if the register
2300         is not necessary to compute the frame base.
2301         (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2302         swallowing NOT_AVAILABLE_ERROR.
2303         (i386_frame_unwind_stop_reason): New.
2304         (i386_frame_this_id): Don't build a frame id if the frame base was
2305         unavailable.
2306         (i386_frame_prev_register): Handle unavailable SP.
2307         (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2308         (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2309         base_p if the frame base was computable.
2310         (i386_epilogue_frame_unwind_stop_reason): New.
2311         (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2312         base was unavailable.
2313         (i386_epilogue_frame_unwind): Install
2314         i386_epilogue_frame_unwind_stop_reason.
2315         (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2316         base_p if the frame base was computable.
2317         (i386_sigtramp_frame_unwind_stop_reason): New.
2318         (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2319         base was unavailable.
2320         (i386_sigtramp_frame_unwind): Install
2321         i386_sigtramp_frame_unwind_stop_reason.
2322         * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2323         type's size, not the register's.
2324         (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2325
2326         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2327         default_frame_unwind_stop_reason.
2328         * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2329         (alpha_heuristic_frame_unwind): Ditto.
2330         * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2331         * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2332         * avr-tdep.c (avr_frame_unwind): Ditto.
2333         * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2334         Ditto.
2335         * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2336         * frv-tdep.c (frv_frame_unwind): Ditto.
2337         * h8300-tdep.c (h8300_frame_unwind): Ditto.
2338         * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2339         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2340         * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2341         (hppa_stub_frame_unwind): Ditto.
2342         * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2343         * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2344         (ia64_libunwind_frame_unwind)
2345         (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2346         * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2347         * lm32-tdep.c (lm32_frame_unwind): Ditto.
2348         * m32c-tdep.c (m32c_unwind): Ditto.
2349         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2350         * m32r-tdep.c (m32r_frame_unwind): Ditto.
2351         * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2352         * m68k-tdep.c (m68k_frame_unwind): Ditto.
2353         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2354         * m88k-tdep.c (m88k_frame_unwind): Ditto.
2355         * mep-tdep.c (mep_frame_unwind): Ditto.
2356         * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2357         * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2358         (mips_stub_frame_unwind): Ditto.
2359         * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2360         * moxie-tdep.c (moxie_frame_unwind): Ditto.
2361         * mt-tdep.c (mt_frame_unwind): Ditto.
2362         * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2363         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2364         * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2365         * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2366         (s390_sigtramp_frame_unwind): Ditto.
2367         * score-tdep.c (score_prologue_unwind): Ditto.
2368         * sh-tdep.c (sh_frame_unwind): Ditto.
2369         * sh64-tdep.c (sh64_frame_unwind): Ditto.
2370         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2371         * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2372         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2373         * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2374         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2375         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2376         * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2377         (sparc64obsd_trapframe_unwind): Ditto.
2378         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2379         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2380         * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2381         * v850-tdep.c (v850_frame_unwind): Ditto.
2382         * vax-tdep.c (vax_frame_unwind): Ditto.
2383         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2384         * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2385         * xtensa-tdep.c (xtensa_unwind): Ditto.
2386
2387 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2388
2389         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2390         there's always a frame.  Use get_frame_pc_if_available instead of
2391         get_frame_pc, and if there's no PC available, don't look up a
2392         symtab.
2393
2394 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2395
2396         * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2397         unavailable PC.
2398
2399 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2400
2401         * tracepoint.c (set_traceframe_context): Handle unavailable PC
2402         gracefully.
2403
2404 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2405
2406         * frame.h (frame_unwind_caller_pc_if_available): Declare.
2407         * frame.c (frame_unwind_caller_pc_if_available): New.
2408         * stack.c (frame_info): Handle unavailable PC.
2409
2410 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2411
2412         * frame.c (frame_unwind_pc): Rename to ...
2413         (frame_unwind_pc_if_available): ... this.  New `pc' output
2414         parameter.  Change return type to int.  Gracefully handle
2415         gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR.  Return 0 if that
2416         happened, or 1 otherwise.
2417         (frame_unwind_pc): Reimplement on top of
2418         frame_unwind_pc_if_available.
2419         (get_frame_func): Rename to ...
2420         (get_frame_func_if_available): New `pc' output parameter.  Change
2421         return type to int.  Gracefully handle the PC not being available.
2422         (get_frame_func): Reimplement on top of
2423         get_frame_func_if_available.
2424         (select_frame): Handle the PC being unavailable.
2425         (get_prev_frame): Handle the PC being unavailable.
2426         (get_frame_pc_if_available): New.
2427         (get_frame_address_in_block_if_available): New.
2428         (find_frame_sal): Handle the frame PC not being available.
2429         * frame.h (get_frame_pc_if_available): Declare.
2430         (get_frame_address_in_block_if_available): Declare.
2431         (get_frame_func_if_available): Declare.
2432         * stack.c (print_frame_info): Handle the PC being unavailable.
2433         (find_frame_funname): Ditto.
2434         (print_frame): Handle the PC being unavailable.
2435         (get_frame_language): Ditto.
2436         * blockframe.c (get_frame_block): Ditto.
2437         * macroscope.c (default_macro_scope): Ditto.
2438         * tui/tui-stack.c (tui_show_frame_info): Ditto.
2439
2440 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2441
2442         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2443         NOT_AVAILABLE_ERROR when evaluating the location expression.
2444
2445 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2446
2447         * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2448         returning that the register piece is unavailable/optimized out.
2449         (write_pieced_value): Handle get_frame_register_bytes returning
2450         that the register piece is unavailable/optimized out when doing a
2451         read-modify write of a bitfield.
2452         * findvar.c (value_from_register): Handle get_frame_register_bytes
2453         returning that the register piece is unavailable/optimized out.
2454         * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2455         and `unavailablep'.  Throw error on bad debug info.  Use
2456         frame_register instead of frame_register_read, to fill in the new
2457         arguments.
2458         * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2459         and `unavailablep'.
2460         * valops.c: (value_assign): Adjust, and handle
2461         get_frame_register_bytes failing.
2462         * spu-tdep.c: Include exceptions.h.
2463         (spu_software_single_step): Adjust, and handle
2464         get_frame_register_bytes failing.
2465         (spu_get_longjmp_target): Ditto.
2466         * gdbarch.sh (register_to_value): Change to return int.  New
2467         parameters `optimizedp' and `unavailablep'.
2468         * gdbarch.h, gdbarch.c: Regenerate.
2469         * i386-tdep.c (i386_register_to_value): Adjust to new
2470         gdbarch_register_to_value interface.
2471         * i387-tdep.c (i387_register_to_value): Ditto.
2472         * i387-tdep.h (i387_register_to_value): Ditto.
2473         * alpha-tdep.c (alpha_register_to_value): Ditto.
2474         * ia64-tdep.c (ia64_register_to_value): Ditto.
2475         * m68k-tdep.c (m68k_register_to_value): Ditto.
2476         * mips-tdep.c (mips_register_to_value): Ditto.
2477         * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2478
2479 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2480
2481         * findvar.c (value_of_register): Mark the value as unavailable, if
2482         the register is unavailable.
2483         * frame.h (frame_register_unwind): New `unavailablep' parameter.
2484         (frame_register): New `unavailablep' parameter.
2485         (frame_register_read): Update comment.
2486         * frame.c (frame_register_unwind): New `unavailablep' parameter.
2487         Set it if the register is unavailable.  If the register is
2488         unavailable, clear the output buffer.
2489         (frame_register): New `unavailablep' parameter.  Pass it down.
2490         (frame_unwind_register): Adjust.
2491         (put_frame_register): Adjust.
2492         (frame_register_read): Adjust.  Also return false if the register
2493         is not available.
2494         (frame_register_unwind_location): Adjust.
2495         * sentinel-frame.c (sentinel_frame_prev_register): If the register
2496         is unavailable, mark the value accordingly.
2497         * stack.c (frame_info): Handle unavailable registers.
2498
2499 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2500
2501         * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2502         simplify, using regcache_cooked_read.
2503
2504 2011-03-18  Pedro Alves  <pedro@codesourcery.com>
2505
2506         * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2507         (regcache_raw_read_unsigned, regcache_raw_read_signed)
2508         (regcache_raw_read_unsigned, regcache_raw_read_part)
2509         (regcache_cooked_read, regcache_cooked_read_signed)
2510         (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2511         (regcache_cooked_read_ftype): Change return to enum
2512         register_status.
2513         * regcache.c: Include exceptions.h
2514         (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2515         (do_cooked_read): Change return to enum register_status.  Always
2516         forward to regcache_cooked_read.
2517         (regcache_raw_read): Change return to enum register_status.  If
2518         the register is not REG_VALID, memset the buffer.  Return the
2519         register's status.
2520         (regcache_raw_read_signed): Handle non-REG_VALID registers and
2521         return the register's status.
2522         (regcache_raw_read_unsigned): Ditto.
2523         (regcache_cooked_read): Change return to enum register_status.
2524         Assert that with read-only regcaches, the register's status must
2525         be known.  If the regcache is read-only, and the register is not
2526         REG_VALID, memset the buffer.  Return the register's status.
2527         (regcache_cooked_read_signed): Change return to enum
2528         register_status.  Handle non-REG_VALID registers and return the
2529         register's status.
2530         (regcache_cooked_read_unsigned): Change return to enum
2531         register_status.  Handle non-REG_VALID registers and return the
2532         register's status.
2533         (regcache_xfer_part, regcache_raw_read_part)
2534         (regcache_cooked_read_part): Change return to enum
2535         register_status.  Return the register's status.
2536         (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2537         unavailable.
2538         (regcache_dump): Handle unavailable cooked registers.
2539         * frame.c (do_frame_register_read): Adjust interface to match
2540         regcache_cooked_read_ftype.
2541         * gdbarch.sh (pseudo_register_read): Change return to enum
2542         register_status.
2543         * gdbarch.h, gdbarch.c: Regenerate.
2544
2545         * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2546         register_status.
2547         * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2548         register_status.  If reading a raw register indicates the raw
2549         register is not valid, return the raw register's status,
2550         otherwise, return REG_VALID.
2551         * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2552         register_status.  Handle non-REG_VALID raw registers and return
2553         the register's status.
2554         * arm-tdep.c (arm_neon_quad_read)
2555         (arm_pseudo_read): Change return to enum register_status.  Handle
2556         non-REG_VALID raw registers and return the register's status.
2557         * avr-tdep.c (avr_pseudo_register_read): Ditto.
2558         * frv-tdep.c (frv_pseudo_register_read): Ditto.
2559         * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2560         * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2561         * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2562         register_status.
2563         (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2564         (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2565         (m32c_part_write, m32c_cat_read, m32c_cat_write)
2566         (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2567         (m32c_pseudo_register_read): Change return to enum
2568         register_status.  Adjust.
2569         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2570         enum register_status.  Return the register's status.
2571         * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2572         register_status.  Return the register's status.
2573         (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2574         * mips-tdep.c (mips_pseudo_register_read): Ditto.
2575         * mt-tdep.c (mt_pseudo_register_read): Ditto.
2576         * rs6000-tdep.c (move_ev_register_func): New typedef.
2577         (e500_move_ev_register): Use it.  Change return to enum
2578         register_status.  Return the register's status.
2579         (do_regcache_raw_read): New function.
2580         (do_regcache_raw_write): New function.
2581         (e500_pseudo_register_read): Change return to enum
2582         register_status.  Return the register's status.  Use
2583         do_regcache_raw_read.
2584         (e500_pseudo_register_write): Adjust.  Use do_regcache_raw_write.
2585         (dfp_pseudo_register_read): Change return to enum register_status.
2586         Return the register's status.
2587         (vsx_pseudo_register_read): Ditto.
2588         (efpr_pseudo_register_read): Ditto.
2589         (rs6000_pseudo_register_read): Ditto.
2590         * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2591         register_status.  Return the register's status.
2592         * sh64-tdep.c (pseudo_register_read_portions): New function.
2593         (sh64_pseudo_register_read): Change return to enum
2594         register_status.  Use pseudo_register_read_portions.  Return the
2595         register's status.
2596         * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2597         register_status.  Return the register's status.
2598         * sh-tdep.c (pseudo_register_read_portions): New function.
2599         (sh_pseudo_register_read): Change return to enum register_status.
2600         Use pseudo_register_read_portions.  Return the register's status.
2601         * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2602         enum register_status.  Return the register's status.
2603         * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2604         * spu-tdep.c (spu_pseudo_register_read_spu)
2605         (spu_pseudo_register_read): Ditto.
2606         * xtensa-tdep.c (xtensa_register_read_masked)
2607         (xtensa_pseudo_register_read): Ditto.
2608         * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2609
2610 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2611
2612         * python/py-value.c (valpy_getitem): Fix formatting of error function
2613         call.
2614
2615 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2616
2617         ARI fixes: Add missing internationalization markups throughout
2618         C source files.
2619         * darwin-nat-info.c: Ditto.
2620         * record.c: Ditto.
2621         * remote.c: Ditto.
2622         * mi/mi-main.c: Ditto.
2623
2624 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2625
2626         ARI fixes: Add missing internationalization markups throughout
2627         yacc files.
2628         * c-exp.y: Ditto.
2629         * cp-name-parser.y: Ditto.
2630         * f-exp.y: Ditto.
2631         * m2-exp.y: Ditto.
2632         * objc-exp.y: Ditto.
2633         * p-exp.y: Ditto.
2634
2635 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2636
2637         ARI fixes: Messages should have no trailing new lines.
2638         * darwin-nat.c (mach_check_error): Remove trailing new line from
2639         warning function call message.
2640         * record.c (bfdcore_read): Idem for error call.
2641
2642 2011-03-18  Pierre Muller  <muller@ics.u-strasbg.fr>
2643
2644         * common/signals.c (target_signal_from_host): Add _ markup to error
2645         function call message.
2646         (target_signal_to_host): Add _ markup and remove trailing new line
2647         from warning call message.
2648         (target_signal_from_command): Add _ markup to error function call
2649         message.
2650
2651 2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
2652
2653         PR python/12149
2654
2655         * python/python.c (gdbpy_write): Accept a stream argument and
2656         operate to the appropriate stream.
2657         (gdbpy_flush): Likewise.
2658         (_initialize_python): Add stream constants.
2659         (finish_python_initialization): Add GdbOutputErrorFile class.
2660
2661 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
2662
2663         * MAINTAINERS: Add myself as a write-after-approval maintainer.
2664
2665 2011-03-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
2666
2667         * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2668         to store_signed_integer.  Add debug message when relocating CALL
2669         instructions.  Fix formatting of debug message.
2670         * i386-tdep.c (i386_relocate_instruction): Ditto.
2671
2672 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
2673
2674         * target.h (struct target_ops): Remove to_lookup_symbol field.
2675         (target_lookup_symbol): Delete macro.
2676         * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2677         (update_current_target, setup_target_debug): Remove handling
2678         of to_lookup_symbol target_ops field.
2679         * ada-tasks.c (get_known_tasks_addr): Remove use of
2680         target_lookup_symbol.
2681         * coffread.c (coff_symtab_read): Likewise.
2682         * dbxread.c (read_dbx_symtab): Ditto.
2683
2684 2011-03-17  Joel Brobecker  <brobecker@gnat.com>
2685
2686         PR gdb/12116:
2687         * configure.ac: Add getthrds declaration check.
2688         * configure, config.in: Regenerate.
2689         * aix-thread.c (getthrds): Declare only if not already declared
2690         in procinfo.h.  More declaration out of get_signaled_thread to
2691         global scope.
2692
2693 2011-03-17  Phil Muldoon  <pmuldoon@redhat.com>
2694
2695         * python/py-symtab.c: Populate symtab_object_methods,
2696         sal_object_methods.
2697         (stpy_is_valid): New function.
2698         (salpy_is_valid): Ditto.
2699         * python/py-symbol.c: Declare symbol_object_methods.  Populate.
2700         (sympy_is_valid): New function.
2701         * python/py-objfile.c: Declare objfile_object_methods.  Populate.
2702         (objfpy_is_valid): New function.
2703         * python/py-inferior.c: Populate inferior_object_methods.
2704         (infpy_is_valid): New function.
2705         * python/py-infthread.c: Populate thread_object_methods.
2706         (thpy_is_valid): New function.
2707         * python/py-block.c: Declare block_object_methods.  Populate.  Declare
2708         block_iterator_object_methods.  Populate.
2709         (blpy_is_valid): New function.
2710         (blpy_iter_is_valid): Ditto.
2711
2712 2011-03-16  Keith Seitz  <keiths@redhat.com>
2713
2714         * linespec.c (find_methods): Canonicalize NAME before looking
2715         up the symbol.
2716         (name_end): New function.
2717         (keep_name_info): New function.
2718         (decode_line_1): Use keep_name_info.
2719         (decode_compound): Likewise.
2720         * cli/cli-utils.h (remove_trailing_whitespace): New function.
2721         * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2722
2723         PR c++/12273
2724         * linespec.c (locate_first_half): Keep overload information, too.
2725         (decode_compound): Use a string to represent break characters
2726         to escape the loop.
2727         If P points to a break character, do not increment it.
2728         For C++ and Java, keep overload information and relevant keywords.
2729         If we cannot find a symbol, search the minimal symbols.
2730
2731         PR c++/11734
2732         * linespec.c (decode_compound): Rename SAVED_ARG to
2733         THE_REAL_SAVED_ARG.
2734         Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2735         single-quotes.
2736         Pass a valid block to lookup_symbol.
2737         (lookup_prefix_sym): Likewise.
2738         (find_method): Construct search name based on SYM_CLASS instead
2739         of SAVED_ARG.
2740         * psymtab.c (lookup_partial_symbol): Add language parameter.
2741         (lookup_symbol_aux_psymtabs): Likewise.
2742         Don't assume that the psymtab we found was the right one. Search
2743         for the desired symbol in the symtab to be certain.
2744         (psymtab_search_name): New function.
2745         (lookup_partial_symbol): Use psymtab_search_name.
2746         Add language parameter.
2747         (read_symtabs_for_function): Add language parameter and pass to
2748         lookup_partial_symbol.
2749         (find_symbol_file_from_partial): Likewise.
2750
2751 2011-03-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
2752
2753         PR gdb/12528
2754         * dwarf2read.c (noop_record_line): New function.
2755         (dwarf_decode_lines): Ignore line tables for GCd functions.
2756
2757 2011-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
2758
2759         Fix ARI warnings about new lines at the end of messages, which
2760         are unneeded as there is a new line added at the end of the message
2761         automatically.
2762         * darwin-nat.c (darwin_stop_inferior): Ditto.
2763         * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2764         * dfp.c (decimal_to_number): Ditto.
2765         * exec.c (print_section_info): Ditto.
2766         * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2767         * osdata.c (get_osdata): Ditto.
2768         * record.c (bfdcore_write): Ditto.
2769         * remote-mips.c (mips_readchar): Ditto.
2770         * remote.c (read_ptid): Ditto.
2771         * ser-mingw.c (ser_windows_raw): Ditto.
2772         * tracepoint.c (add_local_symbols): Ditto.
2773         * windows-nat.c (fake_create_process): Ditto.
2774
2775 2011-03-16  Tom Tromey  <tromey@redhat.com>
2776
2777         * tracepoint.c (stop_tracing): Don't declare.
2778         * event-top.c (after_char_processing_hook): Add `(void)'.
2779
2780 2011-03-16  Phil Muldoon  <pmuldoon@redhat.com>
2781
2782         * NEWS: Add Parameter sub-classing description.
2783
2784 2011-03-16  Kai Tietz  <ktietz@redhat.com>
2785
2786         * MAINTAINERS: Update my e-mail address.
2787
2788 2011-03-15  Andreas Tobler  <andreast@fgznet.ch>
2789
2790         * MAINTAINERS: Add myself for write after approval privileges.
2791
2792 2011-03-15  Michael Snyder  <msnyder@vmware.com>
2793
2794         * frame.c (find_frame_sal): Assert sym is not null.
2795
2796         * dbxread.c (process_one_symbol): Assert 'name' is not null.
2797
2798         * objc-lang.c (selectors_info): Check strchr for null result.
2799
2800         * stabsread.c (define_symbol): Guard against bad stabstring input.
2801
2802 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
2803
2804         Remove trailing spaces and tabulations from pascal language
2805         support sources.
2806         p-exp.y: Ditto.
2807         p-lang.c: Ditto.
2808         p-lang.h: Ditto.
2809         p-valprint.c: Ditto.
2810
2811 2011-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2812
2813         * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2814         than LOW.  Comment it.
2815         (read_partial_die): Call complaint for inappropriate zero LOWPC or
2816         HIGHPC not strictly higher than LOWPC.
2817
2818 2011-03-15  Pierre Muller  <muller@ics.u-strasbg.fr>
2819
2820         Fix formatting of function declarations returning a pointer in
2821         previous commit.
2822         * varobj.c (varobj_add_child): Ditto.
2823         * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2824         * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2825
2826 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
2827
2828         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2829         for the "generic" vector ABI used with GCC 4.3 and later.
2830         (ppc64_sysv_abi_return_value): Likewise.
2831
2832 2011-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
2833
2834         * infcall.c (call_function_by_hand): Function return value is
2835         always a non_lval, even when using struct_return.
2836
2837 2011-03-15  Pedro Alves  <pedro@codesourcery.com>
2838
2839         * printcmd.c (ALL_DISPLAYS_SAFE): New.
2840         (map_display_numbers): New.
2841         (do_delete_display): New.
2842         (undisplay_command): Use map_display_numbers.
2843         (do_enable_disable_display): New.
2844         (enable_disable_display_command): New function.
2845         (enable_display): Delete.
2846         (enable_display_command): New.
2847         (disable_display_command): Reimplement.
2848         (_initialize_printcmd): Adjust "enable display" command to use
2849         `enable_display_command' as callback.
2850
2851 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
2852
2853         * NEWS: Add Python breakpoint 'stop' operation.
2854
2855 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
2856
2857         * NEWS: Delete duplicate entry. Fix typo.
2858
2859 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
2860
2861         Fix ARI warning about function names in first column.
2862         Put prototype declaration on same line as return type.
2863         * objc-exp.y: Ditto.
2864         * p-exp.y: Ditto.
2865         * python/py-stopevent.h: Ditto.
2866         For long function names, split parameters to
2867         allow function name on same line as return type.
2868         * solib-pa64.c: Ditto.
2869         * varobj.c: Ditto.
2870         * varobj.h: Ditto.
2871         For long function declaration, use single line.
2872         * hppa-tdep.h: Ditto.
2873         * inferior.h: Ditto.
2874
2875 2011-03-14  Phil Muldoon  <pmuldoon@redhat.com>
2876
2877         * python/python.h: Declare gdbpy_should_stop and
2878         gdbpy_breakpoint_has_py_cond.
2879         * python/python.c: Add python.h to includes.  Remove python.h from
2880         HAVE_PYTHON definition
2881         (gdbpy_should_stop): New dummy function.
2882         (gdbpy_breakpoint_has_py_cond): New dummy function.
2883         * python/py-breakpoint.c (bppy_init): Rewrite to allow
2884         sub-classing capabilities.
2885         (gdbpy_should_stop): New function.
2886         (gdbpy_breakpoint_has_py_cond): New function.
2887         (local_setattro): New function.
2888         * breakpoint.c (condition_command): Add check for Python 'stop'
2889         operation.
2890         (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2891         operation function as part of stop/continue tests.
2892
2893 2011-03-14  Tom Tromey  <tromey@redhat.com>
2894
2895         PR gdb/12576:
2896         * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2897         (needs_frame_dwarf_call): Likewise.
2898
2899 2011-03-14  Pierre Muller  <muller@ics.u-strasbg.fr>
2900
2901         Fix ARI warning about functions without parameters that do not
2902         use (void).
2903         * breakpoint.c (all_tracepoints): Replace () by (void).
2904         * f-exp.y (match_string_literal): Ditto.
2905         (yylex): Ditto.
2906         * m2-exp.y (yylex): Ditto.
2907         * mep-tdep.c (current_me_module): Ditto.
2908         (current_options): Ditto.
2909         (current_cop_data_bus_width): Ditto.
2910         (current_cr_names): Ditto.
2911         (current_cr_is_float): Ditto.
2912         (current_ccr_names): Ditto.
2913         * objc-exp.y (yylex): Ditto.
2914         * p-exp.y (yylex): Ditto.
2915         * remote.c (send_interrupt_sequence): Ditto.
2916         * tracepoint.c (current_trace_status): Ditto.
2917         * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2918         * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2919
2920 2011-03-11  Michael Snyder  <msnyder@vmware.com>
2921
2922         * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2923         * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2924         (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2925         * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2926         * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2927
2928         * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2929         (delete_async_event_handler): Ditto.
2930
2931         * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2932
2933         * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2934
2935         * top.c (set_verbose): Assert showcmd was found.
2936
2937 2011-03-11  Maxim Grigoriev  <maxim2405@gmail.com>
2938
2939         * xtensa-tdep.c (warning_once): Correct style issues.
2940
2941 2011-03-11  Yao Qi  <yao@codesourcery.com>
2942
2943         * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2944
2945 2011-03-11  Andreas Schwab  <schwab@redhat.com>
2946
2947         * common/aclocal.m4: Remove.
2948
2949 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
2950
2951         * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2952         (xtensa_write_register, xtensa_read_register): Likewise.
2953         (xtensa_hextochar): Removed.
2954         (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2955
2956 2011-03-10  Maxim Grigoriev  <maxim2405@gmail.com>
2957
2958         * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2959         (xtensa_call0_frame_cache_t): Update comments.  New fields added.
2960         (xtensa_alloc_frame_cache): Add initialization for new fields.
2961         (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2962         (warning_once): New function.
2963         (xtensa_insn_kind): New item c0opc_and.
2964         (call0_classify_opcode): Add the case for AND instruction.
2965         (call0_track_op): Change arguments.  New local variable litbase.
2966         Add the case to handle c0opc_and.  Update algorithms for c0opc_mov,
2967         c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2968         in the prologue.
2969         Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2970         (call0_analyze_prologue): Update the comments.  Change arguments.
2971         Add the variety of updates to handle extended prologues, which now can
2972         conduct dynamic stack adjustments.
2973         (call0_frame_cache): Likewise.
2974         (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2975         (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2976
2977 2011-03-10  Michael Snyder  <msnyder@vmware.com>
2978
2979         * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2980         (cmd_qtframe): Ditto.
2981         (cmd_qtbuffer): Ditto.
2982         (cmd_bigqtbuffer): Ditto.
2983
2984 2011-03-10  Tom Tromey  <tromey@redhat.com>
2985
2986         * tracepoint.c (trace_actions_command): Update.
2987         * thread.c (thread_apply_command): Update.
2988         * reverse.c (delete_bookmark_command): Update.
2989         (bookmarks_info): Update.
2990         * printcmd.c (undisplay_command): Update.
2991         * memattr.c (mem_enable_command): Update.
2992         (mem_disable_command): Update.
2993         (mem_delete_command): Update.
2994         * inferior.c (detach_inferior_command): Update.
2995         (kill_inferior_command): Update.
2996         (remove_inferior_command): Update.
2997         * cli/cli-utils.h (struct get_number_or_range_state): New.
2998         (init_number_or_range): Declare.
2999         (get_number_or_range): Update.
3000         * cli/cli-utils.c (init_number_or_range): New function.
3001         (get_number_or_range): Change 'pp' parameter to 'state'.  Remove
3002         static variables.
3003         (number_is_in_list): Update.
3004         * breakpoint.h (get_tracepoint_by_number): Update.
3005         * breakpoint.c (map_breakpoint_numbers): Update for change to
3006         get_number_or_range.
3007         (find_location_by_number): Use get_number, not
3008         get_number_or_range.
3009         (trace_pass_set_count): New function.
3010         (trace_pass_command): Update for change to get_number_or_range.
3011         Rework loop logic.
3012         (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3013         'state' parameter.
3014
3015 2011-03-10  Phil Muldoon  <pmuldoon@redhat.com>
3016
3017         * python/py-param.c (add_setshow_generic): Add set/show callback
3018         parameters.  Register Python object context.
3019         (get_show_value): New function.
3020         (get_set_value): New function.
3021         (call_doc_function): New function.
3022         (get_doc_string): Move behind get_show_value/get_set_value.
3023
3024 2011-03-10  Andreas Tobler  <andreast-list@fgznet.ch>
3025
3026         * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3027
3028 2011-03-09  Maxim Grigoriev  <maxim2405@gmail.com>
3029
3030         * xtensa-tdep.c (xtensa_read_register): Add comment.
3031         (xtensa_write_register): Likewise.
3032         (xtensa_hextochar): Add comment and update to match coding conventions.
3033         (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3034         (execute_l32e, execute_s32e, execute_code): Update comments.
3035         (xtensa_exception_handler_t): Update to match coding conventions.
3036         (xtensa_insn_kind): Likewise.
3037
3038 2011-03-09  Michael Snyder  <msnyder@vmware.com>
3039
3040         * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3041
3042 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
3043
3044         * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3045
3046 2011-03-09  Tom Tromey  <tromey@redhat.com>
3047
3048         * thread.c (restore_selected_frame): Handle frame_level == -1.
3049         (make_cleanup_restore_current_thread): Use
3050         get_selected_frame_if_set.
3051         * frame.h (get_selected_frame_if_set): Declare.
3052         * frame.c (get_selected_frame_if_set): New function.
3053
3054 2011-03-09  Pedro Alves  <pedro@codesourcery.com>
3055
3056         * cli/cli-cmds.c (shell_escape): Use lbasename.
3057         * coffread.c (coff_start_symtab): Constify parameter.
3058         (complete_symtab): Constify `name' parameter.
3059         (coff_symtab_read): Constify `filestring' local.
3060         (coff_getfilename): Constify return and `result' local.
3061         Use lbasename.
3062         * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3063         * linux-fork.c (info_checkpoints_command): Use lbasename.
3064         * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3065         * minsyms.c (lookup_minimal_symbol): Use lbasename.
3066         * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3067         * procfs.c (procfs_make_note_section): Use lbasename.
3068         * tui/tui-io.c (printable_part): Constity return and parameter.
3069         Use lbasename.
3070         (print_filename): Constify parameters, and local `s'.
3071         (tui_rl_display_match_list): Constify local `temp'.
3072
3073 2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
3074
3075         Revert:
3076         2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3077         Fix DWARF-3+ DW_AT_accessibility default assumption.
3078         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3079         cu->header.version >= 3.
3080
3081 2011-03-09  Yao Qi  <yao@codesourcery.com>
3082
3083         * common/Makefile.in: Remove.
3084         * common/configure: Remove.
3085         * common/configure.ac: Remove.
3086
3087 2011-03-09  Yao Qi  <yao@codesourcery.com>
3088
3089         Revert:
3090         2011-02-11  Yao Qi  <yao@codesourcery.com>
3091
3092         * common/Makefile.in: Add copyright header.
3093
3094         2011-02-11  Yao Qi  <yao@codesourcery.com>
3095
3096         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
3097         libcommon.a.
3098         * configure.ac: Add common to sub dir.
3099         * configure: Regenerate.
3100
3101 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3102
3103         * xtensa-tdep.c (call0_ret): New function.
3104         (xtensa_skip_prologue): Speed up analysis.
3105
3106 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3107
3108         * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3109         while executing MI command -data-list-changed-registers.
3110
3111 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3112
3113         * xtensa-tdep.c (xtensa_read_register): New function.
3114         (xtensa_write_register): New function.
3115         (xtensa_find_register_by_name): New function.
3116         (xtensa_windowed_frame_cache): Update comments in type description.
3117         (xtensa_frame_cache): Likewise.
3118         (xtensa_window_interrupt_insn): New function.
3119         (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3120         (xtensa_insn_kind): Add new instructions.
3121         (rwx_special_register): New function.
3122         (call0_classify_opcode): Add new instructions to the analysis.
3123         (a0_saved, a7_saved, a11_saved): New variables.
3124         (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3125         (execute_l32e): New function.
3126         (execute_s32e): New function.
3127         (xtensa_exception_handler_t): New type.
3128         (execute_code): New function.
3129         (xtensa_window_interrupt_frame_cache): New function to conduct frame
3130         analysis for Xtensa Window Exception handlers.
3131
3132 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3133
3134         * xtensa-tdep.c (TX_PS): New.
3135         (windowing_enabled): Update to count for Call0 ABI.
3136         (xtensa_hextochar): New.
3137         (xtensa_init_reggroups): Make algorithm generic.
3138         (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3139
3140 2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
3141
3142         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3143
3144 2011-03-08  Michael Snyder  <msnyder@vmware.com>
3145
3146         * i386-tdep.c (i386_follow_jump): Check return value of
3147         target_read_memory.
3148         (i386_analyze_struct_return): Ditto.
3149         (i386_skip_probe): Ditto.
3150         (i386_match_insn): Ditto.
3151         (i386_skip_noop): Ditto.
3152         (i386_analyze_frame_setup): Ditto.
3153         (i386_analyze_register_saves): Ditto.
3154         (i386_skip_prologue): Ditto.
3155         (i386_skip_main_prologue): Ditto.
3156
3157         * target.c (read_whatever_is_readable): Fix memory leak.
3158
3159         * i386-tdep.c (i386_process_record): Document fall through.
3160
3161 2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3162
3163         Fix DWARF-3+ DW_AT_accessibility default assumption.
3164         * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3165         cu->header.version >= 3.
3166
3167 2011-03-08  Pedro Alves  <pedro@codesourcery.com>
3168
3169         * remote.c (remote_check_symbols): Skip if the target has no
3170         execution.
3171
3172 2011-03-08  Joel Brobecker  <brobecker@adacore.com>
3173
3174         * target.c (read_whatever_is_readable): Reformat comment,
3175         with a minor typo fix. Minor reformatting of the code.
3176
3177 2011-03-08  Yao Qi  <yao@codesourcery.com>
3178
3179         * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3180         (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3181         Use cached result instead of calling displaced_in_arm_mode again.
3182         (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3183         (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3184         (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3185         (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3186         (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3187         (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3188         (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3189         (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3190         (cleanup_block_load_pc, copy_block_xfer): Likewise.
3191         * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3192         (arm_catch_kernel_helper_return): Likewise.
3193         * gdb/arm-tdep.h : Update function declarations.
3194
3195 2011-03-07  Michael Snyder  <msnyder@vmware.com>
3196
3197         * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3198
3199         * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3200
3201         * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3202
3203         * elfread.c (elf_symtab_read): Stop memory leak.
3204
3205         * main.c (captured_main): Fix memory leak.
3206
3207 2011-03-07  Andreas Schwab  <schwab@linux-m68k.org>
3208
3209         * ada-lang.c (compare_names): Call is_name_suffix with string1
3210         instead of string2.
3211
3212 2011-03-07  Tom Tromey  <tromey@redhat.com>
3213
3214         * xcoffread.c (xcoff_sym_fns): Update.
3215         * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3216         (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3217         * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3218         (symbol_file_add_with_addrs_or_offsets): Likewise.
3219         (reread_symbols): Handle OBJF_PSYMTABS_READ.
3220         * somread.c (som_sym_fns): Update.
3221         * psymtab.h (require_partial_symbols): Declare.
3222         * psymtab.c (require_partial_symbols): New function.
3223         (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3224         (ALL_OBJFILE_PSYMTABS): Undef.
3225         (ALL_PSYMTABS): Move from psympriv.h.
3226         (lookup_partial_symtab, find_pc_sect_psymtab)
3227         (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3228         (find_last_source_symtab_from_partial)
3229         (forget_cached_source_info_partial)
3230         (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3231         (expand_partial_symbol_tables, read_psymtabs_with_filename)
3232         (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3233         (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3234         (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3235         Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3236         * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3237         * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3238         * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3239         psymtabs.
3240         * mipsread.c (ecoff_sym_fns): Update.
3241         * machoread.c (macho_sym_fns): Update.
3242         * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3243         (read_psyms): New function.
3244         (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3245         (elf_sym_fns_lazy_psyms): New global.
3246         * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3247         dwarf2_build_psymtabs.
3248         * dbxread.c (aout_sym_fns): Update.
3249         * coffread.c (coff_sym_fns): Update.
3250
3251 2011-03-07  Tom Tromey  <tromey@redhat.com>
3252
3253         * infrun.c (print_exited_reason): Include inferior id and pid in
3254         message.
3255
3256 2011-03-07  Tom Tromey  <tromey@redhat.com>
3257
3258         * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3259         parameter.
3260         (target_has_execution_1): Update.
3261         (target_has_execution_current): Declare.
3262         (target_has_execution): Call target_has_execution_current.
3263         (default_child_has_execution): Update.
3264         * target.c (default_child_has_execution): Add 'the_ptid'
3265         parameter.
3266         (target_has_execution_1): Likewise.
3267         (target_has_execution_current): New function.
3268         (add_target): Update.
3269         (init_dummy_target): Update.
3270         * remote-m32r-sdi.c (m32r_has_execution): New function.
3271         (init_m32r_ops): Use it.
3272         * record.c (record_core_has_execution): Now static.  Add
3273         'the_ptid' parameter.
3274         * inferior.c (have_live_inferiors): Don't save current thread.
3275         Use target_has_execution_1.
3276
3277 2011-03-07  Yao Qi  <yao@codesourcery.com>
3278
3279         * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3280
3281 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
3282
3283         * elfread.c (elf_symtab_read): Minor reformatting.
3284
3285 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
3286
3287         * objc-lang.c (selectors_info): Minor reformatting.
3288
3289 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
3290
3291         * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3292
3293 2011-03-07  Joel Brobecker  <brobecker@adacore.com>
3294             Michael Snyder  <msnyder@vmware.com>
3295
3296         * ada-valprint.c (ada_val_print_array): Move the declaration of
3297         "byte_order" and "elttype" inside the block where these variables
3298         are actually used.  Remove some special handling for the case
3299         where "elttype" and "eltlen" are null.  Replace by a comment
3300         and a couple of assertion checks.
3301
3302 2011-03-05  Michael Snyder  <msnyder@vmware.com>
3303
3304         * source.c (add_path): Replace semicolon at end of block.
3305         * dwarf2expr.c (execute_stack_op): Ditto.
3306
3307 2011-03-05  Mike Frysinger  <vapier@gentoo.org>
3308
3309         * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3310         * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3311         (bfin-*-*): Likewise.
3312
3313 2011-03-05  Michael Snyder  <msnyder@vmware.com>
3314
3315         * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3316         * mdebugread.c (parse_symbol): Ditto.
3317         * parse.c (parse_exp_in_context): Ditto.
3318         * source.c (add_path): Ditto.
3319         * utils.c (gnu_debuglink_crc32): Ditto.
3320         * varobj.c (variable_language): Ditto.
3321
3322         * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3323
3324 2011-03-04  Michael Snyder  <msnyder@vmware.com>
3325
3326         * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3327
3328         * symfile.c (simple_overlay_update): Check for null return value
3329         from lookup_minimal_symbol.
3330
3331         * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3332
3333 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3334
3335         * eval.c (parse_and_eval_address_1): Remove function.
3336         * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3337         instead of parse_and_eval_address_1.
3338         * value.h (parse_and_eval_address_1): Remove prototype.
3339
3340 2011-03-04  Michael Snyder  <msnyder@vmware.com>
3341
3342         * remote.c (putpkt_binary): Document that case stmt falls through.
3343
3344 2011-03-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3345
3346         * breakpointc (print_it_typical): Move NULL check from here...
3347         (print_bp_stop_message): ... to here.
3348
3349 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
3350
3351         * breakpoint.c (enable_command): Use break instead of continue,
3352         and fill in a missing break.
3353         (disable_command): Ditto.
3354
3355 2011-03-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
3356
3357         * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3358         (terminal_save_ours): Remove misleading comment.
3359         (inflow_inferior_data_cleanup): Free ttystate.
3360         (inflow_inferior_exit): Likewise.
3361         (copy_terminal_info): Copy ttystate.
3362
3363         * serial.c (serial_copy_tty_state): New function.
3364         * serial.h (serial_copy_tty_state): Add prototype.
3365         (struct serial_ops): Add copy_tty_state callback.
3366         * ser-base.c (ser_base_copy_tty_state): New function.
3367         * ser-base.h (ser_base_copy_tty_state): Add prototype.
3368         * ser-go32.c (dos_copy_tty_state): New function.
3369         (dos_ops): Install copy_tty_state callback.
3370         * ser-mingw.c (_initialize_ser_windows): Likewise.
3371         * ser-pipe.c (_initialize_ser_pipe): Likewise.
3372         * ser-unix.c (hardwire_copy_tty_state): New function.
3373         (_initialize_ser_hardwire): Install it.
3374
3375 2011-03-04  Michael Snyder  <msnyder@vmware.com>
3376
3377         * breakpoint.c (create_breakpoint): Add missing break statement.
3378
3379         Reverting this patch:
3380         * infcall.c (call_function_by_hand): Add break statements for lint.
3381
3382         Reverting this patch:
3383         * cli/cli-script.c (script_from_file): Add break for lint.
3384
3385 2011-03-04  Michael Snyder  <msnyder@vmware.com>
3386
3387         * solib.c (reload_shared_libraries_1): Close memory leak.
3388
3389 2011-03-03  Tom Tromey  <tromey@redhat.com>
3390
3391         PR gdb/12538:
3392         * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3393         DW_STRING is NULL.
3394
3395 2011-03-03  Michael Snyder  <msnyder@vmware.com>
3396
3397         * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3398         fields of struct 'st' to zero.
3399
3400         * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3401         sal.pspace before calling set_current_source_symtab_and_line.
3402
3403 2011-03-03  Yao Qi  <yao@codesourcery.com>
3404
3405         * Makefile.in (configure-common): Remove.  Let Makefile
3406         in dir common to rebuild itself.
3407         (common/Makefile): Likewise.
3408
3409 2011-03-03  Joel Brobecker  <brobecker@adacore.com>
3410
3411         * utils.c (parse_escape): Add i18n markup in error message.
3412
3413 2011-03-03  Yao Qi  <yao@codesourcery.com>
3414
3415         * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3416         ARM_PC_REGNUM.
3417         (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3418         (displaced_write_reg, displaced_read_reg): Likewise.
3419         (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3420         (cleanup_block_load_pc, copy_block_xfer): Likewise.
3421         (cleanup_branch): Replace magic number 14 and 15 with
3422         ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3423
3424 2011-03-02  Michael Snyder  <msnyder@vmware.com>
3425
3426         * maint.c (maintenance_do_deprecate): No need to check for NULL.
3427
3428         * cli/cli-script.c (script_from_file): Add break for lint.
3429
3430         * mdebugread.c (parse_partial_symbols): Fix indent.
3431
3432         * target-descriptions.c (tdesc_gdb_type): No need to call
3433         xstrdup, callee saves a copy.
3434
3435         * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3436
3437         * infcall.c (call_function_by_hand): Add break statements for lint.
3438
3439         * utils.c (parse_escape): Escape the escape char.
3440
3441         * python/py-inferior.c (build_inferior_list): Error out if
3442         PyList_Append fails.
3443         (gdbpy_inferiors): Error out if build_inferior_list fails.
3444
3445         * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3446         a function call.
3447
3448         * record.c (record_restore): Move printf to before error return.
3449
3450 2011-03-02  Yao Qi  <yao@codesourcery.com>
3451
3452         * arm-tdep.h (struct displaced_step_closure): Add two new fields
3453         is_thumb and insn_size.
3454         * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3455         on both ARM and Thumb mode.
3456         (arm_process_displaced_insn): Set is_thumb and insn_size.
3457         (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3458         (arm_displaced_step_fixup): Likewise.
3459
3460 2011-03-01  Michael Snyder  <msnyder@vmware.com>
3461
3462         * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3463
3464         * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3465
3466         * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3467
3468         * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3469
3470         * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3471         with xmalloc.
3472
3473         * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3474         which shadows function parameter.
3475
3476         * tracepoint.c (create_tsv_from_upload): Superfluous call
3477         to xstrdup.  Callee already calls xstrdup.
3478
3479         * linespec.c (decode_line_1): Remove unnecessary null check.
3480
3481         * tracepoint.c (scope_info): Fix mem leak, remove underused
3482         variable.
3483
3484         * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3485         superfluous null check.
3486
3487         * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3488         (value_of_builtin_frame_fp_reg): Ditto.
3489
3490         * event-top.c (display_gdb_prompt): Remove superfluous null check.
3491
3492         * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3493         be null.
3494
3495         * linespec.c (decode_line_1): Check for null before dereference.
3496
3497         * reverse.c (record_restore): Move null-check to before pointer
3498         dereference.
3499
3500         * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3501
3502         * objc-lang.c (selectors_info): Add explanitory comment.
3503         (classes_info): Ditto.
3504
3505 2011-03-01  Ulrich Weigand  <ulrich.weigand@linaro.org>
3506
3507         * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3508         (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3509         versions of the trampoline.  Handle Thumb vs. ARM addresses.
3510         (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3511         (arm_linux_init_abi): Install it.
3512         * arm-tdep.c (arm_psr_thumb_bit): Make global.
3513         * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3514
3515 2011-02-28  Michael Snyder  <msnyder@vmware.com>
3516
3517         * ui-out.c (ui_out_field_core_addr): Make local char buffer
3518         a little bigger, to avoid possibility of an overflow.
3519
3520         * breakpoint.c (breakpoint_adjustment_warning): Make local char
3521         buffers a little bigger, to avoid possibility of an overflow.
3522
3523         * coffread.c (coff_getfilename): Add check to avoid overflow.
3524
3525         * objc-lang.c (selectors_info): Add a small safety margin to
3526         avoid overflow.
3527         (classes_info): Error out on too long REGEXP.
3528
3529         * infrun.c (handle_inferior_event): Remove unused function call.
3530
3531         * fork-child.c (fork_inferior): Remove ifdef'd code and
3532         unused variable.
3533
3534         * linux-thread-db.c (attach_thread): Discard unused value.
3535
3536         * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3537
3538         * remote.c (remote_get_noisy_reply): Discard unused value.
3539         (remote_vcont_resume): Ditto.
3540         (remote_stop_ns): Ditto.
3541
3542         * linespec.c (decode_objc): Delete unused variable.
3543
3544         * tui/tui-regs.c (tui_register_format): Delete unused variable.
3545
3546         * dwarf2read.c (add_partial_symbol): Discard unused values.
3547         (read_base_type): Delete unused variable.
3548
3549         * dbxread.c (read_dbx_symtab): Discard unused value.
3550
3551         * eval.c (evaluate_subexp_standard): Delete unused variable,
3552         and discard unused values.
3553
3554         * infcmd.c (_initialize_infcmd): Discard unused values.
3555
3556         * stabsread.c (rs6000_builtin_type): Missing break statement.
3557
3558         * dbxread.c (process_one_symbol): Discard unused value.
3559
3560         * coffread.c (coff_end_symtab): Delete unused variable.
3561
3562         * dwarf2read.c (dw2_get_file_names): Discard unused value.
3563         (dwarf2_add_typedef): Delete unused variable.
3564         (read_namespace): Ditto.
3565         (dwarf_decode_macros): Ditto.
3566
3567         * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3568
3569         * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3570
3571         * p-valprint.c (pascal_val_print): Discard unused value.
3572
3573         * utils.c (nquery): Call va_end before return;
3574         (yquery): Ditto.
3575         (query): Ditto.
3576
3577         * proc-service.c (ps_plog): Call va_end before return.
3578
3579 2011-02-28  Tom Tromey  <tromey@redhat.com>
3580
3581         * python/python.c (gdbpy_value_cst): New global.
3582         (_initialize_python): Initialize it.
3583         * python/python-internal.h (gdbpy_value_cst): Declare.
3584         * python/py-value.c (convert_value_from_python): Use
3585         gdbpy_value_cst.
3586
3587 2011-02-28  Michael Snyder  <msnyder@vmware.com>
3588
3589         * python/py-cmd.c (cmdpy_init): Fix memory leak.
3590
3591         * breakpoint.c (catch_syscall_completer): Free malloced list.
3592
3593         * jv-lang.c (java_primitive_type_from_name): Add missing break.
3594
3595         * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3596         (lval_func_check_synthetic_pointer): Ditto.
3597         (lval_func_free_closure): Fix use-after-free.
3598
3599 2011-02-28  Tom Tromey  <tromey@redhat.com>
3600
3601         * psymtab.c (expand_partial_symbol_tables): Use
3602         ALL_OBJFILE_PSYMTABS.
3603
3604 2011-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3605
3606         * objc-lang.c (selectors_info): Error on too long REGEXP.
3607
3608 2011-02-28  Michael Snyder  <msnyder@vmware.com>
3609
3610         * python/py-param.c (set_parameter_value): Add missing
3611         break statement.
3612
3613         * linux-record.c (record_linux_system_call): Add missing
3614         break statement.
3615
3616 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
3617
3618         * breakpoint.c (print_one_breakpoint_location): Remove unused
3619         argument PRINT_ADDRESS_BITS.  Update callers.
3620         (print_one_breakpoint): Likewise.
3621
3622 2011-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
3623
3624         * breakpoint.c (wrap_indent_at_field): New function.
3625         (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3626         Allocate ui_stream locally instead of using STB argument.
3627         (print_one_breakpoint_location): Update call.
3628         * ui-out.c (ui_out_query_field): New function.
3629         * ui-out.h (ui_out_query_field): Add prototype.
3630
3631 2011-02-28  Joel Brobecker  <brobecker@adacore.com>
3632
3633         From Michael Snyder  <msnyder@vmware.com>
3634         * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3635
3636 2011-02-27  Michael Snyder  <msnyder@vmware.com>
3637
3638         * objc-lang.c (selectors_info): Prevent string overrun.
3639
3640         * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3641         error in strncpy.
3642
3643         * symtab.c (rbreak_command): Move variable 'file_name' to
3644         outer scope.
3645
3646         * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3647         param with a local variable of the same name.
3648
3649 2011-02-27  Michael Snyder  <msnyder@vmware.com>
3650
3651         * value.c (value_from_history_ref): New function.
3652         * value.h (value_from_history_ref): Export.
3653         * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3654         to parse value history references.
3655         * cli/cli-utils.h (get_number_trailer): Update comment.
3656
3657 2011-02-27  Michael Snyder  <msnyder@vmware.com>
3658
3659         * inferior.c (detach_inferior_command): Use get_number_or_range.
3660         (kill_inferior_command): Ditto.
3661         (remove_inferior_command): Ditto.
3662         (initialize_inferiors): Make command names plural.
3663         Update help strings.
3664
3665 2011-02-27  Michael Snyder  <msnyder@vmware.com>
3666
3667         * darwin-nat-info.c: Fix comment typo.
3668         * dwarf2expr.h: Ditto.
3669         * fbsd-nat.c: Ditto.
3670         * fbsd-nat.h: Ditto.
3671         * frame-unwind.h: Ditto.
3672         * frame.h: Ditto.
3673         * hppa-hpux-tdep.c: Ditto.
3674         * i386-linux-nat.c: Ditto.
3675         * linux-nat.c: Ditto.
3676         * nbsd-nat.c: Ditto.
3677         * nbsd-nat.h: Ditto.
3678         * ppc-linux-tdep.c: Ditto.
3679         * serial.c: Ditto.
3680         * ui-file.h: Ditto.
3681         * tui/tui-winsource.c: Ditto.
3682
3683 2011-02-26  Michael Snyder  <msnyder@vmware.com>
3684
3685         * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3686
3687         * maint.c (maintenance_do_deprecate): Plug a memory leak.
3688
3689         * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3690         with a local variable of the same name.
3691
3692         * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3693         param with a local variable of the same name.
3694         (i387_supply_xsave): Ditto.
3695
3696         * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3697         that it does not shadow a function parameter.
3698
3699         * i386-nat.c (i386_length_and_rw_bits): Document that case
3700         statement is meant to fall through.
3701
3702         * expprint.c (dump_subexp_body_standard): Document that case
3703         statement is meant to fall through.
3704
3705         * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3706         dead if statement.  Condition can't be false.
3707
3708 2011-02-25  Michael Snyder  <msnyder@vmware.com>
3709
3710         * arm-tdep.c: Fix typos in comments.
3711         * bsd-uthread.c: Ditto.
3712         * completer.c: Ditto.
3713         * corelow.c: Ditto.
3714         * cp-namespace.c: Ditto.
3715         * cp-support.c: Ditto.
3716         * cris-tdep.c: Ditto.
3717         * dbxread.c: Ditto.
3718         * dwarf2read.c: Ditto.
3719         * frame.h: Ditto.
3720         * gdbtypes.h: Ditto.
3721         * inferior.h: Ditto.
3722         * mdebugread.c: Ditto.
3723         * mips-tdep.c: Ditto.
3724         * ppc-linux-nat.c: Ditto.
3725         * ppc-linux-tdep.c: Ditto.
3726         * printcmd.c: Ditto.
3727         * sol-thread.c: Ditto.
3728         * solib-frv.c: Ditto.
3729         * solist.h: Ditto.
3730         * sparc64-tdep.c: Ditto.
3731         * spu-tdep.c: Ditto.
3732         * stabsread.c: Ditto.
3733         * symfile.c: Ditto.
3734         * valops.c: Ditto.
3735         * varobj.c: Ditto.
3736         * vax-nat.c: Ditto.
3737         * python/py-block.c: Ditto.
3738         * python/py-symbol.c: Ditto.
3739         * python/py-symtab.c: Ditto.
3740         * python/py-value.c: Ditto.
3741         * tui/tui-win.c: Ditto.
3742
3743 2011-02-25  Michael Snyder  <msnyder@vmware.com>
3744
3745         * inferior.c (print_inferior): Accept a string instead of an int
3746         for requested_inferiors, and use get_number_or_range to parse it.
3747         (info_inferiors_command): Pass args string to print_inferior.
3748         (initialize_inferiors): Change help string for info inferiors.
3749         * inferior.h (print_inferior): Export prototype change.
3750
3751 2011-02-25  Tom Tromey  <tromey@redhat.com>
3752
3753         * common/ax.def (invalid2): Set to 0x31.
3754
3755 2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3756
3757         * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3758         L and plongest.
3759         (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3760         use L and plongest.
3761         (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3762
3763 2011-02-24  Michael Snyder  <msnyder@vmware.com>
3764
3765         * Makefile.in (clean): Make clean should remove generated files
3766         observer.h and observer.inc.
3767
3768 2011-02-24  Joel Brobecker  <brobecker@adacore.com>
3769
3770         Revert the following patch (not approved yet):
3771         2011-02-21  Hui Zhu  <teawater@gmail.com>
3772         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3773         * ax-gdb.c (gen_printf_expr_callback): New function.
3774         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3775         * ax-general.c (ax_memcpy): New function.
3776         (ax_print): Handle "printf".
3777         (ax_reqs): Ditto.
3778         * ax.h (ax_memcpy): Forward declare.
3779         * common/ax.def (invalid2): Removed.
3780         (printf): New entry.
3781         * printcmd.c (printcmd.h): New include.
3782         (string_printf): New function.
3783         (ui_printf): Removed.
3784         (printf_command): Remove static.  Call string_printf.
3785         (eval_command): Call string_printf.
3786         * printcmd.h: New file.
3787         * tracepoint.c (validate_actionline,
3788         encode_actions_1): handle printf_command.
3789
3790 2011-02-23  Tom Tromey  <tromey@redhat.com>
3791
3792         * ax-general.c (ax_pick): Add missing newline.
3793
3794 2011-02-23  Michael Snyder  <msnyder@vmware.com>
3795
3796         * breakpoint.c (breakpoint_1): Change first argument from an int
3797         to a char pointer, so that the function now accepts a list of
3798         breakpoints rather than just one.  Use new function
3799         'number_is_in_list' to implement.
3800         (breakpoints_info): Pass char * instead of int to breakpoint_1.
3801         (watchpoints_info): Ditto.
3802         (tracepoints_info): Ditto.
3803         (maintenance_info_breakpoints): Ditto.
3804         (_initialize_breakpoint): Update help strings to reflect the fact
3805         that these functions can now take more than one argument.
3806         * cli/cli-utils.c (number_is_in_list): New function.
3807         * cli/cli-utils.h (number_is_in_list): Export.
3808
3809 2011-02-23  Michael Snyder  <msnyder@vmware.com>
3810
3811         * memattr.c (mem_enable_command): Use get_number_or_range.
3812         (mem_disable_command): Ditto.
3813         (mem_delete_command): Ditto.
3814         (_initialize_mem): Tweak usage message to reflect multiple
3815         arguments.
3816
3817 2011-02-22  Doug Evans  <dje@google.com>
3818
3819         Add gdb.lookup_global_symbol python function.
3820         * NEWS: Add entry.
3821         * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3822         * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3823         * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3824
3825 2011-02-22  Tom Tromey  <tromey@redhat.com>
3826
3827         * language.c (language_class_name_from_physname): Rename
3828         'curr_language' argument to 'lang'; use in body.
3829
3830 2011-02-22  Michael Snyder  <msnyder@vmware.com>
3831
3832         * cli/cli-utils.c (number_is_in_list): Check for zero return.
3833
3834 2011-02-22  Pedro Alves  <pedro@codesourcery.com>
3835
3836         * frame-unwind.h: Fix comment to mention the this frame, not the
3837         next.
3838
3839 2011-02-22  Tom Tromey  <tromey@redhat.com>
3840
3841         * symfile.c (auto_solib_limit): Remove.
3842         * symfile.h (auto_solib_limit): Remove.
3843
3844 2011-02-22  Joel Brobecker  <brobecker@adacore.com>
3845
3846         * Makefile.in (INSTALLED_LIBS): Delete.  Update comment.
3847
3848 2011-02-21  Michael Snyder  <msnyder@vmware.com>
3849
3850         * gdbthread.h (print_thread_info): Change prototype.
3851         * thread.c (print_thread_info): Accept char* instead of int for
3852         requested_threads argument.  Use new function number_is_in_list
3853         to determine which threads to list.
3854         (info_threads_command): Pass char* to print_thread_info.
3855         * cli/cli-utils.c (number_is_in_list): New function.
3856         * cli/cli-utils.h (number_is_in_list): Export.
3857         * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3858         print_thread_info.
3859         (print_one_inferior): Ditto.
3860         (mi_cmd_list_thread_groups): Ditto.
3861
3862 2011-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3863
3864         * common/Makefile.in (CFLAGS): New.
3865         (COMPILE): Add $(CFLAGS).
3866
3867 2011-02-21  Tom Tromey  <tromey@redhat.com>
3868
3869         * breakpoint.c (catch_syscall_command_1): Fix typo.
3870
3871 2011-02-21  Tom Tromey  <tromey@redhat.com>
3872
3873         * reverse.c: Include cli-utils.h.
3874         * printcmd.c: Include cli-utils.h.
3875         (string_printf): Use skip_spaces.
3876         * cli/cli-utils.h: New file.
3877         * cli/cli-utils.c: New file.
3878         * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3879         * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3880         * breakpoint.h (get_number, get_number_or_range): Move to
3881         cli-utils.h.
3882         * breakpoint.c: Include cli-utils.h.
3883         (get_number_trailer, get_number, get_number_or_range)
3884         (ep_skip_leading_whitespace): Move to cli-utils.c.
3885         (create_breakpoint_sal, find_condition_and_thread)
3886         (decode_static_tracepoint_spec, watch_command_1)
3887         (watch_maybe_just_location, ep_parse_optional_if_clause)
3888         (catch_fork_command_1, catch_exec_command_1)
3889         (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3890         * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3891         (SUBDIR_CLI_SRCS): Add cli-utils.c.
3892         (HFILES_NO_SRCDIR): Add cli-utils.h.
3893         (cli-utils.o): New target.
3894
3895 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
3896
3897         * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3898         before calling discard_all_inferiors.
3899
3900 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
3901
3902         * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3903         (struct builtin_opencl_type): Remove.
3904         (builtin_opencl_type): Change return type to "struct type **".
3905         (lookup_opencl_vector_type): Update caller.
3906         (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3907         (build_opencl_types): Install plain array of "struct type *"
3908         instead of "struct builtin_opencl_type".
3909
3910 2011-02-21  Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3911             Ulrich Weigand  <uweigand@de.ibm.com>
3912
3913         * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3914         (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3915         (struct arm_linux_hwbp_cap): New type.
3916         (arm_linux_get_hwbp_cap): New function.
3917         (arm_linux_get_hw_breakpoint_count): Likewise.
3918         (arm_linux_get_hw_watchpoint_count): Likewise.
3919         (arm_linux_can_use_hw_breakpoint): Likewise.
3920         (arm_hwbp_type): New type.
3921         (arm_hwbp_control_t): Likewise.
3922         (struct arm_linux_hw_breakpoint): Likewise.
3923         (struct arm_linux_thread_points): Likewise.
3924         (arm_threads): New global variable.
3925         (arm_linux_find_breakpoints_by_tid): New function.
3926         (arm_hwbp_control_initialize): Likewise.
3927         (arm_hwbp_control_is_enabled): Likewise.
3928         (arm_hwbp_control_disable): Likewise.
3929         (arm_linux_hw_breakpoint_initialize): Likewise.
3930         (arm_linux_get_hwbp_type): Likewise.
3931         (arm_linux_hw_watchpoint_initialize): Likewise.
3932         (arm_linux_hw_breakpoint_equal): Likewise.
3933         (arm_linux_insert_hw_breakpoint1): Likewise.
3934         (arm_linux_remove_hw_breakpoint1): Likewise.
3935         (arm_linux_insert_hw_breakpoint): Likewise.
3936         (arm_linux_remove_hw_breakpoint): Likewise.
3937         (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3938         (arm_linux_insert_watchpoint): Likewise.
3939         (arm_linux_remove_watchpoint): Likewise.
3940         (arm_linux_stopped_data_address): Likewise.
3941         (arm_linux_stopped_by_watchpoint): Likewise.
3942         (arm_linux_watchpoint_addr_within_range): Likewise.
3943         (arm_linux_new_thread): Likewise.
3944         (arm_linux_thread_exit): Likewise.
3945         (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3946         related target callbacks.  Register arm_linux_new_thread and
3947         arm_linux_thread_exit.
3948         * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3949         * arm-tdep.c (arm_pc_is_thumb): Make global.
3950         (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3951
3952 2011-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
3953
3954         * breakpoint.c (update_watchpoint): Do not attempt to recreate
3955         per-frame locations while within a function epilogue.
3956
3957 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3958
3959         * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3960         to GNU coding standards.
3961
3962 2011-02-21  Pierre Muller  <muller@ics.u-strasbg.fr>
3963
3964         Allow use of mingw native on Windows 95 OS.
3965         * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3966         (ser_windows_close): Only call CancelIo if function exists.
3967         (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3968         to check for existence of CancelIo function in kernel32 DLL.
3969
3970 2011-02-21  Hui Zhu  <teawater@gmail.com>
3971
3972         * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3973         * ax-gdb.c (gen_printf_expr_callback): New function.
3974         * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3975         * ax-general.c (ax_memcpy): New function.
3976         (ax_print): Handle "printf".
3977         (ax_reqs): Ditto.
3978         * ax.h (ax_memcpy): Forward declare.
3979         * common/ax.def (invalid2): Removed.
3980         (printf): New entry.
3981         * printcmd.c (printcmd.h): New include.
3982         (string_printf): New function.
3983         (ui_printf): Removed.
3984         (printf_command): Remove static.  Call string_printf.
3985         (eval_command): Call string_printf.
3986         * printcmd.h: New file.
3987         * tracepoint.c (validate_actionline,
3988         encode_actions_1): handle printf_command.
3989
3990 2011-02-19  Michael Snyder  <msnyder@vmware.com>
3991
3992         * reverse.c (delete_one_bookmark): Argument is now bookmark
3993         id rather than pointer to bookmark struct.
3994         (delete_bookmark_command): Use get_number_or_range.
3995         (goto_bookmark_command): Parse with get_number instead of strtoul.
3996         (bookmark_1): New function.  Print info for one bookmark.
3997         (bookmarks_info): Use get_number_or_range and bookmark_1.
3998
3999 2011-02-18  Michael Snyder  <msnyder@vmware.com>
4000
4001         * thread.c (info_threads_command): Re-implement using
4002         get_number_or_range.
4003         (thread_apply_command): Ditto.
4004
4005 2011-02-18  Tom Tromey  <tromey@redhat.com>
4006
4007         * common/ax.def: New file.
4008         * ax.h (enum agent_op): Use ax.def.
4009         * ax-general.c (aop_map): Use ax.def.
4010
4011 2011-02-18  Tom Tromey  <tromey@redhat.com>
4012
4013         * ax-general.c (aop_map): Add pick and rot.
4014         * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4015         <DW_OP_rot>: Implement.
4016         * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4017         (ax_pick): Declare.
4018         * ax-general.c (ax_pick): New function.
4019
4020 2011-02-18  Tom Tromey  <tromey@redhat.com>
4021
4022         * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4023
4024 2011-02-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4025             Tom Tromey  <tromey@redhat.com>
4026
4027         * cp-support.c (make_symbol_overload_list_namespace): Do not call
4028         make_symbol_overload_list_block with NULL BLOCK.
4029         * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4030
4031 2011-02-18  Pedro Alves  <pedro@codesourcery.com>
4032
4033         * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4034         * breakpoint.h (get_number_or_range): Declare.
4035         * printcmd.c (ALL_DISPLAYS): Declare.
4036         (delete_display): Reimplement taking a display pointer.
4037         (undisplay_command): Accept a range of displays to delete, using
4038         get_number_or_range.
4039
4040 2011-02-18  Pierre Muller  <muller@ics.u-strasbg.fr>
4041
4042         * c-valprint.c (c_val_print): Add embedded_offset to address
4043         for arrays of unspecified length.
4044         * p-valprint.c (pascal_val_print): Likewise.
4045
4046 2011-02-18  Yao Qi  <yao@codesourcery.com>
4047
4048         * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4049         (arm_process_displaced_insn): .. here. Remove parameter INSN.
4050         (thumb_process_displaced_insn): New.
4051         * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4052         call to arm_process_displaced_insn.
4053         * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4054
4055 2011-02-17  Tom Tromey  <tromey@redhat.com>
4056
4057         * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4058         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4059         compile_dwarf_to_ax.  No longer static.  Call
4060         dwarf2_compile_cfa_to_ax.
4061         (locexpr_tracepoint_var_ref): Update.
4062         (loclist_tracepoint_var_ref): Update.
4063         * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4064         * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4065         argument; add 'gdbarch' and 'pc'.
4066         (dwarf2_compile_cfa_to_ax): New function.
4067         (dwarf2_frame_cache): Update.
4068
4069 2011-02-17  Joel Brobecker  <brobecker@adacore.com>
4070
4071         * ada-lang.c (ada_type_of_array): Fix the size of the array
4072         in the case of an unconstrained packed array.
4073
4074 2011-02-17  Yao Qi  <yao@codesourcery.com>
4075
4076         * common/Makefile.in: Add more targets for make.
4077
4078 2011-02-16  Tom Tromey  <tromey@redhat.com>
4079
4080         * dwarf2loc.c (unimplemented): Fix typo.
4081
4082 2011-02-16  Tom Tromey  <tromey@redhat.com>
4083
4084         * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4085         (compile_dwarf_to_ax) <default>: Use unimplemented.
4086         <DW_OP_deref>: Update.
4087         (disassemble_dwarf_expression): Update.
4088         * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4089         (decode_locdesc): Update.
4090         * dwarf2expr.h (dwarf_stack_op_name): Update.
4091
4092 2011-02-16  Tom Tromey  <tromey@redhat.com>
4093
4094         * ax.h (struct aop_map) <name>: Now const.
4095
4096 2011-02-16  Tom Tromey  <tromey@redhat.com>
4097
4098         * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4099         than axs_rvalue.
4100
4101 2011-02-16  Yao Qi  <yao@codesourcery.com>
4102
4103         * infrun.c (get_displaced_step_closure_by_addr): New.
4104         * inferior.h: Declare it.
4105         * arm-tdep.c: (arm_pc_is_thumb): Call
4106         get_displaced_step_closure_by_addr.  Adjust MEMADDR if it
4107         returns non-NULL.
4108
4109 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
4110             Jan Kratochvil  <jan.kratochvil@redhat.com>
4111
4112         gdb/
4113         * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4114
4115 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
4116             Jan Kratochvil  <jan.kratochvil@redhat.com>
4117
4118         * value.c (value_contents_copy_raw): Extend describing comment.
4119         Assert that the destination contents we're overwriting are wholly
4120         available.
4121         (value_contents_copy): Extend describing comment.
4122
4123 2011-02-16  Pedro Alves  <pedro@codesourcery.com>
4124             Jan Kratochvil  <jan.kratochvil@redhat.com>
4125
4126         * value.c (value_available_contents_eq): Remove redundant local
4127         variables.  Fix available contents comparision.
4128         * value.h (value_available_contents_eq): Extend describing
4129         comment.
4130
4131 2011-02-16  Yao Qi  <yao@codesourcery.com>
4132
4133         * thread.c (info_threads_command): Add missing i18n markup and remove
4134         trailing newline.
4135
4136 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
4137
4138         * breakpoint.c (longjmp_names): New variable.
4139         (struct breakpoint_objfile_data): New type.
4140         (breakpoint_objfile_key): New variable.
4141         (msym_not_found): New variable.
4142         (msym_not_found_p): New predicate.
4143         (get_breakpoint_objfile_data): New function.
4144         (create_overlay_event_breakpoint): Check per-objfile cache for
4145         symbols first.
4146         (create_longjmp_master_breakpoint): Likewise.
4147         (create_std_terminate_master_breakpoint): Likewise.
4148         (create_exception_master_breakpoint): Likewise.
4149         (_initialize_breakpoint): Register per-objfile data key.
4150
4151 2011-02-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
4152
4153         * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4154         parameter value.
4155         (create_longjmp_master_breakpoint): Loop over longjmp names.
4156         (create_std_terminate_master_breakpoint): Const-propagate parameter
4157         value.
4158         (update_breakpoints_after_exec): Adjust.
4159         (breakpoint_re_set): Adjust.
4160
4161 2011-02-15  Michael Snyder  <msnyder@vmware.com>
4162
4163         * thread.c (info_threads_command): Process arg as thread id,
4164         or list of thread ids.
4165         (thread_find_command): New command.
4166         (_initialize_thread): Document argument for info threads.
4167         Document 'thread find' command.
4168         * NEWS: Document new command "thread find".
4169
4170 2011-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
4171
4172         * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4173         * aclocal.m4: Regenerated with aclocal-1.11.1.
4174         * common/configure: Regenerate with autoconf-2.64.
4175
4176 2011-02-15  Ken Werner  <ken.werner@de.ibm.com>
4177
4178         * opencl-lang.c (build_opencl_types): Set the size of the built-in
4179         bool data type to a size of one byte.
4180
4181 2011-02-15  Pedro Alves  <pedro@codesourcery.com>
4182             Jan Kratochvil  <jan.kratochvil@redhat.com>
4183
4184         * target.c (memory_xfer_live_readonly_partial): Document where to
4185         look for interface description.
4186
4187 2011-02-15  Yao Qi  <yao@codesourcery.com>
4188
4189         PR tdep/12352
4190         * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4191         order to store PC value on stack instead of text section.
4192
4193 2011-02-15  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4194
4195         * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4196         the EFP register set size.
4197         (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4198         data from the VMX register.
4199         (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4200         and write data from/to the VMX register.
4201
4202 2011-02-14  Michael Snyder  <msnyder@vmware.com>
4203
4204         * command.h (enum command_class): New class 'no_set_class', for
4205         "show" commands without a corresponding "set" command.
4206         * value.c (_initialize_values): Use 'no_set_class' for "show values".
4207         * copying.c (_initialize_copying): Ditto for "show copying" and
4208         "show warranty".
4209         * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4210         "show version".
4211         * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4212         which there is no corresponding "set" command (eg. "show copying").
4213
4214 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4215             Jan Kratochvil  <jan.kratochvil@redhat.com>
4216
4217         * exec.c (section_table_available_memory): Change `len' parameter
4218         type to ULONGEST.
4219         * exec.h (section_table_available_memory): Ditto.
4220         * value.h (read_value_memory): Rename the `offset' parameter to
4221         `embedded_offset'.
4222
4223 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4224             Jan Kratochvil  <jan.kratochvil@redhat.com>
4225
4226         * memrange.c (compare_mem_ranges): Mention sort order in
4227         describing comment.
4228         (normalize_mem_ranges): Add comment.  Fix ra->length calculation.
4229         * tracepoint.c (traceframe_available_memory): Extend comment to
4230         mention what happens to RESULT when the target does not support
4231         the query.
4232
4233 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4234             Jan Kratochvil  <jan.kratochvil@redhat.com>
4235
4236         * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4237         range.
4238
4239 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4240
4241         * value.c (value_bits_valid, value_bits_synthetic_pointer):
4242         No longer handle NULL values.
4243
4244 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4245
4246         * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4247         * value.c: Include "exceptions.h".
4248         (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4249         generic error.
4250         * cp-abi.c: Include gdb_assert.h.
4251         (baseclass_offset): Add `embedded_offset' and `val' parameters.
4252         Assert the method is implemented.  Wrap NOT_AVAILABLE_ERROR
4253         errors.
4254         * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4255         parameters.  No longer returns -1 on error.
4256         (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4257         `val' parameters.
4258         * cp-valprint.c: Include exceptions.h.
4259         (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4260         the baseclass_offset.  Handle unavailable base classes.  Use
4261         val_print_invalid_address.
4262         * p-valprint.c: Include exceptions.h.
4263         (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4264         when fetching the baseclass_offset.  No longer expect
4265         baseclass_offset returning -1.  Handle unavailable base classes.
4266         Use val_print_invalid_address.
4267         * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4268         `valaddr' parameter, and change its type to gdb_byte pointer.  Add
4269         `embedded_offset' and `val' parameters.  Adjust.
4270         (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4271         parameter, and change its type to gdb_byte pointer.  Add
4272         `embedded_offset' and `val' parameters.  Adjust.  No longer expect
4273         baseclass_offset returning -1.
4274         (value_dynamic_cast): Use value_contents_for_printing rather than
4275         value_contents.  Adjust.
4276         (search_struct_field): No longer expect baseclass_offset returning
4277         -1.
4278         (search_struct_method): If reading memory from the target is
4279         necessary, wrap it in a new value to pass to baseclass_offset.  No
4280         longer expect baseclass_offset returning -1.
4281         (find_method_list): No longer expect baseclass_offset returning
4282         -1.  Use value_contents_for_printing rather than value_contents.
4283         * valprint.c (val_print_invalid_address): New function.
4284         * valprint.h (val_print_invalid_address): Declare.
4285         * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4286         and `val' parameters.  No longer expect baseclass_offset returning
4287         -1.  Adjust.
4288         * gnu-v2-abi.c: Include "exceptions.h".
4289         (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4290         parameters.  Handle unavailable memory.  Recurse through
4291         gnuv2_baseclass_offset directly, rather than through
4292         baseclass_offset.  No longer returns -1 on not found, instead
4293         throw an error.
4294         * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4295         `val' parameters.  Adjust.
4296
4297 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4298
4299         * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4300         almost but not quite adjacent.
4301
4302 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4303
4304         * value.h (value_entirely_available): Declare.
4305         * value.c (value_entirely_available): New function.
4306         * c-valprint.c (c_value_print): Don't try fetching the pointer's
4307         real type if the pointer is unavailable.
4308
4309 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4310
4311         * valops.c (value_repeat): Use read_value_memory instead of
4312         read_memory.
4313
4314 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4315
4316         * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4317         * value.c (value_contents_copy_raw, value_contents_copy): New
4318         functions.
4319         (value_primitive_field): Use value_contents_copy_raw instead of
4320         memcpy.
4321         * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4322         memcpy.
4323         (value_array, value_slice): Ditto.
4324         * valarith.c (value_subscripted_rvalue): Use
4325         value_contents_copy_raw instead of memcpy.
4326
4327 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4328
4329         <unavailable> references.
4330
4331         * valops.c (get_value_at): Use value_from_contents_and_address,
4332         avoiding read_memory.
4333
4334 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4335
4336         * c-valprint.c (c_val_print): Print a string with unavailable
4337         contents as an array.
4338
4339 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4340
4341         * value.h (unpack_bits_as_long): Delete declaration.
4342         (unpack_value_bits_as_long): Declare.
4343         (unpack_value_field_as_long): Declare.
4344         (value_field_bitfield): Declare.
4345         * value.c (unpack_bits_as_long): Rename to...
4346         (unpack_value_bits_as_long_1): ... this.  Add embedded_offset and
4347         value parameters.  Return the extracted result in a new output
4348         parameter.  If the value contents are unavailable, return false,
4349         otherwise return true.
4350         (unpack_value_bits_as_long): New.
4351         (unpack_field_as_long): Rename to...
4352         (unpack_value_field_as_long_1): ... this.  Add embedded_offset and
4353         Add embedded_offset and value parameters.  Return the extracted
4354         result in a new output parameter. If the value contents are
4355         unavailable, return false, otherwise return true.
4356         (unpack_value_field_as_long): New.
4357         (unpack_field_as_long_1): New.
4358         (unpack_field_as_long): Reimplement as wrapper around
4359         unpack_value_field_as_long_1.
4360         (value_field_bitfield): New function.
4361         * valops.c (value_fetch_lazy): When fetching a bitfield, use
4362         unpack_value_bits_as_long.  Mark the value as unavailable, if it
4363         is unavailable.
4364         * jv-valprint.c (java_print_value_fields): Use
4365         value_field_bitfield.
4366         * p-valprint.c (pascal_object_print_value_fields): Use
4367         value_field_bitfield.
4368         * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4369
4370 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4371
4372         * value.c (get_internalvar_integer): Also return the int value of
4373         TYPE_CODE_INT INTERNALVAR_VALUE values.
4374         (set_internalvar): Don't special case TYPE_CODE_INT.
4375
4376 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4377
4378         * value.c (struct internalvar) <enum internalvar_kind>: Remove
4379         INTERNALVAR_POINTER.
4380         <pointer>: Delete.
4381         (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4382         (set_internalvar): Remove special TYPE_CODE_PTR handling.
4383         (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4384
4385 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4386
4387         * value.h (value_available_contents_eq): Declare.
4388         * value.c (find_first_range_overlap): New function.
4389         (value_available_contents_eq): New function.
4390         * valprint.c (val_print_array_elements): Use
4391         value_available_contents_eq.
4392         * ada-valprint.c (val_print_packed_array_elements): Use
4393         value_available_contents_eq.
4394         * jv-valprint.c (java_value_print): Use
4395         value_available_contents_eq.
4396
4397 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4398
4399         * target.c (target_read_live_memory): New function.
4400         (memory_xfer_live_readonly_partial): New.
4401         (memory_xfer_partial): If reading from a traceframe, fallback to
4402         reading unavailable read-only memory from read-only regions of
4403         live target memory.
4404         * tracepoint.c (disconnect_tracing): Adjust.
4405         (set_current_traceframe): New, factored out from
4406         set_traceframe_number.
4407         (set_traceframe_number): Reimplement to only change the traceframe
4408         number on the GDB side.
4409         (do_restore_current_traceframe_cleanup): Adjust.
4410         (make_cleanup_restore_traceframe_number): New.
4411         (cur_traceframe_number): New global.
4412         (tfile_open): Set cur_traceframe_number to no traceframe.
4413         (set_tfile_traceframe): New function.
4414         (tfile_trace_find): If looking up a traceframe using any method
4415         other than by number, make sure the current tfile traceframe
4416         matches gdb's current traceframe.  Update the current tfile
4417         traceframe if the lookup succeeded.
4418         (tfile_fetch_registers, tfile_xfer_partial)
4419         (tfile_get_trace_state_variable_value): Make sure the remote
4420         traceframe matches gdb's current traceframe.
4421         * remote.c (remote_traceframe_number): New global.
4422         (remote_open_1): Set it to -1.
4423         (set_remote_traceframe): New function.
4424         (remote_fetch_registers, remote_store_registers)
4425         (remote_xfer_memory, remote_xfer_partial)
4426         (remote_get_trace_state_variable_value): Make sure the remote
4427         traceframe matches gdb's current traceframe.
4428         (remote_trace_find): If looking up a traceframe using any method
4429         other than by number, make sure the current remote traceframe
4430         matches gdb's current traceframe.  Update the current remote
4431         traceframe if the lookup succeeded.
4432         * infrun.c (fetch_inferior_event): Adjust.
4433         * tracepoint.h (set_current_traceframe): Declare.
4434         (get_traceframe_number, set_traceframe_number): Add describing
4435         comments.
4436
4437 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4438
4439         Mark pieces of values as unavailable if the corresponding memory
4440         is unavailable.
4441
4442         * valops.c: Include tracepoint.h.
4443         (value_fetch_lazy): Use read_value_memory.
4444         (read_value_memory): New.
4445         * value.h (read_value_memory): Declare.
4446         * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4447         * exec.c (section_table_available_memory): New function.
4448         * exec.h (section_table_available_memory): Declare.
4449
4450 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4451
4452         * Makefile.in (SFILES): Add memrange.c.
4453         (HFILES_NO_SRCDIR): Add memrange.h.
4454         (COMMON_OBS): Add memrange.o.
4455         * memrange.c: New file.
4456         * memrange.h: New file.
4457         * tracepoint.c: Include memrange.h.
4458         (struct mem_range): Delete.
4459         (mem_range_s): Delete.
4460         (traceframe_available_memory): New function.
4461         * tracepoint.h (traceframe_available_memory): Declare.
4462
4463 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4464
4465         * target.h (struct traceframe_info): Forward declare.
4466         (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4467         (struct target_ops) <to_traceframe_info>: New field.
4468         (target_traceframe_info): New.
4469         * target.c (update_current_target): Inherit and default
4470         to_traceframe_info.
4471         * remote.c (PACKET_qXfer_traceframe_info): New.
4472         (remote_protocol_features): Register qXfer:traceframe-info:read.
4473         (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4474         (remote_traceframe_info): New.
4475         (init_remote_ops): Install it.
4476         (_initialize_remote): Install "set/show remote traceframe-info"
4477         commands.
4478         * tracepoint.h (parse_traceframe_info): Declare.
4479         * tracepoint.c (struct mem_range): New.
4480         (mem_range_s): New typedef.
4481         (struct traceframe_info): New.
4482         (traceframe_info): New global.
4483         (free_traceframe_info): New function.
4484         (clear_traceframe_info): New function.
4485         (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4486         info.
4487         (build_traceframe_info): New function.
4488         (tfile_traceframe_info): New function.
4489         (init_tfile_ops): Install tfile_traceframe_info.
4490         (traceframe_info_start_memory, free_result): New functions.
4491         (memory_attributes, traceframe_info_elements): New globals.
4492         (parse_traceframe_info, get_traceframe_info): New functions.
4493         * features/traceframe-info.dtd: New file.
4494         * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4495
4496 2011-02-14  Pedro Alves  <pedro@codesourcery.com>
4497
4498         Base support for <unavailable> value contents.
4499
4500         * value.h (value_bytes_available): Declare.
4501         (mark_value_bytes_unavailable): Declare.
4502         * value.c (struct range): New struct.
4503         (range_s): New typedef.
4504         (ranges_overlap): New function.
4505         (range_lessthan): New function.
4506         (ranges_contain_p): New function.
4507         (struct value) <unavailable>: New field.
4508         (value_bytes_available): New function.
4509         (mark_value_bytes_unavailable): New function.
4510         (require_not_optimized_out): Constify parameter.
4511         (require_available): New function.
4512         (value_contents_all, value_contents): Require all bytes be
4513         available.
4514         (value_free): Free `unavailable'.
4515         (value_copy): Copy `unavailable'.
4516         * valprint.h (val_print_unavailable): Declare.
4517         * valprint.c (valprint_check_validity): Rename `offset' parameter
4518         to `embedded_offset'.  If printing a scalar, check whether the
4519         value chunk is available.
4520         (val_print_unavailable): New.
4521         (val_print_scalar_formatted): Check whether the value is
4522         available.
4523         * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4524         pretty-printing unavailable values.
4525
4526 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4527
4528         Fix const/volatile qualifiers of C++ types, PR c++/12328.
4529         * c-typeprint.c (c_type_print_args): Update the function comment.  New
4530         variable param_type, initialize it.  Remove const/volatile qualifiers
4531         for language_cplus and !show_artificial.  Use param_type.
4532
4533 2011-02-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4534
4535         * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4536         from S.  Iterate S using ALL_OBJFILE_SYMTABS.  Verify BV for each S.
4537         * symtab.h (struct symtab) <next>: Comment extension.
4538
4539 2011-02-12  Yao Qi  <yao@codesourcery.com>
4540
4541         * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4542
4543 2011-02-11  Yao Qi  <yao@codesourcery.com>
4544
4545         * common/Makefile.in: Add copyright header.
4546
4547 2011-02-11  Pedro Alves  <pedro@codesourcery.com>
4548
4549         * infrun.c (proceed): Move switching out and in of tfind mode from
4550         here ...
4551         (fetch_inferior_event): ... to here.
4552
4553 2011-02-11  Yao Qi  <yao@codesourcery.com>
4554
4555         * Makefile.in: Remove signals.o from COMMON_OBS.  Link
4556         libcommon.a.
4557         * configure.ac: Add common to sub dir.
4558         * configure: Regenerate.
4559
4560 2011-02-11  Yao Qi  <yao@codesourcery.com>
4561
4562         Build libcommon.a.
4563
4564         * common/Makefile.in: New.
4565         * common/configure.ac: New.
4566         * common/aclocal.m4: New.
4567         * common/configure: Generate.
4568
4569 2011-02-10  Pedro Alves  <pedro@codesourcery.com>
4570
4571         * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4572         side of the parenthesis.
4573
4574         Merge from GCC:
4575         2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4576         * vec.h (VEC_block_remove): Fix comment.
4577
4578 2011-02-08  Michael Snyder  <msnyder@vmware.com>
4579
4580         * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4581
4582 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4583
4584         * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4585         in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4586         psubd and paddd.
4587
4588 2011-02-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4589
4590         PR 12361.
4591         * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4592         phsubsw.
4593         (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4594         (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4595
4596 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
4597
4598         * dwarf2read.c (read_subroutine_type): Set special calling
4599         convention flag for functions compiled by IBM XL C for OpenCL.
4600         * ppc-sysv-tdep.c: Include "dwarf2.h"
4601         (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4602         calling convention.
4603         (do_ppc_sysv_return_value): Add FUNC_TYPE argument.  Implement
4604         IBM OpenCL vector types calling convention.
4605         (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4606         (ppc_sysv_abi_broken_return_value): Likewise.
4607         (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4608         types calling convention.
4609         (ppc64_sysv_abi_return_value): Likewise.
4610         * spu-tdep.c: Include "dwarf2.h"
4611         (spu_return_value): Implement IBM OpenCL vector types calling
4612         convention.
4613
4614 2011-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
4615
4616         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4617         correct ABI for AltiVec vector arguments.
4618
4619 2011-02-07  Pedro Alves  <pedro@codesourcery.com>
4620
4621         * valprint.c (val_print): Extend comment.
4622         * ada-valprint.c (ada_valprint): Rewrite comment deferring
4623         interface explanation to val_print.
4624         (ada_val_print_array): Adjust comment to current interface.
4625         (print_field_values): Adjust comment to current interface.
4626         * c-valprint.c (c_val_print): Rewrite comment deferring interface
4627         explanation to val_print.
4628         * f-valprint.c (f_val_print): Ditto.
4629         * jv-valprint.c (java_val_print): Ditto.
4630         * m2-valprint.c (m2_val_print): Ditto.
4631         * p-valprint.c (pascal_val_print): Ditto.
4632
4633 2011-02-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4634
4635         * breakpoint.c (parse_breakpoint_sals): Fix description.
4636
4637 2011-02-04  Sami Wagiaalla  <swagiaal@redhat.com>
4638             Oguz Kayral <oguzkayral@gmail.com>
4639
4640         * python/py-inferior.c (python_on_normal_stop): New function.
4641         (python_on_resume): New function.
4642         (python_inferior_exit): New function.
4643         (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4644         inferior_exit observers.
4645         * python/py-evtregistry.c: New file.
4646         * python/py-threadevent.c : New file.
4647         * python/py-event.c: New file.
4648         * python/py-evts.c: New file.
4649         * python/py-continueevent.c: New file.
4650         * python/py-bpevent.c: New file.
4651         * python/py-signalevent.c: New file.
4652         * python/py-exetiedevent.c: New file.
4653         * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4654         Move struct breakpoint_object from here...
4655         * python/python-internal.h: ... to here.
4656         * python/py-event.h: New file.
4657         * python/py-events.h: New file.
4658         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4659         py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4660         py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4661         (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4662         py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4663         py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4664         Add build rules for all the above.
4665
4666 2011-02-04  Tom Tromey  <tromey@redhat.com>
4667
4668         * dwarf2read.c (dwarf2_section_empty_p): New function.
4669         (dwarf2_read_section): Use dwarf2_section_empty_p.
4670         (dwarf2_section_size): New function.
4671         (dwarf2_get_section_info): Unconditionally read section.
4672         (dwarf2_read_index): Use dwarf2_section_empty_p.
4673         (partial_read_comp_unit_head): Use dwarf2_section_size.
4674         (dwarf2_symbol_mark_computed): Likewise.
4675
4676 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4677
4678         * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4679
4680 2011-02-04 David Daney <ddaney@caviumnetworks.com>
4681
4682         * mips-linux-tdep.c: Include xml-syscall.h.
4683         (mips_linux_get_syscall_number): New function.
4684         (mips_linux_init_abi): Add calls to
4685         mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4686         * data-directory/Makefile.in (SYSCALLS_FILES): Add
4687         mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4688         * syscalls/mips-n32-linux.xml: New file.
4689         * syscalls/mips-n64-linux.xml: New file.
4690         * syscalls/mips-o32-linux.xml: New file.
4691
4692 2011-02-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
4693
4694         * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4695         Complain about inverted range entries.
4696         (dwarf2_record_block_ranges): Likewise.
4697
4698 2011-02-04  Thiago Jung Bauermann  <bauerman@br.ibm.com>
4699
4700         Fix some typos.
4701         * breakpoint.c (update_watchpoint): Fix name of the
4702         update_global_location_list function.
4703         (print_one_breakpoint): Fix typo.
4704         (_initialize_breakpoint): Remove extra space in hbreak help
4705         string.
4706         * breakpoint.h (struct bp_location) <length>: Fix field
4707         description.
4708
4709 2011-02-04  Pedro Alves  <pedro@codesourcery.com>
4710
4711         * regcache.c (registers_changed_ptid): Don't explictly always
4712         clear `current_regcache'.  Only clear current_thread_ptid and
4713         current_thread_arch when PTID matches.  Only reinit the frame
4714         cache if PTID matches the current inferior_ptid.  Move alloca(0)
4715         call to ...
4716         (registers_changed): ... here.
4717
4718 2011-02-03  Ulrich Weigand  <ulrich.weigand@linaro.org>
4719
4720         * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4721         starts with __stack_chk_guard as stack guard symbol.
4722
4723 2011-02-03  Andrew Burgess  <aburgess@broadcom.com>
4724
4725         * disasm.c (compare_lines): Handle the end of sequence markers
4726         within the line table to better support disassembling over
4727         compilation unit boundaries.
4728
4729 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
4730
4731         * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4732         arguments.  Skip in-prologue calls to glibc __aeabi_read_tp
4733         implementation even if no symbols are available.
4734         (thumb_analyze_prologue): Update call to skip_prologue_function.
4735         (arm_analyze_prologue): Likewise.
4736
4737 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
4738
4739         * arm-tdep.c: Include "observer.h".
4740         (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4741         (arm_exidx_data_key): New static variable.
4742         (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4743         (struct arm_exidx_data): Likewise.
4744         (arm_exidx_data_free): New function.
4745         (arm_compare_exidx_entries): Likewise.
4746         (arm_obj_section_from_vma): Likewise.
4747         (arm_exidx_new_objfile): Likewise.
4748         (arm_find_exidx_entry): Likewise.
4749         (arm_exidx_fill_cache): Likewise.
4750         (arm_exidx_unwind_sniffer): Likewise.
4751         (arm_exidx_unwind): New global variable.
4752         (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4753         (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4754         observer.  Register arm_exidx_data_key as objfile data.
4755
4756 2011-02-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
4757
4758         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4759         due to accessing uninitialized variable.  Fix indentation.
4760
4761 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
4762
4763         * c-valprint.c (c_value_print): When doing virtual base pointer
4764         adjustment, create a new value with adjusted contents rather than
4765         changing the contents of the value being printed (and getting it
4766         wrong).
4767
4768 2011-02-02  Pedro Alves  <pedro@codesourcery.com>
4769
4770         * xml-support.c (xml_find_attribute): New.
4771         (xinclude_start_include): Use it.
4772         * xml-support.h (xml_find_attribute): Declare.
4773         * memory-map.c (memory_map_start_memory)
4774         (memory_map_start_property): Use xml_find_attribute.
4775         * osdata.c (osdata_start_osdata, osdata_start_column): Use
4776         xml_find_attribute.
4777         * remote.c (start_thread): Use xml_find_attribute.
4778         * solib-target.c (library_list_start_segment)
4779         (library_list_start_section, library_list_start_library)
4780         (library_list_start_list): Use xml_find_attribute.
4781         * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4782         (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4783         (tdesc_start_field): Use xml_find_attribute.
4784
4785 2011-02-02  Ulrich Weigand  <uweigand@de.ibm.com>
4786
4787         * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4788         (BUILD_OCL_VTYPES): Update.
4789
4790 2011-02-02  Joel Brobecker  <brobecker@adacore.com>
4791
4792         * configure.ac: Work around non-GNU sed limitation when computing
4793         python version number.
4794         * configure: Regenerate.
4795
4796 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4797
4798         Fix debug printing of TYPE_INSTANCE.
4799         * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4800         (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4801
4802 2011-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4803
4804         Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4805         OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4806         OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4807         * ada-operator.inc: Rename the file to ...
4808         * ada-operator.def: ... here, wrap all the entries by macro OP.
4809         * expprint.c (op_name_standard): Remove all the entries.  Include
4810         "std-operator.def" instead.
4811         * expression.h (enum exp_opcode): Include "std-operator.def" and
4812         "ada-operator.def".  Move all the entries ...
4813         * std-operator.def: ... here, wrap all the entries by macro OP.
4814
4815 2011-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
4816
4817         * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4818         * breakpoint.c (remove_jit_event_breakpoints): New function.
4819         * jit.c (jit_descriptor_addr): Delete.
4820         (registering_code): Delete.
4821         (clear_int): Delete.
4822         (jit_inferior_data): New variable.
4823         (struct jit_inferior_data): New type.
4824         (get_jit_inferior_data): New function.
4825         (jit_inferior_data_cleanup): New function.
4826         (jit_read_descriptor): Adjust.
4827         (jit_register_code): Adjust.
4828         (jit_breakpoint_re_set_internal): New function; move code here ...
4829         (jit_inferior_init): ... from here.
4830         (jit_breakpoint_re_set): Adjust.
4831         (jit_reset_inferior_data_and_breakpoints): New function.
4832         (jit_inferior_created_observer): Adjust.
4833         (jit_inferior_exit_hook): Adjust.
4834         (jit_executable_changed_observer): New function.
4835         (jit_event_handler): Adjust.
4836         (_initialize_jit): Adjust.
4837
4838 2011-01-31  Michael Snyder  <msnyder@vmware.com>
4839
4840         * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4841         line.
4842
4843 2011-01-31  Tom Tromey  <tromey@redhat.com>
4844
4845         PR python/12216:
4846         * python/python.c (execute_gdb_command): Call
4847         prevent_dont_repeat.
4848         * top.c (suppress_dont_repeat): New global.
4849         (dont_repeat): Use it.
4850         (prevent_dont_repeat): New function.
4851         * command.h (prevent_dont_repeat): Declare.
4852
4853 2011-01-31  Tom Tromey  <tromey@redhat.com>
4854
4855         * infcmd.c (finish_backward): Use breakpoint_set_silent.
4856         * python/py-breakpoint.c (bppy_set_silent): Use
4857         breakpoint_set_silent.
4858         (bppy_set_thread): Use breakpoint_set_thread.
4859         (bppy_set_task): Use breakpoint_set_task.
4860         * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4861         (breakpoint_set_task): Declare.
4862         (make_breakpoint_silent): Remove.
4863         * breakpoint.c (breakpoint_set_silent): New function.
4864         (breakpoint_set_thread): Likewise.
4865         (breakpoint_set_task): Likewise.
4866         (make_breakpoint_silent): Remove.
4867
4868 2011-01-31  Tom Tromey  <tromey@redhat.com>
4869
4870         * breakpoint.h (user_breakpoint_p): Declare.
4871         * breakpoint.c (user_breakpoint_p): New function.
4872         (breakpoint_1): Use it.
4873         (save_breakpoints): Likewise.
4874
4875 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
4876
4877         * configure.ac: Add handling of Python distribution on Windows.
4878         * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4879         sysconfig variables are not defined, then do not use them.
4880         On Windows, if LIBPL is not defined, then use prefix + '/libs'
4881         instead.  On Windows, return all paths using forward-slashes
4882         rather than backslashes.
4883
4884 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
4885
4886         * configure.ac: Remove fallback behavior for building
4887         against Python.  Remove tweaking of Python include path.
4888         Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4889         (AC_TRY_LIBPYTHON):  Adjust program used in linking test.
4890         If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4891         Always restore CPPFLAGS and LIBS after linking test.
4892         * configure: Regenerated.
4893         * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4894         (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4895         * python/python-internal.h: Adjust includes of Python .h files.
4896
4897 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
4898
4899         * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4900         in error message.
4901
4902 2011-01-31  Joel Brobecker  <brobecker@adacore.com>
4903
4904         * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4905         value test.
4906
4907 2011-01-31  Yao Qi  <yao@codesourcery.com>
4908
4909         * arm-linux-nat.c: Update calls to regcache_register_status
4910         instead of regcache_valid_p.
4911         * aix-thread.c: Likewise.
4912         * i386gnu-nat.c: Likewise.
4913
4914 2011-01-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
4915
4916         Fix crash.
4917         * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4918         touching TYPE_FIELD_ARTIFICIAL.
4919
4920 2011-01-28  Richard Earnshaw  <rearnsha@arm.com>
4921
4922         * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4923         Committers.
4924
4925 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
4926
4927         * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4928         selected, don't try iterating over the traceframe's blocks.
4929         (tfile_has_stack): If there's no traceframe selected, then there's
4930         no stack.
4931         (tfile_has_registers): If there's no traceframe selected, then
4932         there's no registers.
4933
4934 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
4935
4936         * target.c (memory_xfer_partial): No need to restore shadows if we
4937         haven't read anything.
4938
4939 2011-01-28  Pedro Alves  <pedro@codesourcery.com>
4940
4941         * mips-tdep.c (mips_print_register): Use get_frame_register_value
4942         and val_print_scalar_formatted.
4943
4944 2011-01-27  Pedro Alves  <pedro@codesourcery.com>
4945
4946         * tracepoint.c (tfile_read): New.
4947         (tfile_open): Use it.
4948         (tfile_get_traceframe_address): Use it.
4949         (tfile_trace_find): Use it.
4950         (walk_blocks_callback_func): New typedef.
4951         (match_blocktype): New function.
4952         (traceframe_walk_blocks): New function.
4953         (traceframe_find_block_type): New function.
4954         (tfile_fetch_registers, tfile_xfer_partial)
4955         (tfile_get_trace_state_variable_value): Use
4956         traceframe_find_block_type and tfile_read.
4957
4958 2011-01-26  Kevin Buettner  <kevinb@redhat.com>
4959
4960         * remote-mips.c: Add internationalization mark ups.  Remove
4961         trailing \n from already marked up strings.
4962
4963 2011-01-26  Tom Tromey  <tromey@redhat.com>
4964
4965         * python/py-prettyprint.c (print_string_repr): Clear
4966         'addressprint' option when calling val_print_string.
4967         (print_children): Handle Val_pretty_default.  Clear 'addressprint'
4968         option when calling val_print_string.
4969
4970 2011-01-26  Tom Tromey  <tromey@redhat.com>
4971
4972         * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4973         GDB_PY_LL_ARG.
4974         * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4975         macros.
4976         (gdb_py_longest, gdb_py_ulongest): New typedefs.
4977         (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4978         (gdb_py_long_as_ulongest): New defines.
4979         (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4980         (gdb_py_int_as_long): Declare.
4981         * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4982         GDB_PY_LL_ARG, gdb_py_object_from_longest.
4983         (valpy_long): Add comment.
4984         * python/py-utils.c (get_addr_from_python): Use
4985         gdb_py_long_as_ulongest.  Handle overflow properly.
4986         (gdb_py_object_from_longest): New function.
4987         (gdb_py_object_from_ulongest): Likewise.
4988         (gdb_py_int_as_long): Likewise.
4989         * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4990         * python/py-symtab.c (salpy_get_pc): Use
4991         gdb_py_long_from_ulongest.
4992         (salpy_get_line): Use PyInt_FromLong.
4993         * python/py-param.c (set_parameter_value): Use
4994         gdb_py_int_as_long.
4995         * python/py-lazy-string.c (stpy_get_address): Use
4996         gdb_py_long_from_ulongest.
4997         * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4998         * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4999         * python/py-breakpoint.c (bppy_set_thread): Use
5000         gdb_py_int_as_long.
5001         (bppy_set_task): Likewise.
5002         (bppy_set_ignore_count): Likewise.
5003         (bppy_set_hit_count): Likewise.
5004         * python/py-block.c (blpy_get_start): Use
5005         gdb_py_object_from_ulongest.
5006         (blpy_get_end): Likewise.
5007         (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5008
5009 2011-01-25  Mathieu Lacage  <mathieu.lacage@inria.fr>
5010
5011         PR/symtab 11766:
5012         * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5013         * gdb/solib.c (solib_read_symbols): Check for addr_low in
5014         equality test for objfile, initialize addr_low if needed.
5015
5016 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5017
5018         * tui/tui-regs.c (tui_register_format): Remove dead code.
5019
5020 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5021
5022         * printcmd.c (print_formatted): Use val_print_scalar_formatted
5023         instead of print_scalar_formatted.
5024         (print_scalar_formatted): Don't handle 's' format strings here,
5025         and add an assertion that we never see such format here.
5026         * valprint.h (val_print_scalar_formatted): Declare.
5027         * valprint.c (val_print_scalar_formatted): New.
5028         * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5029         instead of print_scalar_formatted.
5030         * jv-valprint.c (java_val_print): Ditto.
5031         * p-valprint.c (pascal_val_print): Ditto.
5032         * ada-valprint.c (ada_val_print_1): Ditto.
5033         * f-valprint.c (f_val_print): Ditto.
5034         * infcmd.c (registers_info): Ditto.
5035         * m2-valprint.c (m2_val_print): Ditto.
5036
5037 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5038
5039         * m2-valprint.c (print_unbounded_array): Pass
5040         value_contents_for_printing rather than value_contents, to
5041         m2_print_array_contents.  Also pass in the value.
5042
5043 2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
5044
5045         * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5046         (save_gdb_index_command): Switch to .gdb_index version 4.
5047
5048 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5049
5050         * mi/mi-main.c (get_register): Use get_frame_register_value rather
5051         than frame_register, and always pass a valid value to val_print.
5052
5053 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5054
5055         Centralize printing "<optimized out>".
5056
5057         * valprint.h (val_print_optimized_out): Declare.
5058         * cp-valprint.c (cp_print_value_fields): Use
5059         val_print_optimized_out.
5060         * jv-valprint.c (java_print_value_fields): Ditto.
5061         * p-valprint.c (pascal_object_print_value_fields): Ditto.
5062         * printcmd.c (print_formatted): Ditto.
5063         * valprint.c (valprint_check_validity): Ditto.
5064         (value_check_printable): Ditto.
5065         (val_print_optimized_out): New.
5066
5067 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5068
5069         * infcmd.c (default_print_registers_info): Allocate values so to
5070         never pass a NULL value to val_print.
5071
5072 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5073
5074         * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5075         boolean.  Make sure to always pass a value that matches the
5076         contents buffer to callees.  Preserve `address' for following
5077         iterations.
5078         * value.c (value_contents_for_printing_const): New.
5079         (value_address): Constify value argument.
5080         * value.h (value_contents_for_printing_const): Declare.
5081         (value_address): Constify value argument.
5082
5083 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5084
5085         * regcache.c (struct regcache_descr): Rename
5086         sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5087         and sizeof_cooked_register_valid_p to
5088         sizeof_cooked_register_status.
5089         (init_regcache_descr): Adjust.
5090         (struct regcache): Rename register_valid_p field to
5091         register_status.
5092         (regcache_xmalloc_1, regcache_xfree, regcache_save)
5093         (do_cooked_read): Adjust.
5094         (regcache_valid_p): Rename to ...
5095         (regcache_register_status): ... this.  Adjust.
5096         (regcache_invalidate): Adjust.
5097         (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5098         Adjust.
5099         (regcache_raw_supply): Adjust.  If buf i NULL, mark the register
5100         as unavailable, not valid.
5101         (regcache_dump): Adjust.
5102         * regcache.h (enum register_status): New.
5103         (regcache_register_status): Declare.
5104         (regcache_invalidate): Delete declaration.
5105         * corelow.c (get_core_registers): Adjust.
5106         * tracepoint.c (tfile_fetch_registers): Adjust.
5107         * trad-frame.c (REG_VALUE): Rename to ...
5108         (TF_REG_VALUE): ... this.
5109         (REG_UNKNOWN): Rename to ...
5110         (TF_REG_UNKNOWN): ... this.
5111         (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5112         * mi/mi-main.c (register_changed_p): Adjust.
5113
5114 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5115
5116         * regcache.c (struct regcache_descr): Remove outdated comment.
5117         (init_regcache_descr): Remove sizeof_raw_register_valid_p
5118         overallocate hack.
5119         (regcache_xmalloc): Rename to ...
5120         (regcache_xmalloc_1): ... this.  Add `readonly_p' parameter.
5121         Allocate the regcache type accordingly.
5122         (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5123         (regcache_xfree): Asser the source is also readonly.  Copy sizeof
5124         cooked registers, not raw.
5125         (regcache_dup_no_passthrough): Delete.
5126         (get_thread_arch_regcache): Use regcache_xmalloc_1.
5127         * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5128         mention obsolete write_register_bytes.
5129         * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5130
5131 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5132
5133         Stop remote_read_bytes from handling partial reads itself.
5134
5135         * remote-fileio.c: Include target.h.
5136         (remote_fileio_write_bytes): Delete.
5137         (remote_fileio_func_open, remote_fileio_func_write)
5138         (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5139         target_read_memory.
5140         (remote_fileio_func_stat): Use target_read_memory and
5141         target_write_memory.
5142         (remote_fileio_func_gettimeofday): Use target_write_memory.
5143         (remote_fileio_func_system): Use target_read_memory.
5144         * remote.c (remote_write_bytes): Make it static.
5145         (remote_read_bytes): Don't handle partial reads here.
5146         * remote.h (remote_read_bytes): Delete declaration.
5147
5148 2011-01-25  Pedro Alves  <pedro@codesourcery.com>
5149
5150         Simplify XML parsing a bit.
5151
5152         * xml-support.h (gdb_xml_parse_quick): Declare.
5153         * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5154         from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5155         parameter.
5156         (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5157         gdb_xml_create_parser_and_cleanup_1.
5158         (gdb_xml_parse_quick): New.
5159         * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5160         * osdata.c (osdata_parse): Ditto.
5161         * remote.c (remote_threads_info): Ditto.
5162         * solib-target.c (solib_target_parse_libraries): Ditto.
5163         * xml-syscall.c (syscall_parse_xml): Ditto.
5164         * xml-tdesc.c (tdesc_parse_xml): Ditto.
5165
5166 2011-01-24  Kevin Buettner  <kevinb@redhat.com>
5167
5168         * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5169         with remote-mips.o added to gdb_target_obs.
5170         * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5171
5172 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
5173
5174         * ada-valprint.c (val_print_packed_array_elements): Pass the
5175         correct struct value to val_print.
5176         (ada_val_print_1): Ditto.
5177
5178 2011-01-24  Pedro Alves  <pedro@codesourcery.com>
5179
5180         Don't lose embedded_offset in printing routines throughout.
5181
5182         * valprint.h (val_print_array_elements): Change prototype.
5183         * valprint.c (val_print_array_elements): Add `embedded_offset'
5184         parameter, and adjust to pass it down to val_print, while passing
5185         `valaddr' or `address' unmodified.  Take embedded_offset into
5186         account when checking repetitions.
5187         * c-valprint.c (c_val_print): Pass embedded_offset to
5188         val_print_array_elements instead of adjusting `valaddr' and
5189         `address'.
5190         * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5191         embedded_offset to val_print_array_elements instead of adjusting
5192         `valaddr'.
5193         * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5194         * p-valprint.c (pascal_val_print): Pass embedded_offset to
5195         val_print_array_elements and pascal_object_print_value_fields
5196         instead of adjusting `valaddr'.
5197         (pascal_object_print_value_fields): Add `offset' parameter, and
5198         adjust to use it.
5199         (pascal_object_print_value): Add `offset' parameter, and adjust to
5200         use it.
5201         (pascal_object_print_static_field): Use
5202         value_contents_for_printing/value_embedded_offset, rather than
5203         value_contents.
5204         * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5205         parameter, and adjust to use it.  Use
5206         value_contents_for_printing/value_embedded_offset, rather than
5207         value_contents.
5208         (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5209         (ada_val_print_array): Add `offset' parameter, and adjust to use
5210         it.
5211         (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5212         `embedded_offset' to `offset'.  Don't re-adjust `valaddr'.
5213         Instead work with offsets.  Use
5214         value_contents_for_printing/value_embedded_offset, rather than
5215         value_contents.  Change `defer_val_int' local type to CORE_ADDR,
5216         and use value_from_pointer to extract a target pointer, rather
5217         than value_from_longest.
5218         (print_variant_part): Add `offset' parameter.  Replace
5219         `outer_valaddr' parameter by a new `outer_offset' parameter.
5220         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
5221         (ada_value_print): Use
5222         value_contents_for_printing/value_embedded_offset, rather than
5223         value_contents.
5224         (print_record): Add `offset' parameter, and adjust to pass it
5225         down.
5226         (print_field_values): Add `offset' parameter.  Replace
5227         `outer_valaddr' parameter by a new `outer_offset' parameter.
5228         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
5229         Use value_contents_for_printing/value_embedded_offset, rather than
5230         value_contents.
5231         * d-valprint.c (dynamic_array_type): Use
5232         value_contents_for_printing/value_embedded_offset, rather than
5233         value_contents.
5234         * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5235         Don't re-adjust `valaddr'.  Instead pass down adjusted offsets.
5236         (java_print_value_fields): Take `offset' into account.  Don't
5237         re-adjust `valaddr'.  Instead pass down adjusted offsets.
5238         (java_val_print): Take `embedded_offset' into account.  Pass it to
5239         java_print_value_fields.
5240         * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5241         parameter.  Don't re-adjust `valaddr' or `address'.  Instead pass
5242         down adjusted offsets.
5243         (f77_print_array): Add `embedded_offset' parameter.  Pass it down.
5244         (f_val_print): Take `embedded_offset' into account.
5245
5246 2011-01-21  Joel Brobecker  <brobecker@adacore.com>
5247
5248         * inflow.c: Include "gdbcmd.h".
5249         (interactive_mode): New static global, moved here from top.c.
5250         (show_interactive_mode): New function, moved here from top.c.
5251         use gdb_has_a_terminal instead of input_from_terminal_p to
5252         determine the current mode.
5253         (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5254         setting.
5255         (_initialize_inflow): Add the "set/show interactive-mode"
5256         commands.  Moved here from top.c, after having adjusted slightly
5257         the help text.
5258         * top.c (interactive_mode, show_interactive_mode): Delete, moved
5259         to inflow.c.
5260         (input_from_terminal_p): Remove handling of "interactive-mode"
5261         setting, moved to infow.c.
5262         (init_main): Remove creation of the "set/show interactive-mode"
5263         commands, moved to inflow.c.
5264
5265 2011-01-19  Joel Brobecker  <brobecker@adacore.com>
5266
5267         * NEWS: Add entry for native ia64-hpux support.
5268
5269 2011-01-19  Tom Tromey  <tromey@redhat.com>
5270
5271         PR mi/8618:
5272         * thread.c (free_thread): Free 'name'.
5273         (print_thread_info): Emit thread name.  Change CLI output.
5274         (thread_name_command): New function.
5275         (do_captured_thread_select): Emit newline.
5276         (_initialize_thread): Register 'thread name' command.
5277         * target.h (struct target_ops) <to_thread_name>: New field.
5278         (target_thread_name): New macro.
5279         * target.c (update_current_target): Handle to_thread_name.
5280         * python/py-infthread.c (thpy_get_name): New function.
5281         (thpy_set_name): Likewise.
5282         (thread_object_getset): Add "name".
5283         * linux-nat.c (linux_nat_thread_name): New function.
5284         (linux_nat_add_target): Set to_thread_name.
5285         * gdbthread.h (struct thread_info) <name>: New field.
5286
5287 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
5288
5289         * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5290         (ada_val_print_1): Likewise.
5291
5292 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
5293
5294         * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5295         upper limit address is not greater than the function end address
5296         when the upper limit could not be computed using the debugging
5297         info.
5298
5299 2011-01-17  Tom Tromey  <tromey@redhat.com>
5300
5301         * cli/cli-cmds.c (apropos_command): Free the compiled regex.  Use
5302         get_regcomp_error.
5303         * utils.c: Include gdb_regex.h.
5304         (do_regfree_cleanup): New function.
5305         (make_regfree_cleanup): Likewise.
5306         (get_regcomp_error): Likewise.
5307         * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5308
5309 2011-01-17  Tom Tromey  <tromey@redhat.com>
5310
5311         * cli/cli-cmds.c (apropos_command): Fix formatting.  Don't call
5312         re_compile_fastmap.
5313
5314 2011-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
5315
5316         * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5317         for internal variables.
5318         (last_was_structop): New static variable.
5319         (COMPLETE): New token.
5320         (field_exp): New rule to group all '.' suffix handling.
5321         Add mark_struct_expression calls when approriate to be able
5322         to correctly find fields for completion.
5323         (yylex): Adapt to handle field completion and set INTVAR when
5324         required.
5325
5326 2011-01-14  Yao Qi  <yao@codesourcery.com>
5327
5328         * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5329         save_reggroup, restore_reggroup and all_reggroup.
5330
5331 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
5332
5333         * ada-valprint. (ada_printchar): Use the correct type length
5334         in call to ada_emit_char.
5335         * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5336
5337 2011-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
5338
5339         * solib-som.h (hpux_major_release): Declare variable here.
5340         * solib-som.c:  Remove <sys/utsname.h> header.
5341         (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5342         (hpux_major_release): Make global, change default value to
5343         DEFAULT_HPUX_MAJOR_RELEASE.
5344         (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5345         * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5346         Add "solib-som.h" header.
5347         (set_hpux_major_release): New function.
5348         (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5349
5350 2011-01-14  Mike Frysinger  <vapier@gentoo.org>
5351
5352         * configure.tgt (*-*-uclinux*): Match more Linux os targets
5353
5354 2011-01-14  Joel Brobecker  <brobecker@adacore.com>
5355
5356         * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5357         new-line at end of warning message.
5358         (ia64_hpux_store_register): Remove trailing new-line at end of
5359         error message.
5360         * ia64-hpux-tdep.c: Rephrase comment.
5361         * solib-ia64-hpux.c (struct dld_info): Change type of field
5362         dld_flags from "long long" to ULONGEST.
5363
5364 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
5365
5366         * target.h (deprecated_child_ops): Delete declaration.
5367         * target.c (deprecated_child_ops): Delete definition.
5368
5369 2011-01-14  Pedro Alves  <pedro@codesourcery.com>
5370
5371         * Makefile.in (hpux-thread.o): Delete rule.
5372         * configure.ac: Don't check for HPUX DCE threads support.
5373         * configure, config.in: Regenerate.
5374         * hppa-hpux-nat.c (child_suppress_run): Delete.
5375         (hppa_hpux_child_can_run): Delete.
5376         (_initialize_hppa_hpux_nat): Don't override to_can_run.
5377         * hpux-thread.c: Delete.
5378
5379 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5380
5381         * hpux-thread.c (hpux_pid_to_str): Delete.
5382
5383 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5384
5385         * ada-valprint.c (ada_emit_char): Remove strange code.
5386         Check that c is <= UCHAR_MAX before passing it to isascii.
5387         (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5388
5389 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5390
5391         * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5392         to the case where instream is stdin.
5393
5394 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5395
5396         * ia64-tdep.h (struct regcache): Forward declare.
5397         (struct ia64_infcall_ops): New struct type.
5398         (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5399         and "infcall_ops".
5400         * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5401         Renames ia64_find_global_pointer.
5402         (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5403         (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5404         (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5405         methods.
5406         (ia64_infcall_ops): New static global constant.
5407         (ia64_gdbarch_init): Set tdep->infcall_ops.
5408         * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5409         (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5410         * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5411         (ia64_hpux_dummy_code): New static global constant.
5412         (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5413         (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5414         (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5415         New function.
5416         (ia64_hpux_infcall_ops): New static global constant.
5417         (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5418         for inferior function calls to work properly on ia64-hpux.
5419
5420 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5421
5422         * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5423         * ia64-tdep.h (struct frame_info): forward declaration.
5424         (struct gdbarch_tdep): Add field size_of_register_frame.
5425         * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5426         to determine the size of the register frame.
5427         (ia64_size_of_register_frame): New function.
5428         (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5429         * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5430         (IA64_HPUX_UREG_REASON): New macro.
5431         (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5432         New functions.
5433         (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5434         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5435         (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5436         objects.
5437
5438 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5439
5440         Add support for ia64-hpux.
5441         * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5442         ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5443
5444         * configure.host: Add handling for ia64-hpux hosts.  Add associated
5445         floatformats.
5446         * configure.tgt: Add handling for ia64-hpux targets.
5447         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5448         (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5449         (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5450
5451 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5452
5453         [ttrace] Compute thread list immediately after attach.
5454         * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5455         New subprogram.
5456         (inf_ttrace_attach): Use it.
5457
5458 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5459
5460         * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5461         if we could not determine the frame's function address.  Instead,
5462         use the frame's PC, and then continue.
5463
5464 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5465
5466         * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5467         not already defined.
5468
5469 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5470
5471         * ia64-tdep.c (ia64_struct_type_p): New function.
5472         (ia64_extract_return_value): Handle integral values that are
5473         less than 8 bytes long.
5474         (ia64_push_dummy_call): Likewise.
5475
5476 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
5477
5478         * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5479         floatformat_ia64_ext.
5480         (floatformat_ia64_ext_big): New static const.
5481         (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5482
5483 2011-01-12  Tom Tromey  <tromey@redhat.com>
5484
5485         * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5486         messages.
5487         * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5488         (mi_cmd_thread_list_ids): Likewise.
5489         (mi_cmd_data_list_changed_registers): Likewise.
5490         (mi_cmd_data_list_register_values): Likewise.
5491         (mi_cmd_data_write_register_values): Likewise.
5492         (mi_cmd_data_evaluate_expression): Likewise.
5493         (mi_cmd_data_read_memory): Likewise.
5494         (mi_cmd_data_read_memory_bytes): Likewise.
5495         (mi_cmd_data_write_memory): Likewise.
5496         (mi_cmd_enable_timings): Likewise.
5497         * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5498         * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5499         (mi_cmd_var_delete): Likewise.
5500         (mi_cmd_var_set_format): Likewise.
5501         (mi_cmd_var_show_format): Likewise.
5502         (mi_cmd_var_info_num_children): Likewise.
5503         (mi_cmd_var_list_children): Likewise.
5504         (mi_cmd_var_info_type): Likewise.
5505         (mi_cmd_var_info_expression): Likewise.
5506         (mi_cmd_var_show_attributes): Likewise.
5507         (mi_cmd_var_assign): Likewise.
5508         (mi_cmd_var_update): Likewise.
5509         (mi_cmd_enable_pretty_printing): Likewise.
5510         (mi_cmd_var_set_update_range): Likewise.
5511         * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5512         messages.
5513         (mi_cmd_target_file_put): Likewise.
5514         (mi_cmd_target_file_delete): Likewise.
5515         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5516         messages.
5517         (mi_cmd_stack_info_depth): Likewise.
5518         (mi_cmd_stack_list_locals): Likewise.
5519         (mi_cmd_stack_list_args): Likewise.
5520         (mi_cmd_stack_select_frame): Likewise.
5521         (mi_cmd_stack_select_frame): Likewise.
5522         (mi_cmd_stack_info_frame): Likewise.
5523         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5524         messages.
5525         (mi_cmd_file_list_exec_source_files): Likewise.
5526         * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5527         (mi_cmd_env_cd): Likewise.
5528         (mi_cmd_env_path): Likewise.
5529         (mi_cmd_env_dir): Likewise.
5530         (mi_cmd_inferior_tty_show): Likewise.
5531         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5532         * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5533         (mi_cmd_break_watch): Likewise.
5534
5535 2011-01-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5536
5537         * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5538         (ppc_linux_insert_hw_breakpoint): Likewise.
5539         (ppc_linux_remove_hw_breakpoint): Likewise.
5540         (ppc_linux_insert_watchpoint): Likewise.
5541
5542 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
5543             Jan Kratochvil  <jan.kratochvil@redhat.com>
5544
5545         PR fortran/11104 and DWARF unbound arrays detection.
5546         * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5547         upper bound.  Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5548         unspecified upper bound.
5549         * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5550         variables array_size_array, tmp_type and offset_item.  New variable
5551         array.  Remove call to f77_get_upperbound.  New variables array_type
5552         and index.  Call value_subscripted_rvalue for each dimenasion.  Remove
5553         the final call to deprecated_set_value_type.
5554
5555 2011-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
5556
5557         Make value allocations more lazy.
5558         * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5559         instead of allocate_value and set_value_lazy when possible.
5560         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5561         instead of allocate_value and set_value_lazy.
5562         * findvar.c (value_of_register_lazy): Likewise.
5563         (read_var_value): Remove V preallocation, call just check_typedef in
5564         advance.  Move allocate_value to LOC_CONST, LOC_LABEL,
5565         LOC_CONST_BYTES.  Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5566         LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK.  Set ADDR instead of
5567         set_value_address and break in LOC_BLOCK.  Use allocate_value_lazy and
5568         remove lval_memory set in LOC_REGPARM_ADDR.  Use allocate_value_lazy
5569         in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT.  Add setting lval_memory at
5570         the end, remove set_value_lazy there.
5571         * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5572         instead of allocate_value and set_value_lazy when possible.
5573         * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5574         * value.c (allocate_computed_value): Use allocate_value_lazy instead
5575         of allocate_value and set_value_lazy.
5576         (value_from_contents_and_address): Use allocate_value_lazy instead of
5577         allocate_value and set_value_lazy when possible.
5578
5579 2011-01-12  Andrew Burgess  <aburgess@broadcom.com>
5580
5581         * disasm.c (dump_insns): Support dumping opcodes for MI.
5582         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5583         dumping of instruction opcodes.
5584
5585 2011-01-09  Robert Millan  <rmh@gnu.org>  (tiny patch)
5586
5587         * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5588         appropiately.
5589
5590 2011-01-11  Tom Tromey  <tromey@redhat.com>
5591
5592         * thread.c (do_captured_thread_select): Emit newline before
5593         printing frame.
5594
5595 2011-01-11  Michael Snyder  <msnyder@vmware.com>
5596
5597         * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5598         * score-tdep.c: Ditto.
5599         * score-tdep.h: Ditto.
5600         * ser-base.c: Ditto.
5601         * ser-go32.c: Ditto.
5602         * serial.c: Ditto.
5603         * serial.h: Ditto.
5604         * ser-mingw.c: Ditto.
5605         * ser-pipe.c: Ditto.
5606         * ser-tcp.c: Ditto.
5607         * ser-unix.c: Ditto.
5608         * sh64-tdep.c: Ditto.
5609         * shnbsd-nat.c: Ditto.
5610         * sh-tdep.c: Ditto.
5611         * sh-tdep.h: Ditto.
5612         * solib.c: Ditto.
5613         * solib-darwin.c: Ditto.
5614         * solib-frv.c: Ditto.
5615         * solib.h: Ditto.
5616         * solib-irix.c: Ditto.
5617         * solib-osf.c: Ditto.
5618         * solib-pa64.c: Ditto.
5619         * solib-som.c: Ditto.
5620         * solib-spu.c: Ditto.
5621         * solib-sunos.c: Ditto.
5622         * solib-svr4.c: Ditto.
5623         * solist.h: Ditto.
5624         * sol-thread.c: Ditto.
5625         * somread.c: Ditto.
5626         * source.c: Ditto.
5627         * source.h: Ditto.
5628         * sparc64-linux-tdep.c: Ditto.
5629         * sparc64-tdep.c: Ditto.
5630         * sparc-linux-nat.c: Ditto.
5631         * sparc-linux-tdep.c: Ditto.
5632         * sparc-sol2-nat.c: Ditto.
5633         * sparc-sol2-tdep.c: Ditto.
5634         * sparc-tdep.c: Ditto.
5635         * sparc-tdep.h: Ditto.
5636         * spu-tdep.c: Ditto.
5637         * stabsread.c: Ditto.
5638         * stabsread.h: Ditto.
5639         * stack.c: Ditto.
5640         * symfile.c: Ditto.
5641         * symfile.h: Ditto.
5642         * symmisc.c: Ditto.
5643         * symtab.c: Ditto.
5644         * symtab.h: Ditto.
5645         * target.c: Ditto.
5646         * target-descriptions.c: Ditto.
5647         * target-descriptions.h: Ditto.
5648         * target.h: Ditto.
5649         * target-memory.c: Ditto.
5650         * terminal.h: Ditto.
5651         * thread.c: Ditto.
5652         * top.c: Ditto.
5653         * tracepoint.c: Ditto.
5654         * tracepoint.h: Ditto.
5655         * trad-frame.h: Ditto.
5656         * typeprint.c: Ditto.
5657
5658 2011-01-11  Michael Snyder  <msnyder@vmware.com>
5659
5660         * ui-file.c: Comment cleanup, mostly periods and spaces.
5661         * ui-file.h: Ditto.
5662         * ui-out.c: Ditto.
5663         * ui-out.h: Ditto.
5664         * utils.c: Ditto.
5665         * v850-tdep.c: Ditto.
5666         * valarith.c: Ditto.
5667         * valops.c: Ditto.
5668         * valprint.c: Ditto.
5669         * valprint.h: Ditto.
5670         * value.c: Ditto.
5671         * value.h: Ditto.
5672         * varobj.c: Ditto.
5673         * varobj.h: Ditto.
5674         * vax-tdep.c: Ditto.
5675         * vec.c: Ditto.
5676         * vec.h: Ditto.
5677         * version.h: Ditto.
5678         * windows-nat.c: Ditto.
5679         * windows-tdep.c: Ditto.
5680         * xcoffread.c: Ditto.
5681         * xcoffsolib.c: Ditto.
5682         * xml-support.c: Ditto.
5683         * xstormy16-tdep.c: Ditto.
5684         * xtensa-tdep.c: Ditto.
5685         * xtensa-tdep.h: Ditto.
5686
5687 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5688
5689         * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5690         * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5691
5692 2011-01-11  Sergio Durigan Junior  <sergiodj@linux.vnet.ibm.com>
5693             Thiago Jung Bauermann  <bauerman@br.ibm.com>
5694
5695         Implement support for PowerPC BookE ranged watchpoints.
5696         * breakpoint.h
5697         (struct breakpoint_ops) <resources_needed>: New method.
5698         Initialize to NULL in all existing breakpoint_ops instances.
5699         (struct breakpoint) <exact>: New field.
5700         (target_exact_watchpoints): Declare external global.
5701         * breakpoint.c (target_exact_watchpoints): New global flag.
5702         (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5703         b->enable_state to bp_enabled before calling
5704         hw_watchpoint_used_count.
5705         (hw_watchpoint_used_count): Iterate over all bp_locations in a
5706         watchpoint.  Call breakpoint's breakpoint_ops.resources_needed
5707         if available.
5708         (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5709         if the watchpoint is exact.
5710         (resources_needed_watchpoint): New function.
5711         (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5712         (watch_command_1): Set b->exact if the user asked for an exact
5713         watchpoint and one can be set.
5714         (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5715         Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5716         the user asks for an exact watchpoint and one can be set.  Return
5717         number of needed debug registers to watch the expression.
5718         * gdbtypes.c (is_scalar_type): New function, based on
5719         valprint.c:scalar_type_p.
5720         (is_scalar_type_recursive): New function.
5721         * gdbtypes.h (is_scalar_type_recursive): Declare.
5722         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5723         handle regions when ranged watchpoints are available.
5724         (create_watchpoint_request): New function.
5725         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5726         create_watchpoint_request.
5727         * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5728         (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5729         `set powerpc' and `show powerpc' commands.
5730         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5731         Mention documentation comment in the target macro.
5732         (target_region_ok_for_hw_watchpoint): Document return value.
5733
5734 2011-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5735
5736         * breakpoint.c (update_watchpoint): Decide on using a software or
5737         hardware watchpoint after the bp_locations are created.
5738
5739 2010-01-11  Thiago Jung Bauermann  <bauerman@br.ibm.com>
5740
5741         Convert hardware watchpoints to use breakpoint_ops.
5742         * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5743         <insert_location>: ... this.  Return int instead of void.
5744         Accept pointer to struct bp_location instead of pointer to
5745         struct breakpoint.  Adapt all implementations.
5746         (breakpoint_ops) <remove>: Rename to...
5747         <remove_location>: ... this.  Accept pointer to struct bp_location
5748         instead of pointer to struct breakpoint.  Adapt all implementations.
5749         * breakpoint.c (insert_catchpoint): Delete function.
5750         (insert_bp_location): Call the watchpoint or catchpoint's
5751         breakpoint_ops.insert method.
5752         (remove_breakpoint_1): Call the watchpoint or catchpoint's
5753         breakpoint_ops.remove method.
5754         (insert_watchpoint, remove_watchpoint): New functions.
5755         (watchpoint_breakpoint_ops): New structure.
5756         (watch_command_1): Initialize the OPS field.
5757         * inf-child.c (inf_child_insert_fork_catchpoint)
5758         (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5759         (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5760         (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5761         Delete functions.
5762         (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5763         to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5764         to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5765         to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5766         * target.c (update_current_target): Change default implementation of
5767         to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5768         to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5769         to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5770         to_set_syscall_catchpoint to return_one.
5771         (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5772         (debug_to_insert_exec_catchpoint): Report return value.
5773         * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5774         (to_insert_exec_catchpoint): Change declaration to return int instead
5775         of void.
5776
5777 2011-01-11  Michael Snyder  <msnyder@vmware.com>
5778
5779         * arm-tdep.c: Internationalization.
5780         * c-lang.c: Ditto.
5781         * charset.c: Ditto.
5782         * fork-child.c: Ditto.
5783         * nto-procfs.c: Ditto.
5784         * ppc-sysv-tdep.c: Ditto.
5785         * procfs.c: Ditto.
5786         * remote-mips.c: Ditto.
5787         * remote.c: Ditto.
5788         * rs6000-nat.c: Ditto.
5789         * rs6000-tdep.c: Ditto.
5790         * target.c: Ditto.
5791         * valops.c: Ditto.
5792         * value.c: Ditto.
5793         * xml-support.c: Ditto.
5794         * mi/mi-cmd-break.c: Ditto.
5795         * mi/mi-cmd-var.c: Ditto.
5796         * mi/mi-interp.c: Ditto.
5797         * mi/mi-main.c: Ditto.
5798
5799 2011-01-11  Andrew Burgess  <aburgess@broadcom.com>
5800
5801         * remote-sim.c (gdbsim_store_register): Update API to
5802         sim_store_register to check more error conditions.
5803
5804 2011-01-10  Michael Snyder  <msnyder@vmware.com>
5805
5806         * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5807         * nto-tdep.c: Ditto.
5808         * nto-tdep.h: Ditto.
5809         * objc-exp.y: Ditto.
5810         * objc-lang.c: Ditto.
5811         * objfiles.c: Ditto.
5812         * objfiles.h: Ditto.
5813         * observer.c: Ditto.
5814         * opencl-lang.c: Ditto.
5815         * osabi.c: Ditto.
5816         * parse.c: Ditto.
5817         * parser-defs.h: Ditto.
5818         * p-exp.y: Ditto.
5819         * p-lang.c: Ditto.
5820         * posix-hdep.c: Ditto.
5821         * ppcbug-rom.c: Ditto.
5822         * ppc-linux-nat.c: Ditto.
5823         * ppc-linux-tdep.c: Ditto.
5824         * ppc-linux-tdep.h: Ditto.
5825         * ppcnbsd-tdep.c: Ditto.
5826         * ppcobsd-tdep.c: Ditto.
5827         * ppcobsd-tdep.h: Ditto.
5828         * ppc-sysv-tdep.c: Ditto.
5829         * ppc-tdep.h: Ditto.
5830         * printcmd.c: Ditto.
5831         * proc-abi.c: Ditto.
5832         * proc-flags.c: Ditto.
5833         * procfs.c: Ditto.
5834         * proc-utils.h: Ditto.
5835         * progspace.h: Ditto.
5836         * prologue-value.c: Ditto.
5837         * prologue-value.h: Ditto.
5838         * psympriv.h: Ditto.
5839         * psymtab.c: Ditto.
5840         * p-typeprint.c: Ditto.
5841         * p-valprint.c: Ditto.
5842         * ravenscar-sparc-thread.c: Ditto.
5843         * ravenscar-thread.c: Ditto.
5844         * ravenscar-thread.h: Ditto.
5845         * record.c: Ditto.
5846         * regcache.c: Ditto.
5847         * regcache.h: Ditto.
5848         * remote.c: Ditto.
5849         * remote-fileio.c: Ditto.
5850         * remote-fileio.h: Ditto.
5851         * remote.h: Ditto.
5852         * remote-m32r-sdi.c: Ditto.
5853         * remote-mips.c: Ditto.
5854         * remote-sim.c: Ditto.
5855         * rs6000-aix-tdep.c: Ditto.
5856         * rs6000-nat.c: Ditto.
5857         * rs6000-tdep.c: Ditto.
5858
5859 2011-01-10  Michael Snyder  <msnyder@vmware.com>
5860
5861         * charset.c (validate): Internationalization.
5862         * coffread.c (read_one_sym): Ditto.
5863         * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5864         * h8300-tdep.c (H8300_extract_return_value): Ditto.
5865         * inflow.c (new_tty): Ditto.
5866         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5867         * m32c-tdep.c (m32c_return_value): Ditto.
5868         * mep-tdep.c (mep_store_return_value): Ditto.
5869         * score-tdep.c (score7_fetch_insn): Ditto.
5870         * ser-mingw.c (pipe_windows_open): Ditto.
5871         * sh64-tdep.c (sh64_extract_return_value): Ditto.
5872         * spu-tdep.c (spu_register_type): Ditto.
5873         * tracepoint.c (trace_find_command): Ditto.
5874         * valarith.c (value_pos): Ditto.
5875
5876 2011-01-10  Joel Brobecker  <brobecker@adacore.com>
5877
5878         * ada-valprint.c (printstr): Minor comment reformatting.
5879
5880 2011-01-08  Michael Snyder  <msnyder@vmware.com>
5881
5882         * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5883         markup.
5884
5885 2011-01-08  Michael Snyder  <msnyder@vmware.com>
5886
5887         * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5888         * hppa-hpux-tdep.c: Ditto.
5889         * hppa-linux-nat.c: Ditto.
5890         * hppa-linux-tdep.c: Ditto.
5891         * hppanbsd-tdep.c: Ditto.
5892         * hppa-tdep.c: Ditto.
5893         * hppa-tdep.h: Ditto.
5894         * hpux-thread.c: Ditto.
5895         * i386-cygwin-tdep.c: Ditto.
5896         * i386-darwin-nat.c: Ditto.
5897         * i386gnu-nat.c: Ditto.
5898         * i386-linux-nat.c: Ditto.
5899         * i386-linux-tdep.c: Ditto.
5900         * i386-nat.c: Ditto.
5901         * i386-nat.h: Ditto.
5902         * i386nbsd-tdep.c: Ditto.
5903         * i386-sol2-nat.c: Ditto.
5904         * i386-stub.c: Ditto.
5905         * i386-tdep.c: Ditto.
5906         * i386-tdep.h: Ditto.
5907         * i387-tdep.c: Ditto.
5908         * ia64-linux-nat.c: Ditto.
5909         * ia64-linux-tdep.c: Ditto.
5910         * ia64-tdep.c: Ditto.
5911         * infcall.c: Ditto.
5912         * infcall.h: Ditto.
5913         * infcmd.c: Ditto.
5914         * inferior.c: Ditto.
5915         * inferior.h: Ditto.
5916         * infloop.c: Ditto.
5917         * inflow.c: Ditto.
5918         * infrun.c: Ditto.
5919         * interps.c: Ditto.
5920         * interps.h: Ditto.
5921         * iq2000-tdep.c: Ditto.
5922         * irix5-nat.c: Ditto.
5923         * jit.c: Ditto.
5924         * jit.h: Ditto.
5925         * jv-exp.y: Ditto.
5926         * jv-lang.c: Ditto.
5927         * jv-lang.h: Ditto.
5928         * jv-typeprint.c: Ditto.
5929         * jv-valprint.c: Ditto.
5930         * language.c: Ditto.
5931         * language.h: Ditto.
5932         * linespec.c: Ditto.
5933         * linux-fork.c: Ditto.
5934         * linux-nat.c: Ditto.
5935         * linux-thread-db.c: Ditto.
5936         * lm32-tdep.c: Ditto.
5937
5938 2011-01-08  Michael Snyder  <msnyder@vmware.com>
5939
5940         * m2-exp.y: Comment cleanup, mostly periods and spaces.
5941         * m2-lang.c: Ditto.
5942         * m2-typeprint.c: Ditto.
5943         * m2-valprint.c: Ditto.
5944         * m32c-tdep.c: Ditto.
5945         * m32r-linux-nat.c: Ditto.
5946         * m32r-rom.c: Ditto.
5947         * m32r-tdep.c: Ditto.
5948         * m32r-tdep.h: Ditto.
5949         * m68hc11-tdep.c: Ditto.
5950         * m58klinux-nat.c: Ditto.
5951         * m68k-tdep.c: Ditto.
5952         * m88k-tdep.c: Ditto.
5953         * m88k-tdep.h: Ditto.
5954         * machoread.c: Ditto.
5955         * macrocmd.c: Ditto.
5956         * macroexp.c: Ditto.
5957         * macrotab.c: Ditto.
5958         * main.c: Ditto.
5959         * maint.c: Ditto.
5960         * mdebugread.c: Ditto.
5961         * mdebugread.h: Ditto.
5962         * memattr.c: Ditto.
5963         * memattr.h: Ditto.
5964         * memory-map.h: Ditto.
5965         * mep-tdep.c: Ditto.
5966         * microblaze-rom.c: Ditto.
5967         * microblaze-tdep.c: Ditto.
5968         * minsyms.c: Ditto.
5969         * mips-irix-tdep.c: Ditto.
5970         * mips-linux-nat.c: Ditto.
5971         * mips-linux-tdep.c: Ditto.
5972         * mips-linux-tdep.h: Ditto.
5973         * mipsnbsd-nat.c: Ditto.
5974         * mipsnbsd-tdep.c: Ditto.
5975         * mipsread.c: Ditto.
5976         * mips-tdep.c: Ditto.
5977         * mips-tdep.h: Ditto.
5978         * mn10300-linux-tdep.c: Ditto.
5979         * mn10300-tdep.c: Ditto.
5980         * mn10300-tdep.h: Ditto.
5981         * monitor.c: Ditto.
5982         * monitor.h: Ditto.
5983         * moxie-tdep.c: Ditto.
5984         * moxie-tdep.h: Ditto.
5985         * mt-tdep.c: Ditto.
5986
5987 2011-01-08  Mike Frysinger  <vapier@gentoo.org>
5988
5989         * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5990
5991 2011-01-08  Robert Millan  <rmh@gnu.org>
5992
5993         * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5994
5995 2011-01-07  Michael Snyder  <msnyder@vmware.com>
5996
5997         * charset.c (_initialize_charset): Fix typo in string.
5998
5999 2011-01-07  Michael Snyder  <msnyder@vmware.com>
6000
6001         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6002         for i18n.
6003         * tui/tui-layout.c (tui_set_layout_for_display_command):
6004         Split line so that operator goes to beginning of line.
6005         * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6006         assignment out of if statement.
6007
6008 2011-01-07  Michael Snyder  <msnyder@vmware.com>
6009
6010         * ada-lang.c: Comment cleanup, mostly periods and spaces.
6011         * ada-lang.h: Ditto.
6012         * ada-tasks.c: Ditto.
6013         * ada-valprint.c: Ditto.
6014         * aix-threads.c: Ditto.
6015         * alpha-linux-nat.c: Ditto.
6016         * alpha-linux-tdep.c: Ditto.
6017         * alpha-mdebug-tdep.c: Ditto.
6018         * alpha-nat.c: Ditto.
6019         * alpha-osf1-tdep.c: Ditto.
6020         * alpha-tdep.c: Ditto.
6021         * alphabsd-nat.c: Ditto.
6022         * alphabsd-tdep.c: Ditto.
6023         * amd64-darwin-tdep.c: Ditto.
6024         * amd64-linux-nat.c: Ditto.
6025         * amd64-linux-tdep.c: Ditto.
6026         * amd64-sol2-tdep.c: Ditto.
6027         * amd64-tdep.c: Ditto.
6028         * amd64-fbsd-tdep.c: Ditto.
6029         * amd64-nbsd-tdep.c: Ditto.
6030         * amd64-obsd-tdep.c: Ditto.
6031         * amd64-linux-nat.c: Ditto.
6032         * amd64-linux-tdep.c: Ditto.
6033         * arm-tdep.c: Ditto.
6034         * arm-tdep.h: Ditto.
6035         * armnbsd-nat.c: Ditto.
6036         * avr-tdep.c: Ditto.
6037         * bfin-tdep.c: Ditto.
6038         * bsd-kvm.c: Ditto.
6039         * c-typeprintc: Ditto.
6040         * c-valprint.c: Ditto.
6041         * coff-pe-read.h: Ditto.
6042         * coffreead.c: Ditto.
6043         * cris-tdep.c: Ditto.
6044         * d-lang.c: Ditto.
6045         * darwin-nat-info.c: Ditto.
6046         * darwin-nat.c: Ditto.
6047         * dbug-rom.c: Ditto.
6048         * dbxread.c: Ditto.
6049         * dcache.c: Ditto.
6050         * dcache.h: Ditto.
6051         * dec-thread.c: Ditto.
6052         * defs.h: Ditto.
6053         * demangle.c: Ditto.
6054         * dicos-tdep.c: Ditto.
6055         * dictionary.c: Ditto.
6056         * dictionary.h: Ditto.
6057         * dink32-rom.c: Ditto.
6058         * disasm.c: Ditto.
6059         * doublest.c: Ditto.
6060         * dsrec.c: Ditto.
6061         * dummy-frame.c: Ditto.
6062         * dwarf2-frame.c: Ditto.
6063         * dwarf2expr.c: Ditto.
6064         * dwarf2loc.c: Ditto.
6065         * dwarf2read.c: Ditto.
6066         * elfread.c: Ditto.
6067         * environ.c: Ditto.
6068         * eval.c: Ditto.
6069         * event-top.h: Ditto.
6070         * exceptions.c: Ditto.
6071         * exceptions.h: Ditto.
6072         * exec.c: Ditto.
6073         * expprint.c: Ditto.
6074         * expression.h: Ditto.
6075         * f-exp.y: Ditto.
6076         * f-lang.c: Ditto.
6077         * f-lang.h: Ditto.
6078         * f-typeprint.c: Ditto.
6079         * f-valprint.c: Ditto.
6080         * fbsd-nat.c: Ditto.
6081         * findvar.c: Ditto.
6082         * fork-child.c: Ditto.
6083         * frame.c: Ditto.
6084         * frame.h: Ditto.
6085         * frv-linux-tdep.c: Ditto.
6086         * frv-tdep.c: Ditto.
6087         * gcore.c: Ditto.
6088         * gdb-stabs.h: Ditto.
6089         * gdb_assert.h: Ditto.
6090         * gdb_string.h: Ditto.
6091         * gdb_thread_db.h: Ditto.
6092         * gdb_wait.h: Ditto.
6093         * gdbarch.sh: Ditto.
6094         * gdbcore.h: Ditto.
6095         * gdbthread.h: Ditto.
6096         * gdbtypes.c: Ditto.
6097         * gdbtypes.h: Ditto.
6098         * gnu-nat.c: Ditto.
6099         * gnu-nat.h: Ditto.
6100         * gnu-v2-abi.c: Ditto.
6101         * gnu-v3-abi.c: Ditto.
6102         * go32-nat.c: Ditto.
6103         * gdbarch.c: Regenerate.
6104         * gdbarch.h: Regenerate.
6105
6106 2011-01-07  Michael Snyder  <msnyder@vmware.com>
6107
6108         * ax-gdb.c: Adjust some long output strings.
6109         * breakpoint.c: Ditto.
6110         * charset.c: Ditto.
6111         * cp-abi.c: Ditto.
6112         * infcall.c: Ditto.
6113         * infrun.c: Ditto.
6114         * linux-nat.c: Ditto.
6115         * solib-pa64.c: Ditto.
6116         * solib-som.c: Ditto.
6117
6118 2011-01-06  Tom Tromey  <tromey@redhat.com>
6119
6120         PR python/12367:
6121         * NEWS: Add item.
6122         * python/python.c (GdbMethods): Add "newest_frame" method.
6123         * python/python-internal.h (gdbpy_newest_frame): Declare.
6124         * python/py-frame.c (gdbpy_newest_frame): New function.
6125
6126 2010-01-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
6127
6128         * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6129         * jit.c (jit_debug): New variable.
6130         (show_jit_debug): New function.
6131         (struct target_buffer): Use ULONGEST.
6132         (bfd_open_from_target_memory): Likewise.
6133         (jit_register_code, jit_inferior_init): Add debug output.
6134         (_initialize_jit): Register "debug jit" command.
6135
6136 2011-01-06  Tom Tromey  <tromey@redhat.com>
6137
6138         * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6139         * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6140         and ARCH_FRAME.
6141
6142 2011-01-06  Tom Tromey  <tromey@redhat.com>
6143
6144         * python/py-frame.c (frapy_block): Use get_frame_block.
6145
6146 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
6147
6148         Do not stop on SIGPRIO signals by default
6149         * infrun.c (_initialize_infrun): Unset signal_stop and
6150         signal_print for TARGET_SIGNAL_PRIO.
6151
6152 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
6153
6154         * ada-tasks.c: Fix style violation in comment.
6155
6156 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
6157
6158         * linespec.c (decode_compound, find_method): Remove trailing \n
6159         at end of error string.
6160         * solib-irix.c (irix_current_sos): Likewise.
6161         * varobj.c (uninstall_variable): Likewise.
6162
6163 2011-01-06  Joel Brobecker  <brobecker@adacore.com>
6164
6165         * copyright.py: New script.
6166         * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6167         Launch emacs without exec'ing. Call copyright.py afterwards.
6168
6169 2011-01-05  Michael Snyder  <msnyder@vmware.com>
6170
6171         * addrmap.c: Shorten lines of >= 80 columns.
6172         * arch-utils.c: Ditto.
6173         * arch-utils.h: Ditto.
6174         * ax-gdb.c: Ditto.
6175         * ax-general.c: Ditto.
6176         * bcache.c: Ditto.
6177         * blockframe.c: Ditto.
6178         * breakpoint.c: Ditto.
6179         * buildsym.c: Ditto.
6180         * c-lang.c: Ditto.
6181         * c-typeprint.c: Ditto.
6182         * charset.c: Ditto.
6183         * coffread.c: Ditto.
6184         * command.h: Ditto.
6185         * corelow.c: Ditto.
6186         * cp-abi.c: Ditto.
6187         * cp-namespace.c: Ditto.
6188         * cp-support.c: Ditto.
6189         * dbug-rom.c: Ditto.
6190         * dbxread.c: Ditto.
6191         * defs.h: Ditto.
6192         * dfp.c: Ditto.
6193         * dfp.h: Ditto.
6194         * dictionary.c: Ditto.
6195         * disasm.c: Ditto.
6196         * doublest.c: Ditto.
6197         * dwarf2-frame.c: Ditto.
6198         * dwarf2expr.c: Ditto.
6199         * dwarf2loc.c: Ditto.
6200         * dwarf2read.c: Ditto.
6201         * elfread.c: Ditto.
6202         * eval.c: Ditto.
6203         * event-loop.c: Ditto.
6204         * event-loop.h: Ditto.
6205         * exceptions.h: Ditto.
6206         * exec.c: Ditto.
6207         * expprint.c: Ditto.
6208         * expression.h: Ditto.
6209         * f-lang.c: Ditto.
6210         * f-valprint.c: Ditto.
6211         * findcmd.c: Ditto.
6212         * frame-base.c: Ditto.
6213         * frame-unwind.c: Ditto.
6214         * frame-unwind.h: Ditto.
6215         * frame.c: Ditto.
6216         * frame.h: Ditto.
6217         * gcore.c: Ditto.
6218         * gdb-stabs.h: Ditto.
6219         * gdb_assert.h: Ditto.
6220         * gdb_dirent.h: Ditto.
6221         * gdb_obstack.h: Ditto.
6222         * gdbcore.h: Ditto.
6223         * gdbtypes.c: Ditto.
6224         * gdbtypes.h: Ditto.
6225         * inf-ttrace.c: Ditto.
6226         * infcall.c: Ditto.
6227         * infcmd.c: Ditto.
6228         * inflow.c: Ditto.
6229         * infrun.c: Ditto.
6230         * inline-frame.h: Ditto.
6231         * language.c: Ditto.
6232         * language.h: Ditto.
6233         * libunwind-frame.c: Ditto.
6234         * libunwind-frame.h: Ditto.
6235         * linespec.c: Ditto.
6236         * linux-nat.c: Ditto.
6237         * linux-nat.h: Ditto.
6238         * linux-thread-db.c: Ditto.
6239         * machoread.c: Ditto.
6240         * macroexp.c: Ditto.
6241         * macrotab.c: Ditto.
6242         * main.c: Ditto.
6243         * maint.c: Ditto.
6244         * mdebugread.c: Ditto.
6245         * memattr.c: Ditto.
6246         * minsyms.c: Ditto.
6247         * monitor.c: Ditto.
6248         * monitor.h: Ditto.
6249         * objfiles.c: Ditto.
6250         * objfiles.h: Ditto.
6251         * osabi.c: Ditto.
6252         * p-typeprint.c: Ditto.
6253         * p-valprint.c: Ditto.
6254         * parse.c: Ditto.
6255         * printcmd.c: Ditto.
6256         * proc-events.c: Ditto.
6257         * procfs.c: Ditto.
6258         * progspace.c: Ditto.
6259         * progspace.h: Ditto.
6260         * psympriv.h: Ditto.
6261         * psymtab.c: Ditto.
6262         * record.c: Ditto.
6263         * regcache.c: Ditto.
6264         * regcache.h: Ditto.
6265         * remote-fileio.c: Ditto.
6266         * remote.c: Ditto.
6267         * ser-mingw.c: Ditto.
6268         * ser-tcp.c: Ditto.
6269         * ser-unix.c: Ditto.
6270         * serial.c: Ditto.
6271         * serial.h: Ditto.
6272         * solib-frv.c: Ditto.
6273         * solib-irix.c: Ditto.
6274         * solib-osf.c: Ditto.
6275         * solib-pa64.c: Ditto.
6276         * solib-som.c: Ditto.
6277         * solib-sunos.c: Ditto.
6278         * solib-svr4.c: Ditto.
6279         * solib-target.c: Ditto.
6280         * solib.c: Ditto.
6281         * somread.c: Ditto.
6282         * source.c: Ditto.
6283         * stabsread.c: Ditto.
6284         * stabsread.c: Ditto.
6285         * stack.c: Ditto.
6286         * stack.h: Ditto.
6287         * symfile-mem.c: Ditto.
6288         * symfile.c: Ditto.
6289         * symfile.h: Ditto.
6290         * symmisc.c: Ditto.
6291         * symtab.c: Ditto.
6292         * symtab.h: Ditto.
6293         * target-descriptions.c: Ditto.
6294         * target-memory.c: Ditto.
6295         * target.c: Ditto.
6296         * target.h: Ditto.
6297         * terminal.h: Ditto.
6298         * thread.c: Ditto.
6299         * top.c: Ditto.
6300         * tracepoint.c: Ditto.
6301         * tracepoint.h: Ditto.
6302         * ui-file.c: Ditto.
6303         * ui-file.h: Ditto.
6304         * ui-out.h: Ditto.
6305         * user-regs.c: Ditto.
6306         * user-regs.h: Ditto.
6307         * utils.c: Ditto.
6308         * valarith.c: Ditto.
6309         * valops.c: Ditto.
6310         * valprint.c: Ditto.
6311         * valprint.h: Ditto.
6312         * value.c: Ditto.
6313         * varobj.c: Ditto.
6314         * varobj.h: Ditto.
6315         * vec.h: Ditto.
6316         * xcoffread.c: Ditto.
6317         * xcoffsolib.c: Ditto.
6318         * xcoffsolib.h: Ditto.
6319         * xml-syscall.c: Ditto.
6320         * xml-tdesc.c: Ditto.
6321
6322 2011-01-05  Michael Snyder  <msnyder@vmware.com>
6323
6324         * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6325         * cli/cli-decode.c: Ditto.
6326         * cli/cli-dump.c: Ditto.
6327         * cli/cli-logging.c: Ditto.
6328         * cli/cli-script.c: Ditto.
6329         * cli/cli-setshow.c: Ditto.
6330         * common/signals.c: Ditto.
6331         * mi/mi-cmd-break.c: Ditto.
6332         * mi/mi-cmd-disas.c: Ditto.
6333         * mi/mi-cmd-stack.c: Ditto.
6334         * mi/mi-cmd-var.c: Ditto.
6335         * mi/mi-cmds.c: Ditto.
6336         * mi/mi-common.h: Ditto.
6337         * mi/mi-console.c: Ditto.
6338         * mi/mi-interp.c: Ditto.
6339         * mi/mi-main.c: Ditto.
6340         * osf-share/cma_attr.c: Ditto.
6341         * osf-share/cma_deb_core.h: Ditto.
6342         * osf-share/cma_debug_client.h: Ditto.
6343         * osf-share/cma_handle.h: Ditto.
6344         * osf-share/cma_mutex.h: Ditto.
6345         * osf-share/cma_stack_int.h: Ditto.
6346         * osf-share/cma_tcb_defs.h: Ditto.
6347         * python/py-auto-load.c: Ditto.
6348         * python/py-breakpoint.c: Ditto.
6349         * python/py-cmd.c: Ditto.
6350         * python/py-frame.c: Ditto.
6351         * python/py-objfile.c: Ditto.
6352         * python/py-param.c: Ditto.
6353         * python/py-progspace.c: Ditto.
6354         * python/py-symbol.c: Ditto.
6355         * python/py-value.c: Ditto.
6356         * python/python-internal.h: Ditto.
6357         * python/python.c: Ditto.
6358         * tui/tui-data.c: Ditto.
6359         * tui/tui-disasm.c: Ditto.
6360         * tui/tui-hooks.c: Ditto.
6361         * tui/tui-io.c: Ditto.
6362         * tui/tui-layout.c: Ditto.
6363         * tui/tui-regs.c: Ditto.
6364         * tui/tui-source.c: Ditto.
6365         * tui/tui-stack.c: Ditto.
6366         * tui/tui-win.c: Ditto.
6367         * tui/tui-windata.c: Ditto.
6368         * tui/tui-winsource.c: Ditto.
6369
6370 2011-01-05  Joel Brobecker  <brobecker@adacore.com>
6371
6372         * configure.ac, gdb.1: Copyright year update.
6373
6374 2011-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6375
6376         * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6377         this_pc_in_block, morestack_msym and morestack_name.  Check for
6378         "__morestack" minimal symbol there.
6379
6380 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
6381
6382         * symfile.c (find_sym_fns): Add call to dont_repeat.
6383
6384 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6385
6386         Copyright year update in most files (performed by copyright.sh).
6387
6388 2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6389
6390         * top.c (print_gdb_version): Update copyright year in version output.
6391
6392 For older changes see ChangeLog-2010.
6393 \f
6394 Local Variables:
6395 mode: change-log
6396 left-margin: 8
6397 fill-column: 74
6398 version-control: never
6399 coding: utf-8
6400 End: