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