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