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