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