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