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