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